Plugin Directory

Changeset 2867746


Ignore:
Timestamp:
02/19/2023 04:59:32 PM (3 years ago)
Author:
ingerikagili
Message:

Update to version 1.2 from GitHub

Location:
email-fields-for-woocommerce
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • email-fields-for-woocommerce/tags/1.2/index.php

    r2571901 r2867746  
    88 * Text Domain:     email-fields-for-woocommerce
    99 * Domain Path:     /languages
    10  * Version:         1.1.3
     10 * Version:         1.2
    1111 */
    1212
  • email-fields-for-woocommerce/tags/1.2/readme.txt

    r2571901 r2867746  
    11=== Email Fields For WooCommerce ===
    22Contributors: ingerikagili
    3 Tags: bcc, reply to, woocommerce
     3Tags: bcc, reply to, woocommerce, email field, more email fields, bcc for woocommerce, reply to woocommerce
    44Requires at least: 5.0
    5 Tested up to: 5.8
    6 Stable tag: 1.1.3
     5Tested up to: 6.2
     6Stable tag: 1.2
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    3737== Changelog ==
    3838
     39= 1.2 =
     40* Update of the tested version.
     41
    3942= 1.1.3 =
    4043* Fix for deploy system.
  • email-fields-for-woocommerce/tags/1.2/vendor/autoload.php

    r2571901 r2867746  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094::getLoader();
     25return ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614::getLoader();
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/ClassLoader.php

    r2571884 r2867746  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var ?string */
    4549    private $vendorDir;
    4650
    4751    // PSR-4
     52    /**
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
     55     */
    4856    private $prefixLengthsPsr4 = array();
     57    /**
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
     60     */
    4961    private $prefixDirsPsr4 = array();
     62    /**
     63     * @var array[]
     64     * @psalm-var array<string, string>
     65     */
    5066    private $fallbackDirsPsr4 = array();
    5167
    5268    // PSR-0
     69    /**
     70     * @var array[]
     71     * @psalm-var array<string, array<string, string[]>>
     72     */
    5373    private $prefixesPsr0 = array();
     74    /**
     75     * @var array[]
     76     * @psalm-var array<string, string>
     77     */
    5478    private $fallbackDirsPsr0 = array();
    5579
     80    /** @var bool */
    5681    private $useIncludePath = false;
     82
     83    /**
     84     * @var string[]
     85     * @psalm-var array<string, string>
     86     */
    5787    private $classMap = array();
     88
     89    /** @var bool */
    5890    private $classMapAuthoritative = false;
     91
     92    /**
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
     95     */
    5996    private $missingClasses = array();
     97
     98    /** @var ?string */
    6099    private $apcuPrefix;
    61100
     101    /**
     102     * @var self[]
     103     */
    62104    private static $registeredLoaders = array();
    63105
     106    /**
     107     * @param ?string $vendorDir
     108     */
    64109    public function __construct($vendorDir = null)
    65110    {
    66111        $this->vendorDir = $vendorDir;
    67     }
    68 
     112        self::initializeIncludeClosure();
     113    }
     114
     115    /**
     116     * @return string[]
     117     */
    69118    public function getPrefixes()
    70119    {
     
    76125    }
    77126
     127    /**
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
     130     */
    78131    public function getPrefixesPsr4()
    79132    {
     
    81134    }
    82135
     136    /**
     137     * @return array[]
     138     * @psalm-return array<string, string>
     139     */
    83140    public function getFallbackDirs()
    84141    {
     
    86143    }
    87144
     145    /**
     146     * @return array[]
     147     * @psalm-return array<string, string>
     148     */
    88149    public function getFallbackDirsPsr4()
    89150    {
     
    91152    }
    92153
     154    /**
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
     157     */
    93158    public function getClassMap()
    94159    {
     
    97162
    98163    /**
    99      * @param array $classMap Class to filename map
     164     * @param string[] $classMap Class to filename map
     165     * @psalm-param array<string, string> $classMap
     166     *
     167     * @return void
    100168     */
    101169    public function addClassMap(array $classMap)
     
    112180     * appending or prepending to the ones previously set for this prefix.
    113181     *
    114      * @param string       $prefix  The prefix
    115      * @param array|string $paths   The PSR-0 root directories
    116      * @param bool         $prepend Whether to prepend the directories
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
     185     *
     186     * @return void
    117187     */
    118188    public function add($prefix, $paths, $prepend = false)
     
    157227     * appending or prepending to the ones previously set for this namespace.
    158228     *
    159      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    160      * @param array|string $paths   The PSR-4 base directories
    161      * @param bool         $prepend Whether to prepend the directories
     229     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     230     * @param string[]|string $paths   The PSR-4 base directories
     231     * @param bool            $prepend Whether to prepend the directories
    162232     *
    163233     * @throws \InvalidArgumentException
     234     *
     235     * @return void
    164236     */
    165237    public function addPsr4($prefix, $paths, $prepend = false)
     
    205277     * replacing any others previously set for this prefix.
    206278     *
    207      * @param string       $prefix The prefix
    208      * @param array|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
     281     *
     282     * @return void
    209283     */
    210284    public function set($prefix, $paths)
     
    221295     * replacing any others previously set for this namespace.
    222296     *
    223      * @param string       $prefix The prefix/namespace, with trailing '\\'
    224      * @param array|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    225299     *
    226300     * @throws \InvalidArgumentException
     301     *
     302     * @return void
    227303     */
    228304    public function setPsr4($prefix, $paths)
     
    244320     *
    245321     * @param bool $useIncludePath
     322     *
     323     * @return void
    246324     */
    247325    public function setUseIncludePath($useIncludePath)
     
    266344     *
    267345     * @param bool $classMapAuthoritative
     346     *
     347     * @return void
    268348     */
    269349    public function setClassMapAuthoritative($classMapAuthoritative)
     
    286366     *
    287367     * @param string|null $apcuPrefix
     368     *
     369     * @return void
    288370     */
    289371    public function setApcuPrefix($apcuPrefix)
     
    306388     *
    307389     * @param bool $prepend Whether to prepend the autoloader or not
     390     *
     391     * @return void
    308392     */
    309393    public function register($prepend = false)
     
    325409    /**
    326410     * Unregisters this instance as an autoloader.
     411     *
     412     * @return void
    327413     */
    328414    public function unregister()
     
    344430    {
    345431        if ($file = $this->findFile($class)) {
    346             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    347434
    348435            return true;
     
    404491    }
    405492
     493    /**
     494     * @param  string       $class
     495     * @param  string       $ext
     496     * @return string|false
     497     */
    406498    private function findFileWithExtension($class, $ext)
    407499    {
     
    469561        return false;
    470562    }
     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    }
    471585}
    472 
    473 /**
    474  * Scope isolated include.
    475  *
    476  * Prevents access to $this/self from included files.
    477  */
    478 function includeFile($file)
    479 {
    480     include $file;
    481 }
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/InstalledVersions.php

    r2571884 r2867746  
    2121 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
    2222 *
    23  * To require it's presence, you can require `composer-runtime-api ^2.0`
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
    2426 */
    2527class InstalledVersions
    2628{
     29    /**
     30     * @var mixed[]|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
     32     */
    2733    private static $installed;
     34
     35    /**
     36     * @var bool|null
     37     */
    2838    private static $canGetVendors;
     39
     40    /**
     41     * @var array[]
     42     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     43     */
    2944    private static $installedByVendor = array();
    3045
     
    229244    /**
    230245     * @return array
    231      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    232247     */
    233248    public static function getRootPackage()
     
    243258     * @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.
    244259     * @return array[]
    245      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}
    246261     */
    247262    public static function getRawData()
     
    266281     *
    267282     * @return array[]
    268      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}>
    269284     */
    270285    public static function getAllRawData()
     
    289304     * @return void
    290305     *
    291      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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
    292307     */
    293308    public static function reload($data)
     
    299314    /**
    300315     * @return array[]
    301      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}>
    302317     */
    303318    private static function getInstalled()
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_classmap.php

    r2571884 r2867746  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_namespaces.php

    r2571884 r2867746  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_psr4.php

    r2571884 r2867746  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_real.php

    r2571901 r2867746  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094
     5class ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/autoload_static.php

    r2571901 r2867746  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094
     7class ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2929    {
    3030        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixLengthsPsr4 = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$prefixLengthsPsr4;
    32             $loader->prefixDirsPsr4 = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$prefixDirsPsr4;
    33             $loader->classMap = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$classMap;
     31            $loader->prefixLengthsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixLengthsPsr4;
     32            $loader->prefixDirsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixDirsPsr4;
     33            $loader->classMap = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • email-fields-for-woocommerce/tags/1.2/vendor/composer/installed.php

    r2571901 r2867746  
    11<?php return array(
    22    'root' => array(
     3        'name' => 'dottxado/email-fields-for-woocommerce',
    34        'pretty_version' => 'dev-master',
    45        'version' => 'dev-master',
     6        'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e',
    57        'type' => 'wordpress-plugin',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',
    9         'name' => 'dottxado/email-fields-for-woocommerce',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
     16            'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e',
    1617            'type' => 'wordpress-plugin',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',
    2020            'dev_requirement' => false,
    2121        ),
  • email-fields-for-woocommerce/trunk/index.php

    r2571901 r2867746  
    88 * Text Domain:     email-fields-for-woocommerce
    99 * Domain Path:     /languages
    10  * Version:         1.1.3
     10 * Version:         1.2
    1111 */
    1212
  • email-fields-for-woocommerce/trunk/readme.txt

    r2571901 r2867746  
    11=== Email Fields For WooCommerce ===
    22Contributors: ingerikagili
    3 Tags: bcc, reply to, woocommerce
     3Tags: bcc, reply to, woocommerce, email field, more email fields, bcc for woocommerce, reply to woocommerce
    44Requires at least: 5.0
    5 Tested up to: 5.8
    6 Stable tag: 1.1.3
     5Tested up to: 6.2
     6Stable tag: 1.2
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    3737== Changelog ==
    3838
     39= 1.2 =
     40* Update of the tested version.
     41
    3942= 1.1.3 =
    4043* Fix for deploy system.
  • email-fields-for-woocommerce/trunk/vendor/autoload.php

    r2571901 r2867746  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094::getLoader();
     25return ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614::getLoader();
  • email-fields-for-woocommerce/trunk/vendor/composer/ClassLoader.php

    r2571884 r2867746  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var ?string */
    4549    private $vendorDir;
    4650
    4751    // PSR-4
     52    /**
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
     55     */
    4856    private $prefixLengthsPsr4 = array();
     57    /**
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
     60     */
    4961    private $prefixDirsPsr4 = array();
     62    /**
     63     * @var array[]
     64     * @psalm-var array<string, string>
     65     */
    5066    private $fallbackDirsPsr4 = array();
    5167
    5268    // PSR-0
     69    /**
     70     * @var array[]
     71     * @psalm-var array<string, array<string, string[]>>
     72     */
    5373    private $prefixesPsr0 = array();
     74    /**
     75     * @var array[]
     76     * @psalm-var array<string, string>
     77     */
    5478    private $fallbackDirsPsr0 = array();
    5579
     80    /** @var bool */
    5681    private $useIncludePath = false;
     82
     83    /**
     84     * @var string[]
     85     * @psalm-var array<string, string>
     86     */
    5787    private $classMap = array();
     88
     89    /** @var bool */
    5890    private $classMapAuthoritative = false;
     91
     92    /**
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
     95     */
    5996    private $missingClasses = array();
     97
     98    /** @var ?string */
    6099    private $apcuPrefix;
    61100
     101    /**
     102     * @var self[]
     103     */
    62104    private static $registeredLoaders = array();
    63105
     106    /**
     107     * @param ?string $vendorDir
     108     */
    64109    public function __construct($vendorDir = null)
    65110    {
    66111        $this->vendorDir = $vendorDir;
    67     }
    68 
     112        self::initializeIncludeClosure();
     113    }
     114
     115    /**
     116     * @return string[]
     117     */
    69118    public function getPrefixes()
    70119    {
     
    76125    }
    77126
     127    /**
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
     130     */
    78131    public function getPrefixesPsr4()
    79132    {
     
    81134    }
    82135
     136    /**
     137     * @return array[]
     138     * @psalm-return array<string, string>
     139     */
    83140    public function getFallbackDirs()
    84141    {
     
    86143    }
    87144
     145    /**
     146     * @return array[]
     147     * @psalm-return array<string, string>
     148     */
    88149    public function getFallbackDirsPsr4()
    89150    {
     
    91152    }
    92153
     154    /**
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
     157     */
    93158    public function getClassMap()
    94159    {
     
    97162
    98163    /**
    99      * @param array $classMap Class to filename map
     164     * @param string[] $classMap Class to filename map
     165     * @psalm-param array<string, string> $classMap
     166     *
     167     * @return void
    100168     */
    101169    public function addClassMap(array $classMap)
     
    112180     * appending or prepending to the ones previously set for this prefix.
    113181     *
    114      * @param string       $prefix  The prefix
    115      * @param array|string $paths   The PSR-0 root directories
    116      * @param bool         $prepend Whether to prepend the directories
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
     185     *
     186     * @return void
    117187     */
    118188    public function add($prefix, $paths, $prepend = false)
     
    157227     * appending or prepending to the ones previously set for this namespace.
    158228     *
    159      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    160      * @param array|string $paths   The PSR-4 base directories
    161      * @param bool         $prepend Whether to prepend the directories
     229     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     230     * @param string[]|string $paths   The PSR-4 base directories
     231     * @param bool            $prepend Whether to prepend the directories
    162232     *
    163233     * @throws \InvalidArgumentException
     234     *
     235     * @return void
    164236     */
    165237    public function addPsr4($prefix, $paths, $prepend = false)
     
    205277     * replacing any others previously set for this prefix.
    206278     *
    207      * @param string       $prefix The prefix
    208      * @param array|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
     281     *
     282     * @return void
    209283     */
    210284    public function set($prefix, $paths)
     
    221295     * replacing any others previously set for this namespace.
    222296     *
    223      * @param string       $prefix The prefix/namespace, with trailing '\\'
    224      * @param array|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    225299     *
    226300     * @throws \InvalidArgumentException
     301     *
     302     * @return void
    227303     */
    228304    public function setPsr4($prefix, $paths)
     
    244320     *
    245321     * @param bool $useIncludePath
     322     *
     323     * @return void
    246324     */
    247325    public function setUseIncludePath($useIncludePath)
     
    266344     *
    267345     * @param bool $classMapAuthoritative
     346     *
     347     * @return void
    268348     */
    269349    public function setClassMapAuthoritative($classMapAuthoritative)
     
    286366     *
    287367     * @param string|null $apcuPrefix
     368     *
     369     * @return void
    288370     */
    289371    public function setApcuPrefix($apcuPrefix)
     
    306388     *
    307389     * @param bool $prepend Whether to prepend the autoloader or not
     390     *
     391     * @return void
    308392     */
    309393    public function register($prepend = false)
     
    325409    /**
    326410     * Unregisters this instance as an autoloader.
     411     *
     412     * @return void
    327413     */
    328414    public function unregister()
     
    344430    {
    345431        if ($file = $this->findFile($class)) {
    346             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    347434
    348435            return true;
     
    404491    }
    405492
     493    /**
     494     * @param  string       $class
     495     * @param  string       $ext
     496     * @return string|false
     497     */
    406498    private function findFileWithExtension($class, $ext)
    407499    {
     
    469561        return false;
    470562    }
     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    }
    471585}
    472 
    473 /**
    474  * Scope isolated include.
    475  *
    476  * Prevents access to $this/self from included files.
    477  */
    478 function includeFile($file)
    479 {
    480     include $file;
    481 }
  • email-fields-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r2571884 r2867746  
    2121 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
    2222 *
    23  * To require it's presence, you can require `composer-runtime-api ^2.0`
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
    2426 */
    2527class InstalledVersions
    2628{
     29    /**
     30     * @var mixed[]|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
     32     */
    2733    private static $installed;
     34
     35    /**
     36     * @var bool|null
     37     */
    2838    private static $canGetVendors;
     39
     40    /**
     41     * @var array[]
     42     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     43     */
    2944    private static $installedByVendor = array();
    3045
     
    229244    /**
    230245     * @return array
    231      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    232247     */
    233248    public static function getRootPackage()
     
    243258     * @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.
    244259     * @return array[]
    245      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}
    246261     */
    247262    public static function getRawData()
     
    266281     *
    267282     * @return array[]
    268      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}>
    269284     */
    270285    public static function getAllRawData()
     
    289304     * @return void
    290305     *
    291      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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
    292307     */
    293308    public static function reload($data)
     
    299314    /**
    300315     * @return array[]
    301      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: 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[]}>}>
    302317     */
    303318    private static function getInstalled()
  • email-fields-for-woocommerce/trunk/vendor/composer/autoload_classmap.php

    r2571884 r2867746  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/trunk/vendor/composer/autoload_namespaces.php

    r2571884 r2867746  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/trunk/vendor/composer/autoload_psr4.php

    r2571884 r2867746  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • email-fields-for-woocommerce/trunk/vendor/composer/autoload_real.php

    r2571901 r2867746  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094
     5class ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitcfd1db6d2a29bbb7c667855d3338f094', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitfdb12ce6c7aabf005a8163d07777d614', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • email-fields-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r2571901 r2867746  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094
     7class ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2929    {
    3030        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixLengthsPsr4 = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$prefixLengthsPsr4;
    32             $loader->prefixDirsPsr4 = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$prefixDirsPsr4;
    33             $loader->classMap = ComposerStaticInitcfd1db6d2a29bbb7c667855d3338f094::$classMap;
     31            $loader->prefixLengthsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixLengthsPsr4;
     32            $loader->prefixDirsPsr4 = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$prefixDirsPsr4;
     33            $loader->classMap = ComposerStaticInitfdb12ce6c7aabf005a8163d07777d614::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • email-fields-for-woocommerce/trunk/vendor/composer/installed.php

    r2571901 r2867746  
    11<?php return array(
    22    'root' => array(
     3        'name' => 'dottxado/email-fields-for-woocommerce',
    34        'pretty_version' => 'dev-master',
    45        'version' => 'dev-master',
     6        'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e',
    57        'type' => 'wordpress-plugin',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',
    9         'name' => 'dottxado/email-fields-for-woocommerce',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
     16            'reference' => '6b95be6df540d48c5694e3baa90eeaf022ccc00e',
    1617            'type' => 'wordpress-plugin',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => '3faf946b9b2bfbb1baca3a18ab5b885c508e61f4',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.