Plugin Directory

Changeset 2893725


Ignore:
Timestamp:
04/04/2023 04:04:44 PM (3 years ago)
Author:
antonlukin
Message:

Update to version 2.0.15 from GitHub

Location:
sharing-image
Files:
37 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sharing-image/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sharing-image/tags/2.0.15/assets/scripts/settings.js

    r2846409 r2893725  
    35253525    append: picker
    35263526  });
     3527  builders.element('input', {
     3528    attributes: {
     3529      type: 'hidden',
     3530      name: 'sharing_image_screen',
     3531      value: picker_params.screen
     3532    },
     3533    append: picker
     3534  });
    35273535}
    35283536/**
  • sharing-image/tags/2.0.15/assets/scripts/widget.js

    r2846409 r2893725  
    35253525    append: picker
    35263526  });
     3527  builders.element('input', {
     3528    attributes: {
     3529      type: 'hidden',
     3530      name: 'sharing_image_screen',
     3531      value: picker_params.screen
     3532    },
     3533    append: picker
     3534  });
    35273535}
    35283536/**
  • sharing-image/tags/2.0.15/classes/class-generator.php

    r2846409 r2893725  
    8080     * Compose image using picker data.
    8181     *
    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.
    8384     *
    8485     * @return array|WP_Error Poster url, width and height or WP_Error on failure.
    8586     */
    86     public function compose( $picker ) {
     87    public function compose( $picker, $screen_id ) {
    8788        if ( ! isset( $picker['template'] ) ) {
    8889            return new WP_Error( 'validate', esc_html__( 'Template id cannot be empty', 'sharing-image' ) );
     
    104105        }
    105106
    106         $template = $this->prepare_template( $templates[ $id ], $fieldset );
     107        $template = $this->prepare_template( $templates[ $id ], $fieldset, null, $screen_id );
    107108
    108109        if ( ! $this->check_required( $template ) ) {
     
    221222        }
    222223
    223         $template = $this->prepare_template( $template, $fieldset );
     224        $template = $this->prepare_template( $template, $fieldset, null, $post_id );
    224225
    225226        return $template;
     
    230231     * Used to fill fieldset texts and background image.
    231232     *
    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.
    235237     *
    236238     * @return array List of template data.
    237239     */
    238     private function prepare_template( $template, $fieldset = array(), $index = null ) {
     240    private function prepare_template( $template, $fieldset = array(), $index = null, $screen_id = 0 ) {
    239241        $layers = array();
    240242
     
    284286         * Filters template before generation.
    285287         *
    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.
    289292         */
    290         return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index );
     293        return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index, $screen_id );
    291294    }
    292295
  • sharing-image/tags/2.0.15/classes/class-widget.php

    r2761424 r2893725  
    7575
    7676        // 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 );
    7878
    7979        // Add required assets and objects.
     
    138138        $meta = get_post_meta( $post->ID, self::WIDGET_META, true );
    139139
    140         $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox' ) );
     140        $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox', $post->ID ) );
    141141        $this->enqueue_styles();
    142142    }
     
    169169        $meta = get_term_meta( $term_id, self::WIDGET_META, true );
    170170
    171         $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy' ) );
     171        $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy', $term_id ) );
    172172        $this->enqueue_styles();
    173173    }
     
    176176     * Save metabox data.
    177177     *
    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 ) {
    182181        if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
    183182            return;
     
    297296        }
    298297
     298        $screen_id = 0;
     299
     300        if ( ! empty( $_POST['sharing_image_screen'] ) ) {
     301            $screen_id = absint( wp_unslash( $_POST['sharing_image_screen'] ) );
     302        }
     303
    299304        // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
    300305        $picker = $this->sanitize_picker( wp_unslash( $_POST['sharing_image_picker'] ) );
    301306
    302307        // Compose new poster data.
    303         $source = ( new Generator() )->compose( $picker );
     308        $source = ( new Generator() )->compose( $picker, $screen_id );
    304309
    305310        if ( is_wp_error( $source ) ) {
     
    329334        $meta = get_post_meta( $post_id, self::WIDGET_META, true );
    330335
    331         wp_send_json_success( $this->create_script_object( $meta, 'metabox' ) );
     336        wp_send_json_success( $this->create_script_object( $meta, 'metabox', $post_id ) );
    332337    }
    333338
     
    419424     * Enqueue widget scripts.
    420425     *
    421      * @param array $object Widget data object.
    422      */
    423     private function enqueue_scripts( $object ) {
     426     * @param array $data Widget data object.
     427     */
     428    private function enqueue_scripts( $data ) {
    424429        wp_enqueue_media();
    425430
     
    435440
    436441        // Add widget script object.
    437         wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $object );
     442        wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $data );
    438443    }
    439444
     
    513518     * Create script object to inject with widget.
    514519     *
    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     *
    518524     * @return array Filtered widget script object.
    519525     */
    520     private function create_script_object( $meta, $context ) {
     526    private function create_script_object( $meta, $context, $screen_id ) {
    521527        $object = array(
    522528            'meta'      => $meta,
    523529            'nonce'     => wp_create_nonce( basename( __FILE__ ) ),
    524530            'context'   => $context,
     531            'screen'    => $screen_id,
    525532
    526533            'links'     => array(
  • sharing-image/tags/2.0.15/readme.txt

    r2846409 r2893725  
    44Tags: social image, sharing image, og image, twitter image, facebook, twitter, telegram, vk.com, ok.ru
    55Requires at least: 5.3
    6 Tested up to: 6.1
    7 Stable tag: 2.0.14
     6Tested up to: 6.2
     7Stable tag: 2.0.15
    88Requires PHP: 5.5
    99License: GPLv2 or later
     
    3030
    3131== Changelog ==
     32
     33= 2.0.15 =
     34* Add optional $screen_id parameter to `sharing_image_prepare_template` filter
     35* Update packages
    3236
    3337= 2.0.14 =
  • sharing-image/tags/2.0.15/sharing-image.php

    r2846409 r2893725  
    33 * Plugin Name:       Sharing Image
    44 * Description:       Create sharing image for Facebook, VK.com, Telegram and other social networks
    5  * Version:           2.0.14
     5 * Version:           2.0.15
    66 * Requires at least: 5.3
    77 * Requires PHP:      5.5
     
    2525 * Plugin version.
    2626 */
    27 define( 'SHARING_IMAGE_VERSION', '2.0.14' );
     27define( 'SHARING_IMAGE_VERSION', '2.0.15' );
    2828
    2929/**
  • sharing-image/tags/2.0.15/vendor/autoload.php

    r2708218 r2893725  
    44
    55if (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    );
    821}
    922
  • sharing-image/tags/2.0.15/vendor/composer/ClassLoader.php

    r2708218 r2893725  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
    109113    }
    110114
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    429434
    430435            return true;
     
    556561        return false;
    557562    }
     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    }
    558585}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • sharing-image/tags/2.0.15/vendor/composer/InstalledVersions.php

    r2708218 r2893725  
    2929    /**
    3030     * @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{}|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @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[]}>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    9999        foreach (self::getInstalled() as $installed) {
    100100            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;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints((string) $constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    244244    /**
    245245     * @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}
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @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.
    259259     * @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[]}>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @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[]}>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    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}>} $data
     306     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @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[]}>}>
    317317     */
    318318    private static function getInstalled()
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } 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;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            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;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • sharing-image/tags/2.0.15/vendor/composer/autoload_classmap.php

    r2708218 r2893725  
    88return array(
    99    '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',
    1047    'Sharing_Image\\Generator' => $baseDir . '/classes/class-generator.php',
    1148    'Sharing_Image\\Meta' => $baseDir . '/classes/class-meta.php',
  • sharing-image/tags/2.0.15/vendor/composer/autoload_psr4.php

    r2708218 r2893725  
    77
    88return 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'),
    1010);
  • sharing-image/tags/2.0.15/vendor/composer/autoload_real.php

    r2708218 r2893725  
    3434        $loader->register(true);
    3535
    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);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    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  
    1212
    1313    public static $prefixLengthsPsr4 = array (
    14         'D' =>
     14        'P' =>
    1515        array (
    16             'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,
     16            'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,
    1717        ),
    1818    );
    1919
    2020    public static $prefixDirsPsr4 = array (
    21         'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
     21        'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
    2222        array (
    2323            0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
     
    2727    public static $classMap = array (
    2828        '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',
    2966        'Sharing_Image\\Generator' => __DIR__ . '/../..' . '/classes/class-generator.php',
    3067        'Sharing_Image\\Meta' => __DIR__ . '/../..' . '/classes/class-meta.php',
  • sharing-image/tags/2.0.15/vendor/composer/installed.json

    r2749311 r2893725  
    6060        {
    6161            "name": "dealerdirect/phpcodesniffer-composer-installer",
    62             "version": "v0.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",
    7373                "shasum": ""
    7474            },
    7575            "require": {
    7676                "composer-plugin-api": "^1.0 || ^2.0",
    77                 "php": ">=5.3",
     77                "php": ">=5.4",
    7878                "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
    7979            },
    8080            "require-dev": {
    8181                "composer/composer": "*",
     82                "ext-json": "*",
     83                "ext-zip": "*",
    8284                "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",
    8689            "type": "composer-plugin",
    8790            "extra": {
    88                 "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
     91                "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
    8992            },
    9093            "installation-source": "dist",
    9194            "autoload": {
    9295                "psr-4": {
    93                     "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
     96                    "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
    9497                }
    9598            },
     
    107110                {
    108111                    "name": "Contributors",
    109                     "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
     112                    "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
    110113                }
    111114            ],
     
    131134            ],
    132135            "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"
    135138            },
    136139            "install-path": "../dealerdirect/phpcodesniffer-composer-installer"
    137140        },
    138141        {
     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        {
    139285            "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",
    142288            "source": {
    143289                "type": "git",
    144290                "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",
    151297                "shasum": ""
    152298            },
     
    160306                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
    161307            },
    162             "time": "2022-06-18T07:21:10+00:00",
     308            "time": "2023-02-22T23:07:41+00:00",
    163309            "bin": [
    164310                "bin/phpcs",
     
    186332            "keywords": [
    187333                "phpcs",
    188                 "standards"
     334                "standards",
     335                "static analysis"
    189336            ],
    190337            "support": {
     
    197344        {
    198345            "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",
    201348            "source": {
    202349                "type": "git",
    203350                "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": "*",
    213361                "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",
    218369                "phpcompatibility/php-compatibility": "^9.0",
    219                 "phpcsstandards/phpcsdevtools": "^1.0",
     370                "phpcsstandards/phpcsdevtools": "^1.2.0",
    220371                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
    221372            },
    222373            "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,
    226378            "type": "phpcodesniffer-standard",
    227379            "installation-source": "dist",
     
    240392                "phpcs",
    241393                "standards",
     394                "static analysis",
    242395                "wordpress"
    243396            ],
     
    253406    "dev-package-names": [
    254407        "dealerdirect/phpcodesniffer-composer-installer",
     408        "phpcsstandards/phpcsextra",
     409        "phpcsstandards/phpcsutils",
    255410        "squizlabs/php_codesniffer",
    256411        "wp-coding-standards/wpcs"
  • sharing-image/tags/2.0.15/vendor/composer/installed.php

    r2749311 r2893725  
    11<?php return array(
    22    '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',
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',
    9         'name' => 'antonlukin/sharing-image',
    1010        'dev' => true,
    1111    ),
     
    1414            'pretty_version' => '5.7',
    1515            'version' => '5.7.0.0',
     16            'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../antonlukin/poster-editor',
    1819            'aliases' => array(),
    19             'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',
    2020            'dev_requirement' => false,
    2121        ),
    2222        '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',
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../../',
    2728            'aliases' => array(),
    28             'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',
    2929            'dev_requirement' => false,
    3030        ),
    3131        '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',
    3435            'type' => 'composer-plugin',
    3536            'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',
    3637            '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(),
    3856            'dev_requirement' => true,
    3957        ),
    4058        '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',
    4362            'type' => 'library',
    4463            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
    4564            'aliases' => array(),
    46             'reference' => '1359e176e9307e906dc3d890bcc9603ff6d90619',
    4765            'dev_requirement' => true,
    4866        ),
    4967        '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',
    5271            'type' => 'phpcodesniffer-standard',
    5372            'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',
    54             'aliases' => array(),
    55             'reference' => '7da1894633f168fe244afc6de00d141f27517b62',
     73            'aliases' => array(
     74                0 => '9999999-dev',
     75            ),
    5676            'dev_requirement' => true,
    5777        ),
  • sharing-image/trunk/assets/scripts/settings.js

    r2846409 r2893725  
    35253525    append: picker
    35263526  });
     3527  builders.element('input', {
     3528    attributes: {
     3529      type: 'hidden',
     3530      name: 'sharing_image_screen',
     3531      value: picker_params.screen
     3532    },
     3533    append: picker
     3534  });
    35273535}
    35283536/**
  • sharing-image/trunk/assets/scripts/widget.js

    r2846409 r2893725  
    35253525    append: picker
    35263526  });
     3527  builders.element('input', {
     3528    attributes: {
     3529      type: 'hidden',
     3530      name: 'sharing_image_screen',
     3531      value: picker_params.screen
     3532    },
     3533    append: picker
     3534  });
    35273535}
    35283536/**
  • sharing-image/trunk/classes/class-generator.php

    r2846409 r2893725  
    8080     * Compose image using picker data.
    8181     *
    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.
    8384     *
    8485     * @return array|WP_Error Poster url, width and height or WP_Error on failure.
    8586     */
    86     public function compose( $picker ) {
     87    public function compose( $picker, $screen_id ) {
    8788        if ( ! isset( $picker['template'] ) ) {
    8889            return new WP_Error( 'validate', esc_html__( 'Template id cannot be empty', 'sharing-image' ) );
     
    104105        }
    105106
    106         $template = $this->prepare_template( $templates[ $id ], $fieldset );
     107        $template = $this->prepare_template( $templates[ $id ], $fieldset, null, $screen_id );
    107108
    108109        if ( ! $this->check_required( $template ) ) {
     
    221222        }
    222223
    223         $template = $this->prepare_template( $template, $fieldset );
     224        $template = $this->prepare_template( $template, $fieldset, null, $post_id );
    224225
    225226        return $template;
     
    230231     * Used to fill fieldset texts and background image.
    231232     *
    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.
    235237     *
    236238     * @return array List of template data.
    237239     */
    238     private function prepare_template( $template, $fieldset = array(), $index = null ) {
     240    private function prepare_template( $template, $fieldset = array(), $index = null, $screen_id = 0 ) {
    239241        $layers = array();
    240242
     
    284286         * Filters template before generation.
    285287         *
    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.
    289292         */
    290         return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index );
     293        return apply_filters( 'sharing_image_prepare_template', $template, $fieldset, $index, $screen_id );
    291294    }
    292295
  • sharing-image/trunk/classes/class-widget.php

    r2761424 r2893725  
    7575
    7676        // 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 );
    7878
    7979        // Add required assets and objects.
     
    138138        $meta = get_post_meta( $post->ID, self::WIDGET_META, true );
    139139
    140         $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox' ) );
     140        $this->enqueue_scripts( $this->create_script_object( $meta, 'metabox', $post->ID ) );
    141141        $this->enqueue_styles();
    142142    }
     
    169169        $meta = get_term_meta( $term_id, self::WIDGET_META, true );
    170170
    171         $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy' ) );
     171        $this->enqueue_scripts( $this->create_script_object( $meta, 'taxonomy', $term_id ) );
    172172        $this->enqueue_styles();
    173173    }
     
    176176     * Save metabox data.
    177177     *
    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 ) {
    182181        if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
    183182            return;
     
    297296        }
    298297
     298        $screen_id = 0;
     299
     300        if ( ! empty( $_POST['sharing_image_screen'] ) ) {
     301            $screen_id = absint( wp_unslash( $_POST['sharing_image_screen'] ) );
     302        }
     303
    299304        // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
    300305        $picker = $this->sanitize_picker( wp_unslash( $_POST['sharing_image_picker'] ) );
    301306
    302307        // Compose new poster data.
    303         $source = ( new Generator() )->compose( $picker );
     308        $source = ( new Generator() )->compose( $picker, $screen_id );
    304309
    305310        if ( is_wp_error( $source ) ) {
     
    329334        $meta = get_post_meta( $post_id, self::WIDGET_META, true );
    330335
    331         wp_send_json_success( $this->create_script_object( $meta, 'metabox' ) );
     336        wp_send_json_success( $this->create_script_object( $meta, 'metabox', $post_id ) );
    332337    }
    333338
     
    419424     * Enqueue widget scripts.
    420425     *
    421      * @param array $object Widget data object.
    422      */
    423     private function enqueue_scripts( $object ) {
     426     * @param array $data Widget data object.
     427     */
     428    private function enqueue_scripts( $data ) {
    424429        wp_enqueue_media();
    425430
     
    435440
    436441        // Add widget script object.
    437         wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $object );
     442        wp_localize_script( 'sharing-image-widget', 'sharingImageWidget', $data );
    438443    }
    439444
     
    513518     * Create script object to inject with widget.
    514519     *
    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     *
    518524     * @return array Filtered widget script object.
    519525     */
    520     private function create_script_object( $meta, $context ) {
     526    private function create_script_object( $meta, $context, $screen_id ) {
    521527        $object = array(
    522528            'meta'      => $meta,
    523529            'nonce'     => wp_create_nonce( basename( __FILE__ ) ),
    524530            'context'   => $context,
     531            'screen'    => $screen_id,
    525532
    526533            'links'     => array(
  • sharing-image/trunk/readme.txt

    r2846409 r2893725  
    44Tags: social image, sharing image, og image, twitter image, facebook, twitter, telegram, vk.com, ok.ru
    55Requires at least: 5.3
    6 Tested up to: 6.1
    7 Stable tag: 2.0.14
     6Tested up to: 6.2
     7Stable tag: 2.0.15
    88Requires PHP: 5.5
    99License: GPLv2 or later
     
    3030
    3131== Changelog ==
     32
     33= 2.0.15 =
     34* Add optional $screen_id parameter to `sharing_image_prepare_template` filter
     35* Update packages
    3236
    3337= 2.0.14 =
  • sharing-image/trunk/sharing-image.php

    r2846409 r2893725  
    33 * Plugin Name:       Sharing Image
    44 * Description:       Create sharing image for Facebook, VK.com, Telegram and other social networks
    5  * Version:           2.0.14
     5 * Version:           2.0.15
    66 * Requires at least: 5.3
    77 * Requires PHP:      5.5
     
    2525 * Plugin version.
    2626 */
    27 define( 'SHARING_IMAGE_VERSION', '2.0.14' );
     27define( 'SHARING_IMAGE_VERSION', '2.0.15' );
    2828
    2929/**
  • sharing-image/trunk/vendor/autoload.php

    r2708218 r2893725  
    44
    55if (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    );
    821}
    922
  • sharing-image/trunk/vendor/composer/ClassLoader.php

    r2708218 r2893725  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
    109113    }
    110114
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    429434
    430435            return true;
     
    556561        return false;
    557562    }
     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    }
    558585}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • sharing-image/trunk/vendor/composer/InstalledVersions.php

    r2708218 r2893725  
    2929    /**
    3030     * @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{}|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @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[]}>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    9999        foreach (self::getInstalled() as $installed) {
    100100            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;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints((string) $constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    244244    /**
    245245     * @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}
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @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.
    259259     * @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[]}>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @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[]}>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    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}>} $data
     306     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @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[]}>}>
    317317     */
    318318    private static function getInstalled()
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } 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;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            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;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • sharing-image/trunk/vendor/composer/autoload_classmap.php

    r2708218 r2893725  
    88return array(
    99    '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',
    1047    'Sharing_Image\\Generator' => $baseDir . '/classes/class-generator.php',
    1148    'Sharing_Image\\Meta' => $baseDir . '/classes/class-meta.php',
  • sharing-image/trunk/vendor/composer/autoload_psr4.php

    r2708218 r2893725  
    77
    88return 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'),
    1010);
  • sharing-image/trunk/vendor/composer/autoload_real.php

    r2708218 r2893725  
    3434        $loader->register(true);
    3535
    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);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    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  
    1212
    1313    public static $prefixLengthsPsr4 = array (
    14         'D' =>
     14        'P' =>
    1515        array (
    16             'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,
     16            'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,
    1717        ),
    1818    );
    1919
    2020    public static $prefixDirsPsr4 = array (
    21         'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
     21        'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
    2222        array (
    2323            0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
     
    2727    public static $classMap = array (
    2828        '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',
    2966        'Sharing_Image\\Generator' => __DIR__ . '/../..' . '/classes/class-generator.php',
    3067        'Sharing_Image\\Meta' => __DIR__ . '/../..' . '/classes/class-meta.php',
  • sharing-image/trunk/vendor/composer/installed.json

    r2749311 r2893725  
    6060        {
    6161            "name": "dealerdirect/phpcodesniffer-composer-installer",
    62             "version": "v0.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",
    7373                "shasum": ""
    7474            },
    7575            "require": {
    7676                "composer-plugin-api": "^1.0 || ^2.0",
    77                 "php": ">=5.3",
     77                "php": ">=5.4",
    7878                "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
    7979            },
    8080            "require-dev": {
    8181                "composer/composer": "*",
     82                "ext-json": "*",
     83                "ext-zip": "*",
    8284                "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",
    8689            "type": "composer-plugin",
    8790            "extra": {
    88                 "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
     91                "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
    8992            },
    9093            "installation-source": "dist",
    9194            "autoload": {
    9295                "psr-4": {
    93                     "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
     96                    "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
    9497                }
    9598            },
     
    107110                {
    108111                    "name": "Contributors",
    109                     "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
     112                    "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
    110113                }
    111114            ],
     
    131134            ],
    132135            "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"
    135138            },
    136139            "install-path": "../dealerdirect/phpcodesniffer-composer-installer"
    137140        },
    138141        {
     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        {
    139285            "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",
    142288            "source": {
    143289                "type": "git",
    144290                "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",
    151297                "shasum": ""
    152298            },
     
    160306                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
    161307            },
    162             "time": "2022-06-18T07:21:10+00:00",
     308            "time": "2023-02-22T23:07:41+00:00",
    163309            "bin": [
    164310                "bin/phpcs",
     
    186332            "keywords": [
    187333                "phpcs",
    188                 "standards"
     334                "standards",
     335                "static analysis"
    189336            ],
    190337            "support": {
     
    197344        {
    198345            "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",
    201348            "source": {
    202349                "type": "git",
    203350                "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": "*",
    213361                "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",
    218369                "phpcompatibility/php-compatibility": "^9.0",
    219                 "phpcsstandards/phpcsdevtools": "^1.0",
     370                "phpcsstandards/phpcsdevtools": "^1.2.0",
    220371                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
    221372            },
    222373            "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,
    226378            "type": "phpcodesniffer-standard",
    227379            "installation-source": "dist",
     
    240392                "phpcs",
    241393                "standards",
     394                "static analysis",
    242395                "wordpress"
    243396            ],
     
    253406    "dev-package-names": [
    254407        "dealerdirect/phpcodesniffer-composer-installer",
     408        "phpcsstandards/phpcsextra",
     409        "phpcsstandards/phpcsutils",
    255410        "squizlabs/php_codesniffer",
    256411        "wp-coding-standards/wpcs"
  • sharing-image/trunk/vendor/composer/installed.php

    r2749311 r2893725  
    11<?php return array(
    22    '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',
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',
    9         'name' => 'antonlukin/sharing-image',
    1010        'dev' => true,
    1111    ),
     
    1414            'pretty_version' => '5.7',
    1515            'version' => '5.7.0.0',
     16            'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../antonlukin/poster-editor',
    1819            'aliases' => array(),
    19             'reference' => '826f86c59d748ff53bdfe08ec1720becbe967947',
    2020            'dev_requirement' => false,
    2121        ),
    2222        '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',
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../../',
    2728            'aliases' => array(),
    28             'reference' => 'faec6d738f14b4e10b5ca58eb55f3d7070df0c55',
    2929            'dev_requirement' => false,
    3030        ),
    3131        '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',
    3435            'type' => 'composer-plugin',
    3536            'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',
    3637            '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(),
    3856            'dev_requirement' => true,
    3957        ),
    4058        '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',
    4362            'type' => 'library',
    4463            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
    4564            'aliases' => array(),
    46             'reference' => '1359e176e9307e906dc3d890bcc9603ff6d90619',
    4765            'dev_requirement' => true,
    4866        ),
    4967        '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',
    5271            'type' => 'phpcodesniffer-standard',
    5372            'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',
    54             'aliases' => array(),
    55             'reference' => '7da1894633f168fe244afc6de00d141f27517b62',
     73            'aliases' => array(
     74                0 => '9999999-dev',
     75            ),
    5676            'dev_requirement' => true,
    5777        ),
Note: See TracChangeset for help on using the changeset viewer.