Changeset 2928016
- Timestamp:
- 06/19/2023 02:16:32 PM (13 months ago)
- Location:
- asin-smart-links
- Files:
-
- 34 deleted
- 28 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
asin-smart-links/tags/1.0.1/Includes/Loader.php
r2911530 r2928016 35 35 public function load_plugin_textdomain() 36 36 { 37 load_plugin_textdomain('asin-smart-links', false, ASINSMARTINTERNATIONALLINKS_BASENAME. '/languages/');37 load_plugin_textdomain('asin-smart-links', false, . '/languages/'); 38 38 } 39 39 -
asin-smart-links/tags/1.0.1/README.txt
r2911530 r2928016 1 1 === ASIN Smart Links === 2 Contributors: joanrodas 2 Contributors: joanrodas 3 3 Donate link: https://sirvelia.com/ 4 4 Tags: asin, amazon, international link, isbn, affiliate … … 39 39 == Changelog == 40 40 41 42 43 41 44 = 1.0.0 = 42 45 * Initial release. -
asin-smart-links/tags/1.0.1/asin-smart-links.php
r2911530 r2928016 6 6 * Plugin Name: ASIN Smart Links 7 7 * Description: Generate Amazon universal links to redirect users to the Amazon site of their country. 8 * Version: 1.0. 08 * Version: 1.0. 9 9 * Author: Sirvelia 10 10 * Author URI: https://sirvelia.com/ … … 20 20 } 21 21 22 define('ASINSMARTINTERNATIONALLINKS_VERSION', '1.0. 0');22 define('ASINSMARTINTERNATIONALLINKS_VERSION', '1.0.'); 23 23 define('ASINSMARTINTERNATIONALLINKS_PATH', plugin_dir_path(__FILE__)); 24 24 define('ASINSMARTINTERNATIONALLINKS_BASENAME', plugin_basename(__FILE__)); -
asin-smart-links/tags/1.0.1/vendor/autoload.php
r2911530 r2928016 3 3 // autoload.php @generated by Composer 4 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
asin-smart-links/tags/1.0.1/vendor/bin/carbon
r2911530 r2928016 113 113 || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) 114 114 ) { 115 include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'); 116 exit(0); 115 return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'); 117 116 } 118 117 } 119 118 120 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';119 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'; -
asin-smart-links/tags/1.0.1/vendor/composer/ClassLoader.php
r2911530 r2928016 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @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>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param |string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param |string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param |string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param |string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders ed by their corresponding vendor directories. 479 * 480 * @return 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
asin-smart-links/tags/1.0.1/vendor/composer/InstalledVersions.php
r2911530 r2928016 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 25 24 26 */ 25 27 class InstalledVersions … … 27 29 /** 28 30 * @var mixed[]|null 29 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, }>}|array{}|null 30 32 */ 31 33 private static $installed; … … 38 40 /** 39 41 * @var array[] 40 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, }>}> 41 43 */ 42 44 private static $installedByVendor = array(); … … 97 99 foreach (self::getInstalled() as $installed) { 98 100 if (isset($installed['versions'][$packageName])) { 99 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || ; 100 102 } 101 103 } … … 118 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 119 121 { 120 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints($constraint); 121 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 122 124 … … 242 244 /** 243 245 * @return array 244 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, } 245 247 */ 246 248 public static function getRootPackage() … … 256 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 257 259 * @return array[] 258 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, }>} 259 261 */ 260 262 public static function getRawData() … … 279 281 * 280 282 * @return array[] 281 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, }>}> 282 284 */ 283 285 public static function getAllRawData() … … 302 304 * @return void 303 305 * 304 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, }>} $data 305 307 */ 306 308 public static function reload($data) … … 312 314 /** 313 315 * @return array[] 314 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, }>}> 315 317 */ 316 318 private static function getInstalled() … … 327 329 $installed[] = self::$installedByVendor[$vendorDir]; 328 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 330 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 331 335 self::$installed = $installed[count($installed) - 1]; … … 339 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 340 344 if (substr(__DIR__, -8, 1) !== 'C') { 341 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 342 348 } else { 343 349 self::$installed = array(); 344 350 } 345 351 } 346 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 347 356 348 357 return $installed; -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_classmap.php
r2911530 r2928016 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_files.php
r2911530 r2928016 3 3 // autoload_files.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 14 14 '72579e7bd17821bb1321b87411366eae' => $vendorDir . '/illuminate/support/helpers.php', 15 15 'ef65a1626449d89d0811cf9befce46f0' => $vendorDir . '/illuminate/events/functions.php', 16 ' 28cd8f460261615c0915396719f9e5aa' => $baseDir . '/Utils/dev.php',17 ' 93c05233cdc31acae58d99252e919f26' => $baseDir . '/Utils/functions.php',16 '' => $baseDir . '/Utils/dev.php', 17 '' => $baseDir . '/Utils/functions.php', 18 18 ); -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_namespaces.php
r2911530 r2928016 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_psr4.php
r2911530 r2928016 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 18 18 'Jenssegers\\Blade\\' => array($vendorDir . '/jenssegers/blade/src'), 19 19 'Illuminate\\View\\' => array($vendorDir . '/illuminate/view'), 20 'Illuminate\\Support\\' => array($vendorDir . '/illuminate/ collections', $vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/support'),20 'Illuminate\\Support\\' => array($vendorDir . '/illuminate/', $vendorDir . '/illuminate/support'), 21 21 'Illuminate\\Pipeline\\' => array($vendorDir . '/illuminate/pipeline'), 22 22 'Illuminate\\Filesystem\\' => array($vendorDir . '/illuminate/filesystem'), -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_real.php
r2911530 r2928016 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db35 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( \dirname(__FILE__)));29 spl_autoload_unregister(array('ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit2333652b5ec3b5cdf3b8126057099db3::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitd753b489e0db09e602bf922b7f37353f::getInitializer($loader)); 52 33 53 34 $loader->register(true); 54 35 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit2333652b5ec3b5cdf3b8126057099db3::$files; 57 } else { 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 } 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire2333652b5ec3b5cdf3b8126057099db3($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitd753b489e0db09e602bf922b7f37353f::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 62 46 } 63 47 … … 65 49 } 66 50 } 67 68 /**69 * @param string $fileIdentifier70 * @param string $file71 * @return void72 */73 function composerRequire2333652b5ec3b5cdf3b8126057099db3($fileIdentifier, $file)74 {75 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {76 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;77 78 require $file;79 }80 } -
asin-smart-links/tags/1.0.1/vendor/composer/autoload_static.php
r2911530 r2928016 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db37 class ComposerStaticInit 8 8 { 9 9 public static $files = array ( … … 15 15 '72579e7bd17821bb1321b87411366eae' => __DIR__ . '/..' . '/illuminate/support/helpers.php', 16 16 'ef65a1626449d89d0811cf9befce46f0' => __DIR__ . '/..' . '/illuminate/events/functions.php', 17 ' 28cd8f460261615c0915396719f9e5aa' => __DIR__ . '/../..' . '/Utils/dev.php',18 ' 93c05233cdc31acae58d99252e919f26' => __DIR__ . '/../..' . '/Utils/functions.php',17 '' => __DIR__ . '/../..' . '/Utils/dev.php', 18 '' => __DIR__ . '/../..' . '/Utils/functions.php', 19 19 ); 20 20 … … 115 115 'Illuminate\\Support\\' => 116 116 array ( 117 0 => __DIR__ . '/..' . '/illuminate/ collections',118 1 => __DIR__ . '/..' . '/illuminate/ macroable',117 0 => __DIR__ . '/..' . '/illuminate/', 118 1 => __DIR__ . '/..' . '/illuminate/', 119 119 2 => __DIR__ . '/..' . '/illuminate/support', 120 120 ), … … 173 173 { 174 174 return \Closure::bind(function () use ($loader) { 175 $loader->prefixLengthsPsr4 = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$prefixLengthsPsr4;176 $loader->prefixDirsPsr4 = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$prefixDirsPsr4;177 $loader->classMap = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$classMap;175 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 176 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 177 $loader->classMap = ComposerStaticInit::$classMap; 178 178 179 179 }, null, ClassLoader::class); -
asin-smart-links/tags/1.0.1/vendor/composer/installed.php
r2911530 r2928016 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => 'dev-main', 4 'version' => 'dev-main', 5 'type' => 'template', 3 'name' => 'sirvelia-labs/asin-smart-links', 4 'pretty_version' => 'v1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => 'd123464435a125c0aee966f04e361bec920bef98', 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '94dc4ba53589381ee968cfe193f04b0fddc096b2',9 'name' => 'sirvelia-labs/asin-smart-international-links',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => '2.0.6', 15 15 'version' => '2.0.6.0', 16 16 17 'type' => 'library', 17 18 'install_path' => __DIR__ . '/../doctrine/inflector', 18 19 'aliases' => array(), 19 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024',20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'v3.5.3', 24 24 'version' => '3.5.3.0', 25 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../htmlburger/carbon-fields', 27 28 'aliases' => array(), 28 'reference' => 'fe95143dc8db6b9b0f17b1a0c4d28aab98008470',29 29 'dev_requirement' => false, 30 30 ), … … 32 32 'pretty_version' => 'v8.83.27', 33 33 'version' => '8.83.27.0', 34 34 35 'type' => 'library', 35 36 'install_path' => __DIR__ . '/../illuminate/bus', 36 37 'aliases' => array(), 37 'reference' => 'd2a8ae4bfd881086e55455e470776358eab27eae',38 38 'dev_requirement' => false, 39 39 ), … … 41 41 'pretty_version' => 'v8.83.27', 42 42 'version' => '8.83.27.0', 43 43 44 'type' => 'library', 44 45 'install_path' => __DIR__ . '/../illuminate/collections', 45 46 'aliases' => array(), 46 'reference' => '705a4e1ef93cd492c45b9b3e7911cccc990a07f4',47 47 'dev_requirement' => false, 48 48 ), … … 50 50 'pretty_version' => 'v8.83.27', 51 51 'version' => '8.83.27.0', 52 52 53 'type' => 'library', 53 54 'install_path' => __DIR__ . '/../illuminate/container', 54 55 'aliases' => array(), 55 'reference' => '14062628d05f75047c5a1360b9350028427d568e',56 56 'dev_requirement' => false, 57 57 ), … … 59 59 'pretty_version' => 'v8.83.27', 60 60 'version' => '8.83.27.0', 61 61 62 'type' => 'library', 62 63 'install_path' => __DIR__ . '/../illuminate/contracts', 63 64 'aliases' => array(), 64 'reference' => '5e0fd287a1b22a6b346a9f7cd484d8cf0234585d',65 65 'dev_requirement' => false, 66 66 ), … … 68 68 'pretty_version' => 'v8.83.27', 69 69 'version' => '8.83.27.0', 70 70 71 'type' => 'library', 71 72 'install_path' => __DIR__ . '/../illuminate/events', 72 73 'aliases' => array(), 73 'reference' => 'b7f06cafb6c09581617f2ca05d69e9b159e5a35d',74 74 'dev_requirement' => false, 75 75 ), … … 77 77 'pretty_version' => 'v8.83.27', 78 78 'version' => '8.83.27.0', 79 79 80 'type' => 'library', 80 81 'install_path' => __DIR__ . '/../illuminate/filesystem', 81 82 'aliases' => array(), 82 'reference' => '73db3e9a233ed587ba54f52ab8580f3c7bc872b2',83 83 'dev_requirement' => false, 84 84 ), … … 86 86 'pretty_version' => 'v8.83.27', 87 87 'version' => '8.83.27.0', 88 88 89 'type' => 'library', 89 90 'install_path' => __DIR__ . '/../illuminate/macroable', 90 91 'aliases' => array(), 91 'reference' => 'aed81891a6e046fdee72edd497f822190f61c162',92 92 'dev_requirement' => false, 93 93 ), … … 95 95 'pretty_version' => 'v8.83.27', 96 96 'version' => '8.83.27.0', 97 97 98 'type' => 'library', 98 99 'install_path' => __DIR__ . '/../illuminate/pipeline', 99 100 'aliases' => array(), 100 'reference' => '23aeff5b26ae4aee3f370835c76bd0f4e93f71d2',101 101 'dev_requirement' => false, 102 102 ), … … 104 104 'pretty_version' => 'v8.83.27', 105 105 'version' => '8.83.27.0', 106 106 107 'type' => 'library', 107 108 'install_path' => __DIR__ . '/../illuminate/support', 108 109 'aliases' => array(), 109 'reference' => '1c79242468d3bbd9a0f7477df34f9647dde2a09b',110 110 'dev_requirement' => false, 111 111 ), … … 113 113 'pretty_version' => 'v8.83.27', 114 114 'version' => '8.83.27.0', 115 115 116 'type' => 'library', 116 117 'install_path' => __DIR__ . '/../illuminate/view', 117 118 'aliases' => array(), 118 'reference' => '5e73eef48d9242532f81fadc14c816a01bfb1388',119 119 'dev_requirement' => false, 120 120 ), … … 122 122 'pretty_version' => 'v1.4.0', 123 123 'version' => '1.4.0.0', 124 124 125 'type' => 'library', 125 126 'install_path' => __DIR__ . '/../jenssegers/blade', 126 127 'aliases' => array(), 127 'reference' => '22a3700e9fc469c19dd1c5e5bd1b9138195e421f',128 128 'dev_requirement' => false, 129 129 ), … … 131 131 'pretty_version' => 'v0.5.5', 132 132 'version' => '0.5.5.0', 133 133 134 'type' => 'library', 134 135 'install_path' => __DIR__ . '/../joanrodas/plubo-routes', 135 136 'aliases' => array(), 136 'reference' => 'd72fa54c4c9545ef3ab5123f76847cd1c5daac43',137 137 'dev_requirement' => false, 138 138 ), … … 140 140 'pretty_version' => '2.66.0', 141 141 'version' => '2.66.0.0', 142 142 143 'type' => 'library', 143 144 'install_path' => __DIR__ . '/../nesbot/carbon', 144 145 'aliases' => array(), 145 'reference' => '496712849902241f04902033b0441b269effe001',146 146 'dev_requirement' => false, 147 147 ), … … 149 149 'pretty_version' => '1.1.2', 150 150 'version' => '1.1.2.0', 151 151 152 'type' => 'library', 152 153 'install_path' => __DIR__ . '/../psr/container', 153 154 'aliases' => array(), 154 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea',155 155 'dev_requirement' => false, 156 156 ), … … 164 164 'pretty_version' => '1.0.1', 165 165 'version' => '1.0.1.0', 166 166 167 'type' => 'library', 167 168 'install_path' => __DIR__ . '/../psr/simple-cache', 168 169 'aliases' => array(), 169 ' reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',170 'dev_requirement' => false,171 ),172 'sirvelia-labs/asin-smart-international-links' => array(173 ' pretty_version' => 'dev-main',174 ' version' => 'dev-main',175 'type' => ' template',170 ', 171 , 172 173 174 '', 175 '', 176 'type' => '', 176 177 'install_path' => __DIR__ . '/../../', 177 178 'aliases' => array(), 178 'reference' => '94dc4ba53589381ee968cfe193f04b0fddc096b2',179 179 'dev_requirement' => false, 180 180 ), … … 182 182 'pretty_version' => 'v2.5.2', 183 183 'version' => '2.5.2.0', 184 184 185 'type' => 'library', 185 186 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 186 187 'aliases' => array(), 187 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',188 188 'dev_requirement' => false, 189 189 ), … … 191 191 'pretty_version' => 'v5.4.21', 192 192 'version' => '5.4.21.0', 193 193 194 'type' => 'library', 194 195 'install_path' => __DIR__ . '/../symfony/finder', 195 196 'aliases' => array(), 196 'reference' => '078e9a5e1871fcfe6a5ce421b539344c21afef19',197 197 'dev_requirement' => false, 198 198 ), … … 200 200 'pretty_version' => 'v1.27.0', 201 201 'version' => '1.27.0.0', 202 202 203 'type' => 'library', 203 204 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 204 205 'aliases' => array(), 205 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534',206 206 'dev_requirement' => false, 207 207 ), … … 209 209 'pretty_version' => 'v1.27.0', 210 210 'version' => '1.27.0.0', 211 211 212 'type' => 'library', 212 213 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 213 214 'aliases' => array(), 214 'reference' => '7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936',215 215 'dev_requirement' => false, 216 216 ), … … 218 218 'pretty_version' => 'v5.4.22', 219 219 'version' => '5.4.22.0', 220 220 221 'type' => 'library', 221 222 'install_path' => __DIR__ . '/../symfony/translation', 222 223 'aliases' => array(), 223 'reference' => '9a401392f01bc385aa42760eff481d213a0cc2ba',224 224 'dev_requirement' => false, 225 225 ), … … 227 227 'pretty_version' => 'v2.5.2', 228 228 'version' => '2.5.2.0', 229 229 230 'type' => 'library', 230 231 'install_path' => __DIR__ . '/../symfony/translation-contracts', 231 232 'aliases' => array(), 232 'reference' => '136b19dd05cdf0709db6537d058bcab6dd6e2dbe',233 233 'dev_requirement' => false, 234 234 ), … … 242 242 'pretty_version' => '1.6.1', 243 243 'version' => '1.6.1.0', 244 244 245 'type' => 'library', 245 246 'install_path' => __DIR__ . '/../voku/portable-ascii', 246 247 'aliases' => array(), 247 'reference' => '87337c91b9dfacee02452244ee14ab3c43bc485a',248 248 'dev_requirement' => false, 249 249 ), -
asin-smart-links/trunk/Includes/Loader.php
r2911530 r2928016 35 35 public function load_plugin_textdomain() 36 36 { 37 load_plugin_textdomain('asin-smart-links', false, ASINSMARTINTERNATIONALLINKS_BASENAME. '/languages/');37 load_plugin_textdomain('asin-smart-links', false, . '/languages/'); 38 38 } 39 39 -
asin-smart-links/trunk/README.txt
r2911530 r2928016 1 1 === ASIN Smart Links === 2 Contributors: joanrodas 2 Contributors: joanrodas 3 3 Donate link: https://sirvelia.com/ 4 4 Tags: asin, amazon, international link, isbn, affiliate … … 39 39 == Changelog == 40 40 41 42 43 41 44 = 1.0.0 = 42 45 * Initial release. -
asin-smart-links/trunk/asin-smart-links.php
r2911530 r2928016 6 6 * Plugin Name: ASIN Smart Links 7 7 * Description: Generate Amazon universal links to redirect users to the Amazon site of their country. 8 * Version: 1.0. 08 * Version: 1.0. 9 9 * Author: Sirvelia 10 10 * Author URI: https://sirvelia.com/ … … 20 20 } 21 21 22 define('ASINSMARTINTERNATIONALLINKS_VERSION', '1.0. 0');22 define('ASINSMARTINTERNATIONALLINKS_VERSION', '1.0.'); 23 23 define('ASINSMARTINTERNATIONALLINKS_PATH', plugin_dir_path(__FILE__)); 24 24 define('ASINSMARTINTERNATIONALLINKS_BASENAME', plugin_basename(__FILE__)); -
asin-smart-links/trunk/vendor/autoload.php
r2911530 r2928016 3 3 // autoload.php @generated by Composer 4 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
asin-smart-links/trunk/vendor/bin/carbon
r2911530 r2928016 113 113 || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) 114 114 ) { 115 include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'); 116 exit(0); 115 return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'); 117 116 } 118 117 } 119 118 120 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';119 include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon'; -
asin-smart-links/trunk/vendor/composer/ClassLoader.php
r2911530 r2928016 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @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>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param |string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param |string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param |string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param |string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders ed by their corresponding vendor directories. 479 * 480 * @return 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
asin-smart-links/trunk/vendor/composer/InstalledVersions.php
r2911530 r2928016 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 25 24 26 */ 25 27 class InstalledVersions … … 27 29 /** 28 30 * @var mixed[]|null 29 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, }>}|array{}|null 30 32 */ 31 33 private static $installed; … … 38 40 /** 39 41 * @var array[] 40 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, }>}> 41 43 */ 42 44 private static $installedByVendor = array(); … … 97 99 foreach (self::getInstalled() as $installed) { 98 100 if (isset($installed['versions'][$packageName])) { 99 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || ; 100 102 } 101 103 } … … 118 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 119 121 { 120 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints($constraint); 121 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 122 124 … … 242 244 /** 243 245 * @return array 244 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, } 245 247 */ 246 248 public static function getRootPackage() … … 256 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 257 259 * @return array[] 258 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, }>} 259 261 */ 260 262 public static function getRawData() … … 279 281 * 280 282 * @return array[] 281 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, }>}> 282 284 */ 283 285 public static function getAllRawData() … … 302 304 * @return void 303 305 * 304 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, }>} $data 305 307 */ 306 308 public static function reload($data) … … 312 314 /** 313 315 * @return array[] 314 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, }>}> 315 317 */ 316 318 private static function getInstalled() … … 327 329 $installed[] = self::$installedByVendor[$vendorDir]; 328 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 330 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 331 335 self::$installed = $installed[count($installed) - 1]; … … 339 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 340 344 if (substr(__DIR__, -8, 1) !== 'C') { 341 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 342 348 } else { 343 349 self::$installed = array(); 344 350 } 345 351 } 346 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 347 356 348 357 return $installed; -
asin-smart-links/trunk/vendor/composer/autoload_classmap.php
r2911530 r2928016 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
asin-smart-links/trunk/vendor/composer/autoload_files.php
r2911530 r2928016 3 3 // autoload_files.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 14 14 '72579e7bd17821bb1321b87411366eae' => $vendorDir . '/illuminate/support/helpers.php', 15 15 'ef65a1626449d89d0811cf9befce46f0' => $vendorDir . '/illuminate/events/functions.php', 16 ' 28cd8f460261615c0915396719f9e5aa' => $baseDir . '/Utils/dev.php',17 ' 93c05233cdc31acae58d99252e919f26' => $baseDir . '/Utils/functions.php',16 '' => $baseDir . '/Utils/dev.php', 17 '' => $baseDir . '/Utils/functions.php', 18 18 ); -
asin-smart-links/trunk/vendor/composer/autoload_namespaces.php
r2911530 r2928016 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
asin-smart-links/trunk/vendor/composer/autoload_psr4.php
r2911530 r2928016 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 18 18 'Jenssegers\\Blade\\' => array($vendorDir . '/jenssegers/blade/src'), 19 19 'Illuminate\\View\\' => array($vendorDir . '/illuminate/view'), 20 'Illuminate\\Support\\' => array($vendorDir . '/illuminate/ collections', $vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/support'),20 'Illuminate\\Support\\' => array($vendorDir . '/illuminate/', $vendorDir . '/illuminate/support'), 21 21 'Illuminate\\Pipeline\\' => array($vendorDir . '/illuminate/pipeline'), 22 22 'Illuminate\\Filesystem\\' => array($vendorDir . '/illuminate/filesystem'), -
asin-smart-links/trunk/vendor/composer/autoload_real.php
r2911530 r2928016 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db35 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( \dirname(__FILE__)));29 spl_autoload_unregister(array('ComposerAutoloaderInit 2333652b5ec3b5cdf3b8126057099db3', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit2333652b5ec3b5cdf3b8126057099db3::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitd753b489e0db09e602bf922b7f37353f::getInitializer($loader)); 52 33 53 34 $loader->register(true); 54 35 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit2333652b5ec3b5cdf3b8126057099db3::$files; 57 } else { 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 } 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire2333652b5ec3b5cdf3b8126057099db3($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitd753b489e0db09e602bf922b7f37353f::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 62 46 } 63 47 … … 65 49 } 66 50 } 67 68 /**69 * @param string $fileIdentifier70 * @param string $file71 * @return void72 */73 function composerRequire2333652b5ec3b5cdf3b8126057099db3($fileIdentifier, $file)74 {75 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {76 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;77 78 require $file;79 }80 } -
asin-smart-links/trunk/vendor/composer/autoload_static.php
r2911530 r2928016 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db37 class ComposerStaticInit 8 8 { 9 9 public static $files = array ( … … 15 15 '72579e7bd17821bb1321b87411366eae' => __DIR__ . '/..' . '/illuminate/support/helpers.php', 16 16 'ef65a1626449d89d0811cf9befce46f0' => __DIR__ . '/..' . '/illuminate/events/functions.php', 17 ' 28cd8f460261615c0915396719f9e5aa' => __DIR__ . '/../..' . '/Utils/dev.php',18 ' 93c05233cdc31acae58d99252e919f26' => __DIR__ . '/../..' . '/Utils/functions.php',17 '' => __DIR__ . '/../..' . '/Utils/dev.php', 18 '' => __DIR__ . '/../..' . '/Utils/functions.php', 19 19 ); 20 20 … … 115 115 'Illuminate\\Support\\' => 116 116 array ( 117 0 => __DIR__ . '/..' . '/illuminate/ collections',118 1 => __DIR__ . '/..' . '/illuminate/ macroable',117 0 => __DIR__ . '/..' . '/illuminate/', 118 1 => __DIR__ . '/..' . '/illuminate/', 119 119 2 => __DIR__ . '/..' . '/illuminate/support', 120 120 ), … … 173 173 { 174 174 return \Closure::bind(function () use ($loader) { 175 $loader->prefixLengthsPsr4 = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$prefixLengthsPsr4;176 $loader->prefixDirsPsr4 = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$prefixDirsPsr4;177 $loader->classMap = ComposerStaticInit 2333652b5ec3b5cdf3b8126057099db3::$classMap;175 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 176 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 177 $loader->classMap = ComposerStaticInit::$classMap; 178 178 179 179 }, null, ClassLoader::class); -
asin-smart-links/trunk/vendor/composer/installed.php
r2911530 r2928016 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => 'dev-main', 4 'version' => 'dev-main', 5 'type' => 'template', 3 'name' => 'sirvelia-labs/asin-smart-links', 4 'pretty_version' => 'v1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => 'd123464435a125c0aee966f04e361bec920bef98', 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '94dc4ba53589381ee968cfe193f04b0fddc096b2',9 'name' => 'sirvelia-labs/asin-smart-international-links',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => '2.0.6', 15 15 'version' => '2.0.6.0', 16 16 17 'type' => 'library', 17 18 'install_path' => __DIR__ . '/../doctrine/inflector', 18 19 'aliases' => array(), 19 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024',20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'v3.5.3', 24 24 'version' => '3.5.3.0', 25 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../htmlburger/carbon-fields', 27 28 'aliases' => array(), 28 'reference' => 'fe95143dc8db6b9b0f17b1a0c4d28aab98008470',29 29 'dev_requirement' => false, 30 30 ), … … 32 32 'pretty_version' => 'v8.83.27', 33 33 'version' => '8.83.27.0', 34 34 35 'type' => 'library', 35 36 'install_path' => __DIR__ . '/../illuminate/bus', 36 37 'aliases' => array(), 37 'reference' => 'd2a8ae4bfd881086e55455e470776358eab27eae',38 38 'dev_requirement' => false, 39 39 ), … … 41 41 'pretty_version' => 'v8.83.27', 42 42 'version' => '8.83.27.0', 43 43 44 'type' => 'library', 44 45 'install_path' => __DIR__ . '/../illuminate/collections', 45 46 'aliases' => array(), 46 'reference' => '705a4e1ef93cd492c45b9b3e7911cccc990a07f4',47 47 'dev_requirement' => false, 48 48 ), … … 50 50 'pretty_version' => 'v8.83.27', 51 51 'version' => '8.83.27.0', 52 52 53 'type' => 'library', 53 54 'install_path' => __DIR__ . '/../illuminate/container', 54 55 'aliases' => array(), 55 'reference' => '14062628d05f75047c5a1360b9350028427d568e',56 56 'dev_requirement' => false, 57 57 ), … … 59 59 'pretty_version' => 'v8.83.27', 60 60 'version' => '8.83.27.0', 61 61 62 'type' => 'library', 62 63 'install_path' => __DIR__ . '/../illuminate/contracts', 63 64 'aliases' => array(), 64 'reference' => '5e0fd287a1b22a6b346a9f7cd484d8cf0234585d',65 65 'dev_requirement' => false, 66 66 ), … … 68 68 'pretty_version' => 'v8.83.27', 69 69 'version' => '8.83.27.0', 70 70 71 'type' => 'library', 71 72 'install_path' => __DIR__ . '/../illuminate/events', 72 73 'aliases' => array(), 73 'reference' => 'b7f06cafb6c09581617f2ca05d69e9b159e5a35d',74 74 'dev_requirement' => false, 75 75 ), … … 77 77 'pretty_version' => 'v8.83.27', 78 78 'version' => '8.83.27.0', 79 79 80 'type' => 'library', 80 81 'install_path' => __DIR__ . '/../illuminate/filesystem', 81 82 'aliases' => array(), 82 'reference' => '73db3e9a233ed587ba54f52ab8580f3c7bc872b2',83 83 'dev_requirement' => false, 84 84 ), … … 86 86 'pretty_version' => 'v8.83.27', 87 87 'version' => '8.83.27.0', 88 88 89 'type' => 'library', 89 90 'install_path' => __DIR__ . '/../illuminate/macroable', 90 91 'aliases' => array(), 91 'reference' => 'aed81891a6e046fdee72edd497f822190f61c162',92 92 'dev_requirement' => false, 93 93 ), … … 95 95 'pretty_version' => 'v8.83.27', 96 96 'version' => '8.83.27.0', 97 97 98 'type' => 'library', 98 99 'install_path' => __DIR__ . '/../illuminate/pipeline', 99 100 'aliases' => array(), 100 'reference' => '23aeff5b26ae4aee3f370835c76bd0f4e93f71d2',101 101 'dev_requirement' => false, 102 102 ), … … 104 104 'pretty_version' => 'v8.83.27', 105 105 'version' => '8.83.27.0', 106 106 107 'type' => 'library', 107 108 'install_path' => __DIR__ . '/../illuminate/support', 108 109 'aliases' => array(), 109 'reference' => '1c79242468d3bbd9a0f7477df34f9647dde2a09b',110 110 'dev_requirement' => false, 111 111 ), … … 113 113 'pretty_version' => 'v8.83.27', 114 114 'version' => '8.83.27.0', 115 115 116 'type' => 'library', 116 117 'install_path' => __DIR__ . '/../illuminate/view', 117 118 'aliases' => array(), 118 'reference' => '5e73eef48d9242532f81fadc14c816a01bfb1388',119 119 'dev_requirement' => false, 120 120 ), … … 122 122 'pretty_version' => 'v1.4.0', 123 123 'version' => '1.4.0.0', 124 124 125 'type' => 'library', 125 126 'install_path' => __DIR__ . '/../jenssegers/blade', 126 127 'aliases' => array(), 127 'reference' => '22a3700e9fc469c19dd1c5e5bd1b9138195e421f',128 128 'dev_requirement' => false, 129 129 ), … … 131 131 'pretty_version' => 'v0.5.5', 132 132 'version' => '0.5.5.0', 133 133 134 'type' => 'library', 134 135 'install_path' => __DIR__ . '/../joanrodas/plubo-routes', 135 136 'aliases' => array(), 136 'reference' => 'd72fa54c4c9545ef3ab5123f76847cd1c5daac43',137 137 'dev_requirement' => false, 138 138 ), … … 140 140 'pretty_version' => '2.66.0', 141 141 'version' => '2.66.0.0', 142 142 143 'type' => 'library', 143 144 'install_path' => __DIR__ . '/../nesbot/carbon', 144 145 'aliases' => array(), 145 'reference' => '496712849902241f04902033b0441b269effe001',146 146 'dev_requirement' => false, 147 147 ), … … 149 149 'pretty_version' => '1.1.2', 150 150 'version' => '1.1.2.0', 151 151 152 'type' => 'library', 152 153 'install_path' => __DIR__ . '/../psr/container', 153 154 'aliases' => array(), 154 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea',155 155 'dev_requirement' => false, 156 156 ), … … 164 164 'pretty_version' => '1.0.1', 165 165 'version' => '1.0.1.0', 166 166 167 'type' => 'library', 167 168 'install_path' => __DIR__ . '/../psr/simple-cache', 168 169 'aliases' => array(), 169 ' reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b',170 'dev_requirement' => false,171 ),172 'sirvelia-labs/asin-smart-international-links' => array(173 ' pretty_version' => 'dev-main',174 ' version' => 'dev-main',175 'type' => ' template',170 ', 171 , 172 173 174 '', 175 '', 176 'type' => '', 176 177 'install_path' => __DIR__ . '/../../', 177 178 'aliases' => array(), 178 'reference' => '94dc4ba53589381ee968cfe193f04b0fddc096b2',179 179 'dev_requirement' => false, 180 180 ), … … 182 182 'pretty_version' => 'v2.5.2', 183 183 'version' => '2.5.2.0', 184 184 185 'type' => 'library', 185 186 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 186 187 'aliases' => array(), 187 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',188 188 'dev_requirement' => false, 189 189 ), … … 191 191 'pretty_version' => 'v5.4.21', 192 192 'version' => '5.4.21.0', 193 193 194 'type' => 'library', 194 195 'install_path' => __DIR__ . '/../symfony/finder', 195 196 'aliases' => array(), 196 'reference' => '078e9a5e1871fcfe6a5ce421b539344c21afef19',197 197 'dev_requirement' => false, 198 198 ), … … 200 200 'pretty_version' => 'v1.27.0', 201 201 'version' => '1.27.0.0', 202 202 203 'type' => 'library', 203 204 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 204 205 'aliases' => array(), 205 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534',206 206 'dev_requirement' => false, 207 207 ), … … 209 209 'pretty_version' => 'v1.27.0', 210 210 'version' => '1.27.0.0', 211 211 212 'type' => 'library', 212 213 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 213 214 'aliases' => array(), 214 'reference' => '7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936',215 215 'dev_requirement' => false, 216 216 ), … … 218 218 'pretty_version' => 'v5.4.22', 219 219 'version' => '5.4.22.0', 220 220 221 'type' => 'library', 221 222 'install_path' => __DIR__ . '/../symfony/translation', 222 223 'aliases' => array(), 223 'reference' => '9a401392f01bc385aa42760eff481d213a0cc2ba',224 224 'dev_requirement' => false, 225 225 ), … … 227 227 'pretty_version' => 'v2.5.2', 228 228 'version' => '2.5.2.0', 229 229 230 'type' => 'library', 230 231 'install_path' => __DIR__ . '/../symfony/translation-contracts', 231 232 'aliases' => array(), 232 'reference' => '136b19dd05cdf0709db6537d058bcab6dd6e2dbe',233 233 'dev_requirement' => false, 234 234 ), … … 242 242 'pretty_version' => '1.6.1', 243 243 'version' => '1.6.1.0', 244 244 245 'type' => 'library', 245 246 'install_path' => __DIR__ . '/../voku/portable-ascii', 246 247 'aliases' => array(), 247 'reference' => '87337c91b9dfacee02452244ee14ab3c43bc485a',248 248 'dev_requirement' => false, 249 249 ),
Note: See TracChangeset
for help on using the changeset viewer.