Changeset 3198193
- Timestamp:
- 11/27/2024 02:18:00 PM (15 months ago)
- Location:
- smaily-for-woocommerce
- Files:
-
- 24 edited
- 1 copied
-
tags/1.12.0 (copied) (copied from smaily-for-woocommerce/trunk)
-
tags/1.12.0/inc/Base/Cron.php (modified) (2 diffs)
-
tags/1.12.0/lang/smaily-et.mo (modified) (previous)
-
tags/1.12.0/lang/smaily-et.po (modified) (2 diffs)
-
tags/1.12.0/lang/smaily-et_EE.mo (modified) (previous)
-
tags/1.12.0/lang/smaily-et_EE.po (modified) (2 diffs)
-
tags/1.12.0/readme.txt (modified) (2 diffs)
-
tags/1.12.0/smaily-for-woocommerce.php (modified) (2 diffs)
-
tags/1.12.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.12.0/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
tags/1.12.0/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.12.0/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.12.0/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/inc/Base/Cron.php (modified) (2 diffs)
-
trunk/lang/smaily-et.mo (modified) (previous)
-
trunk/lang/smaily-et.po (modified) (2 diffs)
-
trunk/lang/smaily-et_EE.mo (modified) (previous)
-
trunk/lang/smaily-et_EE.po (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smaily-for-woocommerce.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-woocommerce/tags/1.12.0/inc/Base/Cron.php
r2901162 r3198193 142 142 'last_name' => ! empty( $customer_data ) ? $customer_data->last_name : '', 143 143 'email' => ! empty( $customer_data ) ? $customer_data->user_email : '', 144 'store' => get_site_url(), 144 145 ]; 145 146 // Continue with data gathering only if there is an email value to send data to. … … 155 156 // Gather customer data. 156 157 $customer_data = []; 157 $sync_values = [ 'first_name', 'last_name', 'email' ];158 $sync_values = [ 'first_name', 'last_name', 'email', 'store' ]; 158 159 foreach ( $sync_values as $sync_value ) { 159 160 // Check if user has enabled extra field in settings. 160 if ( in_array( $sync_value, $results['cart_options'], true ) || $sync_value === 'email' ) {161 if ( in_array( $sync_value, $results['cart_options'], true ) || $sync_value === 'email' || $sync_value === 'store' ) { 161 162 // Add extra field if it's available in customer data. 162 163 if ( isset( $customer[ $sync_value ] ) ) { -
smaily-for-woocommerce/tags/1.12.0/lang/smaily-et.po
r2896551 r3198193 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-" 5 5 "woocommerce\n" 6 "POT-Creation-Date: 202 3-04-10 13:49+0300\n"7 "PO-Revision-Date: 202 3-04-10 13:49+0300\n"6 "POT-Creation-Date: 2024-11-27 16:08+0200\n" 7 "PO-Revision-Date: 2024-11-27 16:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Estonian\n" … … 15 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n" 17 "X-Generator: Poedit 3. 2.2\n"17 "X-Generator: Poedit 3.4.4\n" 18 18 "X-Loco-Version: 2.3.3; wp-5.4.1\n" 19 19 "X-Poedit-SearchPath-0: .\n" -
smaily-for-woocommerce/tags/1.12.0/lang/smaily-et_EE.po
r2896551 r3198193 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-" 5 5 "woocommercewoocommerce\n" 6 "POT-Creation-Date: 202 3-04-10 13:49+0300\n"7 "PO-Revision-Date: 202 3-04-10 13:49+0300\n"6 "POT-Creation-Date: 2024-11-27 16:08+0200\n" 7 "PO-Revision-Date: 2024-11-27 16:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Estonian\n" … … 15 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n" 17 "X-Generator: Poedit 3. 2.2\n"17 "X-Generator: Poedit 3.4.4\n" 18 18 "X-Loco-Version: 2.3.3; wp-5.4.1\n" 19 19 "X-Poedit-SearchPath-0: .\n" -
smaily-for-woocommerce/tags/1.12.0/readme.txt
r2901162 r3198193 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.5 6 Tested up to: 5.87 WC tested up to: 4.7.08 Stable tag: 1.1 1.26 Tested up to: 6.7 7 WC tested up to: 9.3.1 8 Stable tag: 1.12.0 9 9 License: GPLv3 10 10 … … 152 152 == Changelog == 153 153 154 = 1.12.0 = 155 156 - Include store URL in abandoned cart parameters 157 154 158 = 1.11.2 = 155 159 -
smaily-for-woocommerce/tags/1.12.0/smaily-for-woocommerce.php
r2901162 r3198193 14 14 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin 15 15 * Description: Smaily email marketing and automation extension plugin for WooCommerce. Set up easy sync for your contacts, add opt-in subscription form, import products directly to your email template and send abandoned cart reminder emails. 16 * Version: 1.1 1.216 * Version: 1.12.0 17 17 * License: GPL3 18 18 * Author: Smaily … … 49 49 define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 50 50 define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) ); 51 define( 'SMAILY_PLUGIN_VERSION', '1.1 1.2' );51 define( 'SMAILY_PLUGIN_VERSION', '1.12.0' ); 52 52 53 53 // Required to use functions is_plugin_active and deactivate_plugins. -
smaily-for-woocommerce/tags/1.12.0/vendor/autoload.php
r2901162 r3198193 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c::getLoader();25 return ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101::getLoader(); -
smaily-for-woocommerce/tags/1.12.0/vendor/composer/ClassLoader.php
r2865166 r3198193 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
smaily-for-woocommerce/tags/1.12.0/vendor/composer/autoload_real.php
r2901162 r3198193 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c5 class ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
smaily-for-woocommerce/tags/1.12.0/vendor/composer/autoload_static.php
r2901162 r3198193 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c7 class ComposerStaticInit0b6e0d5e48addd05731e87af026ea101 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 28 28 { 29 29 return \Closure::bind(function () use ($loader) { 30 $loader->prefixLengthsPsr4 = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$prefixLengthsPsr4;31 $loader->prefixDirsPsr4 = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$prefixDirsPsr4;32 $loader->classMap = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$classMap;30 $loader->prefixLengthsPsr4 = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$prefixLengthsPsr4; 31 $loader->prefixDirsPsr4 = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$prefixDirsPsr4; 32 $loader->classMap = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$classMap; 33 33 34 34 }, null, ClassLoader::class); -
smaily-for-woocommerce/tags/1.12.0/vendor/composer/installed.php
r2901162 r3198193 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_woocommerce', 4 'pretty_version' => '1.1 1.2',5 'version' => '1.1 1.2.0',6 'reference' => ' 681f936b5be2c0aa6eca9461509fed9cbc3574ab',4 'pretty_version' => '1.12.0', 5 'version' => '1.12.0.0', 6 'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_woocommerce' => array( 14 'pretty_version' => '1.1 1.2',15 'version' => '1.1 1.2.0',16 'reference' => ' 681f936b5be2c0aa6eca9461509fed9cbc3574ab',14 'pretty_version' => '1.12.0', 15 'version' => '1.12.0.0', 16 'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../', -
smaily-for-woocommerce/trunk/inc/Base/Cron.php
r2901162 r3198193 142 142 'last_name' => ! empty( $customer_data ) ? $customer_data->last_name : '', 143 143 'email' => ! empty( $customer_data ) ? $customer_data->user_email : '', 144 'store' => get_site_url(), 144 145 ]; 145 146 // Continue with data gathering only if there is an email value to send data to. … … 155 156 // Gather customer data. 156 157 $customer_data = []; 157 $sync_values = [ 'first_name', 'last_name', 'email' ];158 $sync_values = [ 'first_name', 'last_name', 'email', 'store' ]; 158 159 foreach ( $sync_values as $sync_value ) { 159 160 // Check if user has enabled extra field in settings. 160 if ( in_array( $sync_value, $results['cart_options'], true ) || $sync_value === 'email' ) {161 if ( in_array( $sync_value, $results['cart_options'], true ) || $sync_value === 'email' || $sync_value === 'store' ) { 161 162 // Add extra field if it's available in customer data. 162 163 if ( isset( $customer[ $sync_value ] ) ) { -
smaily-for-woocommerce/trunk/lang/smaily-et.po
r2896551 r3198193 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-" 5 5 "woocommerce\n" 6 "POT-Creation-Date: 202 3-04-10 13:49+0300\n"7 "PO-Revision-Date: 202 3-04-10 13:49+0300\n"6 "POT-Creation-Date: 2024-11-27 16:08+0200\n" 7 "PO-Revision-Date: 2024-11-27 16:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Estonian\n" … … 15 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n" 17 "X-Generator: Poedit 3. 2.2\n"17 "X-Generator: Poedit 3.4.4\n" 18 18 "X-Loco-Version: 2.3.3; wp-5.4.1\n" 19 19 "X-Poedit-SearchPath-0: .\n" -
smaily-for-woocommerce/trunk/lang/smaily-et_EE.po
r2896551 r3198193 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-" 5 5 "woocommercewoocommerce\n" 6 "POT-Creation-Date: 202 3-04-10 13:49+0300\n"7 "PO-Revision-Date: 202 3-04-10 13:49+0300\n"6 "POT-Creation-Date: 2024-11-27 16:08+0200\n" 7 "PO-Revision-Date: 2024-11-27 16:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: Estonian\n" … … 15 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n" 17 "X-Generator: Poedit 3. 2.2\n"17 "X-Generator: Poedit 3.4.4\n" 18 18 "X-Loco-Version: 2.3.3; wp-5.4.1\n" 19 19 "X-Poedit-SearchPath-0: .\n" -
smaily-for-woocommerce/trunk/readme.txt
r2901162 r3198193 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.5 6 Tested up to: 5.87 WC tested up to: 4.7.08 Stable tag: 1.1 1.26 Tested up to: 6.7 7 WC tested up to: 9.3.1 8 Stable tag: 1.12.0 9 9 License: GPLv3 10 10 … … 152 152 == Changelog == 153 153 154 = 1.12.0 = 155 156 - Include store URL in abandoned cart parameters 157 154 158 = 1.11.2 = 155 159 -
smaily-for-woocommerce/trunk/smaily-for-woocommerce.php
r2901162 r3198193 14 14 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin 15 15 * Description: Smaily email marketing and automation extension plugin for WooCommerce. Set up easy sync for your contacts, add opt-in subscription form, import products directly to your email template and send abandoned cart reminder emails. 16 * Version: 1.1 1.216 * Version: 1.12.0 17 17 * License: GPL3 18 18 * Author: Smaily … … 49 49 define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 50 50 define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) ); 51 define( 'SMAILY_PLUGIN_VERSION', '1.1 1.2' );51 define( 'SMAILY_PLUGIN_VERSION', '1.12.0' ); 52 52 53 53 // Required to use functions is_plugin_active and deactivate_plugins. -
smaily-for-woocommerce/trunk/vendor/autoload.php
r2901162 r3198193 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c::getLoader();25 return ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101::getLoader(); -
smaily-for-woocommerce/trunk/vendor/composer/ClassLoader.php
r2865166 r3198193 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
smaily-for-woocommerce/trunk/vendor/composer/autoload_real.php
r2901162 r3198193 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c5 class ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit e2f76c78f6d6aa29695ebc2e07d4385c', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit0b6e0d5e48addd05731e87af026ea101', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
smaily-for-woocommerce/trunk/vendor/composer/autoload_static.php
r2901162 r3198193 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c7 class ComposerStaticInit0b6e0d5e48addd05731e87af026ea101 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 28 28 { 29 29 return \Closure::bind(function () use ($loader) { 30 $loader->prefixLengthsPsr4 = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$prefixLengthsPsr4;31 $loader->prefixDirsPsr4 = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$prefixDirsPsr4;32 $loader->classMap = ComposerStaticInit e2f76c78f6d6aa29695ebc2e07d4385c::$classMap;30 $loader->prefixLengthsPsr4 = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$prefixLengthsPsr4; 31 $loader->prefixDirsPsr4 = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$prefixDirsPsr4; 32 $loader->classMap = ComposerStaticInit0b6e0d5e48addd05731e87af026ea101::$classMap; 33 33 34 34 }, null, ClassLoader::class); -
smaily-for-woocommerce/trunk/vendor/composer/installed.php
r2901162 r3198193 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_woocommerce', 4 'pretty_version' => '1.1 1.2',5 'version' => '1.1 1.2.0',6 'reference' => ' 681f936b5be2c0aa6eca9461509fed9cbc3574ab',4 'pretty_version' => '1.12.0', 5 'version' => '1.12.0.0', 6 'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_woocommerce' => array( 14 'pretty_version' => '1.1 1.2',15 'version' => '1.1 1.2.0',16 'reference' => ' 681f936b5be2c0aa6eca9461509fed9cbc3574ab',14 'pretty_version' => '1.12.0', 15 'version' => '1.12.0.0', 16 'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.