Changeset 2893725
- Timestamp:
- 04/04/2023 04:04:44 PM (3 years ago)
- Location:
- sharing-image
- Files:
-
- 37 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (1 prop) (previous)
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
assets/screenshot-3.png (modified) (1 prop) (previous)
-
tags/2.0.15 (copied) (copied from sharing-image/trunk)
-
tags/2.0.15/assets/scripts/settings.js (modified) (1 diff)
-
tags/2.0.15/assets/scripts/widget.js (modified) (1 diff)
-
tags/2.0.15/classes/class-generator.php (modified) (5 diffs)
-
tags/2.0.15/classes/class-widget.php (modified) (9 diffs)
-
tags/2.0.15/readme.txt (modified) (2 diffs)
-
tags/2.0.15/sharing-image.php (modified) (2 diffs)
-
tags/2.0.15/vendor/autoload.php (modified) (1 diff)
-
tags/2.0.15/vendor/composer/ClassLoader.php (modified) (4 diffs)
-
tags/2.0.15/vendor/composer/InstalledVersions.php (modified) (11 diffs)
-
tags/2.0.15/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/2.0.15/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/2.0.15/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.0.15/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.0.15/vendor/composer/installed.json (modified) (8 diffs)
-
tags/2.0.15/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/assets/scripts/settings.js (modified) (1 diff)
-
trunk/assets/scripts/widget.js (modified) (1 diff)
-
trunk/classes/class-generator.php (modified) (5 diffs)
-
trunk/classes/class-widget.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sharing-image.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (4 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (11 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (8 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharing-image/assets/banner-1544x500.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/assets/screenshot-3.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
sharing-image/tags/2.0.15/assets/scripts/settings.js
r2846409 r2893725 3525 3525 append: picker 3526 3526 }); 3527 builders.element('input', { 3528 attributes: { 3529 type: 'hidden', 3530 name: 'sharing_image_screen', 3531 value: picker_params.screen 3532 }, 3533 append: picker 3534 }); 3527 3535 } 3528 3536 /** -
sharing-image/tags/2.0.15/assets/scripts/widget.js
r2846409 r2893725 3525 3525 append: picker 3526 3526 }); 3527 builders.element('input', { 3528 attributes: { 3529 type: 'hidden', 3530 name: 'sharing_image_screen', 3531 value: picker_params.screen 3532 }, 3533 append: picker 3534 }); 3527 3535 } 3528 3536 /** -
sharing-image/tags/2.0.15/classes/class-generator.php
r2846409 r2893725 80 80 * Compose image using picker data. 81 81 * 82 * @param array $picker Picker data from metabox. 82 * @param array $picker Picker data from metabox. 83 * @param int $screen_id Post or term ID from admin screen. 83 84 * 84 85 * @return array|WP_Error Poster url, width and height or WP_Error on failure. 85 86 */ 86 public function compose( $picker ) {87 public function compose( $picker, $screen_id ) { 87 88 if ( ! isset( $picker['template'] ) ) { 88 89 return new WP_Error( 'validate', esc_html__( 'Template id cannot be empty', 'sharing-image' ) ); … … 104 105 } 105 106 106 $template = $this->prepare_template( $templates[ $id ], $fieldset );107 $template = $this->prepare_template( $templates[ $id ], $fieldset, null, $screen_id ); 107 108 108 109 if ( ! $this->check_required( $template ) ) { … … 221 222 } 222 223 223 $template = $this->prepare_template( $template, $fieldset );224 $template = $this->prepare_template( $template, $fieldset, null, $post_id ); 224 225 225 226 return $template; … … 230 231 * Used to fill fieldset texts and background image. 231 232 * 232 * @param array $template List of template data. 233 * @param array $fieldset Optional. Fieldset data from picker. 234 * @param integer $index Optional. Template index from editor. 233 * @param array $template List of template data. 234 * @param array $fieldset Optional. Fieldset data from picker. 235 * @param integer $index Optional. Template index from editor. 236 * @param integer $screen_id Optional. Post or term ID from admin screen. 235 237 * 236 238 * @return array List of template data. 237 239 */ 238 private function prepare_template( $template, $fieldset = array(), $index = null ) {240 private function prepare_template( $template, $fieldset = array(), $index = null, $screen_id = 0 ) { 239 241 $layers = array(); 240 242 … … 284 286 * Filters template before generation. 285 287 * 286 * @param array $template List of template data. 287 * @param array $fieldset Fieldset data from picker. 288 * @param integer $index Template index from editor. 288 * @param array $template List of template data. 289 * @param array $fieldset Fieldset data from picker. 290 * @param integer $index Template index from editor. 291 * @param integer $screen_id Post or term ID from admin screen. 289 292 */ 290 return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index );293 return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index, $screen_id ); 291 294 } 292 295 -
sharing-image/tags/2.0.15/classes/class-widget.php
r2761424 r2893725 75 75 76 76 // Handle actions on post save. 77 add_action( 'save_post', array( $this, 'save_metabox' ), 10 , 2);77 add_action( 'save_post', array( $this, 'save_metabox' ), 10 ); 78 78 79 79 // Add required assets and objects. … … 138 138 $meta = get_post_meta( $post->ID, self::WIDGET_META, true ); 139 139 140 $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox' ) );140 $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox', $post->ID ) ); 141 141 $this->enqueue_styles(); 142 142 } … … 169 169 $meta = get_term_meta( $term_id, self::WIDGET_META, true ); 170 170 171 $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy' ) );171 $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy', $term_id ) ); 172 172 $this->enqueue_styles(); 173 173 } … … 176 176 * Save metabox data. 177 177 * 178 * @param int $post_id Post ID. 179 * @param WP_Post $post Post object. 180 */ 181 public function save_metabox( $post_id, $post ) { 178 * @param int $post_id Post ID. 179 */ 180 public function save_metabox( $post_id ) { 182 181 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 183 182 return; … … 297 296 } 298 297 298 $screen_id = 0; 299 300 if ( ! empty( $_POST['sharing_image_screen'] ) ) { 301 $screen_id = absint( wp_unslash( $_POST['sharing_image_screen'] ) ); 302 } 303 299 304 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput 300 305 $picker = $this->sanitize_picker( wp_unslash( $_POST['sharing_image_picker'] ) ); 301 306 302 307 // Compose new poster data. 303 $source = ( new Generator() )->compose( $picker );308 $source = ( new Generator() )->compose( $picker, $screen_id ); 304 309 305 310 if ( is_wp_error( $source ) ) { … … 329 334 $meta = get_post_meta( $post_id, self::WIDGET_META, true ); 330 335 331 wp_send_json_success( $this->create_script_object( $meta, 'metabox' ) );336 wp_send_json_success( $this->create_script_object( $meta, 'metabox', $post_id ) ); 332 337 } 333 338 … … 419 424 * Enqueue widget scripts. 420 425 * 421 * @param array $ objectWidget data object.422 */ 423 private function enqueue_scripts( $ object) {426 * @param array $data Widget data object. 427 */ 428 private function enqueue_scripts( $data ) { 424 429 wp_enqueue_media(); 425 430 … … 435 440 436 441 // Add widget script object. 437 wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $ object);442 wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $data ); 438 443 } 439 444 … … 513 518 * Create script object to inject with widget. 514 519 * 515 * @param array $meta Term or Post meta data. 516 * @param string $context Widget context. For example: metabox or taxonomy. 517 520 * @param array $meta Term or Post meta data. 521 * @param string $context Widget context. For example: metabox or taxonomy. 522 * @param int $screen_id Post or taxonomy screen ID. 523 * 518 524 * @return array Filtered widget script object. 519 525 */ 520 private function create_script_object( $meta, $context ) {526 private function create_script_object( $meta, $context, $screen_id ) { 521 527 $object = array( 522 528 'meta' => $meta, 523 529 'nonce' => wp_create_nonce( basename( __FILE__ ) ), 524 530 'context' => $context, 531 'screen' => $screen_id, 525 532 526 533 'links' => array( -
sharing-image/tags/2.0.15/readme.txt
r2846409 r2893725 4 4 Tags: social image, sharing image, og image, twitter image, facebook, twitter, telegram, vk.com, ok.ru 5 5 Requires at least: 5.3 6 Tested up to: 6. 17 Stable tag: 2.0.1 46 Tested up to: 6.2 7 Stable tag: 2.0.15 8 8 Requires PHP: 5.5 9 9 License: GPLv2 or later … … 30 30 31 31 == Changelog == 32 33 = 2.0.15 = 34 * Add optional $screen_id parameter to `sharing_image_prepare_template` filter 35 * Update packages 32 36 33 37 = 2.0.14 = -
sharing-image/tags/2.0.15/sharing-image.php
r2846409 r2893725 3 3 * Plugin Name: Sharing Image 4 4 * Description: Create sharing image for Facebook, VK.com, Telegram and other social networks 5 * Version: 2.0.1 45 * Version: 2.0.15 6 6 * Requires at least: 5.3 7 7 * Requires PHP: 5.5 … … 25 25 * Plugin version. 26 26 */ 27 define( 'SHARING_IMAGE_VERSION', '2.0.1 4' );27 define( 'SHARING_IMAGE_VERSION', '2.0.15' ); 28 28 29 29 /** -
sharing-image/tags/2.0.15/vendor/autoload.php
r2708218 r2893725 4 4 5 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); 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_ERROR 20 ); 8 21 } 9 22 -
sharing-image/tags/2.0.15/vendor/composer/ClassLoader.php
r2708218 r2893725 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 563 564 /** 565 * @return void 566 */ 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 $file 579 * @return void 580 */ 581 self::$includeFile = \Closure::bind(static function($file) { 582 include $file; 583 }, null, null); 584 } 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
sharing-image/tags/2.0.15/vendor/composer/InstalledVersions.php
r2708218 r2893725 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, 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 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, 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 43 */ 44 44 private static $installedByVendor = array(); … … 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 247 */ 248 248 public static function getRootPackage() … … 258 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 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, 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 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, 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 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, 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 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, 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 317 */ 318 318 private static function getInstalled() … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
sharing-image/tags/2.0.15/vendor/composer/autoload_classmap.php
r2708218 r2893725 8 8 return array( 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 'PHPCSUtils\\AbstractSniffs\\AbstractArrayDeclarationSniff' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php', 11 'PHPCSUtils\\BackCompat\\BCFile' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php', 12 'PHPCSUtils\\BackCompat\\BCTokens' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php', 13 'PHPCSUtils\\BackCompat\\Helper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php', 14 'PHPCSUtils\\Exceptions\\InvalidTokenArray' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php', 15 'PHPCSUtils\\Exceptions\\TestFileNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php', 16 'PHPCSUtils\\Exceptions\\TestMarkerNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php', 17 'PHPCSUtils\\Exceptions\\TestTargetNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php', 18 'PHPCSUtils\\Fixers\\SpacesFixer' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php', 19 'PHPCSUtils\\Internal\\Cache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php', 20 'PHPCSUtils\\Internal\\IsShortArrayOrList' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php', 21 'PHPCSUtils\\Internal\\IsShortArrayOrListWithCache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php', 22 'PHPCSUtils\\Internal\\NoFileCache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php', 23 'PHPCSUtils\\Internal\\StableCollections' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php', 24 'PHPCSUtils\\TestUtils\\UtilityMethodTestCase' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php', 25 'PHPCSUtils\\Tokens\\Collections' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php', 26 'PHPCSUtils\\Tokens\\TokenHelper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php', 27 'PHPCSUtils\\Utils\\Arrays' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php', 28 'PHPCSUtils\\Utils\\Conditions' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php', 29 'PHPCSUtils\\Utils\\Context' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php', 30 'PHPCSUtils\\Utils\\ControlStructures' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php', 31 'PHPCSUtils\\Utils\\FunctionDeclarations' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php', 32 'PHPCSUtils\\Utils\\GetTokensAsString' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php', 33 'PHPCSUtils\\Utils\\Lists' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php', 34 'PHPCSUtils\\Utils\\MessageHelper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php', 35 'PHPCSUtils\\Utils\\Namespaces' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php', 36 'PHPCSUtils\\Utils\\NamingConventions' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php', 37 'PHPCSUtils\\Utils\\Numbers' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php', 38 'PHPCSUtils\\Utils\\ObjectDeclarations' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php', 39 'PHPCSUtils\\Utils\\Operators' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php', 40 'PHPCSUtils\\Utils\\Orthography' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php', 41 'PHPCSUtils\\Utils\\Parentheses' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php', 42 'PHPCSUtils\\Utils\\PassedParameters' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php', 43 'PHPCSUtils\\Utils\\Scopes' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php', 44 'PHPCSUtils\\Utils\\TextStrings' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php', 45 'PHPCSUtils\\Utils\\UseStatements' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php', 46 'PHPCSUtils\\Utils\\Variables' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php', 10 47 'Sharing_Image\\Generator' => $baseDir . '/classes/class-generator.php', 11 48 'Sharing_Image\\Meta' => $baseDir . '/classes/class-meta.php', -
sharing-image/tags/2.0.15/vendor/composer/autoload_psr4.php
r2708218 r2893725 7 7 8 8 return array( 9 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),9 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'), 10 10 ); -
sharing-image/tags/2.0.15/vendor/composer/autoload_real.php
r2708218 r2893725 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInitae03b17d76d2c2dd61a64839b07285bc::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequireae03b17d76d2c2dd61a64839b07285bc($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitae03b17d76d2c2dd61a64839b07285bc::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */50 function composerRequireae03b17d76d2c2dd61a64839b07285bc($fileIdentifier, $file)51 {52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;54 55 require $file;56 }57 } -
sharing-image/tags/2.0.15/vendor/composer/autoload_static.php
r2624462 r2893725 12 12 13 13 public static $prefixLengthsPsr4 = array ( 14 ' D' =>14 'P' => 15 15 array ( 16 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,16 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57, 17 17 ), 18 18 ); 19 19 20 20 public static $prefixDirsPsr4 = array ( 21 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>21 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 22 22 array ( 23 23 0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src', … … 27 27 public static $classMap = array ( 28 28 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 29 'PHPCSUtils\\AbstractSniffs\\AbstractArrayDeclarationSniff' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php', 30 'PHPCSUtils\\BackCompat\\BCFile' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php', 31 'PHPCSUtils\\BackCompat\\BCTokens' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php', 32 'PHPCSUtils\\BackCompat\\Helper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php', 33 'PHPCSUtils\\Exceptions\\InvalidTokenArray' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php', 34 'PHPCSUtils\\Exceptions\\TestFileNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php', 35 'PHPCSUtils\\Exceptions\\TestMarkerNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php', 36 'PHPCSUtils\\Exceptions\\TestTargetNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php', 37 'PHPCSUtils\\Fixers\\SpacesFixer' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php', 38 'PHPCSUtils\\Internal\\Cache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php', 39 'PHPCSUtils\\Internal\\IsShortArrayOrList' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php', 40 'PHPCSUtils\\Internal\\IsShortArrayOrListWithCache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php', 41 'PHPCSUtils\\Internal\\NoFileCache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php', 42 'PHPCSUtils\\Internal\\StableCollections' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php', 43 'PHPCSUtils\\TestUtils\\UtilityMethodTestCase' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php', 44 'PHPCSUtils\\Tokens\\Collections' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php', 45 'PHPCSUtils\\Tokens\\TokenHelper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php', 46 'PHPCSUtils\\Utils\\Arrays' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php', 47 'PHPCSUtils\\Utils\\Conditions' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php', 48 'PHPCSUtils\\Utils\\Context' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php', 49 'PHPCSUtils\\Utils\\ControlStructures' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php', 50 'PHPCSUtils\\Utils\\FunctionDeclarations' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php', 51 'PHPCSUtils\\Utils\\GetTokensAsString' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php', 52 'PHPCSUtils\\Utils\\Lists' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php', 53 'PHPCSUtils\\Utils\\MessageHelper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php', 54 'PHPCSUtils\\Utils\\Namespaces' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php', 55 'PHPCSUtils\\Utils\\NamingConventions' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php', 56 'PHPCSUtils\\Utils\\Numbers' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php', 57 'PHPCSUtils\\Utils\\ObjectDeclarations' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php', 58 'PHPCSUtils\\Utils\\Operators' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php', 59 'PHPCSUtils\\Utils\\Orthography' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php', 60 'PHPCSUtils\\Utils\\Parentheses' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php', 61 'PHPCSUtils\\Utils\\PassedParameters' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php', 62 'PHPCSUtils\\Utils\\Scopes' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php', 63 'PHPCSUtils\\Utils\\TextStrings' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php', 64 'PHPCSUtils\\Utils\\UseStatements' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php', 65 'PHPCSUtils\\Utils\\Variables' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php', 29 66 'Sharing_Image\\Generator' => __DIR__ . '/../..' . '/classes/class-generator.php', 30 67 'Sharing_Image\\Meta' => __DIR__ . '/../..' . '/classes/class-meta.php', -
sharing-image/tags/2.0.15/vendor/composer/installed.json
r2749311 r2893725 60 60 { 61 61 "name": "dealerdirect/phpcodesniffer-composer-installer", 62 "version": "v 0.7.2",63 "version_normalized": " 0.7.2.0",64 "source": { 65 "type": "git", 66 "url": "https://github.com/ Dealerdirect/phpcodesniffer-composer-installer.git",67 "reference": " 1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/ Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",72 "reference": " 1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",62 "version": "v1.0.0", 63 "version_normalized": "1.0.0.0", 64 "source": { 65 "type": "git", 66 "url": "https://github.com/PHPCSStandards/composer-installer.git", 67 "reference": "4be43904336affa5c2f70744a348312336afd0da" 68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", 72 "reference": "4be43904336affa5c2f70744a348312336afd0da", 73 73 "shasum": "" 74 74 }, 75 75 "require": { 76 76 "composer-plugin-api": "^1.0 || ^2.0", 77 "php": ">=5. 3",77 "php": ">=5.4", 78 78 "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" 79 79 }, 80 80 "require-dev": { 81 81 "composer/composer": "*", 82 "ext-json": "*", 83 "ext-zip": "*", 82 84 "php-parallel-lint/php-parallel-lint": "^1.3.1", 83 "phpcompatibility/php-compatibility": "^9.0" 84 }, 85 "time": "2022-02-04T12:51:07+00:00", 85 "phpcompatibility/php-compatibility": "^9.0", 86 "yoast/phpunit-polyfills": "^1.0" 87 }, 88 "time": "2023-01-05T11:28:13+00:00", 86 89 "type": "composer-plugin", 87 90 "extra": { 88 "class": " Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"91 "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 89 92 }, 90 93 "installation-source": "dist", 91 94 "autoload": { 92 95 "psr-4": { 93 " Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"96 "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 94 97 } 95 98 }, … … 107 110 { 108 111 "name": "Contributors", 109 "homepage": "https://github.com/ Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"112 "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" 110 113 } 111 114 ], … … 131 134 ], 132 135 "support": { 133 "issues": "https://github.com/ dealerdirect/phpcodesniffer-composer-installer/issues",134 "source": "https://github.com/ dealerdirect/phpcodesniffer-composer-installer"136 "issues": "https://github.com/PHPCSStandards/composer-installer/issues", 137 "source": "https://github.com/PHPCSStandards/composer-installer" 135 138 }, 136 139 "install-path": "../dealerdirect/phpcodesniffer-composer-installer" 137 140 }, 138 141 { 142 "name": "phpcsstandards/phpcsextra", 143 "version": "1.0.3", 144 "version_normalized": "1.0.3.0", 145 "source": { 146 "type": "git", 147 "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", 148 "reference": "7029c051cd310e2e17c6caea3429bfbe290c41ae" 149 }, 150 "dist": { 151 "type": "zip", 152 "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/7029c051cd310e2e17c6caea3429bfbe290c41ae", 153 "reference": "7029c051cd310e2e17c6caea3429bfbe290c41ae", 154 "shasum": "" 155 }, 156 "require": { 157 "php": ">=5.4", 158 "phpcsstandards/phpcsutils": "^1.0", 159 "squizlabs/php_codesniffer": "^3.7.1" 160 }, 161 "require-dev": { 162 "php-parallel-lint/php-console-highlighter": "^1.0", 163 "php-parallel-lint/php-parallel-lint": "^1.3.2", 164 "phpcsstandards/phpcsdevcs": "^1.1.5", 165 "phpcsstandards/phpcsdevtools": "^1.2.0", 166 "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" 167 }, 168 "time": "2023-03-28T17:48:27+00:00", 169 "type": "phpcodesniffer-standard", 170 "extra": { 171 "branch-alias": { 172 "dev-stable": "1.x-dev", 173 "dev-develop": "1.x-dev" 174 } 175 }, 176 "installation-source": "dist", 177 "notification-url": "https://packagist.org/downloads/", 178 "license": [ 179 "LGPL-3.0-or-later" 180 ], 181 "authors": [ 182 { 183 "name": "Juliette Reinders Folmer", 184 "homepage": "https://github.com/jrfnl", 185 "role": "lead" 186 }, 187 { 188 "name": "Contributors", 189 "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" 190 } 191 ], 192 "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", 193 "keywords": [ 194 "PHP_CodeSniffer", 195 "phpcbf", 196 "phpcodesniffer-standard", 197 "phpcs", 198 "standards", 199 "static analysis" 200 ], 201 "support": { 202 "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", 203 "source": "https://github.com/PHPCSStandards/PHPCSExtra" 204 }, 205 "install-path": "../phpcsstandards/phpcsextra" 206 }, 207 { 208 "name": "phpcsstandards/phpcsutils", 209 "version": "1.0.2", 210 "version_normalized": "1.0.2.0", 211 "source": { 212 "type": "git", 213 "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", 214 "reference": "e74812ac026d9f9f18a936d29880b2db3211f89d" 215 }, 216 "dist": { 217 "type": "zip", 218 "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/e74812ac026d9f9f18a936d29880b2db3211f89d", 219 "reference": "e74812ac026d9f9f18a936d29880b2db3211f89d", 220 "shasum": "" 221 }, 222 "require": { 223 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", 224 "php": ">=5.4", 225 "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" 226 }, 227 "require-dev": { 228 "ext-filter": "*", 229 "php-parallel-lint/php-console-highlighter": "^1.0", 230 "php-parallel-lint/php-parallel-lint": "^1.3.2", 231 "phpcsstandards/phpcsdevcs": "^1.1.3", 232 "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3", 233 "yoast/phpunit-polyfills": "^1.0.1" 234 }, 235 "time": "2023-03-28T16:57:37+00:00", 236 "type": "phpcodesniffer-standard", 237 "extra": { 238 "branch-alias": { 239 "dev-stable": "1.x-dev", 240 "dev-develop": "1.x-dev" 241 } 242 }, 243 "installation-source": "dist", 244 "autoload": { 245 "classmap": [ 246 "PHPCSUtils/" 247 ] 248 }, 249 "notification-url": "https://packagist.org/downloads/", 250 "license": [ 251 "LGPL-3.0-or-later" 252 ], 253 "authors": [ 254 { 255 "name": "Juliette Reinders Folmer", 256 "homepage": "https://github.com/jrfnl", 257 "role": "lead" 258 }, 259 { 260 "name": "Contributors", 261 "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" 262 } 263 ], 264 "description": "A suite of utility functions for use with PHP_CodeSniffer", 265 "homepage": "https://phpcsutils.com/", 266 "keywords": [ 267 "PHP_CodeSniffer", 268 "phpcbf", 269 "phpcodesniffer-standard", 270 "phpcs", 271 "phpcs3", 272 "standards", 273 "static analysis", 274 "tokens", 275 "utility" 276 ], 277 "support": { 278 "docs": "https://phpcsutils.com/", 279 "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", 280 "source": "https://github.com/PHPCSStandards/PHPCSUtils" 281 }, 282 "install-path": "../phpcsstandards/phpcsutils" 283 }, 284 { 139 285 "name": "squizlabs/php_codesniffer", 140 "version": "3.7. 1",141 "version_normalized": "3.7. 1.0",286 "version": "3.7.2", 287 "version_normalized": "3.7.2.0", 142 288 "source": { 143 289 "type": "git", 144 290 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 145 "reference": " 1359e176e9307e906dc3d890bcc9603ff6d90619"146 }, 147 "dist": { 148 "type": "zip", 149 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ 1359e176e9307e906dc3d890bcc9603ff6d90619",150 "reference": " 1359e176e9307e906dc3d890bcc9603ff6d90619",291 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" 292 }, 293 "dist": { 294 "type": "zip", 295 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", 296 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", 151 297 "shasum": "" 152 298 }, … … 160 306 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 161 307 }, 162 "time": "202 2-06-18T07:21:10+00:00",308 "time": "2023-02-22T23:07:41+00:00", 163 309 "bin": [ 164 310 "bin/phpcs", … … 186 332 "keywords": [ 187 333 "phpcs", 188 "standards" 334 "standards", 335 "static analysis" 189 336 ], 190 337 "support": { … … 197 344 { 198 345 "name": "wp-coding-standards/wpcs", 199 "version": " 2.3.0",200 "version_normalized": " 2.3.0.0",346 "version": "dev-develop", 347 "version_normalized": "dev-develop", 201 348 "source": { 202 349 "type": "git", 203 350 "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", 204 "reference": "7da1894633f168fe244afc6de00d141f27517b62" 205 }, 206 "dist": { 207 "type": "zip", 208 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", 209 "reference": "7da1894633f168fe244afc6de00d141f27517b62", 210 "shasum": "" 211 }, 212 "require": { 351 "reference": "2e76b2061246fbee2ea8461c57b67b6b0c010223" 352 }, 353 "dist": { 354 "type": "zip", 355 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/2e76b2061246fbee2ea8461c57b67b6b0c010223", 356 "reference": "2e76b2061246fbee2ea8461c57b67b6b0c010223", 357 "shasum": "" 358 }, 359 "require": { 360 "ext-filter": "*", 213 361 "php": ">=5.4", 214 "squizlabs/php_codesniffer": "^3.3.1" 215 }, 216 "require-dev": { 217 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", 362 "phpcsstandards/phpcsextra": "^1.0", 363 "phpcsstandards/phpcsutils": "^1.0", 364 "squizlabs/php_codesniffer": "^3.7.2" 365 }, 366 "require-dev": { 367 "php-parallel-lint/php-console-highlighter": "^1.0.0", 368 "php-parallel-lint/php-parallel-lint": "^1.3.2", 218 369 "phpcompatibility/php-compatibility": "^9.0", 219 "phpcsstandards/phpcsdevtools": "^1. 0",370 "phpcsstandards/phpcsdevtools": "^1.2.0", 220 371 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 221 372 }, 222 373 "suggest": { 223 "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 224 }, 225 "time": "2020-05-13T23:57:56+00:00", 374 "ext-mbstring": "For improved results" 375 }, 376 "time": "2023-03-27T21:12:05+00:00", 377 "default-branch": true, 226 378 "type": "phpcodesniffer-standard", 227 379 "installation-source": "dist", … … 240 392 "phpcs", 241 393 "standards", 394 "static analysis", 242 395 "wordpress" 243 396 ], … … 253 406 "dev-package-names": [ 254 407 "dealerdirect/phpcodesniffer-composer-installer", 408 "phpcsstandards/phpcsextra", 409 "phpcsstandards/phpcsutils", 255 410 "squizlabs/php_codesniffer", 256 411 "wp-coding-standards/wpcs" -
sharing-image/tags/2.0.15/vendor/composer/installed.php
r2749311 r2893725 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => 'dev-develop', 4 'version' => 'dev-develop', 3 'name' => 'antonlukin/sharing-image', 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '632800cd4f8d4cf735e5326d0e78f856b7c6a581', 5 7 'type' => 'library', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',9 'name' => 'antonlukin/sharing-image',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => '5.7', 15 15 'version' => '5.7.0.0', 16 'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947', 16 17 'type' => 'library', 17 18 'install_path' => __DIR__ . '/../antonlukin/poster-editor', 18 19 'aliases' => array(), 19 'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',20 20 'dev_requirement' => false, 21 21 ), 22 22 'antonlukin/sharing-image' => array( 23 'pretty_version' => 'dev-develop', 24 'version' => 'dev-develop', 23 'pretty_version' => 'dev-master', 24 'version' => 'dev-master', 25 'reference' => '632800cd4f8d4cf735e5326d0e78f856b7c6a581', 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../../', 27 28 'aliases' => array(), 28 'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',29 29 'dev_requirement' => false, 30 30 ), 31 31 'dealerdirect/phpcodesniffer-composer-installer' => array( 32 'pretty_version' => 'v0.7.2', 33 'version' => '0.7.2.0', 32 'pretty_version' => 'v1.0.0', 33 'version' => '1.0.0.0', 34 'reference' => '4be43904336affa5c2f70744a348312336afd0da', 34 35 'type' => 'composer-plugin', 35 36 'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer', 36 37 'aliases' => array(), 37 'reference' => '1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db', 38 'dev_requirement' => true, 39 ), 40 'phpcsstandards/phpcsextra' => array( 41 'pretty_version' => '1.0.3', 42 'version' => '1.0.3.0', 43 'reference' => '7029c051cd310e2e17c6caea3429bfbe290c41ae', 44 'type' => 'phpcodesniffer-standard', 45 'install_path' => __DIR__ . '/../phpcsstandards/phpcsextra', 46 'aliases' => array(), 47 'dev_requirement' => true, 48 ), 49 'phpcsstandards/phpcsutils' => array( 50 'pretty_version' => '1.0.2', 51 'version' => '1.0.2.0', 52 'reference' => 'e74812ac026d9f9f18a936d29880b2db3211f89d', 53 'type' => 'phpcodesniffer-standard', 54 'install_path' => __DIR__ . '/../phpcsstandards/phpcsutils', 55 'aliases' => array(), 38 56 'dev_requirement' => true, 39 57 ), 40 58 'squizlabs/php_codesniffer' => array( 41 'pretty_version' => '3.7.1', 42 'version' => '3.7.1.0', 59 'pretty_version' => '3.7.2', 60 'version' => '3.7.2.0', 61 'reference' => 'ed8e00df0a83aa96acf703f8c2979ff33341f879', 43 62 'type' => 'library', 44 63 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', 45 64 'aliases' => array(), 46 'reference' => '1359e176e9307e906dc3d890bcc9603ff6d90619',47 65 'dev_requirement' => true, 48 66 ), 49 67 'wp-coding-standards/wpcs' => array( 50 'pretty_version' => '2.3.0', 51 'version' => '2.3.0.0', 68 'pretty_version' => 'dev-develop', 69 'version' => 'dev-develop', 70 'reference' => '2e76b2061246fbee2ea8461c57b67b6b0c010223', 52 71 'type' => 'phpcodesniffer-standard', 53 72 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs', 54 'aliases' => array(), 55 'reference' => '7da1894633f168fe244afc6de00d141f27517b62', 73 'aliases' => array( 74 0 => '9999999-dev', 75 ), 56 76 'dev_requirement' => true, 57 77 ), -
sharing-image/trunk/assets/scripts/settings.js
r2846409 r2893725 3525 3525 append: picker 3526 3526 }); 3527 builders.element('input', { 3528 attributes: { 3529 type: 'hidden', 3530 name: 'sharing_image_screen', 3531 value: picker_params.screen 3532 }, 3533 append: picker 3534 }); 3527 3535 } 3528 3536 /** -
sharing-image/trunk/assets/scripts/widget.js
r2846409 r2893725 3525 3525 append: picker 3526 3526 }); 3527 builders.element('input', { 3528 attributes: { 3529 type: 'hidden', 3530 name: 'sharing_image_screen', 3531 value: picker_params.screen 3532 }, 3533 append: picker 3534 }); 3527 3535 } 3528 3536 /** -
sharing-image/trunk/classes/class-generator.php
r2846409 r2893725 80 80 * Compose image using picker data. 81 81 * 82 * @param array $picker Picker data from metabox. 82 * @param array $picker Picker data from metabox. 83 * @param int $screen_id Post or term ID from admin screen. 83 84 * 84 85 * @return array|WP_Error Poster url, width and height or WP_Error on failure. 85 86 */ 86 public function compose( $picker ) {87 public function compose( $picker, $screen_id ) { 87 88 if ( ! isset( $picker['template'] ) ) { 88 89 return new WP_Error( 'validate', esc_html__( 'Template id cannot be empty', 'sharing-image' ) ); … … 104 105 } 105 106 106 $template = $this->prepare_template( $templates[ $id ], $fieldset );107 $template = $this->prepare_template( $templates[ $id ], $fieldset, null, $screen_id ); 107 108 108 109 if ( ! $this->check_required( $template ) ) { … … 221 222 } 222 223 223 $template = $this->prepare_template( $template, $fieldset );224 $template = $this->prepare_template( $template, $fieldset, null, $post_id ); 224 225 225 226 return $template; … … 230 231 * Used to fill fieldset texts and background image. 231 232 * 232 * @param array $template List of template data. 233 * @param array $fieldset Optional. Fieldset data from picker. 234 * @param integer $index Optional. Template index from editor. 233 * @param array $template List of template data. 234 * @param array $fieldset Optional. Fieldset data from picker. 235 * @param integer $index Optional. Template index from editor. 236 * @param integer $screen_id Optional. Post or term ID from admin screen. 235 237 * 236 238 * @return array List of template data. 237 239 */ 238 private function prepare_template( $template, $fieldset = array(), $index = null ) {240 private function prepare_template( $template, $fieldset = array(), $index = null, $screen_id = 0 ) { 239 241 $layers = array(); 240 242 … … 284 286 * Filters template before generation. 285 287 * 286 * @param array $template List of template data. 287 * @param array $fieldset Fieldset data from picker. 288 * @param integer $index Template index from editor. 288 * @param array $template List of template data. 289 * @param array $fieldset Fieldset data from picker. 290 * @param integer $index Template index from editor. 291 * @param integer $screen_id Post or term ID from admin screen. 289 292 */ 290 return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index );293 return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index, $screen_id ); 291 294 } 292 295 -
sharing-image/trunk/classes/class-widget.php
r2761424 r2893725 75 75 76 76 // Handle actions on post save. 77 add_action( 'save_post', array( $this, 'save_metabox' ), 10 , 2);77 add_action( 'save_post', array( $this, 'save_metabox' ), 10 ); 78 78 79 79 // Add required assets and objects. … … 138 138 $meta = get_post_meta( $post->ID, self::WIDGET_META, true ); 139 139 140 $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox' ) );140 $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox', $post->ID ) ); 141 141 $this->enqueue_styles(); 142 142 } … … 169 169 $meta = get_term_meta( $term_id, self::WIDGET_META, true ); 170 170 171 $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy' ) );171 $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy', $term_id ) ); 172 172 $this->enqueue_styles(); 173 173 } … … 176 176 * Save metabox data. 177 177 * 178 * @param int $post_id Post ID. 179 * @param WP_Post $post Post object. 180 */ 181 public function save_metabox( $post_id, $post ) { 178 * @param int $post_id Post ID. 179 */ 180 public function save_metabox( $post_id ) { 182 181 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 183 182 return; … … 297 296 } 298 297 298 $screen_id = 0; 299 300 if ( ! empty( $_POST['sharing_image_screen'] ) ) { 301 $screen_id = absint( wp_unslash( $_POST['sharing_image_screen'] ) ); 302 } 303 299 304 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput 300 305 $picker = $this->sanitize_picker( wp_unslash( $_POST['sharing_image_picker'] ) ); 301 306 302 307 // Compose new poster data. 303 $source = ( new Generator() )->compose( $picker );308 $source = ( new Generator() )->compose( $picker, $screen_id ); 304 309 305 310 if ( is_wp_error( $source ) ) { … … 329 334 $meta = get_post_meta( $post_id, self::WIDGET_META, true ); 330 335 331 wp_send_json_success( $this->create_script_object( $meta, 'metabox' ) );336 wp_send_json_success( $this->create_script_object( $meta, 'metabox', $post_id ) ); 332 337 } 333 338 … … 419 424 * Enqueue widget scripts. 420 425 * 421 * @param array $ objectWidget data object.422 */ 423 private function enqueue_scripts( $ object) {426 * @param array $data Widget data object. 427 */ 428 private function enqueue_scripts( $data ) { 424 429 wp_enqueue_media(); 425 430 … … 435 440 436 441 // Add widget script object. 437 wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $ object);442 wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $data ); 438 443 } 439 444 … … 513 518 * Create script object to inject with widget. 514 519 * 515 * @param array $meta Term or Post meta data. 516 * @param string $context Widget context. For example: metabox or taxonomy. 517 520 * @param array $meta Term or Post meta data. 521 * @param string $context Widget context. For example: metabox or taxonomy. 522 * @param int $screen_id Post or taxonomy screen ID. 523 * 518 524 * @return array Filtered widget script object. 519 525 */ 520 private function create_script_object( $meta, $context ) {526 private function create_script_object( $meta, $context, $screen_id ) { 521 527 $object = array( 522 528 'meta' => $meta, 523 529 'nonce' => wp_create_nonce( basename( __FILE__ ) ), 524 530 'context' => $context, 531 'screen' => $screen_id, 525 532 526 533 'links' => array( -
sharing-image/trunk/readme.txt
r2846409 r2893725 4 4 Tags: social image, sharing image, og image, twitter image, facebook, twitter, telegram, vk.com, ok.ru 5 5 Requires at least: 5.3 6 Tested up to: 6. 17 Stable tag: 2.0.1 46 Tested up to: 6.2 7 Stable tag: 2.0.15 8 8 Requires PHP: 5.5 9 9 License: GPLv2 or later … … 30 30 31 31 == Changelog == 32 33 = 2.0.15 = 34 * Add optional $screen_id parameter to `sharing_image_prepare_template` filter 35 * Update packages 32 36 33 37 = 2.0.14 = -
sharing-image/trunk/sharing-image.php
r2846409 r2893725 3 3 * Plugin Name: Sharing Image 4 4 * Description: Create sharing image for Facebook, VK.com, Telegram and other social networks 5 * Version: 2.0.1 45 * Version: 2.0.15 6 6 * Requires at least: 5.3 7 7 * Requires PHP: 5.5 … … 25 25 * Plugin version. 26 26 */ 27 define( 'SHARING_IMAGE_VERSION', '2.0.1 4' );27 define( 'SHARING_IMAGE_VERSION', '2.0.15' ); 28 28 29 29 /** -
sharing-image/trunk/vendor/autoload.php
r2708218 r2893725 4 4 5 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); 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_ERROR 20 ); 8 21 } 9 22 -
sharing-image/trunk/vendor/composer/ClassLoader.php
r2708218 r2893725 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 563 564 /** 565 * @return void 566 */ 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 $file 579 * @return void 580 */ 581 self::$includeFile = \Closure::bind(static function($file) { 582 include $file; 583 }, null, null); 584 } 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
sharing-image/trunk/vendor/composer/InstalledVersions.php
r2708218 r2893725 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, 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 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, 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 43 */ 44 44 private static $installedByVendor = array(); … … 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 247 */ 248 248 public static function getRootPackage() … … 258 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 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, 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 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, 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 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, 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 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, 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 317 */ 318 318 private static function getInstalled() … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
sharing-image/trunk/vendor/composer/autoload_classmap.php
r2708218 r2893725 8 8 return array( 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 'PHPCSUtils\\AbstractSniffs\\AbstractArrayDeclarationSniff' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php', 11 'PHPCSUtils\\BackCompat\\BCFile' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php', 12 'PHPCSUtils\\BackCompat\\BCTokens' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php', 13 'PHPCSUtils\\BackCompat\\Helper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php', 14 'PHPCSUtils\\Exceptions\\InvalidTokenArray' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php', 15 'PHPCSUtils\\Exceptions\\TestFileNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php', 16 'PHPCSUtils\\Exceptions\\TestMarkerNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php', 17 'PHPCSUtils\\Exceptions\\TestTargetNotFound' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php', 18 'PHPCSUtils\\Fixers\\SpacesFixer' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php', 19 'PHPCSUtils\\Internal\\Cache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php', 20 'PHPCSUtils\\Internal\\IsShortArrayOrList' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php', 21 'PHPCSUtils\\Internal\\IsShortArrayOrListWithCache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php', 22 'PHPCSUtils\\Internal\\NoFileCache' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php', 23 'PHPCSUtils\\Internal\\StableCollections' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php', 24 'PHPCSUtils\\TestUtils\\UtilityMethodTestCase' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php', 25 'PHPCSUtils\\Tokens\\Collections' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php', 26 'PHPCSUtils\\Tokens\\TokenHelper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php', 27 'PHPCSUtils\\Utils\\Arrays' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php', 28 'PHPCSUtils\\Utils\\Conditions' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php', 29 'PHPCSUtils\\Utils\\Context' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php', 30 'PHPCSUtils\\Utils\\ControlStructures' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php', 31 'PHPCSUtils\\Utils\\FunctionDeclarations' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php', 32 'PHPCSUtils\\Utils\\GetTokensAsString' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php', 33 'PHPCSUtils\\Utils\\Lists' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php', 34 'PHPCSUtils\\Utils\\MessageHelper' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php', 35 'PHPCSUtils\\Utils\\Namespaces' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php', 36 'PHPCSUtils\\Utils\\NamingConventions' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php', 37 'PHPCSUtils\\Utils\\Numbers' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php', 38 'PHPCSUtils\\Utils\\ObjectDeclarations' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php', 39 'PHPCSUtils\\Utils\\Operators' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php', 40 'PHPCSUtils\\Utils\\Orthography' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php', 41 'PHPCSUtils\\Utils\\Parentheses' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php', 42 'PHPCSUtils\\Utils\\PassedParameters' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php', 43 'PHPCSUtils\\Utils\\Scopes' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php', 44 'PHPCSUtils\\Utils\\TextStrings' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php', 45 'PHPCSUtils\\Utils\\UseStatements' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php', 46 'PHPCSUtils\\Utils\\Variables' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php', 10 47 'Sharing_Image\\Generator' => $baseDir . '/classes/class-generator.php', 11 48 'Sharing_Image\\Meta' => $baseDir . '/classes/class-meta.php', -
sharing-image/trunk/vendor/composer/autoload_psr4.php
r2708218 r2893725 7 7 8 8 return array( 9 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),9 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'), 10 10 ); -
sharing-image/trunk/vendor/composer/autoload_real.php
r2708218 r2893725 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInitae03b17d76d2c2dd61a64839b07285bc::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequireae03b17d76d2c2dd61a64839b07285bc($fileIdentifier, $file); 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitae03b17d76d2c2dd61a64839b07285bc::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */50 function composerRequireae03b17d76d2c2dd61a64839b07285bc($fileIdentifier, $file)51 {52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;54 55 require $file;56 }57 } -
sharing-image/trunk/vendor/composer/autoload_static.php
r2624462 r2893725 12 12 13 13 public static $prefixLengthsPsr4 = array ( 14 ' D' =>14 'P' => 15 15 array ( 16 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,16 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57, 17 17 ), 18 18 ); 19 19 20 20 public static $prefixDirsPsr4 = array ( 21 ' Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>21 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 22 22 array ( 23 23 0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src', … … 27 27 public static $classMap = array ( 28 28 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 29 'PHPCSUtils\\AbstractSniffs\\AbstractArrayDeclarationSniff' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php', 30 'PHPCSUtils\\BackCompat\\BCFile' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php', 31 'PHPCSUtils\\BackCompat\\BCTokens' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php', 32 'PHPCSUtils\\BackCompat\\Helper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php', 33 'PHPCSUtils\\Exceptions\\InvalidTokenArray' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php', 34 'PHPCSUtils\\Exceptions\\TestFileNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php', 35 'PHPCSUtils\\Exceptions\\TestMarkerNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php', 36 'PHPCSUtils\\Exceptions\\TestTargetNotFound' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php', 37 'PHPCSUtils\\Fixers\\SpacesFixer' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php', 38 'PHPCSUtils\\Internal\\Cache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php', 39 'PHPCSUtils\\Internal\\IsShortArrayOrList' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php', 40 'PHPCSUtils\\Internal\\IsShortArrayOrListWithCache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php', 41 'PHPCSUtils\\Internal\\NoFileCache' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php', 42 'PHPCSUtils\\Internal\\StableCollections' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php', 43 'PHPCSUtils\\TestUtils\\UtilityMethodTestCase' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php', 44 'PHPCSUtils\\Tokens\\Collections' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php', 45 'PHPCSUtils\\Tokens\\TokenHelper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php', 46 'PHPCSUtils\\Utils\\Arrays' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php', 47 'PHPCSUtils\\Utils\\Conditions' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php', 48 'PHPCSUtils\\Utils\\Context' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php', 49 'PHPCSUtils\\Utils\\ControlStructures' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php', 50 'PHPCSUtils\\Utils\\FunctionDeclarations' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php', 51 'PHPCSUtils\\Utils\\GetTokensAsString' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php', 52 'PHPCSUtils\\Utils\\Lists' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php', 53 'PHPCSUtils\\Utils\\MessageHelper' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php', 54 'PHPCSUtils\\Utils\\Namespaces' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php', 55 'PHPCSUtils\\Utils\\NamingConventions' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php', 56 'PHPCSUtils\\Utils\\Numbers' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php', 57 'PHPCSUtils\\Utils\\ObjectDeclarations' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php', 58 'PHPCSUtils\\Utils\\Operators' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php', 59 'PHPCSUtils\\Utils\\Orthography' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php', 60 'PHPCSUtils\\Utils\\Parentheses' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php', 61 'PHPCSUtils\\Utils\\PassedParameters' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php', 62 'PHPCSUtils\\Utils\\Scopes' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php', 63 'PHPCSUtils\\Utils\\TextStrings' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php', 64 'PHPCSUtils\\Utils\\UseStatements' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php', 65 'PHPCSUtils\\Utils\\Variables' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php', 29 66 'Sharing_Image\\Generator' => __DIR__ . '/../..' . '/classes/class-generator.php', 30 67 'Sharing_Image\\Meta' => __DIR__ . '/../..' . '/classes/class-meta.php', -
sharing-image/trunk/vendor/composer/installed.json
r2749311 r2893725 60 60 { 61 61 "name": "dealerdirect/phpcodesniffer-composer-installer", 62 "version": "v 0.7.2",63 "version_normalized": " 0.7.2.0",64 "source": { 65 "type": "git", 66 "url": "https://github.com/ Dealerdirect/phpcodesniffer-composer-installer.git",67 "reference": " 1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/ Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",72 "reference": " 1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",62 "version": "v1.0.0", 63 "version_normalized": "1.0.0.0", 64 "source": { 65 "type": "git", 66 "url": "https://github.com/PHPCSStandards/composer-installer.git", 67 "reference": "4be43904336affa5c2f70744a348312336afd0da" 68 }, 69 "dist": { 70 "type": "zip", 71 "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", 72 "reference": "4be43904336affa5c2f70744a348312336afd0da", 73 73 "shasum": "" 74 74 }, 75 75 "require": { 76 76 "composer-plugin-api": "^1.0 || ^2.0", 77 "php": ">=5. 3",77 "php": ">=5.4", 78 78 "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" 79 79 }, 80 80 "require-dev": { 81 81 "composer/composer": "*", 82 "ext-json": "*", 83 "ext-zip": "*", 82 84 "php-parallel-lint/php-parallel-lint": "^1.3.1", 83 "phpcompatibility/php-compatibility": "^9.0" 84 }, 85 "time": "2022-02-04T12:51:07+00:00", 85 "phpcompatibility/php-compatibility": "^9.0", 86 "yoast/phpunit-polyfills": "^1.0" 87 }, 88 "time": "2023-01-05T11:28:13+00:00", 86 89 "type": "composer-plugin", 87 90 "extra": { 88 "class": " Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"91 "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 89 92 }, 90 93 "installation-source": "dist", 91 94 "autoload": { 92 95 "psr-4": { 93 " Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"96 "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 94 97 } 95 98 }, … … 107 110 { 108 111 "name": "Contributors", 109 "homepage": "https://github.com/ Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"112 "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" 110 113 } 111 114 ], … … 131 134 ], 132 135 "support": { 133 "issues": "https://github.com/ dealerdirect/phpcodesniffer-composer-installer/issues",134 "source": "https://github.com/ dealerdirect/phpcodesniffer-composer-installer"136 "issues": "https://github.com/PHPCSStandards/composer-installer/issues", 137 "source": "https://github.com/PHPCSStandards/composer-installer" 135 138 }, 136 139 "install-path": "../dealerdirect/phpcodesniffer-composer-installer" 137 140 }, 138 141 { 142 "name": "phpcsstandards/phpcsextra", 143 "version": "1.0.3", 144 "version_normalized": "1.0.3.0", 145 "source": { 146 "type": "git", 147 "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", 148 "reference": "7029c051cd310e2e17c6caea3429bfbe290c41ae" 149 }, 150 "dist": { 151 "type": "zip", 152 "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/7029c051cd310e2e17c6caea3429bfbe290c41ae", 153 "reference": "7029c051cd310e2e17c6caea3429bfbe290c41ae", 154 "shasum": "" 155 }, 156 "require": { 157 "php": ">=5.4", 158 "phpcsstandards/phpcsutils": "^1.0", 159 "squizlabs/php_codesniffer": "^3.7.1" 160 }, 161 "require-dev": { 162 "php-parallel-lint/php-console-highlighter": "^1.0", 163 "php-parallel-lint/php-parallel-lint": "^1.3.2", 164 "phpcsstandards/phpcsdevcs": "^1.1.5", 165 "phpcsstandards/phpcsdevtools": "^1.2.0", 166 "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" 167 }, 168 "time": "2023-03-28T17:48:27+00:00", 169 "type": "phpcodesniffer-standard", 170 "extra": { 171 "branch-alias": { 172 "dev-stable": "1.x-dev", 173 "dev-develop": "1.x-dev" 174 } 175 }, 176 "installation-source": "dist", 177 "notification-url": "https://packagist.org/downloads/", 178 "license": [ 179 "LGPL-3.0-or-later" 180 ], 181 "authors": [ 182 { 183 "name": "Juliette Reinders Folmer", 184 "homepage": "https://github.com/jrfnl", 185 "role": "lead" 186 }, 187 { 188 "name": "Contributors", 189 "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" 190 } 191 ], 192 "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", 193 "keywords": [ 194 "PHP_CodeSniffer", 195 "phpcbf", 196 "phpcodesniffer-standard", 197 "phpcs", 198 "standards", 199 "static analysis" 200 ], 201 "support": { 202 "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", 203 "source": "https://github.com/PHPCSStandards/PHPCSExtra" 204 }, 205 "install-path": "../phpcsstandards/phpcsextra" 206 }, 207 { 208 "name": "phpcsstandards/phpcsutils", 209 "version": "1.0.2", 210 "version_normalized": "1.0.2.0", 211 "source": { 212 "type": "git", 213 "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", 214 "reference": "e74812ac026d9f9f18a936d29880b2db3211f89d" 215 }, 216 "dist": { 217 "type": "zip", 218 "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/e74812ac026d9f9f18a936d29880b2db3211f89d", 219 "reference": "e74812ac026d9f9f18a936d29880b2db3211f89d", 220 "shasum": "" 221 }, 222 "require": { 223 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", 224 "php": ">=5.4", 225 "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" 226 }, 227 "require-dev": { 228 "ext-filter": "*", 229 "php-parallel-lint/php-console-highlighter": "^1.0", 230 "php-parallel-lint/php-parallel-lint": "^1.3.2", 231 "phpcsstandards/phpcsdevcs": "^1.1.3", 232 "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3", 233 "yoast/phpunit-polyfills": "^1.0.1" 234 }, 235 "time": "2023-03-28T16:57:37+00:00", 236 "type": "phpcodesniffer-standard", 237 "extra": { 238 "branch-alias": { 239 "dev-stable": "1.x-dev", 240 "dev-develop": "1.x-dev" 241 } 242 }, 243 "installation-source": "dist", 244 "autoload": { 245 "classmap": [ 246 "PHPCSUtils/" 247 ] 248 }, 249 "notification-url": "https://packagist.org/downloads/", 250 "license": [ 251 "LGPL-3.0-or-later" 252 ], 253 "authors": [ 254 { 255 "name": "Juliette Reinders Folmer", 256 "homepage": "https://github.com/jrfnl", 257 "role": "lead" 258 }, 259 { 260 "name": "Contributors", 261 "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" 262 } 263 ], 264 "description": "A suite of utility functions for use with PHP_CodeSniffer", 265 "homepage": "https://phpcsutils.com/", 266 "keywords": [ 267 "PHP_CodeSniffer", 268 "phpcbf", 269 "phpcodesniffer-standard", 270 "phpcs", 271 "phpcs3", 272 "standards", 273 "static analysis", 274 "tokens", 275 "utility" 276 ], 277 "support": { 278 "docs": "https://phpcsutils.com/", 279 "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", 280 "source": "https://github.com/PHPCSStandards/PHPCSUtils" 281 }, 282 "install-path": "../phpcsstandards/phpcsutils" 283 }, 284 { 139 285 "name": "squizlabs/php_codesniffer", 140 "version": "3.7. 1",141 "version_normalized": "3.7. 1.0",286 "version": "3.7.2", 287 "version_normalized": "3.7.2.0", 142 288 "source": { 143 289 "type": "git", 144 290 "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 145 "reference": " 1359e176e9307e906dc3d890bcc9603ff6d90619"146 }, 147 "dist": { 148 "type": "zip", 149 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ 1359e176e9307e906dc3d890bcc9603ff6d90619",150 "reference": " 1359e176e9307e906dc3d890bcc9603ff6d90619",291 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" 292 }, 293 "dist": { 294 "type": "zip", 295 "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", 296 "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", 151 297 "shasum": "" 152 298 }, … … 160 306 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 161 307 }, 162 "time": "202 2-06-18T07:21:10+00:00",308 "time": "2023-02-22T23:07:41+00:00", 163 309 "bin": [ 164 310 "bin/phpcs", … … 186 332 "keywords": [ 187 333 "phpcs", 188 "standards" 334 "standards", 335 "static analysis" 189 336 ], 190 337 "support": { … … 197 344 { 198 345 "name": "wp-coding-standards/wpcs", 199 "version": " 2.3.0",200 "version_normalized": " 2.3.0.0",346 "version": "dev-develop", 347 "version_normalized": "dev-develop", 201 348 "source": { 202 349 "type": "git", 203 350 "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", 204 "reference": "7da1894633f168fe244afc6de00d141f27517b62" 205 }, 206 "dist": { 207 "type": "zip", 208 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", 209 "reference": "7da1894633f168fe244afc6de00d141f27517b62", 210 "shasum": "" 211 }, 212 "require": { 351 "reference": "2e76b2061246fbee2ea8461c57b67b6b0c010223" 352 }, 353 "dist": { 354 "type": "zip", 355 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/2e76b2061246fbee2ea8461c57b67b6b0c010223", 356 "reference": "2e76b2061246fbee2ea8461c57b67b6b0c010223", 357 "shasum": "" 358 }, 359 "require": { 360 "ext-filter": "*", 213 361 "php": ">=5.4", 214 "squizlabs/php_codesniffer": "^3.3.1" 215 }, 216 "require-dev": { 217 "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", 362 "phpcsstandards/phpcsextra": "^1.0", 363 "phpcsstandards/phpcsutils": "^1.0", 364 "squizlabs/php_codesniffer": "^3.7.2" 365 }, 366 "require-dev": { 367 "php-parallel-lint/php-console-highlighter": "^1.0.0", 368 "php-parallel-lint/php-parallel-lint": "^1.3.2", 218 369 "phpcompatibility/php-compatibility": "^9.0", 219 "phpcsstandards/phpcsdevtools": "^1. 0",370 "phpcsstandards/phpcsdevtools": "^1.2.0", 220 371 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" 221 372 }, 222 373 "suggest": { 223 "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." 224 }, 225 "time": "2020-05-13T23:57:56+00:00", 374 "ext-mbstring": "For improved results" 375 }, 376 "time": "2023-03-27T21:12:05+00:00", 377 "default-branch": true, 226 378 "type": "phpcodesniffer-standard", 227 379 "installation-source": "dist", … … 240 392 "phpcs", 241 393 "standards", 394 "static analysis", 242 395 "wordpress" 243 396 ], … … 253 406 "dev-package-names": [ 254 407 "dealerdirect/phpcodesniffer-composer-installer", 408 "phpcsstandards/phpcsextra", 409 "phpcsstandards/phpcsutils", 255 410 "squizlabs/php_codesniffer", 256 411 "wp-coding-standards/wpcs" -
sharing-image/trunk/vendor/composer/installed.php
r2749311 r2893725 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => 'dev-develop', 4 'version' => 'dev-develop', 3 'name' => 'antonlukin/sharing-image', 4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '632800cd4f8d4cf735e5326d0e78f856b7c6a581', 5 7 'type' => 'library', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',9 'name' => 'antonlukin/sharing-image',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => '5.7', 15 15 'version' => '5.7.0.0', 16 'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947', 16 17 'type' => 'library', 17 18 'install_path' => __DIR__ . '/../antonlukin/poster-editor', 18 19 'aliases' => array(), 19 'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',20 20 'dev_requirement' => false, 21 21 ), 22 22 'antonlukin/sharing-image' => array( 23 'pretty_version' => 'dev-develop', 24 'version' => 'dev-develop', 23 'pretty_version' => 'dev-master', 24 'version' => 'dev-master', 25 'reference' => '632800cd4f8d4cf735e5326d0e78f856b7c6a581', 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../../', 27 28 'aliases' => array(), 28 'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',29 29 'dev_requirement' => false, 30 30 ), 31 31 'dealerdirect/phpcodesniffer-composer-installer' => array( 32 'pretty_version' => 'v0.7.2', 33 'version' => '0.7.2.0', 32 'pretty_version' => 'v1.0.0', 33 'version' => '1.0.0.0', 34 'reference' => '4be43904336affa5c2f70744a348312336afd0da', 34 35 'type' => 'composer-plugin', 35 36 'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer', 36 37 'aliases' => array(), 37 'reference' => '1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db', 38 'dev_requirement' => true, 39 ), 40 'phpcsstandards/phpcsextra' => array( 41 'pretty_version' => '1.0.3', 42 'version' => '1.0.3.0', 43 'reference' => '7029c051cd310e2e17c6caea3429bfbe290c41ae', 44 'type' => 'phpcodesniffer-standard', 45 'install_path' => __DIR__ . '/../phpcsstandards/phpcsextra', 46 'aliases' => array(), 47 'dev_requirement' => true, 48 ), 49 'phpcsstandards/phpcsutils' => array( 50 'pretty_version' => '1.0.2', 51 'version' => '1.0.2.0', 52 'reference' => 'e74812ac026d9f9f18a936d29880b2db3211f89d', 53 'type' => 'phpcodesniffer-standard', 54 'install_path' => __DIR__ . '/../phpcsstandards/phpcsutils', 55 'aliases' => array(), 38 56 'dev_requirement' => true, 39 57 ), 40 58 'squizlabs/php_codesniffer' => array( 41 'pretty_version' => '3.7.1', 42 'version' => '3.7.1.0', 59 'pretty_version' => '3.7.2', 60 'version' => '3.7.2.0', 61 'reference' => 'ed8e00df0a83aa96acf703f8c2979ff33341f879', 43 62 'type' => 'library', 44 63 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', 45 64 'aliases' => array(), 46 'reference' => '1359e176e9307e906dc3d890bcc9603ff6d90619',47 65 'dev_requirement' => true, 48 66 ), 49 67 'wp-coding-standards/wpcs' => array( 50 'pretty_version' => '2.3.0', 51 'version' => '2.3.0.0', 68 'pretty_version' => 'dev-develop', 69 'version' => 'dev-develop', 70 'reference' => '2e76b2061246fbee2ea8461c57b67b6b0c010223', 52 71 'type' => 'phpcodesniffer-standard', 53 72 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs', 54 'aliases' => array(), 55 'reference' => '7da1894633f168fe244afc6de00d141f27517b62', 73 'aliases' => array( 74 0 => '9999999-dev', 75 ), 56 76 'dev_requirement' => true, 57 77 ),
Note: See TracChangeset
for help on using the changeset viewer.