Changeset 3082046
- Timestamp:
- 05/06/2024 04:57:36 PM (3 months ago)
- Location:
- accessibility-checker
- Files:
-
- 2 deleted
- 26 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
accessibility-checker/tags/1.11.2/accessibility-checker.php
r3081378 r3082046 11 11 * Plugin URI: https://a11ychecker.com 12 12 * Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance. 13 * Version: 1.11. 113 * Version: 1.11. 14 14 * Author: Equalize Digital 15 15 * Author URI: https://equalizedigital.com … … 27 27 } 28 28 29 // Check for WordPress Playground.30 require_once plugin_dir_path( __FILE__ ) . 'includes/classes/class-playground-check.php';31 if ( ! ( new EDAC\Inc\Playground_Check() )->should_load ) {32 return;33 }34 35 29 // Include plugin dependency. 36 30 require_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 42 36 // Current plugin version. 43 37 if ( ! defined( 'EDAC_VERSION' ) ) { 44 define( 'EDAC_VERSION', '1.11. 1' );38 define( 'EDAC_VERSION', '1.11.' ); 45 39 } 46 40 -
accessibility-checker/tags/1.11.2/admin/class-admin-notices.php
r3081378 r3082046 111 111 112 112 /** 113 * Get GAADPromo Message113 * Get Promo Message 114 114 * 115 115 * @return string … … 217 217 218 218 /** 219 * ReviewAdmin Notice Ajax219 * Admin Notice Ajax 220 220 * 221 221 * @return void … … 380 380 381 381 /** 382 * ReviewAdmin Notice Ajax382 * Admin Notice Ajax 383 383 * 384 384 * @return void -
accessibility-checker/tags/1.11.2/includes/classes/class-summary-generator.php
r3080015 r3082046 292 292 } 293 293 294 return $content_grade;294 return ; 295 295 } 296 296 -
accessibility-checker/tags/1.11.2/readme.txt
r3081378 r3082046 4 4 Requires at least: 6.2 5 5 Tested up to: 6.5.2 6 Stable tag: 1.11. 16 Stable tag: 1.11. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 172 172 == Changelog == 173 173 174 + 1.11.1 = 174 = 1.11.2 175 * Fixed: Avoid displaying `0th` for readability score 176 * Removed: Some custom WP Playground detection code 177 178 = 1.11.1 = 175 179 * Fixed: type Casting on several rules 176 180 * Fixed: strict data comparison on several rules -
accessibility-checker/tags/1.11.2/vendor/autoload.php
r3081378 r3082046 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) {6 if (!headers_sent()) {7 header('HTTP/1.1 500 Internal Server Error');8 }9 $err = '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;10 if (!ini_get('display_errors')) {11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {12 fwrite(STDERR, $err);13 } elseif (!headers_sent()) {14 echo $err;15 }16 }17 trigger_error(18 $err,19 E_USER_ERROR20 );21 }22 23 5 require_once __DIR__ . '/composer/autoload_real.php'; 24 6 25 return ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7::getLoader();7 return ComposerAutoloaderInit::getLoader(); -
accessibility-checker/tags/1.11.2/vendor/composer/ClassLoader.php
r3081378 r3082046 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 154 150 /** 155 151 * @return string[] Array of classname => path 156 * @psalm- returnarray<string, string>152 * @psalm- array<string, string> 157 153 */ 158 154 public function getClassMap() … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 561 562 563 564 565 566 567 568 569 570 571 572 -
accessibility-checker/tags/1.11.2/vendor/composer/InstalledVersions.php
r3081378 r3082046 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 *25 * @final26 24 */ 27 25 class InstalledVersions … … 29 27 /** 30 28 * @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{}|null29 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 30 */ 33 31 private static $installed; … … 40 38 /** 41 39 * @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[]}>}>40 * @psalm-var array<string, array{root: array{name: string, }>}> 43 41 */ 44 42 private static $installedByVendor = array(); … … 99 97 foreach (self::getInstalled() as $installed) { 100 98 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;99 return $includeDevRequirements || ; 102 100 } 103 101 } … … 120 118 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 119 { 122 $constraint = $parser->parseConstraints( (string)$constraint);120 $constraint = $parser->parseConstraints($constraint); 123 121 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 122 … … 244 242 /** 245 243 * @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}244 * @psalm-return array{name: string, } 247 245 */ 248 246 public static function getRootPackage() … … 258 256 * @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 257 * @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[]}>}258 * @psalm-return array{root: array{name: string, }>} 261 259 */ 262 260 public static function getRawData() … … 281 279 * 282 280 * @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[]}>}>281 * @psalm-return list<array{root: array{name: string, }>}> 284 282 */ 285 283 public static function getAllRawData() … … 304 302 * @return void 305 303 * 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[]}>} $data304 * @psalm-param array{root: array{name: string, }>} $data 307 305 */ 308 306 public static function reload($data) … … 314 312 /** 315 313 * @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[]}>}>314 * @psalm-return list<array{root: array{name: string, }>}> 317 315 */ 318 316 private static function getInstalled() … … 329 327 $installed[] = self::$installedByVendor[$vendorDir]; 330 328 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 330 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 331 self::$installed = $installed[count($installed) - 1]; … … 343 339 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 340 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 341 self::$installed = require __DIR__ . '/installed.php'; 348 342 } else { 349 343 self::$installed = array(); 350 344 } 351 345 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 346 $installed[] = self::$installed; 356 347 357 348 return $installed; -
accessibility-checker/tags/1.11.2/vendor/composer/autoload_classmap.php
r3081378 r3082046 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 141 141 'EDAC\\Inc\\Frontend_Validate' => $baseDir . '/includes/classes/class-frontend-validate.php', 142 142 'EDAC\\Inc\\Lazyload_Filter' => $baseDir . '/includes/classes/class-lazyload-filter.php', 143 'EDAC\\Inc\\Playground_Check' => $baseDir . '/includes/classes/class-playground-check.php',144 143 'EDAC\\Inc\\Plugin' => $baseDir . '/includes/classes/class-plugin.php', 145 144 'EDAC\\Inc\\REST_Api' => $baseDir . '/includes/classes/class-rest-api.php', -
accessibility-checker/tags/1.11.2/vendor/composer/autoload_namespaces.php
r3081378 r3082046 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
accessibility-checker/tags/1.11.2/vendor/composer/autoload_psr4.php
r3081378 r3082046 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
accessibility-checker/tags/1.11.2/vendor/composer/autoload_real.php
r3081378 r3082046 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba75 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( __DIR__));29 spl_autoload_unregister(array('ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitc9186e7167f863d6ad94be6f51ec2ba7::getInitializer($loader)); 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\ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::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 } 33 52 34 53 $loader->register(true); -
accessibility-checker/tags/1.11.2/vendor/composer/autoload_static.php
r3081378 r3082046 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba77 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 166 166 'EDAC\\Inc\\Frontend_Validate' => __DIR__ . '/../..' . '/includes/classes/class-frontend-validate.php', 167 167 'EDAC\\Inc\\Lazyload_Filter' => __DIR__ . '/../..' . '/includes/classes/class-lazyload-filter.php', 168 'EDAC\\Inc\\Playground_Check' => __DIR__ . '/../..' . '/includes/classes/class-playground-check.php',169 168 'EDAC\\Inc\\Plugin' => __DIR__ . '/../..' . '/includes/classes/class-plugin.php', 170 169 'EDAC\\Inc\\REST_Api' => __DIR__ . '/../..' . '/includes/classes/class-rest-api.php', … … 179 178 { 180 179 return \Closure::bind(function () use ($loader) { 181 $loader->prefixLengthsPsr4 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixLengthsPsr4;182 $loader->prefixDirsPsr4 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixDirsPsr4;183 $loader->prefixesPsr0 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixesPsr0;184 $loader->classMap = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$classMap;180 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 181 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 182 $loader->prefixesPsr0 = ComposerStaticInit::$prefixesPsr0; 183 $loader->classMap = ComposerStaticInit::$classMap; 185 184 186 185 }, null, ClassLoader::class); -
accessibility-checker/tags/1.11.2/vendor/composer/installed.php
r3081378 r3082046 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'equalizedigital/accesibility-checker',4 3 'pretty_version' => 'dev-main', 5 4 'version' => 'dev-main', 6 'reference' => '4a9dd2e3e8558377b315197021535dd7549f2656',7 5 'type' => 'library', 8 6 'install_path' => __DIR__ . '/../../', 9 7 'aliases' => array(), 8 9 10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',17 16 'type' => 'composer-plugin', 18 17 'install_path' => __DIR__ . '/./installers', 19 18 'aliases' => array(), 19 20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => '2276191cfe12eb083b2604faf1038dcb31820e8a',26 25 'type' => 'library', 27 26 'install_path' => __DIR__ . '/../davechild/textstatistics', … … 29 28 0 => '1.0.x-dev', 30 29 ), 30 31 31 'dev_requirement' => false, 32 32 ), … … 34 34 'pretty_version' => 'dev-main', 35 35 'version' => 'dev-main', 36 'reference' => '4a9dd2e3e8558377b315197021535dd7549f2656',37 36 'type' => 'library', 38 37 'install_path' => __DIR__ . '/../../', 39 38 'aliases' => array(), 39 40 40 'dev_requirement' => false, 41 41 ), -
accessibility-checker/trunk/accessibility-checker.php
r3081378 r3082046 11 11 * Plugin URI: https://a11ychecker.com 12 12 * Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance. 13 * Version: 1.11. 113 * Version: 1.11. 14 14 * Author: Equalize Digital 15 15 * Author URI: https://equalizedigital.com … … 27 27 } 28 28 29 // Check for WordPress Playground.30 require_once plugin_dir_path( __FILE__ ) . 'includes/classes/class-playground-check.php';31 if ( ! ( new EDAC\Inc\Playground_Check() )->should_load ) {32 return;33 }34 35 29 // Include plugin dependency. 36 30 require_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 42 36 // Current plugin version. 43 37 if ( ! defined( 'EDAC_VERSION' ) ) { 44 define( 'EDAC_VERSION', '1.11. 1' );38 define( 'EDAC_VERSION', '1.11.' ); 45 39 } 46 40 -
accessibility-checker/trunk/admin/class-admin-notices.php
r3081378 r3082046 111 111 112 112 /** 113 * Get GAADPromo Message113 * Get Promo Message 114 114 * 115 115 * @return string … … 217 217 218 218 /** 219 * ReviewAdmin Notice Ajax219 * Admin Notice Ajax 220 220 * 221 221 * @return void … … 380 380 381 381 /** 382 * ReviewAdmin Notice Ajax382 * Admin Notice Ajax 383 383 * 384 384 * @return void -
accessibility-checker/trunk/includes/classes/class-summary-generator.php
r3080015 r3082046 292 292 } 293 293 294 return $content_grade;294 return ; 295 295 } 296 296 -
accessibility-checker/trunk/readme.txt
r3081378 r3082046 4 4 Requires at least: 6.2 5 5 Tested up to: 6.5.2 6 Stable tag: 1.11. 16 Stable tag: 1.11. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 172 172 == Changelog == 173 173 174 + 1.11.1 = 174 = 1.11.2 175 * Fixed: Avoid displaying `0th` for readability score 176 * Removed: Some custom WP Playground detection code 177 178 = 1.11.1 = 175 179 * Fixed: type Casting on several rules 176 180 * Fixed: strict data comparison on several rules -
accessibility-checker/trunk/vendor/autoload.php
r3081378 r3082046 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) {6 if (!headers_sent()) {7 header('HTTP/1.1 500 Internal Server Error');8 }9 $err = '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;10 if (!ini_get('display_errors')) {11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {12 fwrite(STDERR, $err);13 } elseif (!headers_sent()) {14 echo $err;15 }16 }17 trigger_error(18 $err,19 E_USER_ERROR20 );21 }22 23 5 require_once __DIR__ . '/composer/autoload_real.php'; 24 6 25 return ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7::getLoader();7 return ComposerAutoloaderInit::getLoader(); -
accessibility-checker/trunk/vendor/composer/ClassLoader.php
r3081378 r3082046 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 154 150 /** 155 151 * @return string[] Array of classname => path 156 * @psalm- returnarray<string, string>152 * @psalm- array<string, string> 157 153 */ 158 154 public function getClassMap() … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 561 562 563 564 565 566 567 568 569 570 571 572 -
accessibility-checker/trunk/vendor/composer/InstalledVersions.php
r3081378 r3082046 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 *25 * @final26 24 */ 27 25 class InstalledVersions … … 29 27 /** 30 28 * @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{}|null29 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 30 */ 33 31 private static $installed; … … 40 38 /** 41 39 * @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[]}>}>40 * @psalm-var array<string, array{root: array{name: string, }>}> 43 41 */ 44 42 private static $installedByVendor = array(); … … 99 97 foreach (self::getInstalled() as $installed) { 100 98 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;99 return $includeDevRequirements || ; 102 100 } 103 101 } … … 120 118 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 119 { 122 $constraint = $parser->parseConstraints( (string)$constraint);120 $constraint = $parser->parseConstraints($constraint); 123 121 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 122 … … 244 242 /** 245 243 * @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}244 * @psalm-return array{name: string, } 247 245 */ 248 246 public static function getRootPackage() … … 258 256 * @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 257 * @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[]}>}258 * @psalm-return array{root: array{name: string, }>} 261 259 */ 262 260 public static function getRawData() … … 281 279 * 282 280 * @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[]}>}>281 * @psalm-return list<array{root: array{name: string, }>}> 284 282 */ 285 283 public static function getAllRawData() … … 304 302 * @return void 305 303 * 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[]}>} $data304 * @psalm-param array{root: array{name: string, }>} $data 307 305 */ 308 306 public static function reload($data) … … 314 312 /** 315 313 * @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[]}>}>314 * @psalm-return list<array{root: array{name: string, }>}> 317 315 */ 318 316 private static function getInstalled() … … 329 327 $installed[] = self::$installedByVendor[$vendorDir]; 330 328 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 334 330 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 331 self::$installed = $installed[count($installed) - 1]; … … 343 339 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 340 if (substr(__DIR__, -8, 1) !== 'C') { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 341 self::$installed = require __DIR__ . '/installed.php'; 348 342 } else { 349 343 self::$installed = array(); 350 344 } 351 345 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 346 $installed[] = self::$installed; 356 347 357 348 return $installed; -
accessibility-checker/trunk/vendor/composer/autoload_classmap.php
r3081378 r3082046 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 … … 141 141 'EDAC\\Inc\\Frontend_Validate' => $baseDir . '/includes/classes/class-frontend-validate.php', 142 142 'EDAC\\Inc\\Lazyload_Filter' => $baseDir . '/includes/classes/class-lazyload-filter.php', 143 'EDAC\\Inc\\Playground_Check' => $baseDir . '/includes/classes/class-playground-check.php',144 143 'EDAC\\Inc\\Plugin' => $baseDir . '/includes/classes/class-plugin.php', 145 144 'EDAC\\Inc\\REST_Api' => $baseDir . '/includes/classes/class-rest-api.php', -
accessibility-checker/trunk/vendor/composer/autoload_namespaces.php
r3081378 r3082046 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
accessibility-checker/trunk/vendor/composer/autoload_psr4.php
r3081378 r3082046 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
accessibility-checker/trunk/vendor/composer/autoload_real.php
r3081378 r3082046 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba75 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( __DIR__));29 spl_autoload_unregister(array('ComposerAutoloaderInit c9186e7167f863d6ad94be6f51ec2ba7', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInitc9186e7167f863d6ad94be6f51ec2ba7::getInitializer($loader)); 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\ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::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 } 33 52 34 53 $loader->register(true); -
accessibility-checker/trunk/vendor/composer/autoload_static.php
r3081378 r3082046 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba77 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 166 166 'EDAC\\Inc\\Frontend_Validate' => __DIR__ . '/../..' . '/includes/classes/class-frontend-validate.php', 167 167 'EDAC\\Inc\\Lazyload_Filter' => __DIR__ . '/../..' . '/includes/classes/class-lazyload-filter.php', 168 'EDAC\\Inc\\Playground_Check' => __DIR__ . '/../..' . '/includes/classes/class-playground-check.php',169 168 'EDAC\\Inc\\Plugin' => __DIR__ . '/../..' . '/includes/classes/class-plugin.php', 170 169 'EDAC\\Inc\\REST_Api' => __DIR__ . '/../..' . '/includes/classes/class-rest-api.php', … … 179 178 { 180 179 return \Closure::bind(function () use ($loader) { 181 $loader->prefixLengthsPsr4 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixLengthsPsr4;182 $loader->prefixDirsPsr4 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixDirsPsr4;183 $loader->prefixesPsr0 = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$prefixesPsr0;184 $loader->classMap = ComposerStaticInit c9186e7167f863d6ad94be6f51ec2ba7::$classMap;180 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 181 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 182 $loader->prefixesPsr0 = ComposerStaticInit::$prefixesPsr0; 183 $loader->classMap = ComposerStaticInit::$classMap; 185 184 186 185 }, null, ClassLoader::class); -
accessibility-checker/trunk/vendor/composer/installed.php
r3081378 r3082046 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'equalizedigital/accesibility-checker',4 3 'pretty_version' => 'dev-main', 5 4 'version' => 'dev-main', 6 'reference' => '4a9dd2e3e8558377b315197021535dd7549f2656',7 5 'type' => 'library', 8 6 'install_path' => __DIR__ . '/../../', 9 7 'aliases' => array(), 8 9 10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',17 16 'type' => 'composer-plugin', 18 17 'install_path' => __DIR__ . '/./installers', 19 18 'aliases' => array(), 19 20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => '2276191cfe12eb083b2604faf1038dcb31820e8a',26 25 'type' => 'library', 27 26 'install_path' => __DIR__ . '/../davechild/textstatistics', … … 29 28 0 => '1.0.x-dev', 30 29 ), 30 31 31 'dev_requirement' => false, 32 32 ), … … 34 34 'pretty_version' => 'dev-main', 35 35 'version' => 'dev-main', 36 'reference' => '4a9dd2e3e8558377b315197021535dd7549f2656',37 36 'type' => 'library', 38 37 'install_path' => __DIR__ . '/../../', 39 38 'aliases' => array(), 39 40 40 'dev_requirement' => false, 41 41 ),
Note: See TracChangeset
for help on using the changeset viewer.