Changeset 2761526
- Timestamp:
- 07/26/2022 06:46:57 AM (4 years ago)
- Location:
- simple-csv-exporter
- Files:
-
- 8 added
- 20 deleted
- 84 edited
- 1 copied
-
tags/2.0.1 (copied) (copied from simple-csv-exporter/trunk)
-
tags/2.0.1/.husky (added)
-
tags/2.0.1/.husky/_ (added)
-
tags/2.0.1/.husky/_/husky.sh (added)
-
tags/2.0.1/.husky/pre-commit (added)
-
tags/2.0.1/readme.txt (modified) (3 diffs)
-
tags/2.0.1/simple-csv-exporter.php (modified) (1 diff)
-
tags/2.0.1/vendor/autoload.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
tags/2.0.1/vendor/composer/InstalledVersions.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/autoload_files.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/2.0.1/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.0.1/vendor/composer/installed.json (modified) (11 diffs)
-
tags/2.0.1/vendor/composer/installed.php (modified) (1 diff)
-
tags/2.0.1/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/CHANGELOG.md (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/autoload.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/functions.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/Analyzer.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/ClosureContext.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/ClosureScope.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/ClosureStream.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/ISecurityProvider.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/ReflectionClosure.php (modified) (2 diffs)
-
tags/2.0.1/vendor/opis/closure/src/SecurityException.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/SecurityProvider.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/SelfReference.php (modified) (1 diff)
-
tags/2.0.1/vendor/opis/closure/src/SerializableClosure.php (modified) (1 diff)
-
tags/2.0.1/vendor/php-di/php-di/.gitattributes (deleted)
-
tags/2.0.1/vendor/php-di/php-di/.gitstats.yml (deleted)
-
tags/2.0.1/vendor/php-di/php-di/.php_cs (deleted)
-
tags/2.0.1/vendor/php-di/php-di/.phpstorm.meta.php (deleted)
-
tags/2.0.1/vendor/php-di/php-di/404.md (deleted)
-
tags/2.0.1/vendor/php-di/php-di/CONTRIBUTING.md (deleted)
-
tags/2.0.1/vendor/php-di/php-di/SECURITY.md (deleted)
-
tags/2.0.1/vendor/php-di/php-di/couscous.yml (deleted)
-
tags/2.0.1/vendor/php-di/php-di/phpstan-baseline.neon (deleted)
-
tags/2.0.1/vendor/php-di/php-di/phpstan.neon (deleted)
-
tags/2.0.1/vendor/php-di/php-di/src/CompiledContainer.php (modified) (1 diff)
-
tags/2.0.1/vendor/php-di/php-di/src/Compiler/Compiler.php (modified) (2 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Container.php (modified) (3 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/ArrayDefinition.php (modified) (2 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php (modified) (6 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php (modified) (2 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php (modified) (2 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php (modified) (2 diffs)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php (modified) (1 diff)
-
tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php (modified) (1 diff)
-
tags/2.0.1/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php (modified) (1 diff)
-
tags/2.0.1/vendor/php-di/php-di/src/Proxy/ProxyFactory.php (modified) (1 diff)
-
tags/2.0.1/vendor/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
tags/2.0.1/vendor/psr/container/src/ContainerInterface.php (modified) (3 diffs)
-
tags/2.0.1/vendor/psr/container/src/NotFoundExceptionInterface.php (modified) (1 diff)
-
trunk/.husky (added)
-
trunk/.husky/_ (added)
-
trunk/.husky/_/husky.sh (added)
-
trunk/.husky/pre-commit (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/simple-csv-exporter.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (11 diffs)
-
trunk/vendor/composer/installed.php (modified) (1 diff)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/opis/closure/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/opis/closure/autoload.php (modified) (1 diff)
-
trunk/vendor/opis/closure/functions.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/Analyzer.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/ClosureContext.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/ClosureScope.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/ClosureStream.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/ISecurityProvider.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/ReflectionClosure.php (modified) (2 diffs)
-
trunk/vendor/opis/closure/src/SecurityException.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/SecurityProvider.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/SelfReference.php (modified) (1 diff)
-
trunk/vendor/opis/closure/src/SerializableClosure.php (modified) (1 diff)
-
trunk/vendor/php-di/php-di/.gitattributes (deleted)
-
trunk/vendor/php-di/php-di/.gitstats.yml (deleted)
-
trunk/vendor/php-di/php-di/.php_cs (deleted)
-
trunk/vendor/php-di/php-di/.phpstorm.meta.php (deleted)
-
trunk/vendor/php-di/php-di/404.md (deleted)
-
trunk/vendor/php-di/php-di/CONTRIBUTING.md (deleted)
-
trunk/vendor/php-di/php-di/SECURITY.md (deleted)
-
trunk/vendor/php-di/php-di/couscous.yml (deleted)
-
trunk/vendor/php-di/php-di/phpstan-baseline.neon (deleted)
-
trunk/vendor/php-di/php-di/phpstan.neon (deleted)
-
trunk/vendor/php-di/php-di/src/CompiledContainer.php (modified) (1 diff)
-
trunk/vendor/php-di/php-di/src/Compiler/Compiler.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Container.php (modified) (3 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/ArrayDefinition.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php (modified) (6 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php (modified) (2 diffs)
-
trunk/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php (modified) (1 diff)
-
trunk/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php (modified) (1 diff)
-
trunk/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php (modified) (1 diff)
-
trunk/vendor/php-di/php-di/src/Proxy/ProxyFactory.php (modified) (1 diff)
-
trunk/vendor/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
trunk/vendor/psr/container/src/ContainerInterface.php (modified) (3 diffs)
-
trunk/vendor/psr/container/src/NotFoundExceptionInterface.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-csv-exporter/tags/2.0.1/readme.txt
r2446249 r2761526 3 3 Donate link: https://www.paypal.me/torounit 4 4 Tags: CSV,export 5 Requires at least: 5. 56 Tested up to: 5.67 Requires PHP: 7. 28 Stable tag: 2.0. 05 Requires at least: 5.8 6 Tested up to: 6.0 7 Requires PHP: 7.4 8 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 17 17 18 18 When you select a post type, the posts will be exported. 19 20 Github Repo: [https://github.com/hamworks/simple-csv-exporter](https://github.com/hamworks/simple-csv-exporter) 19 21 20 22 … … 61 63 == Changelog == 62 64 65 = 2.0.1 = 66 * Tested on WP 6.0 67 * Drop support WP 5.7 and PHP 7.3 68 63 69 = 2.0.0 = 64 70 * Use PHP-DI. -
simple-csv-exporter/tags/2.0.1/simple-csv-exporter.php
r2446249 r2761526 10 10 * Text Domain: wp-csv-exporter 11 11 * Domain Path: /languages 12 * Version: 2.0.0 12 * Requires PHP: 7.4 13 * Version: 2.0.1 13 14 */ 14 15 -
simple-csv-exporter/tags/2.0.1/vendor/autoload.php
r2446249 r2761526 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 8 } 9 5 10 require_once __DIR__ . '/composer/autoload_real.php'; 6 11 7 return ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84::getLoader();12 return ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db::getLoader(); -
simple-csv-exporter/tags/2.0.1/vendor/composer/ClassLoader.php
r2437085 r2761526 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
simple-csv-exporter/tags/2.0.1/vendor/composer/InstalledVersions.php
r2446249 r2761526 1 1 <?php 2 2 3 4 5 6 7 8 9 10 11 3 /* 4 * This file is part of Composer. 5 * 6 * (c) Nils Adermann <naderman@naderman.de> 7 * Jordi Boggiano <j.boggiano@seld.be> 8 * 9 * For the full copyright and license information, please view the LICENSE 10 * file that was distributed with this source code. 11 */ 12 12 13 13 namespace Composer; 14 14 15 use Composer\Autoload\ClassLoader; 15 16 use Composer\Semver\VersionParser; 16 17 17 18 19 20 21 18 /** 19 * This class is copied in every Composer installed project and available to all 20 * 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 * 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 26 */ 22 27 class InstalledVersions 23 28 { 24 private static $installed = array ( 25 'root' => 26 array ( 27 'pretty_version' => '2.0.0', 28 'version' => '2.0.0.0', 29 'aliases' => 30 array ( 31 ), 32 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 33 'name' => 'hamworks/simple-csv-exporter', 34 ), 35 'versions' => 36 array ( 37 'hamworks/simple-csv-exporter' => 38 array ( 39 'pretty_version' => '2.0.0', 40 'version' => '2.0.0.0', 41 'aliases' => 42 array ( 43 ), 44 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 45 ), 46 'opis/closure' => 47 array ( 48 'pretty_version' => '3.6.1', 49 'version' => '3.6.1.0', 50 'aliases' => 51 array ( 52 ), 53 'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5', 54 ), 55 'php-di/invoker' => 56 array ( 57 'pretty_version' => '2.0.0', 58 'version' => '2.0.0.0', 59 'aliases' => 60 array ( 61 ), 62 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a', 63 ), 64 'php-di/php-di' => 65 array ( 66 'pretty_version' => '6.3.0', 67 'version' => '6.3.0.0', 68 'aliases' => 69 array ( 70 ), 71 'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f', 72 ), 73 'php-di/phpdoc-reader' => 74 array ( 75 'pretty_version' => '2.2.1', 76 'version' => '2.2.1.0', 77 'aliases' => 78 array ( 79 ), 80 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 81 ), 82 'psr/container' => 83 array ( 84 'pretty_version' => '1.0.0', 85 'version' => '1.0.0.0', 86 'aliases' => 87 array ( 88 ), 89 'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f', 90 ), 91 'psr/container-implementation' => 92 array ( 93 'provided' => 94 array ( 95 0 => '^1.0', 96 ), 97 ), 98 ), 99 ); 100 101 102 103 104 105 106 107 public static function getInstalledPackages() 108 { 109 return array_keys(self::$installed['versions']); 29 /** 30 * @var mixed[]|null 31 * @psalm-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[]}>}|array{}|null 32 */ 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, 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[]}>}> 43 */ 44 private static $installedByVendor = array(); 45 46 /** 47 * Returns a list of all package names which are present, either by being installed, replaced or provided 48 * 49 * @return string[] 50 * @psalm-return list<string> 51 */ 52 public static function getInstalledPackages() 53 { 54 $packages = array(); 55 foreach (self::getInstalled() as $installed) { 56 $packages[] = array_keys($installed['versions']); 57 } 58 59 if (1 === \count($packages)) { 60 return $packages[0]; 61 } 62 63 return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); 64 } 65 66 /** 67 * Returns a list of all package names with a specific type e.g. 'library' 68 * 69 * @param string $type 70 * @return string[] 71 * @psalm-return list<string> 72 */ 73 public static function getInstalledPackagesByType($type) 74 { 75 $packagesByType = array(); 76 77 foreach (self::getInstalled() as $installed) { 78 foreach ($installed['versions'] as $name => $package) { 79 if (isset($package['type']) && $package['type'] === $type) { 80 $packagesByType[] = $name; 81 } 82 } 83 } 84 85 return $packagesByType; 86 } 87 88 /** 89 * Checks whether the given package is installed 90 * 91 * This also returns true if the package name is provided or replaced by another package 92 * 93 * @param string $packageName 94 * @param bool $includeDevRequirements 95 * @return bool 96 */ 97 public static function isInstalled($packageName, $includeDevRequirements = true) 98 { 99 foreach (self::getInstalled() as $installed) { 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 } 103 } 104 105 return false; 106 } 107 108 /** 109 * Checks whether the given package satisfies a version constraint 110 * 111 * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: 112 * 113 * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') 114 * 115 * @param VersionParser $parser Install composer/semver to have access to this class and functionality 116 * @param string $packageName 117 * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package 118 * @return bool 119 */ 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 { 122 $constraint = $parser->parseConstraints($constraint); 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 125 return $provided->matches($constraint); 126 } 127 128 /** 129 * Returns a version constraint representing all the range(s) which are installed for a given package 130 * 131 * It is easier to use this via isInstalled() with the $constraint argument if you need to check 132 * whether a given version of a package is installed, and not just whether it exists 133 * 134 * @param string $packageName 135 * @return string Version constraint usable with composer/semver 136 */ 137 public static function getVersionRanges($packageName) 138 { 139 foreach (self::getInstalled() as $installed) { 140 if (!isset($installed['versions'][$packageName])) { 141 continue; 142 } 143 144 $ranges = array(); 145 if (isset($installed['versions'][$packageName]['pretty_version'])) { 146 $ranges[] = $installed['versions'][$packageName]['pretty_version']; 147 } 148 if (array_key_exists('aliases', $installed['versions'][$packageName])) { 149 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); 150 } 151 if (array_key_exists('replaced', $installed['versions'][$packageName])) { 152 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); 153 } 154 if (array_key_exists('provided', $installed['versions'][$packageName])) { 155 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); 156 } 157 158 return implode(' || ', $ranges); 159 } 160 161 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 162 } 163 164 /** 165 * @param string $packageName 166 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 167 */ 168 public static function getVersion($packageName) 169 { 170 foreach (self::getInstalled() as $installed) { 171 if (!isset($installed['versions'][$packageName])) { 172 continue; 173 } 174 175 if (!isset($installed['versions'][$packageName]['version'])) { 176 return null; 177 } 178 179 return $installed['versions'][$packageName]['version']; 180 } 181 182 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 183 } 184 185 /** 186 * @param string $packageName 187 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 188 */ 189 public static function getPrettyVersion($packageName) 190 { 191 foreach (self::getInstalled() as $installed) { 192 if (!isset($installed['versions'][$packageName])) { 193 continue; 194 } 195 196 if (!isset($installed['versions'][$packageName]['pretty_version'])) { 197 return null; 198 } 199 200 return $installed['versions'][$packageName]['pretty_version']; 201 } 202 203 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 204 } 205 206 /** 207 * @param string $packageName 208 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference 209 */ 210 public static function getReference($packageName) 211 { 212 foreach (self::getInstalled() as $installed) { 213 if (!isset($installed['versions'][$packageName])) { 214 continue; 215 } 216 217 if (!isset($installed['versions'][$packageName]['reference'])) { 218 return null; 219 } 220 221 return $installed['versions'][$packageName]['reference']; 222 } 223 224 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 225 } 226 227 /** 228 * @param string $packageName 229 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. 230 */ 231 public static function getInstallPath($packageName) 232 { 233 foreach (self::getInstalled() as $installed) { 234 if (!isset($installed['versions'][$packageName])) { 235 continue; 236 } 237 238 return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; 239 } 240 241 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 242 } 243 244 /** 245 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 */ 248 public static function getRootPackage() 249 { 250 $installed = self::getInstalled(); 251 252 return $installed[0]['root']; 253 } 254 255 /** 256 * Returns the raw installed.php data for custom implementations 257 * 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. 259 * @return array[] 260 * @psalm-return 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[]}>} 261 */ 262 public static function getRawData() 263 { 264 @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); 265 266 if (null === self::$installed) { 267 // only require the installed.php file if this file is loaded from its dumped location, 268 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 269 if (substr(__DIR__, -8, 1) !== 'C') { 270 self::$installed = include __DIR__ . '/installed.php'; 271 } else { 272 self::$installed = array(); 273 } 274 } 275 276 return self::$installed; 277 } 278 279 /** 280 * Returns the raw data of all installed.php which are currently loaded for custom implementations 281 * 282 * @return array[] 283 * @psalm-return list<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[]}>}> 284 */ 285 public static function getAllRawData() 286 { 287 return self::getInstalled(); 288 } 289 290 /** 291 * Lets you reload the static array from another file 292 * 293 * This is only useful for complex integrations in which a project needs to use 294 * this class but then also needs to execute another project's autoloader in process, 295 * and wants to ensure both projects have access to their version of installed.php. 296 * 297 * A typical case would be PHPUnit, where it would need to make sure it reads all 298 * the data it needs from this class, then call reload() with 299 * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure 300 * the project in which it runs can then also use this class safely, without 301 * interference between PHPUnit's dependencies and the project's dependencies. 302 * 303 * @param array[] $data A vendor/composer/installed.php data set 304 * @return void 305 * 306 * @psalm-param 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[]}>} $data 307 */ 308 public static function reload($data) 309 { 310 self::$installed = $data; 311 self::$installedByVendor = array(); 312 } 313 314 /** 315 * @return array[] 316 * @psalm-return list<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[]}>}> 317 */ 318 private static function getInstalled() 319 { 320 if (null === self::$canGetVendors) { 321 self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); 322 } 323 324 $installed = array(); 325 326 if (self::$canGetVendors) { 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 328 if (isset(self::$installedByVendor[$vendorDir])) { 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 self::$installed = $installed[count($installed) - 1]; 334 } 335 } 336 } 337 } 338 339 if (null === self::$installed) { 340 // only require the installed.php file if this file is loaded from its dumped location, 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 344 } else { 345 self::$installed = array(); 346 } 347 } 348 $installed[] = self::$installed; 349 350 return $installed; 351 } 110 352 } 111 112 113 114 115 116 117 118 119 120 public static function isInstalled($packageName)121 {122 return isset(self::$installed['versions'][$packageName]);123 }124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 public static function satisfies(VersionParser $parser, $packageName, $constraint)139 {140 $constraint = $parser->parseConstraints($constraint);141 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));142 143 return $provided->matches($constraint);144 }145 146 147 148 149 150 151 152 153 154 155 public static function getVersionRanges($packageName)156 {157 if (!isset(self::$installed['versions'][$packageName])) {158 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');159 }160 161 $ranges = array();162 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {163 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];164 }165 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {166 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);167 }168 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {169 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);170 }171 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {172 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);173 }174 175 return implode(' || ', $ranges);176 }177 178 179 180 181 182 public static function getVersion($packageName)183 {184 if (!isset(self::$installed['versions'][$packageName])) {185 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');186 }187 188 if (!isset(self::$installed['versions'][$packageName]['version'])) {189 return null;190 }191 192 return self::$installed['versions'][$packageName]['version'];193 }194 195 196 197 198 199 public static function getPrettyVersion($packageName)200 {201 if (!isset(self::$installed['versions'][$packageName])) {202 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');203 }204 205 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {206 return null;207 }208 209 return self::$installed['versions'][$packageName]['pretty_version'];210 }211 212 213 214 215 216 public static function getReference($packageName)217 {218 if (!isset(self::$installed['versions'][$packageName])) {219 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');220 }221 222 if (!isset(self::$installed['versions'][$packageName]['reference'])) {223 return null;224 }225 226 return self::$installed['versions'][$packageName]['reference'];227 }228 229 230 231 232 233 public static function getRootPackage()234 {235 return self::$installed['root'];236 }237 238 239 240 241 242 243 244 public static function getRawData()245 {246 return self::$installed;247 }248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 public static function reload($data)268 {269 self::$installed = $data;270 }271 } -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_classmap.php
r2446249 r2761526 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_files.php
r2446249 r2761526 3 3 // autoload_files.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_namespaces.php
r2437085 r2761526 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_psr4.php
r2446249 r2761526 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_real.php
r2446249 r2761526 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def845 class ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );29 spl_autoload_unregister(array('ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', '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\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::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\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader)); 52 33 53 34 $loader->register(true); 54 35 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$files; 57 } else { 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 } 36 $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files; 60 37 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire 576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file);38 composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file); 62 39 } 63 40 … … 66 43 } 67 44 68 function composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file) 45 /** 46 * @param string $fileIdentifier 47 * @param string $file 48 * @return void 49 */ 50 function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file) 69 51 { 70 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 54 71 55 require $file; 72 73 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;74 56 } 75 57 } -
simple-csv-exporter/tags/2.0.1/vendor/composer/autoload_static.php
r2446249 r2761526 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 576229bd9376ebde99435e9d7f3def847 class ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db 8 8 { 9 9 public static $files = array ( … … 176 176 { 177 177 return \Closure::bind(function () use ($loader) { 178 $loader->prefixLengthsPsr4 = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$prefixLengthsPsr4;179 $loader->prefixDirsPsr4 = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$prefixDirsPsr4;180 $loader->classMap = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$classMap;178 $loader->prefixLengthsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4; 179 $loader->prefixDirsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4; 180 $loader->classMap = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$classMap; 181 181 182 182 }, null, ClassLoader::class); -
simple-csv-exporter/tags/2.0.1/vendor/composer/installed.json
r2446249 r2761526 3 3 { 4 4 "name": "opis/closure", 5 "version": "3.6. 1",6 "version_normalized": "3.6. 1.0",5 "version": "3.6.3", 6 "version_normalized": "3.6.3.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/opis/closure.git", 10 "reference": " 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/opis/closure/zipball/ 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",15 "reference": " 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",10 "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad", 15 "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad", 16 16 "shasum": "" 17 17 }, … … 23 23 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" 24 24 }, 25 "time": "202 0-11-07T02:01:34+00:00",25 "time": "2022-01-27T09:35:39+00:00", 26 26 "type": "library", 27 27 "extra": { … … 32 32 "installation-source": "dist", 33 33 "autoload": { 34 "psr-4": {35 "Opis\\Closure\\": "src/"36 },37 34 "files": [ 38 35 "functions.php" 39 ] 36 ], 37 "psr-4": { 38 "Opis\\Closure\\": "src/" 39 } 40 40 }, 41 41 "notification-url": "https://packagist.org/downloads/", … … 65 65 "support": { 66 66 "issues": "https://github.com/opis/closure/issues", 67 "source": "https://github.com/opis/closure/tree/3.6. 1"67 "source": "https://github.com/opis/closure/tree/3.6.3" 68 68 }, 69 69 "install-path": "../opis/closure" … … 121 121 { 122 122 "name": "php-di/php-di", 123 "version": "6.3. 0",124 "version_normalized": "6.3. 0.0",123 "version": "6.3.5", 124 "version_normalized": "6.3.5.0", 125 125 "source": { 126 126 "type": "git", 127 127 "url": "https://github.com/PHP-DI/PHP-DI.git", 128 "reference": " 955cacea6b0beaba07e8c11b8367f5b3d5abe89f"129 }, 130 "dist": { 131 "type": "zip", 132 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/ 955cacea6b0beaba07e8c11b8367f5b3d5abe89f",133 "reference": " 955cacea6b0beaba07e8c11b8367f5b3d5abe89f",128 "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588" 129 }, 130 "dist": { 131 "type": "zip", 132 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/b8126d066ce144765300ee0ab040c1ed6c9ef588", 133 "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588", 134 134 "shasum": "" 135 135 }, … … 148 148 "friendsofphp/php-cs-fixer": "^2.4", 149 149 "mnapoli/phpunit-easymock": "^1.2", 150 "ocramius/proxy-manager": " ~2.0.2",150 "ocramius/proxy-manager": "^2.0.2", 151 151 "phpstan/phpstan": "^0.12", 152 152 "phpunit/phpunit": "^8.5|^9.0" … … 156 156 "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)" 157 157 }, 158 "time": "2020-10-12T14:39:15+00:00", 159 "type": "library", 160 "installation-source": "dist", 161 "autoload": { 162 "psr-4": { 163 "DI\\": "src/" 164 }, 158 "time": "2021-09-02T09:49:58+00:00", 159 "type": "library", 160 "installation-source": "dist", 161 "autoload": { 165 162 "files": [ 166 163 "src/functions.php" 167 ] 164 ], 165 "psr-4": { 166 "DI\\": "src/" 167 } 168 168 }, 169 169 "notification-url": "https://packagist.org/downloads/", … … 184 184 "support": { 185 185 "issues": "https://github.com/PHP-DI/PHP-DI/issues", 186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3. 0"186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.5" 187 187 }, 188 188 "funding": [ … … 245 245 { 246 246 "name": "psr/container", 247 "version": "1. 0.0",248 "version_normalized": "1. 0.0.0",247 "version": "1.1.1", 248 "version_normalized": "1.1.1.0", 249 249 "source": { 250 250 "type": "git", 251 251 "url": "https://github.com/php-fig/container.git", 252 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 257 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 258 "shasum": "" 259 }, 260 "require": { 261 "php": ">=5.3.0" 262 }, 263 "time": "2017-02-14T16:28:37+00:00", 264 "type": "library", 265 "extra": { 266 "branch-alias": { 267 "dev-master": "1.0.x-dev" 268 } 269 }, 252 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", 257 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", 258 "shasum": "" 259 }, 260 "require": { 261 "php": ">=7.2.0" 262 }, 263 "time": "2021-03-05T17:36:06+00:00", 264 "type": "library", 270 265 "installation-source": "dist", 271 266 "autoload": { … … 281 276 { 282 277 "name": "PHP-FIG", 283 "homepage": "http ://www.php-fig.org/"278 "homepage": "https://www.php-fig.org/" 284 279 } 285 280 ], … … 295 290 "support": { 296 291 "issues": "https://github.com/php-fig/container/issues", 297 "source": "https://github.com/php-fig/container/tree/ master"292 "source": "https://github.com/php-fig/container/tree/1.1.1" 298 293 }, 299 294 "install-path": "../psr/container" -
simple-csv-exporter/tags/2.0.1/vendor/composer/installed.php
r2446249 r2761526 1 <?php return array ( 2 'root' => 3 array ( 4 'pretty_version' => '2.0.0', 5 'version' => '2.0.0.0', 6 'aliases' => 7 array ( 1 <?php return array( 2 'root' => array( 3 'name' => 'hamworks/simple-csv-exporter', 4 'pretty_version' => '2.0.1', 5 'version' => '2.0.1.0', 6 'reference' => '1d0d4fca93369395531eb749924260d960ae3113', 7 'type' => 'library', 8 'install_path' => __DIR__ . '/../../', 9 'aliases' => array(), 10 'dev' => false, 8 11 ), 9 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 10 'name' => 'hamworks/simple-csv-exporter', 11 ), 12 'versions' => 13 array ( 14 'hamworks/simple-csv-exporter' => 15 array ( 16 'pretty_version' => '2.0.0', 17 'version' => '2.0.0.0', 18 'aliases' => 19 array ( 20 ), 21 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 12 'versions' => array( 13 'hamworks/simple-csv-exporter' => array( 14 'pretty_version' => '2.0.1', 15 'version' => '2.0.1.0', 16 'reference' => '1d0d4fca93369395531eb749924260d960ae3113', 17 'type' => 'library', 18 'install_path' => __DIR__ . '/../../', 19 'aliases' => array(), 20 'dev_requirement' => false, 21 ), 22 'opis/closure' => array( 23 'pretty_version' => '3.6.3', 24 'version' => '3.6.3.0', 25 'reference' => '3d81e4309d2a927abbe66df935f4bb60082805ad', 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../opis/closure', 28 'aliases' => array(), 29 'dev_requirement' => false, 30 ), 31 'php-di/invoker' => array( 32 'pretty_version' => '2.0.0', 33 'version' => '2.0.0.0', 34 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../php-di/invoker', 37 'aliases' => array(), 38 'dev_requirement' => false, 39 ), 40 'php-di/php-di' => array( 41 'pretty_version' => '6.3.5', 42 'version' => '6.3.5.0', 43 'reference' => 'b8126d066ce144765300ee0ab040c1ed6c9ef588', 44 'type' => 'library', 45 'install_path' => __DIR__ . '/../php-di/php-di', 46 'aliases' => array(), 47 'dev_requirement' => false, 48 ), 49 'php-di/phpdoc-reader' => array( 50 'pretty_version' => '2.2.1', 51 'version' => '2.2.1.0', 52 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 53 'type' => 'library', 54 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 55 'aliases' => array(), 56 'dev_requirement' => false, 57 ), 58 'psr/container' => array( 59 'pretty_version' => '1.1.1', 60 'version' => '1.1.1.0', 61 'reference' => '8622567409010282b7aeebe4bb841fe98b58dcaf', 62 'type' => 'library', 63 'install_path' => __DIR__ . '/../psr/container', 64 'aliases' => array(), 65 'dev_requirement' => false, 66 ), 67 'psr/container-implementation' => array( 68 'dev_requirement' => false, 69 'provided' => array( 70 0 => '^1.0', 71 ), 72 ), 22 73 ), 23 'opis/closure' =>24 array (25 'pretty_version' => '3.6.1',26 'version' => '3.6.1.0',27 'aliases' =>28 array (29 ),30 'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',31 ),32 'php-di/invoker' =>33 array (34 'pretty_version' => '2.0.0',35 'version' => '2.0.0.0',36 'aliases' =>37 array (38 ),39 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',40 ),41 'php-di/php-di' =>42 array (43 'pretty_version' => '6.3.0',44 'version' => '6.3.0.0',45 'aliases' =>46 array (47 ),48 'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',49 ),50 'php-di/phpdoc-reader' =>51 array (52 'pretty_version' => '2.2.1',53 'version' => '2.2.1.0',54 'aliases' =>55 array (56 ),57 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',58 ),59 'psr/container' =>60 array (61 'pretty_version' => '1.0.0',62 'version' => '1.0.0.0',63 'aliases' =>64 array (65 ),66 'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',67 ),68 'psr/container-implementation' =>69 array (70 'provided' =>71 array (72 0 => '^1.0',73 ),74 ),75 ),76 74 ); -
simple-csv-exporter/tags/2.0.1/vendor/composer/platform_check.php
r2437085 r2761526 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 200)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 2.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70400)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/CHANGELOG.md
r2446249 r2761526 1 1 CHANGELOG 2 2 --------- 3 4 ### v3.6.2, 2021.04.09 5 6 - Fixed string interpolation 3 7 4 8 ### v3.6.1, 2020.11.07 -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/autoload.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License 6 6 * =========================================================================== */ 7 7 8 require_once 'functions.php';8 require_once __DIR__ . '/functions.php'; 9 9 10 10 spl_autoload_register(function($class){ -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/functions.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/Analyzer.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureContext.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureScope.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ClosureStream.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ISecurityProvider.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/ReflectionClosure.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License … … 272 272 case T_DOLLAR_OPEN_CURLY_BRACES: 273 273 case '{': 274 $code .= '{';274 $code .= is_array($token) ? $token[1] : $token; 275 275 $open++; 276 276 break; -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SecurityException.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SecurityProvider.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SelfReference.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/opis/closure/src/SerializableClosure.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/CompiledContainer.php
r2446249 r2761526 25 25 abstract class CompiledContainer extends Container 26 26 { 27 /** 28 * This const is overridden in child classes (compiled containers). 29 * @var array 30 */ 31 protected const METHOD_MAPPING = []; 32 27 33 /** 28 34 * @var InvokerInterface -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Compiler/Compiler.php
r2446249 r2761526 245 245 $defaultValue = $this->compileValue($definition->getDefaultValue()); 246 246 $code = <<<PHP 247 \$value = getenv($variableName);247 \$value = \$_ENV[$variableName] ?? \$_SERVER[$variableName] ?? getenv($variableName); 248 248 if (false !== \$value) return \$value; 249 249 if (!$isOptional) { … … 359 359 private function createCompilationDirectory(string $directory) 360 360 { 361 if (!is_dir($directory) && !@mkdir($directory, 0777, true) ) {361 if (!is_dir($directory) && !@mkdir($directory, 0777, true) && !is_dir($directory)) { 362 362 throw new InvalidArgumentException(sprintf('Compilation directory does not exist and cannot be created: %s.', $directory)); 363 363 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Container.php
r2446249 r2761526 118 118 * Returns an entry of the container by its name. 119 119 * 120 * @param string $name Entry name or a class name. 120 * @template T 121 * @param string|class-string<T> $name Entry name or a class name. 121 122 * 122 123 * @throws DependencyException Error while resolving the entry. 123 124 * @throws NotFoundException No entry found for the given name. 124 * @return mixed 125 * @return mixed|T 125 126 */ 126 127 public function get($name) … … 166 167 * This method makes the container behave like a factory. 167 168 * 168 * @param string $name Entry name or a class name. 169 * @param array $parameters Optional parameters to use to build the entry. Use this to force specific parameters 170 * to specific values. Parameters not defined in this array will be resolved using 171 * the container. 169 * @template T 170 * @param string|class-string<T> $name Entry name or a class name. 171 * @param array $parameters Optional parameters to use to build the entry. Use this to force 172 * specific parameters to specific values. Parameters not defined in this 173 * array will be resolved using the container. 172 174 * 173 175 * @throws InvalidArgumentException The name parameter must be of type string. 174 176 * @throws DependencyException Error while resolving the entry. 175 177 * @throws NotFoundException No entry found for the given name. 176 * @return mixed 178 * @return mixed|T 177 179 */ 178 180 public function make($name, array $parameters = []) … … 230 232 * Inject all dependencies on an existing instance. 231 233 * 232 * @param object $instance Object to perform injection upon 234 * @template T 235 * @param object|T $instance Object to perform injection upon 233 236 * @throws InvalidArgumentException 234 237 * @throws DependencyException Error while injecting dependencies 235 * @return object $instance Returns the same instance238 * @return object|T $instance Returns the same instance 236 239 */ 237 240 public function injectOn($instance) -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/ArrayDefinition.php
r2446249 r2761526 51 51 public function __toString() 52 52 { 53 $str = '[' . PHP_EOL;53 $str = '[' . \PHP_EOL; 54 54 55 55 foreach ($this->values as $key => $value) { … … 61 61 62 62 if ($value instanceof Definition) { 63 $str .= str_replace( PHP_EOL,PHP_EOL . ' ', (string) $value);63 $str .= str_replace(\PHP_EOL, \PHP_EOL . ' ', (string) $value); 64 64 } else { 65 65 $str .= var_export($value, true); 66 66 } 67 67 68 $str .= ',' . PHP_EOL;68 $str .= ',' . \PHP_EOL; 69 69 } 70 70 -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php
r2446249 r2761526 36 36 37 37 // Lazy 38 $str .= PHP_EOL . ' lazy = ' . var_export($definition->isLazy(), true);38 $str .= \PHP_EOL . ' lazy = ' . var_export($definition->isLazy(), true); 39 39 40 40 if ($classExist) { … … 49 49 } 50 50 51 return sprintf('Object (' . PHP_EOL . '%s' .PHP_EOL . ')', $str);51 return sprintf('Object (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str); 52 52 } 53 53 … … 61 61 $parameters = $this->dumpMethodParameters($className, $constructorInjection); 62 62 63 $str .= sprintf( PHP_EOL . ' __construct(' . PHP_EOL . ' %s' .PHP_EOL . ' )', $parameters);63 $str .= sprintf(\PHP_EOL . ' __construct(' . \PHP_EOL . ' %s' . \PHP_EOL . ' )', $parameters); 64 64 } 65 65 … … 75 75 $valueStr = $value instanceof Definition ? (string) $value : var_export($value, true); 76 76 77 $str .= sprintf( PHP_EOL . ' $%s = %s', $propertyInjection->getPropertyName(), $valueStr);77 $str .= sprintf(\PHP_EOL . ' $%s = %s', $propertyInjection->getPropertyName(), $valueStr); 78 78 } 79 79 … … 88 88 $parameters = $this->dumpMethodParameters($className, $methodInjection); 89 89 90 $str .= sprintf( PHP_EOL . ' %s(' . PHP_EOL . ' %s' .PHP_EOL . ' )', $methodInjection->getMethodName(), $parameters);90 $str .= sprintf(\PHP_EOL . ' %s(' . \PHP_EOL . ' %s' . \PHP_EOL . ' )', $methodInjection->getMethodName(), $parameters); 91 91 } 92 92 … … 131 131 } 132 132 133 return implode( PHP_EOL . ' ', $args);133 return implode(\PHP_EOL . ' ', $args); 134 134 } 135 135 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php
r2446249 r2761526 94 94 public function __toString() 95 95 { 96 $str = ' variable = ' . $this->variableName . PHP_EOL96 $str = ' variable = ' . $this->variableName . \PHP_EOL 97 97 . ' optional = ' . ($this->isOptional ? 'yes' : 'no'); 98 98 … … 100 100 if ($this->defaultValue instanceof Definition) { 101 101 $nestedDefinition = (string) $this->defaultValue; 102 $defaultValueStr = str_replace( PHP_EOL,PHP_EOL . ' ', $nestedDefinition);102 $defaultValueStr = str_replace(\PHP_EOL, \PHP_EOL . ' ', $nestedDefinition); 103 103 } else { 104 104 $defaultValueStr = var_export($this->defaultValue, true); 105 105 } 106 106 107 $str .= PHP_EOL . ' default = ' . $defaultValueStr;107 $str .= \PHP_EOL . ' default = ' . $defaultValueStr; 108 108 } 109 109 110 return sprintf('Environment variable (' . PHP_EOL . '%s' .PHP_EOL . ')', $str);110 return sprintf('Environment variable (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str); 111 111 } 112 112 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php
r2446249 r2761526 6 6 7 7 use DI\Definition\Definition; 8 use Psr\Container\ContainerExceptionInterface; 8 9 9 10 /** … … 12 13 * @author Matthieu Napoli <matthieu@mnapoli.fr> 13 14 */ 14 class InvalidDefinition extends \Exception 15 class InvalidDefinition extends \Exception implements ContainerExceptionInterface 15 16 { 16 17 public static function create(Definition $definition, string $message, \Exception $previous = null) : self 17 18 { 18 19 return new self(sprintf( 19 '%s' . PHP_EOL . 'Full definition:' .PHP_EOL . '%s',20 '%s' . \PHP_EOL . 'Full definition:' . \PHP_EOL . '%s', 20 21 $message, 21 22 (string) $definition -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php
r2446249 r2761526 26 26 private $variableReader; 27 27 28 public function __construct(DefinitionResolver $definitionResolver, $variableReader = 'getenv')28 public function __construct(DefinitionResolver $definitionResolver, $variableReader = null) 29 29 { 30 30 $this->definitionResolver = $definitionResolver; 31 $this->variableReader = $variableReader ;31 $this->variableReader = $variableReader ?? [$this, 'getEnvVariable']; 32 32 } 33 33 … … 66 66 return true; 67 67 } 68 69 protected function getEnvVariable(string $variableName) 70 { 71 if (isset($_ENV[$variableName])) { 72 return $_ENV[$variableName]; 73 } elseif (isset($_SERVER[$variableName])) { 74 return $_SERVER[$variableName]; 75 } 76 77 return getenv($variableName); 78 } 68 79 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php
r2446249 r2761526 239 239 // Try to use the type-hinting 240 240 $parameterType = $parameter->getType(); 241 if ($parameterType && !$parameterType->isBuiltin() && $parameterType instanceof ReflectionNamedType) {241 if ($parameterType && $parameterType instanceof ReflectionNamedType && !$parameterType->isBuiltin()) { 242 242 return $parameterType->getName(); 243 243 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php
r2446249 r2761526 69 69 continue; 70 70 } 71 if (!$parameterType instanceof ReflectionNamedType) { 72 // Union types are not supported 73 continue; 74 } 71 75 if ($parameterType->isBuiltin()) { 72 76 // Primitive types are not supported 73 continue;74 }75 if (!$parameterType instanceof ReflectionNamedType) {76 // Union types are not supported77 77 continue; 78 78 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php
r2446249 r2761526 49 49 continue; 50 50 } 51 if (!$parameterType instanceof ReflectionNamedType) { 52 // Union types are not supported 53 continue; 54 } 51 55 if ($parameterType->isBuiltin()) { 52 56 // Primitive types are not supported 53 continue;54 }55 if (!$parameterType instanceof ReflectionNamedType) {56 // Union types are not supported57 57 continue; 58 58 } -
simple-csv-exporter/tags/2.0.1/vendor/php-di/php-di/src/Proxy/ProxyFactory.php
r2446249 r2761526 91 91 $config->setProxiesTargetDir($this->proxyDirectory); 92 92 $config->setGeneratorStrategy(new FileWriterGeneratorStrategy(new FileLocator($this->proxyDirectory))); 93 // @phpstan-ignore-next-line 93 94 spl_autoload_register($config->getProxyAutoloader()); 94 95 } else { -
simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/ContainerExceptionInterface.php
r2446249 r2761526 1 1 <?php 2 /**3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)4 */5 2 6 3 namespace Psr\Container; -
simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/ContainerInterface.php
r2446249 r2761526 1 1 <?php 2 /** 3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) 4 */ 2 3 declare(strict_types=1); 5 4 6 5 namespace Psr\Container; … … 21 20 * @return mixed Entry. 22 21 */ 23 public function get( $id);22 public function get(string $id); 24 23 25 24 /** … … 34 33 * @return bool 35 34 */ 36 public function has( $id);35 public function has(string $id); 37 36 } -
simple-csv-exporter/tags/2.0.1/vendor/psr/container/src/NotFoundExceptionInterface.php
r2446249 r2761526 1 1 <?php 2 /**3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)4 */5 2 6 3 namespace Psr\Container; -
simple-csv-exporter/trunk/readme.txt
r2446249 r2761526 3 3 Donate link: https://www.paypal.me/torounit 4 4 Tags: CSV,export 5 Requires at least: 5. 56 Tested up to: 5.67 Requires PHP: 7. 28 Stable tag: 2.0. 05 Requires at least: 5.8 6 Tested up to: 6.0 7 Requires PHP: 7.4 8 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 17 17 18 18 When you select a post type, the posts will be exported. 19 20 Github Repo: [https://github.com/hamworks/simple-csv-exporter](https://github.com/hamworks/simple-csv-exporter) 19 21 20 22 … … 61 63 == Changelog == 62 64 65 = 2.0.1 = 66 * Tested on WP 6.0 67 * Drop support WP 5.7 and PHP 7.3 68 63 69 = 2.0.0 = 64 70 * Use PHP-DI. -
simple-csv-exporter/trunk/simple-csv-exporter.php
r2446249 r2761526 10 10 * Text Domain: wp-csv-exporter 11 11 * Domain Path: /languages 12 * Version: 2.0.0 12 * Requires PHP: 7.4 13 * Version: 2.0.1 13 14 */ 14 15 -
simple-csv-exporter/trunk/vendor/autoload.php
r2446249 r2761526 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 8 } 9 5 10 require_once __DIR__ . '/composer/autoload_real.php'; 6 11 7 return ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84::getLoader();12 return ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db::getLoader(); -
simple-csv-exporter/trunk/vendor/composer/ClassLoader.php
r2437085 r2761526 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
simple-csv-exporter/trunk/vendor/composer/InstalledVersions.php
r2446249 r2761526 1 1 <?php 2 2 3 4 5 6 7 8 9 10 11 3 /* 4 * This file is part of Composer. 5 * 6 * (c) Nils Adermann <naderman@naderman.de> 7 * Jordi Boggiano <j.boggiano@seld.be> 8 * 9 * For the full copyright and license information, please view the LICENSE 10 * file that was distributed with this source code. 11 */ 12 12 13 13 namespace Composer; 14 14 15 use Composer\Autoload\ClassLoader; 15 16 use Composer\Semver\VersionParser; 16 17 17 18 19 20 21 18 /** 19 * This class is copied in every Composer installed project and available to all 20 * 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 * 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 26 */ 22 27 class InstalledVersions 23 28 { 24 private static $installed = array ( 25 'root' => 26 array ( 27 'pretty_version' => '2.0.0', 28 'version' => '2.0.0.0', 29 'aliases' => 30 array ( 31 ), 32 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 33 'name' => 'hamworks/simple-csv-exporter', 34 ), 35 'versions' => 36 array ( 37 'hamworks/simple-csv-exporter' => 38 array ( 39 'pretty_version' => '2.0.0', 40 'version' => '2.0.0.0', 41 'aliases' => 42 array ( 43 ), 44 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 45 ), 46 'opis/closure' => 47 array ( 48 'pretty_version' => '3.6.1', 49 'version' => '3.6.1.0', 50 'aliases' => 51 array ( 52 ), 53 'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5', 54 ), 55 'php-di/invoker' => 56 array ( 57 'pretty_version' => '2.0.0', 58 'version' => '2.0.0.0', 59 'aliases' => 60 array ( 61 ), 62 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a', 63 ), 64 'php-di/php-di' => 65 array ( 66 'pretty_version' => '6.3.0', 67 'version' => '6.3.0.0', 68 'aliases' => 69 array ( 70 ), 71 'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f', 72 ), 73 'php-di/phpdoc-reader' => 74 array ( 75 'pretty_version' => '2.2.1', 76 'version' => '2.2.1.0', 77 'aliases' => 78 array ( 79 ), 80 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 81 ), 82 'psr/container' => 83 array ( 84 'pretty_version' => '1.0.0', 85 'version' => '1.0.0.0', 86 'aliases' => 87 array ( 88 ), 89 'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f', 90 ), 91 'psr/container-implementation' => 92 array ( 93 'provided' => 94 array ( 95 0 => '^1.0', 96 ), 97 ), 98 ), 99 ); 100 101 102 103 104 105 106 107 public static function getInstalledPackages() 108 { 109 return array_keys(self::$installed['versions']); 29 /** 30 * @var mixed[]|null 31 * @psalm-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[]}>}|array{}|null 32 */ 33 private static $installed; 34 35 /** 36 * @var bool|null 37 */ 38 private static $canGetVendors; 39 40 /** 41 * @var array[] 42 * @psalm-var array<string, 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[]}>}> 43 */ 44 private static $installedByVendor = array(); 45 46 /** 47 * Returns a list of all package names which are present, either by being installed, replaced or provided 48 * 49 * @return string[] 50 * @psalm-return list<string> 51 */ 52 public static function getInstalledPackages() 53 { 54 $packages = array(); 55 foreach (self::getInstalled() as $installed) { 56 $packages[] = array_keys($installed['versions']); 57 } 58 59 if (1 === \count($packages)) { 60 return $packages[0]; 61 } 62 63 return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); 64 } 65 66 /** 67 * Returns a list of all package names with a specific type e.g. 'library' 68 * 69 * @param string $type 70 * @return string[] 71 * @psalm-return list<string> 72 */ 73 public static function getInstalledPackagesByType($type) 74 { 75 $packagesByType = array(); 76 77 foreach (self::getInstalled() as $installed) { 78 foreach ($installed['versions'] as $name => $package) { 79 if (isset($package['type']) && $package['type'] === $type) { 80 $packagesByType[] = $name; 81 } 82 } 83 } 84 85 return $packagesByType; 86 } 87 88 /** 89 * Checks whether the given package is installed 90 * 91 * This also returns true if the package name is provided or replaced by another package 92 * 93 * @param string $packageName 94 * @param bool $includeDevRequirements 95 * @return bool 96 */ 97 public static function isInstalled($packageName, $includeDevRequirements = true) 98 { 99 foreach (self::getInstalled() as $installed) { 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 102 } 103 } 104 105 return false; 106 } 107 108 /** 109 * Checks whether the given package satisfies a version constraint 110 * 111 * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: 112 * 113 * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') 114 * 115 * @param VersionParser $parser Install composer/semver to have access to this class and functionality 116 * @param string $packageName 117 * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package 118 * @return bool 119 */ 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 { 122 $constraint = $parser->parseConstraints($constraint); 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 125 return $provided->matches($constraint); 126 } 127 128 /** 129 * Returns a version constraint representing all the range(s) which are installed for a given package 130 * 131 * It is easier to use this via isInstalled() with the $constraint argument if you need to check 132 * whether a given version of a package is installed, and not just whether it exists 133 * 134 * @param string $packageName 135 * @return string Version constraint usable with composer/semver 136 */ 137 public static function getVersionRanges($packageName) 138 { 139 foreach (self::getInstalled() as $installed) { 140 if (!isset($installed['versions'][$packageName])) { 141 continue; 142 } 143 144 $ranges = array(); 145 if (isset($installed['versions'][$packageName]['pretty_version'])) { 146 $ranges[] = $installed['versions'][$packageName]['pretty_version']; 147 } 148 if (array_key_exists('aliases', $installed['versions'][$packageName])) { 149 $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); 150 } 151 if (array_key_exists('replaced', $installed['versions'][$packageName])) { 152 $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); 153 } 154 if (array_key_exists('provided', $installed['versions'][$packageName])) { 155 $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); 156 } 157 158 return implode(' || ', $ranges); 159 } 160 161 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 162 } 163 164 /** 165 * @param string $packageName 166 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 167 */ 168 public static function getVersion($packageName) 169 { 170 foreach (self::getInstalled() as $installed) { 171 if (!isset($installed['versions'][$packageName])) { 172 continue; 173 } 174 175 if (!isset($installed['versions'][$packageName]['version'])) { 176 return null; 177 } 178 179 return $installed['versions'][$packageName]['version']; 180 } 181 182 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 183 } 184 185 /** 186 * @param string $packageName 187 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present 188 */ 189 public static function getPrettyVersion($packageName) 190 { 191 foreach (self::getInstalled() as $installed) { 192 if (!isset($installed['versions'][$packageName])) { 193 continue; 194 } 195 196 if (!isset($installed['versions'][$packageName]['pretty_version'])) { 197 return null; 198 } 199 200 return $installed['versions'][$packageName]['pretty_version']; 201 } 202 203 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 204 } 205 206 /** 207 * @param string $packageName 208 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference 209 */ 210 public static function getReference($packageName) 211 { 212 foreach (self::getInstalled() as $installed) { 213 if (!isset($installed['versions'][$packageName])) { 214 continue; 215 } 216 217 if (!isset($installed['versions'][$packageName]['reference'])) { 218 return null; 219 } 220 221 return $installed['versions'][$packageName]['reference']; 222 } 223 224 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 225 } 226 227 /** 228 * @param string $packageName 229 * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. 230 */ 231 public static function getInstallPath($packageName) 232 { 233 foreach (self::getInstalled() as $installed) { 234 if (!isset($installed['versions'][$packageName])) { 235 continue; 236 } 237 238 return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; 239 } 240 241 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); 242 } 243 244 /** 245 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 */ 248 public static function getRootPackage() 249 { 250 $installed = self::getInstalled(); 251 252 return $installed[0]['root']; 253 } 254 255 /** 256 * Returns the raw installed.php data for custom implementations 257 * 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. 259 * @return array[] 260 * @psalm-return 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[]}>} 261 */ 262 public static function getRawData() 263 { 264 @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); 265 266 if (null === self::$installed) { 267 // only require the installed.php file if this file is loaded from its dumped location, 268 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 269 if (substr(__DIR__, -8, 1) !== 'C') { 270 self::$installed = include __DIR__ . '/installed.php'; 271 } else { 272 self::$installed = array(); 273 } 274 } 275 276 return self::$installed; 277 } 278 279 /** 280 * Returns the raw data of all installed.php which are currently loaded for custom implementations 281 * 282 * @return array[] 283 * @psalm-return list<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[]}>}> 284 */ 285 public static function getAllRawData() 286 { 287 return self::getInstalled(); 288 } 289 290 /** 291 * Lets you reload the static array from another file 292 * 293 * This is only useful for complex integrations in which a project needs to use 294 * this class but then also needs to execute another project's autoloader in process, 295 * and wants to ensure both projects have access to their version of installed.php. 296 * 297 * A typical case would be PHPUnit, where it would need to make sure it reads all 298 * the data it needs from this class, then call reload() with 299 * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure 300 * the project in which it runs can then also use this class safely, without 301 * interference between PHPUnit's dependencies and the project's dependencies. 302 * 303 * @param array[] $data A vendor/composer/installed.php data set 304 * @return void 305 * 306 * @psalm-param 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[]}>} $data 307 */ 308 public static function reload($data) 309 { 310 self::$installed = $data; 311 self::$installedByVendor = array(); 312 } 313 314 /** 315 * @return array[] 316 * @psalm-return list<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[]}>}> 317 */ 318 private static function getInstalled() 319 { 320 if (null === self::$canGetVendors) { 321 self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); 322 } 323 324 $installed = array(); 325 326 if (self::$canGetVendors) { 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 328 if (isset(self::$installedByVendor[$vendorDir])) { 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 self::$installed = $installed[count($installed) - 1]; 334 } 335 } 336 } 337 } 338 339 if (null === self::$installed) { 340 // only require the installed.php file if this file is loaded from its dumped location, 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 344 } else { 345 self::$installed = array(); 346 } 347 } 348 $installed[] = self::$installed; 349 350 return $installed; 351 } 110 352 } 111 112 113 114 115 116 117 118 119 120 public static function isInstalled($packageName)121 {122 return isset(self::$installed['versions'][$packageName]);123 }124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 public static function satisfies(VersionParser $parser, $packageName, $constraint)139 {140 $constraint = $parser->parseConstraints($constraint);141 $provided = $parser->parseConstraints(self::getVersionRanges($packageName));142 143 return $provided->matches($constraint);144 }145 146 147 148 149 150 151 152 153 154 155 public static function getVersionRanges($packageName)156 {157 if (!isset(self::$installed['versions'][$packageName])) {158 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');159 }160 161 $ranges = array();162 if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {163 $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];164 }165 if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {166 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);167 }168 if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {169 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);170 }171 if (array_key_exists('provided', self::$installed['versions'][$packageName])) {172 $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);173 }174 175 return implode(' || ', $ranges);176 }177 178 179 180 181 182 public static function getVersion($packageName)183 {184 if (!isset(self::$installed['versions'][$packageName])) {185 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');186 }187 188 if (!isset(self::$installed['versions'][$packageName]['version'])) {189 return null;190 }191 192 return self::$installed['versions'][$packageName]['version'];193 }194 195 196 197 198 199 public static function getPrettyVersion($packageName)200 {201 if (!isset(self::$installed['versions'][$packageName])) {202 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');203 }204 205 if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {206 return null;207 }208 209 return self::$installed['versions'][$packageName]['pretty_version'];210 }211 212 213 214 215 216 public static function getReference($packageName)217 {218 if (!isset(self::$installed['versions'][$packageName])) {219 throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');220 }221 222 if (!isset(self::$installed['versions'][$packageName]['reference'])) {223 return null;224 }225 226 return self::$installed['versions'][$packageName]['reference'];227 }228 229 230 231 232 233 public static function getRootPackage()234 {235 return self::$installed['root'];236 }237 238 239 240 241 242 243 244 public static function getRawData()245 {246 return self::$installed;247 }248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 public static function reload($data)268 {269 self::$installed = $data;270 }271 } -
simple-csv-exporter/trunk/vendor/composer/autoload_classmap.php
r2446249 r2761526 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/trunk/vendor/composer/autoload_files.php
r2446249 r2761526 3 3 // autoload_files.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/trunk/vendor/composer/autoload_namespaces.php
r2437085 r2761526 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/trunk/vendor/composer/autoload_psr4.php
r2446249 r2761526 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
simple-csv-exporter/trunk/vendor/composer/autoload_real.php
r2446249 r2761526 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def845 class ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );29 spl_autoload_unregister(array('ComposerAutoloaderInit 576229bd9376ebde99435e9d7f3def84', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit2e765ad8ae0dfed5be0e9b093247e6db', '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\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::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\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::getInitializer($loader)); 52 33 53 34 $loader->register(true); 54 35 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit576229bd9376ebde99435e9d7f3def84::$files; 57 } else { 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 } 36 $includeFiles = \Composer\Autoload\ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$files; 60 37 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire 576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file);38 composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file); 62 39 } 63 40 … … 66 43 } 67 44 68 function composerRequire576229bd9376ebde99435e9d7f3def84($fileIdentifier, $file) 45 /** 46 * @param string $fileIdentifier 47 * @param string $file 48 * @return void 49 */ 50 function composerRequire2e765ad8ae0dfed5be0e9b093247e6db($fileIdentifier, $file) 69 51 { 70 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 54 71 55 require $file; 72 73 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;74 56 } 75 57 } -
simple-csv-exporter/trunk/vendor/composer/autoload_static.php
r2446249 r2761526 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 576229bd9376ebde99435e9d7f3def847 class ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db 8 8 { 9 9 public static $files = array ( … … 176 176 { 177 177 return \Closure::bind(function () use ($loader) { 178 $loader->prefixLengthsPsr4 = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$prefixLengthsPsr4;179 $loader->prefixDirsPsr4 = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$prefixDirsPsr4;180 $loader->classMap = ComposerStaticInit 576229bd9376ebde99435e9d7f3def84::$classMap;178 $loader->prefixLengthsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixLengthsPsr4; 179 $loader->prefixDirsPsr4 = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$prefixDirsPsr4; 180 $loader->classMap = ComposerStaticInit2e765ad8ae0dfed5be0e9b093247e6db::$classMap; 181 181 182 182 }, null, ClassLoader::class); -
simple-csv-exporter/trunk/vendor/composer/installed.json
r2446249 r2761526 3 3 { 4 4 "name": "opis/closure", 5 "version": "3.6. 1",6 "version_normalized": "3.6. 1.0",5 "version": "3.6.3", 6 "version_normalized": "3.6.3.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/opis/closure.git", 10 "reference": " 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/opis/closure/zipball/ 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",15 "reference": " 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5",10 "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad", 15 "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad", 16 16 "shasum": "" 17 17 }, … … 23 23 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" 24 24 }, 25 "time": "202 0-11-07T02:01:34+00:00",25 "time": "2022-01-27T09:35:39+00:00", 26 26 "type": "library", 27 27 "extra": { … … 32 32 "installation-source": "dist", 33 33 "autoload": { 34 "psr-4": {35 "Opis\\Closure\\": "src/"36 },37 34 "files": [ 38 35 "functions.php" 39 ] 36 ], 37 "psr-4": { 38 "Opis\\Closure\\": "src/" 39 } 40 40 }, 41 41 "notification-url": "https://packagist.org/downloads/", … … 65 65 "support": { 66 66 "issues": "https://github.com/opis/closure/issues", 67 "source": "https://github.com/opis/closure/tree/3.6. 1"67 "source": "https://github.com/opis/closure/tree/3.6.3" 68 68 }, 69 69 "install-path": "../opis/closure" … … 121 121 { 122 122 "name": "php-di/php-di", 123 "version": "6.3. 0",124 "version_normalized": "6.3. 0.0",123 "version": "6.3.5", 124 "version_normalized": "6.3.5.0", 125 125 "source": { 126 126 "type": "git", 127 127 "url": "https://github.com/PHP-DI/PHP-DI.git", 128 "reference": " 955cacea6b0beaba07e8c11b8367f5b3d5abe89f"129 }, 130 "dist": { 131 "type": "zip", 132 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/ 955cacea6b0beaba07e8c11b8367f5b3d5abe89f",133 "reference": " 955cacea6b0beaba07e8c11b8367f5b3d5abe89f",128 "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588" 129 }, 130 "dist": { 131 "type": "zip", 132 "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/b8126d066ce144765300ee0ab040c1ed6c9ef588", 133 "reference": "b8126d066ce144765300ee0ab040c1ed6c9ef588", 134 134 "shasum": "" 135 135 }, … … 148 148 "friendsofphp/php-cs-fixer": "^2.4", 149 149 "mnapoli/phpunit-easymock": "^1.2", 150 "ocramius/proxy-manager": " ~2.0.2",150 "ocramius/proxy-manager": "^2.0.2", 151 151 "phpstan/phpstan": "^0.12", 152 152 "phpunit/phpunit": "^8.5|^9.0" … … 156 156 "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)" 157 157 }, 158 "time": "2020-10-12T14:39:15+00:00", 159 "type": "library", 160 "installation-source": "dist", 161 "autoload": { 162 "psr-4": { 163 "DI\\": "src/" 164 }, 158 "time": "2021-09-02T09:49:58+00:00", 159 "type": "library", 160 "installation-source": "dist", 161 "autoload": { 165 162 "files": [ 166 163 "src/functions.php" 167 ] 164 ], 165 "psr-4": { 166 "DI\\": "src/" 167 } 168 168 }, 169 169 "notification-url": "https://packagist.org/downloads/", … … 184 184 "support": { 185 185 "issues": "https://github.com/PHP-DI/PHP-DI/issues", 186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3. 0"186 "source": "https://github.com/PHP-DI/PHP-DI/tree/6.3.5" 187 187 }, 188 188 "funding": [ … … 245 245 { 246 246 "name": "psr/container", 247 "version": "1. 0.0",248 "version_normalized": "1. 0.0.0",247 "version": "1.1.1", 248 "version_normalized": "1.1.1.0", 249 249 "source": { 250 250 "type": "git", 251 251 "url": "https://github.com/php-fig/container.git", 252 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 257 "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 258 "shasum": "" 259 }, 260 "require": { 261 "php": ">=5.3.0" 262 }, 263 "time": "2017-02-14T16:28:37+00:00", 264 "type": "library", 265 "extra": { 266 "branch-alias": { 267 "dev-master": "1.0.x-dev" 268 } 269 }, 252 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" 253 }, 254 "dist": { 255 "type": "zip", 256 "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", 257 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", 258 "shasum": "" 259 }, 260 "require": { 261 "php": ">=7.2.0" 262 }, 263 "time": "2021-03-05T17:36:06+00:00", 264 "type": "library", 270 265 "installation-source": "dist", 271 266 "autoload": { … … 281 276 { 282 277 "name": "PHP-FIG", 283 "homepage": "http ://www.php-fig.org/"278 "homepage": "https://www.php-fig.org/" 284 279 } 285 280 ], … … 295 290 "support": { 296 291 "issues": "https://github.com/php-fig/container/issues", 297 "source": "https://github.com/php-fig/container/tree/ master"292 "source": "https://github.com/php-fig/container/tree/1.1.1" 298 293 }, 299 294 "install-path": "../psr/container" -
simple-csv-exporter/trunk/vendor/composer/installed.php
r2446249 r2761526 1 <?php return array ( 2 'root' => 3 array ( 4 'pretty_version' => '2.0.0', 5 'version' => '2.0.0.0', 6 'aliases' => 7 array ( 1 <?php return array( 2 'root' => array( 3 'name' => 'hamworks/simple-csv-exporter', 4 'pretty_version' => '2.0.1', 5 'version' => '2.0.1.0', 6 'reference' => '1d0d4fca93369395531eb749924260d960ae3113', 7 'type' => 'library', 8 'install_path' => __DIR__ . '/../../', 9 'aliases' => array(), 10 'dev' => false, 8 11 ), 9 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 10 'name' => 'hamworks/simple-csv-exporter', 11 ), 12 'versions' => 13 array ( 14 'hamworks/simple-csv-exporter' => 15 array ( 16 'pretty_version' => '2.0.0', 17 'version' => '2.0.0.0', 18 'aliases' => 19 array ( 20 ), 21 'reference' => '6ee2453933381678ccb5d36652341799baa55521', 12 'versions' => array( 13 'hamworks/simple-csv-exporter' => array( 14 'pretty_version' => '2.0.1', 15 'version' => '2.0.1.0', 16 'reference' => '1d0d4fca93369395531eb749924260d960ae3113', 17 'type' => 'library', 18 'install_path' => __DIR__ . '/../../', 19 'aliases' => array(), 20 'dev_requirement' => false, 21 ), 22 'opis/closure' => array( 23 'pretty_version' => '3.6.3', 24 'version' => '3.6.3.0', 25 'reference' => '3d81e4309d2a927abbe66df935f4bb60082805ad', 26 'type' => 'library', 27 'install_path' => __DIR__ . '/../opis/closure', 28 'aliases' => array(), 29 'dev_requirement' => false, 30 ), 31 'php-di/invoker' => array( 32 'pretty_version' => '2.0.0', 33 'version' => '2.0.0.0', 34 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a', 35 'type' => 'library', 36 'install_path' => __DIR__ . '/../php-di/invoker', 37 'aliases' => array(), 38 'dev_requirement' => false, 39 ), 40 'php-di/php-di' => array( 41 'pretty_version' => '6.3.5', 42 'version' => '6.3.5.0', 43 'reference' => 'b8126d066ce144765300ee0ab040c1ed6c9ef588', 44 'type' => 'library', 45 'install_path' => __DIR__ . '/../php-di/php-di', 46 'aliases' => array(), 47 'dev_requirement' => false, 48 ), 49 'php-di/phpdoc-reader' => array( 50 'pretty_version' => '2.2.1', 51 'version' => '2.2.1.0', 52 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 53 'type' => 'library', 54 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 55 'aliases' => array(), 56 'dev_requirement' => false, 57 ), 58 'psr/container' => array( 59 'pretty_version' => '1.1.1', 60 'version' => '1.1.1.0', 61 'reference' => '8622567409010282b7aeebe4bb841fe98b58dcaf', 62 'type' => 'library', 63 'install_path' => __DIR__ . '/../psr/container', 64 'aliases' => array(), 65 'dev_requirement' => false, 66 ), 67 'psr/container-implementation' => array( 68 'dev_requirement' => false, 69 'provided' => array( 70 0 => '^1.0', 71 ), 72 ), 22 73 ), 23 'opis/closure' =>24 array (25 'pretty_version' => '3.6.1',26 'version' => '3.6.1.0',27 'aliases' =>28 array (29 ),30 'reference' => '943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5',31 ),32 'php-di/invoker' =>33 array (34 'pretty_version' => '2.0.0',35 'version' => '2.0.0.0',36 'aliases' =>37 array (38 ),39 'reference' => '540c27c86f663e20fe39a24cd72fa76cdb21d41a',40 ),41 'php-di/php-di' =>42 array (43 'pretty_version' => '6.3.0',44 'version' => '6.3.0.0',45 'aliases' =>46 array (47 ),48 'reference' => '955cacea6b0beaba07e8c11b8367f5b3d5abe89f',49 ),50 'php-di/phpdoc-reader' =>51 array (52 'pretty_version' => '2.2.1',53 'version' => '2.2.1.0',54 'aliases' =>55 array (56 ),57 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c',58 ),59 'psr/container' =>60 array (61 'pretty_version' => '1.0.0',62 'version' => '1.0.0.0',63 'aliases' =>64 array (65 ),66 'reference' => 'b7ce3b176482dbbc1245ebf52b181af44c2cf55f',67 ),68 'psr/container-implementation' =>69 array (70 'provided' =>71 array (72 0 => '^1.0',73 ),74 ),75 ),76 74 ); -
simple-csv-exporter/trunk/vendor/composer/platform_check.php
r2437085 r2761526 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 200)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 2.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70400)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
simple-csv-exporter/trunk/vendor/opis/closure/CHANGELOG.md
r2446249 r2761526 1 1 CHANGELOG 2 2 --------- 3 4 ### v3.6.2, 2021.04.09 5 6 - Fixed string interpolation 3 7 4 8 ### v3.6.1, 2020.11.07 -
simple-csv-exporter/trunk/vendor/opis/closure/autoload.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License 6 6 * =========================================================================== */ 7 7 8 require_once 'functions.php';8 require_once __DIR__ . '/functions.php'; 9 9 10 10 spl_autoload_register(function($class){ -
simple-csv-exporter/trunk/vendor/opis/closure/functions.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/Analyzer.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureContext.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureScope.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/ClosureStream.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/ISecurityProvider.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/ReflectionClosure.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License … … 272 272 case T_DOLLAR_OPEN_CURLY_BRACES: 273 273 case '{': 274 $code .= '{';274 $code .= is_array($token) ? $token[1] : $token; 275 275 $open++; 276 276 break; -
simple-csv-exporter/trunk/vendor/opis/closure/src/SecurityException.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/SecurityProvider.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/SelfReference.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/opis/closure/src/SerializableClosure.php
r2446249 r2761526 1 1 <?php 2 2 /* =========================================================================== 3 * Copyright (c) 2018-20 19Zindex Software3 * Copyright (c) 2018-2021 Zindex Software 4 4 * 5 5 * Licensed under the MIT License -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/CompiledContainer.php
r2446249 r2761526 25 25 abstract class CompiledContainer extends Container 26 26 { 27 /** 28 * This const is overridden in child classes (compiled containers). 29 * @var array 30 */ 31 protected const METHOD_MAPPING = []; 32 27 33 /** 28 34 * @var InvokerInterface -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Compiler/Compiler.php
r2446249 r2761526 245 245 $defaultValue = $this->compileValue($definition->getDefaultValue()); 246 246 $code = <<<PHP 247 \$value = getenv($variableName);247 \$value = \$_ENV[$variableName] ?? \$_SERVER[$variableName] ?? getenv($variableName); 248 248 if (false !== \$value) return \$value; 249 249 if (!$isOptional) { … … 359 359 private function createCompilationDirectory(string $directory) 360 360 { 361 if (!is_dir($directory) && !@mkdir($directory, 0777, true) ) {361 if (!is_dir($directory) && !@mkdir($directory, 0777, true) && !is_dir($directory)) { 362 362 throw new InvalidArgumentException(sprintf('Compilation directory does not exist and cannot be created: %s.', $directory)); 363 363 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Container.php
r2446249 r2761526 118 118 * Returns an entry of the container by its name. 119 119 * 120 * @param string $name Entry name or a class name. 120 * @template T 121 * @param string|class-string<T> $name Entry name or a class name. 121 122 * 122 123 * @throws DependencyException Error while resolving the entry. 123 124 * @throws NotFoundException No entry found for the given name. 124 * @return mixed 125 * @return mixed|T 125 126 */ 126 127 public function get($name) … … 166 167 * This method makes the container behave like a factory. 167 168 * 168 * @param string $name Entry name or a class name. 169 * @param array $parameters Optional parameters to use to build the entry. Use this to force specific parameters 170 * to specific values. Parameters not defined in this array will be resolved using 171 * the container. 169 * @template T 170 * @param string|class-string<T> $name Entry name or a class name. 171 * @param array $parameters Optional parameters to use to build the entry. Use this to force 172 * specific parameters to specific values. Parameters not defined in this 173 * array will be resolved using the container. 172 174 * 173 175 * @throws InvalidArgumentException The name parameter must be of type string. 174 176 * @throws DependencyException Error while resolving the entry. 175 177 * @throws NotFoundException No entry found for the given name. 176 * @return mixed 178 * @return mixed|T 177 179 */ 178 180 public function make($name, array $parameters = []) … … 230 232 * Inject all dependencies on an existing instance. 231 233 * 232 * @param object $instance Object to perform injection upon 234 * @template T 235 * @param object|T $instance Object to perform injection upon 233 236 * @throws InvalidArgumentException 234 237 * @throws DependencyException Error while injecting dependencies 235 * @return object $instance Returns the same instance238 * @return object|T $instance Returns the same instance 236 239 */ 237 240 public function injectOn($instance) -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/ArrayDefinition.php
r2446249 r2761526 51 51 public function __toString() 52 52 { 53 $str = '[' . PHP_EOL;53 $str = '[' . \PHP_EOL; 54 54 55 55 foreach ($this->values as $key => $value) { … … 61 61 62 62 if ($value instanceof Definition) { 63 $str .= str_replace( PHP_EOL,PHP_EOL . ' ', (string) $value);63 $str .= str_replace(\PHP_EOL, \PHP_EOL . ' ', (string) $value); 64 64 } else { 65 65 $str .= var_export($value, true); 66 66 } 67 67 68 $str .= ',' . PHP_EOL;68 $str .= ',' . \PHP_EOL; 69 69 } 70 70 -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Dumper/ObjectDefinitionDumper.php
r2446249 r2761526 36 36 37 37 // Lazy 38 $str .= PHP_EOL . ' lazy = ' . var_export($definition->isLazy(), true);38 $str .= \PHP_EOL . ' lazy = ' . var_export($definition->isLazy(), true); 39 39 40 40 if ($classExist) { … … 49 49 } 50 50 51 return sprintf('Object (' . PHP_EOL . '%s' .PHP_EOL . ')', $str);51 return sprintf('Object (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str); 52 52 } 53 53 … … 61 61 $parameters = $this->dumpMethodParameters($className, $constructorInjection); 62 62 63 $str .= sprintf( PHP_EOL . ' __construct(' . PHP_EOL . ' %s' .PHP_EOL . ' )', $parameters);63 $str .= sprintf(\PHP_EOL . ' __construct(' . \PHP_EOL . ' %s' . \PHP_EOL . ' )', $parameters); 64 64 } 65 65 … … 75 75 $valueStr = $value instanceof Definition ? (string) $value : var_export($value, true); 76 76 77 $str .= sprintf( PHP_EOL . ' $%s = %s', $propertyInjection->getPropertyName(), $valueStr);77 $str .= sprintf(\PHP_EOL . ' $%s = %s', $propertyInjection->getPropertyName(), $valueStr); 78 78 } 79 79 … … 88 88 $parameters = $this->dumpMethodParameters($className, $methodInjection); 89 89 90 $str .= sprintf( PHP_EOL . ' %s(' . PHP_EOL . ' %s' .PHP_EOL . ' )', $methodInjection->getMethodName(), $parameters);90 $str .= sprintf(\PHP_EOL . ' %s(' . \PHP_EOL . ' %s' . \PHP_EOL . ' )', $methodInjection->getMethodName(), $parameters); 91 91 } 92 92 … … 131 131 } 132 132 133 return implode( PHP_EOL . ' ', $args);133 return implode(\PHP_EOL . ' ', $args); 134 134 } 135 135 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/EnvironmentVariableDefinition.php
r2446249 r2761526 94 94 public function __toString() 95 95 { 96 $str = ' variable = ' . $this->variableName . PHP_EOL96 $str = ' variable = ' . $this->variableName . \PHP_EOL 97 97 . ' optional = ' . ($this->isOptional ? 'yes' : 'no'); 98 98 … … 100 100 if ($this->defaultValue instanceof Definition) { 101 101 $nestedDefinition = (string) $this->defaultValue; 102 $defaultValueStr = str_replace( PHP_EOL,PHP_EOL . ' ', $nestedDefinition);102 $defaultValueStr = str_replace(\PHP_EOL, \PHP_EOL . ' ', $nestedDefinition); 103 103 } else { 104 104 $defaultValueStr = var_export($this->defaultValue, true); 105 105 } 106 106 107 $str .= PHP_EOL . ' default = ' . $defaultValueStr;107 $str .= \PHP_EOL . ' default = ' . $defaultValueStr; 108 108 } 109 109 110 return sprintf('Environment variable (' . PHP_EOL . '%s' .PHP_EOL . ')', $str);110 return sprintf('Environment variable (' . \PHP_EOL . '%s' . \PHP_EOL . ')', $str); 111 111 } 112 112 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php
r2446249 r2761526 6 6 7 7 use DI\Definition\Definition; 8 use Psr\Container\ContainerExceptionInterface; 8 9 9 10 /** … … 12 13 * @author Matthieu Napoli <matthieu@mnapoli.fr> 13 14 */ 14 class InvalidDefinition extends \Exception 15 class InvalidDefinition extends \Exception implements ContainerExceptionInterface 15 16 { 16 17 public static function create(Definition $definition, string $message, \Exception $previous = null) : self 17 18 { 18 19 return new self(sprintf( 19 '%s' . PHP_EOL . 'Full definition:' .PHP_EOL . '%s',20 '%s' . \PHP_EOL . 'Full definition:' . \PHP_EOL . '%s', 20 21 $message, 21 22 (string) $definition -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php
r2446249 r2761526 26 26 private $variableReader; 27 27 28 public function __construct(DefinitionResolver $definitionResolver, $variableReader = 'getenv')28 public function __construct(DefinitionResolver $definitionResolver, $variableReader = null) 29 29 { 30 30 $this->definitionResolver = $definitionResolver; 31 $this->variableReader = $variableReader ;31 $this->variableReader = $variableReader ?? [$this, 'getEnvVariable']; 32 32 } 33 33 … … 66 66 return true; 67 67 } 68 69 protected function getEnvVariable(string $variableName) 70 { 71 if (isset($_ENV[$variableName])) { 72 return $_ENV[$variableName]; 73 } elseif (isset($_SERVER[$variableName])) { 74 return $_SERVER[$variableName]; 75 } 76 77 return getenv($variableName); 78 } 68 79 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php
r2446249 r2761526 239 239 // Try to use the type-hinting 240 240 $parameterType = $parameter->getType(); 241 if ($parameterType && !$parameterType->isBuiltin() && $parameterType instanceof ReflectionNamedType) {241 if ($parameterType && $parameterType instanceof ReflectionNamedType && !$parameterType->isBuiltin()) { 242 242 return $parameterType->getName(); 243 243 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php
r2446249 r2761526 69 69 continue; 70 70 } 71 if (!$parameterType instanceof ReflectionNamedType) { 72 // Union types are not supported 73 continue; 74 } 71 75 if ($parameterType->isBuiltin()) { 72 76 // Primitive types are not supported 73 continue;74 }75 if (!$parameterType instanceof ReflectionNamedType) {76 // Union types are not supported77 77 continue; 78 78 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Invoker/FactoryParameterResolver.php
r2446249 r2761526 49 49 continue; 50 50 } 51 if (!$parameterType instanceof ReflectionNamedType) { 52 // Union types are not supported 53 continue; 54 } 51 55 if ($parameterType->isBuiltin()) { 52 56 // Primitive types are not supported 53 continue;54 }55 if (!$parameterType instanceof ReflectionNamedType) {56 // Union types are not supported57 57 continue; 58 58 } -
simple-csv-exporter/trunk/vendor/php-di/php-di/src/Proxy/ProxyFactory.php
r2446249 r2761526 91 91 $config->setProxiesTargetDir($this->proxyDirectory); 92 92 $config->setGeneratorStrategy(new FileWriterGeneratorStrategy(new FileLocator($this->proxyDirectory))); 93 // @phpstan-ignore-next-line 93 94 spl_autoload_register($config->getProxyAutoloader()); 94 95 } else { -
simple-csv-exporter/trunk/vendor/psr/container/src/ContainerExceptionInterface.php
r2446249 r2761526 1 1 <?php 2 /**3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)4 */5 2 6 3 namespace Psr\Container; -
simple-csv-exporter/trunk/vendor/psr/container/src/ContainerInterface.php
r2446249 r2761526 1 1 <?php 2 /** 3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) 4 */ 2 3 declare(strict_types=1); 5 4 6 5 namespace Psr\Container; … … 21 20 * @return mixed Entry. 22 21 */ 23 public function get( $id);22 public function get(string $id); 24 23 25 24 /** … … 34 33 * @return bool 35 34 */ 36 public function has( $id);35 public function has(string $id); 37 36 } -
simple-csv-exporter/trunk/vendor/psr/container/src/NotFoundExceptionInterface.php
r2446249 r2761526 1 1 <?php 2 /**3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)4 */5 2 6 3 namespace Psr\Container;
Note: See TracChangeset
for help on using the changeset viewer.