Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > woocommerce > src > StoreApi > > Utilities
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
ArrayUtils.php | File | 1530 bytes | April 30 2024 19:35:34. | |
CartController.php | File | 49454 bytes | June 30 2025 17:49:22. | |
CartTokenUtils.php | File | 1853 bytes | June 23 2025 19:46:28. | |
CheckoutTrait.php | File | 11076 bytes | June 23 2025 19:46:28. | |
DraftOrderTrait.php | File | 1807 bytes | September 04 2024 20:34:26. | |
JsonWebToken.php | File | 5194 bytes | August 27 2024 23:04:44. | |
LocalPickupUtils.php | File | 3251 bytes | May 12 2025 21:07:28. | |
NoticeHandler.php | File | 2070 bytes | March 03 2025 22:28:12. | |
OrderAuthorizationTrait.php | File | 2335 bytes | February 06 2024 22:01:42. | |
OrderController.php | File | 31956 bytes | June 23 2025 19:46:28. | |
Pagination.php | File | 2100 bytes | December 27 2023 00:45:02. | |
PaymentUtils.php | File | 3737 bytes | May 12 2025 21:07:28. | |
ProductItemTrait.php | File | 3021 bytes | December 27 2023 00:45:02. | |
ProductQuery.php | File | 19476 bytes | May 12 2025 21:07:28. | |
ProductQueryFilters.php | File | 8203 bytes | March 03 2025 22:28:12. | |
QuantityLimits.php | File | 10137 bytes | June 23 2025 19:46:28. | |
RateLimits.php | File | 6289 bytes | March 03 2025 22:28:12. | |
SanitizationUtils.php | File | 794 bytes | February 27 2024 18:59:46. | |
ValidationUtils.php | File | 1770 bytes | December 27 2023 00:45:02. |
<?php namespace Automattic\WooCommerce\StoreApi\Utilities; /** * ArrayUtils class used for custom functions to operate on arrays */ class ArrayUtils { /** * Join a string with a natural language conjunction at the end. * * @param array $array The array to join together with the natural language conjunction. * @param bool $enclose_items_with_quotes Whether each item in the array should be enclosed within quotation marks. * * @return string a string containing a list of items and a natural language conjuction. */ public static function natural_language_join( $array, $enclose_items_with_quotes = false ) { if ( true === $enclose_items_with_quotes ) { $array = array_map( function ( $item ) { return '"' . $item . '"'; }, $array ); } $last = array_pop( $array ); if ( $array ) { return sprintf( /* translators: 1: The first n-1 items of a list 2: the last item in the list. */ __( '%1$s and %2$s', 'woocommerce' ), implode( ', ', $array ), $last ); } return $last; } /** * Check if a string contains any of the items in an array. * * @param string $needle The string to check. * @param array $haystack The array of items to check for. * * @return bool true if the string contains any of the items in the array, false otherwise. */ public static function string_contains_array( $needle, $haystack ) { foreach ( $haystack as $item ) { if ( false !== strpos( $needle, $item ) ) { return true; } } return false; } }
SILENT KILLER Tool