Plugin Directory

Changeset 2717568


Ignore:
Timestamp:
05/03/2022 01:36:22 PM (4 years ago)
Author:
webkinder
Message:

Update to version 1.9.8 from GitHub

Location:
wk-google-analytics
Files:
70 added
18 deleted
146 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wk-google-analytics/tags/1.9.8/readme.txt

    r2715258 r2717568  
    22Contributors: WEBKINDER
    33Tags: google analytics, tracking code, analytics, anonymization, anonymize, anonymizeIp, cookie, Datenschutz, ga, gaoptout, google, googleanalytics, google tag manager, gtm, Datenschutz, datenschutzkonform, script, snippet
    4 Requires at least: 4.8
     4Requires at least: 4.9
    55Tested up to: 5.9.3
    6 Requires PHP: 7.1
    7 Stable tag: 1.9.7
     6Requires PHP: 7.2
     7Stable tag: 1.9.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 1.9.8 =
     37
     38* Update composer packages and unit testing for CI
    3539
    3640= 1.9.7 =
  • wk-google-analytics/tags/1.9.8/vendor/autoload.php

    r2715258 r2717568  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8::getLoader();
     7return ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824::getLoader();
  • wk-google-analytics/tags/1.9.8/vendor/composer/ClassLoader.php

    r2402645 r2717568  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    http://www.php-fig.org/psr/psr-0/
    41  * @see    http://www.php-fig.org/psr/psr-4/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-var array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     178     * @param string          $prefix  The prefix
     179     * @param string[]|string $paths   The PSR-0 root directories
     180     * @param bool            $prepend Whether to prepend the directories
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     226     * @param string[]|string $paths   The PSR-4 base directories
     227     * @param bool            $prepend Whether to prepend the directories
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • wk-google-analytics/tags/1.9.8/vendor/composer/autoload_classmap.php

    r2411206 r2717568  
    77
    88return array(
     9    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    910    'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
    10     'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
     11    'Composer\\Installers\\AkauntingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php',
    1112    'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
    1213    'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
     
    1718    'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
    1819    'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
     20    'Composer\\Installers\\CiviCrmInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
    1921    'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
    2022    'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
    2123    'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
    2224    'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
    23     'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
    2425    'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
    2526    'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
     27    'Composer\\Installers\\DframeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DframeInstaller.php',
    2628    'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
    2729    'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
    2830    'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
    2931    'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
     32    'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
    3033    'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
     34    'Composer\\Installers\\EzPlatformInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
    3135    'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
    3236    'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
     
    3539    'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
    3640    'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
    37     'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
    38     'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
     41    'Composer\\Installers\\ItopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
     42    'Composer\\Installers\\KanboardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
     43    'Composer\\Installers\\KnownInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KnownInstaller.php',
    3944    'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
    4045    'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
     46    'Composer\\Installers\\LanManagementSystemInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
    4147    'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
     48    'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
    4249    'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
    4350    'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
    4451    'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
    4552    'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
     53    'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
    4654    'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
     55    'Composer\\Installers\\MantisBTInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
    4756    'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
     57    'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
    4858    'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
     59    'Composer\\Installers\\MiaoxingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php',
    4960    'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
     61    'Composer\\Installers\\ModxInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
    5062    'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
    5163    'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
     64    'Composer\\Installers\\OntoWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
     65    'Composer\\Installers\\OsclassInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
    5266    'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
    5367    'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
     68    'Composer\\Installers\\PantheonInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PantheonInstaller.php',
    5469    'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
    5570    'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
    56     'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
    5771    'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
    5872    'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
    5973    'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
     74    'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
    6075    'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
     76    'Composer\\Installers\\ProcessWireInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php',
    6177    'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
     78    'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
    6279    'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
    6380    'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
     81    'Composer\\Installers\\Redaxo5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php',
    6482    'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
    6583    'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
     
    6785    'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
    6886    'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
    69     'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
    70     'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
    71     'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
     87    'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
     88    'Composer\\Installers\\StarbugInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/StarbugInstaller.php',
     89    'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
     90    'Composer\\Installers\\SyliusInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
     91    'Composer\\Installers\\TaoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TaoInstaller.php',
     92    'Composer\\Installers\\TastyIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php',
    7293    'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
    7394    'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
     95    'Composer\\Installers\\UserFrostingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
    7496    'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
     97    'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
    7598    'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
     99    'Composer\\Installers\\WinterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WinterInstaller.php',
    76100    'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
    77101    'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
  • wk-google-analytics/tags/1.9.8/vendor/composer/autoload_real.php

    r2715258 r2717568  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8
     5class ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8', 'loadClassLoader'));
     25        require __DIR__ . '/platform_check.php';
     26
     27        spl_autoload_register(array('ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824', 'loadClassLoader'));
    2830
    2931        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    3032        if ($useStaticLoader) {
    31             require_once __DIR__ . '/autoload_static.php';
     33            require __DIR__ . '/autoload_static.php';
    3234
    33             call_user_func(\Composer\Autoload\ComposerStaticInit32e57717e9721e837f04a955935c2ed8::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::getInitializer($loader));
    3436        } else {
    3537            $map = require __DIR__ . '/autoload_namespaces.php';
  • wk-google-analytics/tags/1.9.8/vendor/composer/autoload_static.php

    r2715258 r2717568  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit32e57717e9721e837f04a955935c2ed8
     7class ComposerStaticInit607292fa727b35ff77acbc2a12eb9824
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3030
    3131    public static $classMap = array (
     32        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    3233        'Composer\\Installers\\AglInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AglInstaller.php',
    33         'Composer\\Installers\\AimeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
     34        'Composer\\Installers\\AkauntingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php',
    3435        'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
    3536        'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
     
    4041        'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
    4142        'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
     43        'Composer\\Installers\\CiviCrmInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
    4244        'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
    4345        'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
    4446        'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
    4547        'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
    46         'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
    4748        'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
    4849        'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
     50        'Composer\\Installers\\DframeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DframeInstaller.php',
    4951        'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
    5052        'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
    5153        'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
    5254        'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
     55        'Composer\\Installers\\EliasisInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
    5356        'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
     57        'Composer\\Installers\\EzPlatformInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
    5458        'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
    5559        'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
     
    5862        'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
    5963        'Composer\\Installers\\Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Installer.php',
    60         'Composer\\Installers\\JoomlaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
    61         'Composer\\Installers\\KirbyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
     64        'Composer\\Installers\\ItopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
     65        'Composer\\Installers\\KanboardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
     66        'Composer\\Installers\\KnownInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KnownInstaller.php',
    6267        'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
    6368        'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
     69        'Composer\\Installers\\LanManagementSystemInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
    6470        'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
     71        'Composer\\Installers\\LavaLiteInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
    6572        'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
    6673        'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
    6774        'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
    6875        'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
     76        'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
    6977        'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
     78        'Composer\\Installers\\MantisBTInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
    7079        'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
     80        'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
    7181        'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
     82        'Composer\\Installers\\MiaoxingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php',
    7283        'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
     84        'Composer\\Installers\\ModxInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
    7385        'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
    7486        'Composer\\Installers\\OctoberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
     87        'Composer\\Installers\\OntoWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
     88        'Composer\\Installers\\OsclassInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
    7589        'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
    7690        'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
     91        'Composer\\Installers\\PantheonInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PantheonInstaller.php',
    7792        'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
    7893        'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
    79         'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
    8094        'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
    8195        'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
    8296        'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php',
     97        'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
    8398        'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
     99        'Composer\\Installers\\ProcessWireInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php',
    84100        'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
     101        'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
    85102        'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
    86103        'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
     104        'Composer\\Installers\\Redaxo5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php',
    87105        'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
    88106        'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
     
    90108        'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
    91109        'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
    92         'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
    93         'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
    94         'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
     110        'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
     111        'Composer\\Installers\\StarbugInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/StarbugInstaller.php',
     112        'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
     113        'Composer\\Installers\\SyliusInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
     114        'Composer\\Installers\\TaoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TaoInstaller.php',
     115        'Composer\\Installers\\TastyIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php',
    95116        'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
    96117        'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
     118        'Composer\\Installers\\UserFrostingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
    97119        'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
     120        'Composer\\Installers\\VgmcpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
    98121        'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
     122        'Composer\\Installers\\WinterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WinterInstaller.php',
    99123        'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
    100124        'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
     
    111135    {
    112136        return \Closure::bind(function () use ($loader) {
    113             $loader->prefixLengthsPsr4 = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$prefixLengthsPsr4;
    114             $loader->prefixDirsPsr4 = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$prefixDirsPsr4;
    115             $loader->classMap = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$classMap;
     137            $loader->prefixLengthsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixLengthsPsr4;
     138            $loader->prefixDirsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixDirsPsr4;
     139            $loader->classMap = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$classMap;
    116140
    117141        }, null, ClassLoader::class);
  • wk-google-analytics/tags/1.9.8/vendor/composer/installed.json

    r2238319 r2717568  
    1 [
    2     {
    3         "name": "composer/installers",
    4         "version": "v1.2.0",
    5         "version_normalized": "1.2.0.0",
    6         "source": {
    7             "type": "git",
    8             "url": "https://github.com/composer/installers.git",
    9             "reference": "d78064c68299743e0161004f2de3a0204e33b804"
    10         },
    11         "dist": {
    12             "type": "zip",
    13             "url": "https://api.github.com/repos/composer/installers/zipball/d78064c68299743e0161004f2de3a0204e33b804",
    14             "reference": "d78064c68299743e0161004f2de3a0204e33b804",
    15             "shasum": ""
    16         },
    17         "require": {
    18             "composer-plugin-api": "^1.0"
    19         },
    20         "replace": {
    21             "roundcube/plugin-installer": "*",
    22             "shama/baton": "*"
    23         },
    24         "require-dev": {
    25             "composer/composer": "1.0.*@dev",
    26             "phpunit/phpunit": "4.1.*"
    27         },
    28         "time": "2016-08-13T20:53:52+00:00",
    29         "type": "composer-plugin",
    30         "extra": {
    31             "class": "Composer\\Installers\\Plugin",
    32             "branch-alias": {
    33                 "dev-master": "1.0-dev"
    34             }
    35         },
    36         "installation-source": "dist",
    37         "autoload": {
    38             "psr-4": {
    39                 "Composer\\Installers\\": "src/Composer/Installers"
    40             }
    41         },
    42         "notification-url": "https://packagist.org/downloads/",
    43         "license": [
    44             "MIT"
    45         ],
    46         "authors": [
    47             {
    48                 "name": "Kyle Robinson Young",
    49                 "email": "kyle@dontkry.com",
    50                 "homepage": "https://github.com/shama"
    51             }
    52         ],
    53         "description": "A multi-framework Composer library installer",
    54         "homepage": "https://composer.github.io/installers/",
    55         "keywords": [
    56             "Craft",
    57             "Dolibarr",
    58             "Hurad",
    59             "ImageCMS",
    60             "MODX Evo",
    61             "Mautic",
    62             "OXID",
    63             "Plentymarkets",
    64             "RadPHP",
    65             "SMF",
    66             "Thelia",
    67             "WolfCMS",
    68             "agl",
    69             "aimeos",
    70             "annotatecms",
    71             "attogram",
    72             "bitrix",
    73             "cakephp",
    74             "chef",
    75             "cockpit",
    76             "codeigniter",
    77             "concrete5",
    78             "croogo",
    79             "dokuwiki",
    80             "drupal",
    81             "elgg",
    82             "expressionengine",
    83             "fuelphp",
    84             "grav",
    85             "installer",
    86             "joomla",
    87             "kohana",
    88             "laravel",
    89             "lithium",
    90             "magento",
    91             "mako",
    92             "mediawiki",
    93             "modulework",
    94             "moodle",
    95             "phpbb",
    96             "piwik",
    97             "ppi",
    98             "puppet",
    99             "reindex",
    100             "roundcube",
    101             "shopware",
    102             "silverstripe",
    103             "symfony",
    104             "typo3",
    105             "wordpress",
    106             "yawik",
    107             "zend",
    108             "zikula"
    109         ]
    110     }
    111 ]
     1{
     2    "packages": [
     3        {
     4            "name": "composer/installers",
     5            "version": "v2.1.0",
     6            "version_normalized": "2.1.0.0",
     7            "source": {
     8                "type": "git",
     9                "url": "https://github.com/composer/installers.git",
     10                "reference": "75e5ef05436c90ac565a48176cc7465991908352"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/composer/installers/zipball/75e5ef05436c90ac565a48176cc7465991908352",
     15                "reference": "75e5ef05436c90ac565a48176cc7465991908352",
     16                "shasum": ""
     17            },
     18            "require": {
     19                "composer-plugin-api": "^1.0 || ^2.0",
     20                "php": "^7.2 || ^8.0"
     21            },
     22            "require-dev": {
     23                "composer/composer": "1.6.* || ^2.0",
     24                "composer/semver": "^1 || ^3",
     25                "phpstan/phpstan": "^0.12.55",
     26                "phpstan/phpstan-phpunit": "^0.12.16",
     27                "symfony/phpunit-bridge": "^5.3",
     28                "symfony/process": "^5"
     29            },
     30            "time": "2022-03-18T12:27:54+00:00",
     31            "type": "composer-plugin",
     32            "extra": {
     33                "class": "Composer\\Installers\\Plugin",
     34                "branch-alias": {
     35                    "dev-main": "2.x-dev"
     36                },
     37                "plugin-modifies-install-path": true
     38            },
     39            "installation-source": "dist",
     40            "autoload": {
     41                "psr-4": {
     42                    "Composer\\Installers\\": "src/Composer/Installers"
     43                }
     44            },
     45            "notification-url": "https://packagist.org/downloads/",
     46            "license": [
     47                "MIT"
     48            ],
     49            "authors": [
     50                {
     51                    "name": "Kyle Robinson Young",
     52                    "email": "kyle@dontkry.com",
     53                    "homepage": "https://github.com/shama"
     54                }
     55            ],
     56            "description": "A multi-framework Composer library installer",
     57            "homepage": "https://composer.github.io/installers/",
     58            "keywords": [
     59                "Dolibarr",
     60                "Eliasis",
     61                "Hurad",
     62                "ImageCMS",
     63                "Kanboard",
     64                "Lan Management System",
     65                "MODX Evo",
     66                "MantisBT",
     67                "Mautic",
     68                "Maya",
     69                "OXID",
     70                "Plentymarkets",
     71                "Porto",
     72                "RadPHP",
     73                "SMF",
     74                "Starbug",
     75                "Thelia",
     76                "Whmcs",
     77                "WolfCMS",
     78                "agl",
     79                "annotatecms",
     80                "attogram",
     81                "bitrix",
     82                "cakephp",
     83                "chef",
     84                "cockpit",
     85                "codeigniter",
     86                "concrete5",
     87                "croogo",
     88                "dokuwiki",
     89                "drupal",
     90                "eZ Platform",
     91                "elgg",
     92                "expressionengine",
     93                "fuelphp",
     94                "grav",
     95                "installer",
     96                "itop",
     97                "known",
     98                "kohana",
     99                "laravel",
     100                "lavalite",
     101                "lithium",
     102                "magento",
     103                "majima",
     104                "mako",
     105                "mediawiki",
     106                "miaoxing",
     107                "modulework",
     108                "modx",
     109                "moodle",
     110                "osclass",
     111                "pantheon",
     112                "phpbb",
     113                "piwik",
     114                "ppi",
     115                "processwire",
     116                "puppet",
     117                "pxcms",
     118                "reindex",
     119                "roundcube",
     120                "shopware",
     121                "silverstripe",
     122                "sydes",
     123                "sylius",
     124                "tastyigniter",
     125                "wordpress",
     126                "yawik",
     127                "zend",
     128                "zikula"
     129            ],
     130            "support": {
     131                "issues": "https://github.com/composer/installers/issues",
     132                "source": "https://github.com/composer/installers/tree/v2.1.0"
     133            },
     134            "funding": [
     135                {
     136                    "url": "https://packagist.com",
     137                    "type": "custom"
     138                },
     139                {
     140                    "url": "https://github.com/composer",
     141                    "type": "github"
     142                },
     143                {
     144                    "url": "https://tidelift.com/funding/github/packagist/composer/composer",
     145                    "type": "tidelift"
     146                }
     147            ],
     148            "install-path": "./installers"
     149        }
     150    ],
     151    "dev": false,
     152    "dev-package-names": []
     153}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AglInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AglInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'More/{$name}/',
     
    1113     * Format package name to CamelCase
    1214     */
    13     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1416    {
    15         $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
     17        $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
    1618            return strtoupper($matches[1]);
    1719        }, $vars['name']);
     20
     21        if (null === $name) {
     22            throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error());
     23        }
     24
     25        $vars['name'] = $name;
    1826
    1927        return $vars;
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AnnotateCmsInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'addons/modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AsgardInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'Modules/{$name}/',
     
    1517     *
    1618     * For package type asgard-theme, cut off a trailing '-theme' if present.
    17      *
    1819     */
    19     public function inflectPackageVars($vars)
     20    public function inflectPackageVars(array $vars): array
    2021    {
    2122        if ($vars['type'] === 'asgard-module') {
     
    3031    }
    3132
    32     protected function inflectPluginVars($vars)
     33    /**
     34     * @param array<string, string> $vars
     35     * @return array<string, string>
     36     */
     37    protected function inflectPluginVars(array $vars): array
    3338    {
    34         $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
     39        $vars['name'] = $this->pregReplace('/-module$/', '', $vars['name']);
    3540        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    3641        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
     
    3944    }
    4045
    41     protected function inflectThemeVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectThemeVars(array $vars): array
    4251    {
    43         $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/-theme$/', '', $vars['name']);
    4453        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    4554        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AttogramInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    89abstract class BaseInstaller
    910{
     11    /** @var array<string, string> */
    1012    protected $locations = array();
     13    /** @var Composer */
    1114    protected $composer;
     15    /** @var PackageInterface */
    1216    protected $package;
     17    /** @var IOInterface */
    1318    protected $io;
    1419
    1520    /**
    1621     * Initializes base installer.
    17      *
    18      * @param PackageInterface $package
    19      * @param Composer         $composer
    20      * @param IOInterface      $io
    2122     */
    22     public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)
     23    public function __construct(PackageInterface $package, Composer $composer, IOInterface $io)
    2324    {
    2425        $this->composer = $composer;
     
    2930    /**
    3031     * Return the install path based on package type.
    31      *
    32      * @param  PackageInterface $package
    33      * @param  string           $frameworkType
    34      * @return string
    3532     */
    36     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     33    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
    3734    {
    3835        $type = $this->package->getType();
     
    5350        }
    5451
    55         if ($this->composer->getPackage()) {
    56             $extra = $this->composer->getPackage()->getExtra();
    57             if (!empty($extra['installer-paths'])) {
    58                 $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
    59                 if ($customPath !== false) {
    60                     return $this->templatePath($customPath, $availableVars);
    61                 }
     52        $extra = $this->composer->getPackage()->getExtra();
     53        if (!empty($extra['installer-paths'])) {
     54            $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
     55            if ($customPath !== false) {
     56                return $this->templatePath($customPath, $availableVars);
    6257            }
    6358        }
    6459
    6560        $packageType = substr($type, strlen($frameworkType) + 1);
    66         $locations = $this->getLocations();
     61        $locations = $this->getLocations($frameworkType);
    6762        if (!isset($locations[$packageType])) {
    6863            throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type));
     
    7570     * For an installer to override to modify the vars per installer.
    7671     *
    77      * @param  array $vars
    78      * @return array
     72     * @param  array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string}
     73     * @return array<string, string>
    7974     */
    80     public function inflectPackageVars($vars)
     75    public function inflectPackageVars(array $vars): array
    8176    {
    8277        return $vars;
     
    8681     * Gets the installer's locations
    8782     *
    88      * @return array
     83     * @return array<string, string> map of package types => install path
    8984     */
    90     public function getLocations()
     85    public function getLocations(string $frameworkType)
    9186    {
    9287        return $this->locations;
     
    9691     * Replace vars in a path
    9792     *
    98      * @param  string $path
    99      * @param  array  $vars
    100      * @return string
     93     * @param  array<string, string> $vars
    10194     */
    102     protected function templatePath($path, array $vars = array())
     95    protected function templatePath(string $path, array $vars = array()): string
    10396    {
    10497        if (strpos($path, '{') !== false) {
     
    118111     * Search through a passed paths array for a custom install path.
    119112     *
    120      * @param  array  $paths
    121      * @param  string $name
    122      * @param  string $type
    123      * @param  string $vendor = NULL
    124      * @return string
     113     * @param  array<string, string[]|string> $paths
     114     * @return string|false
    125115     */
    126     protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)
     116    protected function mapCustomInstallPaths(array $paths, string $name, string $type, ?string $vendor = null)
    127117    {
    128118        foreach ($paths as $path => $names) {
     119            $names = (array) $names;
    129120            if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) {
    130121                return $path;
     
    134125        return false;
    135126    }
     127
     128    protected function pregReplace(string $pattern, string $replacement, string $subject): string
     129    {
     130        $result = preg_replace($pattern, $replacement, $subject);
     131        if (null === $result) {
     132            throw new \RuntimeException('Failed to run preg_replace with '.$pattern.': '.preg_last_error());
     133        }
     134
     135        return $result;
     136    }
    136137}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php

    r2238319 r2717568  
    1010 * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`.
    1111 * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`.
    12  * 
     12 *
    1313 * You can set custom path to directory with Bitrix kernel in `composer.json`:
    14  * 
     14 *
    1515 * ```json
    1616 * {
     
    2626class BitrixInstaller extends BaseInstaller
    2727{
     28    /** @var array<string, string> */
    2829    protected $locations = array(
    2930        'module'    => '{$bitrix_dir}/modules/{$name}/',    // deprecated, remove on the major release (Backward compatibility will be broken)
     
    3637
    3738    /**
    38      * @var array Storage for informations about duplicates at all the time of installation packages.
     39     * @var string[] Storage for informations about duplicates at all the time of installation packages.
    3940     */
    4041    private static $checkedDuplicates = array();
    4142
    42     /**
    43      * {@inheritdoc}
    44      */
    45     public function inflectPackageVars($vars)
     43    public function inflectPackageVars(array $vars): array
    4644    {
     45        /** @phpstan-ignore-next-line */
    4746        if ($this->composer->getPackage()) {
    4847            $extra = $this->composer->getPackage()->getExtra();
     
    6362     * {@inheritdoc}
    6463     */
    65     protected function templatePath($path, array $vars = array())
     64    protected function templatePath(string $path, array $vars = array()): string
    6665    {
    6766        $templatePath = parent::templatePath($path, $vars);
     
    7473     * Duplicates search packages.
    7574     *
    76      * @param string $path
    77      * @param array $vars
     75     * @param array<string, string> $vars
    7876     */
    79     protected function checkDuplicates($path, array $vars = array())
     77    protected function checkDuplicates(string $path, array $vars = array()): void
    8078    {
    8179        $packageType = substr($vars['type'], strlen('bitrix') + 1);
     
    9593        }
    9694
    97         if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) {
    98 
     95        if ($oldPath !== $path && file_exists($oldPath) && $this->io->isInteractive()) {
    9996            $this->io->writeError('    <error>Duplication of packages:</error>');
    10097            $this->io->writeError('    <info>Package ' . $oldPath . ' will be called instead package ' . $path . '</info>');
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class BonefishInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'package'    => 'Packages/{$vendor}/{$name}/'
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45use Composer\DependencyResolver\Pool;
    5 use Composer\Package\PackageInterface;
     6use Composer\Semver\Constraint\Constraint;
    67
    78class CakePHPInstaller extends BaseInstaller
    89{
     10    /** @var array<string, string> */
    911    protected $locations = array(
    1012        'plugin' => 'Plugin/{$name}/',
     
    1416     * Format package name to CamelCase
    1517     */
    16     public function inflectPackageVars($vars)
     18    public function inflectPackageVars(array $vars): array
    1719    {
    1820        if ($this->matchesCakeVersion('>=', '3.0.0')) {
     
    2224        $nameParts = explode('/', $vars['name']);
    2325        foreach ($nameParts as &$value) {
    24             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     26            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    2527            $value = str_replace(array('-', '_'), ' ', $value);
    2628            $value = str_replace(' ', '', ucwords($value));
     
    3436     * Change the default plugin location when cakephp >= 3.0
    3537     */
    36     public function getLocations()
     38    public function getLocations(string $frameworkType): array
    3739    {
    3840        if ($this->matchesCakeVersion('>=', '3.0.0')) {
     
    4547     * Check if CakePHP version matches against a version
    4648     *
    47      * @param string $matcher
    48      * @param string $version
    49      * @return bool
     49     * @phpstan-param Constraint::STR_OP_* $matcher
    5050     */
    51     protected function matchesCakeVersion($matcher, $version)
     51    protected function matchesCakeVersion(string $matcher, string $version): bool
    5252    {
    53         if (class_exists('Composer\Semver\Constraint\MultiConstraint')) {
    54             $multiClass = 'Composer\Semver\Constraint\MultiConstraint';
    55             $constraintClass = 'Composer\Semver\Constraint\Constraint';
    56         } else {
    57             $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint';
    58             $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint';
     53        $repositoryManager = $this->composer->getRepositoryManager();
     54        /** @phpstan-ignore-next-line */
     55        if (!$repositoryManager) {
     56            return false;
    5957        }
    6058
    61         $repositoryManager = $this->composer->getRepositoryManager();
    62         if ($repositoryManager) {
    63             $repos = $repositoryManager->getLocalRepository();
    64             if (!$repos) {
    65                 return false;
    66             }
    67             $cake3 = new $multiClass(array(
    68                 new $constraintClass($matcher, $version),
    69                 new $constraintClass('!=', '9999999-dev'),
    70             ));
    71             $pool = new Pool('dev');
    72             $pool->addRepository($repos);
    73             $packages = $pool->whatProvides('cakephp/cakephp');
    74             foreach ($packages as $package) {
    75                 $installed = new $constraintClass('=', $package->getVersion());
    76                 if ($cake3->matches($installed)) {
    77                     return true;
    78                     break;
    79                 }
    80             }
     59        $repos = $repositoryManager->getLocalRepository();
     60        /** @phpstan-ignore-next-line */
     61        if (!$repos) {
     62            return false;
    8163        }
    82         return false;
     64
     65        return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null;
    8366    }
    8467}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ChefInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'cookbook'  => 'Chef/{$vendor}/{$name}/',
     
    911    );
    1012}
    11 
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ClanCatsFrameworkInstaller extends BaseInstaller
    56{
    6     protected $locations = array(
    7         'ship'      => 'CCF/orbit/{$name}/',
    8         'theme'     => 'CCF/app/themes/{$name}/',
    9     );
     7    /** @var array<string, string> */
     8    protected $locations = array(
     9        'ship'      => 'CCF/orbit/{$name}/',
     10        'theme'     => 'CCF/app/themes/{$name}/',
     11    );
    1012}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CockpitInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'cockpit/modules/addons/{$name}/',
     
    1214     *
    1315     * Strip `module-` prefix from package name.
    14      *
    15      * @param array @vars
    16      *
    17      * @return array
    1816     */
    19     public function inflectPackageVars($vars)
     17    public function inflectPackageVars(array $vars): array
    2018    {
    2119        if ($vars['type'] == 'cockpit-module') {
     
    2624    }
    2725
    28     public function inflectModuleVars($vars)
     26    /**
     27     * @param array<string, string> $vars
     28     * @return array<string, string>
     29     */
     30    public function inflectModuleVars(array $vars): array
    2931    {
    30         $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name']));
     32        $vars['name'] = ucfirst($this->pregReplace('/cockpit-/i', '', $vars['name']));
    3133
    3234        return $vars;
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CodeIgniterInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library'     => 'application/libraries/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class Concrete5Installer extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'block'      => 'blocks/{$name}/',
     9        'core'       => 'concrete/',
     10        'block'      => 'application/blocks/{$name}/',
    811        'package'    => 'packages/{$name}/',
    9         'theme'      => 'themes/{$name}/',
     12        'theme'      => 'application/themes/{$name}/',
    1013        'update'     => 'updates/{$name}/',
    1114    );
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CroogoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'Plugin/{$name}/',
     
    1214     * Format package name to CamelCase
    1315     */
    14     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1517    {
    1618        $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name']));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    56{
    67    /** @var array */
     8    /** @var array<string, string> */
    79    protected $locations = array(
    810        'app'    => 'app/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class DokuWikiInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'lib/plugins/{$name}/',
     
    1214     * Format package name.
    1315     *
    14      * For package type dokuwiki-plugin, cut off a trailing '-plugin', 
     16     * For package type dokuwiki-plugin, cut off a trailing '-plugin',
    1517     * or leading dokuwiki_ if present.
    16      * 
     18     *
    1719     * For package type dokuwiki-template, cut off a trailing '-template' if present.
    18      *
    1920     */
    20     public function inflectPackageVars($vars)
     21    public function inflectPackageVars(array $vars): array
    2122    {
    22 
    2323        if ($vars['type'] === 'dokuwiki-plugin') {
    2424            return $this->inflectPluginVars($vars);
     
    3232    }
    3333
    34     protected function inflectPluginVars($vars)
     34    /**
     35     * @param array<string, string> $vars
     36     * @return array<string, string>
     37     */
     38    protected function inflectPluginVars(array $vars): array
    3539    {
    36         $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
    37         $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
     40        $vars['name'] = $this->pregReplace('/-plugin$/', '', $vars['name']);
     41        $vars['name'] = $this->pregReplace('/^dokuwiki_?-?/', '', $vars['name']);
    3842
    3943        return $vars;
    4044    }
    4145
    42     protected function inflectTemplateVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectTemplateVars(array $vars): array
    4351    {
    44         $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
    45         $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/-template$/', '', $vars['name']);
     53        $vars['name'] = $this->pregReplace('/^dokuwiki_?-?/', '', $vars['name']);
    4654
    4755        return $vars;
    4856    }
    49 
    5057}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    1112{
    1213    //TODO: Add support for scripts and themes
     14    /** @var array<string, string> */
    1315    protected $locations = array(
    1416        'module' => 'htdocs/custom/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class DrupalInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'core'      => 'core/',
    8         'module'    => 'modules/{$name}/',
    9         'theme'     => 'themes/{$name}/',
    10         'library'   => 'libraries/{$name}/',
    11         'profile'   => 'profiles/{$name}/',
    12         'drush'     => 'drush/{$name}/',
    13         'custom-theme' => 'themes/custom/{$name}/',
    14         'custom-module' => 'modules/custom/{$name}',
     9        'core'             => 'core/',
     10        'module'           => 'modules/{$name}/',
     11        'theme'            => 'themes/{$name}/',
     12        'library'          => 'libraries/{$name}/',
     13        'profile'          => 'profiles/{$name}/',
     14        'database-driver'  => 'drivers/lib/Drupal/Driver/Database/{$name}/',
     15        'drush'            => 'drush/{$name}/',
     16        'custom-theme'     => 'themes/custom/{$name}/',
     17        'custom-module'    => 'modules/custom/{$name}/',
     18        'custom-profile'   => 'profiles/custom/{$name}/',
     19        'drupal-multisite' => 'sites/{$name}/',
     20        'console'          => 'console/{$name}/',
     21        'console-language' => 'console/language/{$name}/',
     22        'config'           => 'config/sync/',
    1523    );
    1624}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ElggInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'mod/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class ExpressionEngineInstaller extends BaseInstaller
    78{
    8 
    9     protected $locations = array();
    10 
     9    /** @var array<string, string> */
    1110    private $ee2Locations = array(
    1211        'addon'   => 'system/expressionengine/third_party/{$name}/',
     
    1413    );
    1514
     15    /** @var array<string, string> */
    1616    private $ee3Locations = array(
    1717        'addon'   => 'system/user/addons/{$name}/',
     
    1919    );
    2020
    21     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     21    public function getLocations(string $frameworkType): array
    2222    {
     23        if ($frameworkType === 'ee2') {
     24            $this->locations = $this->ee2Locations;
     25        } else {
     26            $this->locations = $this->ee3Locations;
     27        }
    2328
    24         $version = "{$frameworkType}Locations";
    25         $this->locations = $this->$version;
    26 
    27         return parent::getInstallPath($package, $frameworkType);
     29        return $this->locations;
    2830    }
    2931}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class FuelInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'  => 'fuel/app/modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class FuelphpInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'component'  => 'components/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/GravInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class GravInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'user/plugins/{$name}/',
     
    1113    /**
    1214     * Format package name
    13      *
    14      * @param array $vars
    15      *
    16      * @return array
    1715     */
    18     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1917    {
    2018        $restrictedWords = implode('|', array_keys($this->locations));
    2119
    2220        $vars['name'] = strtolower($vars['name']);
    23         $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
     21        $vars['name'] = $this->pregReplace(
     22            '/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
    2423            '$1',
    2524            $vars['name']
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class HuradInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'plugins/{$name}/',
     
    1214     * Format package name to CamelCase
    1315     */
    14     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1517    {
    1618        $nameParts = explode('/', $vars['name']);
    1719        foreach ($nameParts as &$value) {
    18             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     20            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    1921            $value = str_replace(array('-', '_'), ' ', $value);
    2022            $value = str_replace(' ', '', ucwords($value));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ImageCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'template'    => 'templates/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Installer.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     5use Composer\Composer;
     6use Composer\Installer\BinaryInstaller;
     7use Composer\Installer\LibraryInstaller;
    48use Composer\IO\IOInterface;
    5 use Composer\Installer\LibraryInstaller;
     9use Composer\Package\Package;
    610use Composer\Package\PackageInterface;
    711use Composer\Repository\InstalledRepositoryInterface;
     12use Composer\Util\Filesystem;
     13use React\Promise\PromiseInterface;
    814
    915class Installer extends LibraryInstaller
     
    1218     * Package types to installer class map
    1319     *
    14      * @var array
     20     * @var array<string, string>
    1521     */
    1622    private $supportedTypes = array(
    17         'aimeos'       => 'AimeosInstaller',
     23        'akaunting'    => 'AkauntingInstaller',
    1824        'asgard'       => 'AsgardInstaller',
    1925        'attogram'     => 'AttogramInstaller',
     
    2430        'cakephp'      => 'CakePHPInstaller',
    2531        'chef'         => 'ChefInstaller',
     32        'civicrm'      => 'CiviCrmInstaller',
    2633        'ccframework'  => 'ClanCatsFrameworkInstaller',
    2734        'cockpit'      => 'CockpitInstaller',
    2835        'codeigniter'  => 'CodeIgniterInstaller',
    2936        'concrete5'    => 'Concrete5Installer',
    30         'craft'        => 'CraftInstaller',
    3137        'croogo'       => 'CroogoInstaller',
     38        'dframe'       => 'DframeInstaller',
    3239        'dokuwiki'     => 'DokuWikiInstaller',
    3340        'dolibarr'     => 'DolibarrInstaller',
     
    3542        'drupal'       => 'DrupalInstaller',
    3643        'elgg'         => 'ElggInstaller',
     44        'eliasis'      => 'EliasisInstaller',
    3745        'ee3'          => 'ExpressionEngineInstaller',
    3846        'ee2'          => 'ExpressionEngineInstaller',
     47        'ezplatform'   => 'EzPlatformInstaller',
    3948        'fuel'         => 'FuelInstaller',
    4049        'fuelphp'      => 'FuelphpInstaller',
    4150        'grav'         => 'GravInstaller',
    4251        'hurad'        => 'HuradInstaller',
     52        'tastyigniter' => 'TastyIgniterInstaller',
    4353        'imagecms'     => 'ImageCMSInstaller',
    44         'joomla'       => 'JoomlaInstaller',
    45         'kirby'        => 'KirbyInstaller',
     54        'itop'         => 'ItopInstaller',
     55        'kanboard'     => 'KanboardInstaller',
     56        'known'        => 'KnownInstaller',
    4657        'kodicms'      => 'KodiCMSInstaller',
    4758        'kohana'       => 'KohanaInstaller',
     59        'lms'          => 'LanManagementSystemInstaller',
    4860        'laravel'      => 'LaravelInstaller',
     61        'lavalite'     => 'LavaLiteInstaller',
    4962        'lithium'      => 'LithiumInstaller',
    5063        'magento'      => 'MagentoInstaller',
     64        'majima'       => 'MajimaInstaller',
     65        'mantisbt'     => 'MantisBTInstaller',
    5166        'mako'         => 'MakoInstaller',
     67        'maya'         => 'MayaInstaller',
    5268        'mautic'       => 'MauticInstaller',
    5369        'mediawiki'    => 'MediaWikiInstaller',
     70        'miaoxing'     => 'MiaoxingInstaller',
    5471        'microweber'   => 'MicroweberInstaller',
    5572        'modulework'   => 'MODULEWorkInstaller',
     73        'modx'         => 'ModxInstaller',
    5674        'modxevo'      => 'MODXEvoInstaller',
    5775        'moodle'       => 'MoodleInstaller',
    5876        'october'      => 'OctoberInstaller',
     77        'ontowiki'     => 'OntoWikiInstaller',
    5978        'oxid'         => 'OxidInstaller',
     79        'osclass'      => 'OsclassInstaller',
     80        'pxcms'        => 'PxcmsInstaller',
    6081        'phpbb'        => 'PhpBBInstaller',
    61         'pimcore'      => 'PimcoreInstaller',
    6282        'piwik'        => 'PiwikInstaller',
    6383        'plentymarkets'=> 'PlentymarketsInstaller',
     
    6686        'radphp'       => 'RadPHPInstaller',
    6787        'phifty'       => 'PhiftyInstaller',
     88        'porto'        => 'PortoInstaller',
     89        'processwire'  => 'ProcessWireInstaller',
     90        'quicksilver'  => 'PantheonInstaller',
    6891        'redaxo'       => 'RedaxoInstaller',
     92        'redaxo5'      => 'Redaxo5Installer',
    6993        'reindex'      => 'ReIndexInstaller',
    7094        'roundcube'    => 'RoundcubeInstaller',
    7195        'shopware'     => 'ShopwareInstaller',
     96        'sitedirect'   => 'SiteDirectInstaller',
    7297        'silverstripe' => 'SilverStripeInstaller',
    7398        'smf'          => 'SMFInstaller',
    74         'symfony1'     => 'Symfony1Installer',
     99        'starbug'      => 'StarbugInstaller',
     100        'sydes'        => 'SyDESInstaller',
     101        'sylius'       => 'SyliusInstaller',
     102        'tao'          => 'TaoInstaller',
    75103        'thelia'       => 'TheliaInstaller',
    76104        'tusk'         => 'TuskInstaller',
    77         'typo3-cms'    => 'TYPO3CmsInstaller',
    78         'typo3-flow'   => 'TYPO3FlowInstaller',
     105        'userfrosting' => 'UserFrostingInstaller',
    79106        'vanilla'      => 'VanillaInstaller',
    80107        'whmcs'        => 'WHMCSInstaller',
     108        'winter'       => 'WinterInstaller',
    81109        'wolfcms'      => 'WolfCMSInstaller',
    82110        'wordpress'    => 'WordPressInstaller',
     
    88116
    89117    /**
     118     * Disables installers specified in main composer extra installer-disable
     119     * list
     120     */
     121    public function __construct(
     122        IOInterface $io,
     123        Composer $composer,
     124        string $type = 'library',
     125        ?Filesystem $filesystem = null,
     126        ?BinaryInstaller $binaryInstaller = null
     127    ) {
     128        parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller);
     129        $this->removeDisabledInstallers();
     130    }
     131
     132    /**
    90133     * {@inheritDoc}
    91134     */
     
    104147        $installer = new $class($package, $this->composer, $this->getIO());
    105148
    106         return $installer->getInstallPath($package, $frameworkType);
     149        $path = $installer->getInstallPath($package, $frameworkType);
     150        if (!$this->filesystem->isAbsolutePath($path)) {
     151            $path = getcwd() . '/' . $path;
     152        }
     153
     154        return $path;
    107155    }
    108156
    109157    public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
    110158    {
    111         if (!$repo->hasPackage($package)) {
    112             throw new \InvalidArgumentException('Package is not installed: '.$package);
    113         }
    114 
    115         $repo->removePackage($package);
    116 
    117         $installPath = $this->getInstallPath($package);
    118         $this->io->write(sprintf('Deleting %s - %s', $installPath, $this->filesystem->removeDirectory($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
     159        $installPath = $this->getPackageBasePath($package);
     160        $io = $this->io;
     161        $outputStatus = function () use ($io, $installPath) {
     162            $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
     163        };
     164
     165        $promise = parent::uninstall($repo, $package);
     166
     167        // Composer v2 might return a promise here
     168        if ($promise instanceof PromiseInterface) {
     169            return $promise->then($outputStatus);
     170        }
     171
     172        // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async)
     173        $outputStatus();
     174
     175        return null;
    119176    }
    120177
     
    138195     * Finds a supported framework type if it exists and returns it
    139196     *
    140      * @param  string $type
    141      * @return string
    142      */
    143     protected function findFrameworkType($type)
    144     {
    145         $frameworkType = false;
    146 
     197     * @return string|false
     198     */
     199    protected function findFrameworkType(string $type)
     200    {
    147201        krsort($this->supportedTypes);
    148202
    149203        foreach ($this->supportedTypes as $key => $val) {
    150204            if ($key === substr($type, 0, strlen($key))) {
    151                 $frameworkType = substr($type, 0, strlen($key));
    152                 break;
     205                return substr($type, 0, strlen($key));
    153206            }
    154207        }
    155208
    156         return $frameworkType;
     209        return false;
    157210    }
    158211
     
    160213     * Get the second part of the regular expression to check for support of a
    161214     * package type
    162      *
    163      * @param  string $frameworkType
    164      * @return string
    165      */
    166     protected function getLocationPattern($frameworkType)
    167     {
    168         $pattern = false;
     215     */
     216    protected function getLocationPattern(string $frameworkType): string
     217    {
     218        $pattern = null;
    169219        if (!empty($this->supportedTypes[$frameworkType])) {
    170220            $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
    171221            /** @var BaseInstaller $framework */
    172             $framework = new $frameworkClass(null, $this->composer, $this->getIO());
    173             $locations = array_keys($framework->getLocations());
    174             $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
    175         }
    176 
    177         return $pattern ? : '(\w+)';
    178     }
    179 
    180     /**
    181      * Get I/O object
     222            $framework = new $frameworkClass(new Package('dummy/pkg', '1.0.0.0', '1.0.0'), $this->composer, $this->getIO());
     223            $locations = array_keys($framework->getLocations($frameworkType));
     224            if ($locations) {
     225                $pattern = '(' . implode('|', $locations) . ')';
     226            }
     227        }
     228
     229        return $pattern ?: '(\w+)';
     230    }
     231
     232    private function getIO(): IOInterface
     233    {
     234        return $this->io;
     235    }
     236
     237    /**
     238     * Look for installers set to be disabled in composer's extra config and
     239     * remove them from the list of supported installers.
    182240     *
    183      * @return IOInterface
    184      */
    185     private function getIO()
    186     {
    187         return $this->io;
     241     * Globals:
     242     *  - true, "all", and "*" - disable all installers.
     243     *  - false - enable all installers (useful with
     244     *     wikimedia/composer-merge-plugin or similar)
     245     */
     246    protected function removeDisabledInstallers(): void
     247    {
     248        $extra = $this->composer->getPackage()->getExtra();
     249
     250        if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) {
     251            // No installers are disabled
     252            return;
     253        }
     254
     255        // Get installers to disable
     256        $disable = $extra['installer-disable'];
     257
     258        // Ensure $disabled is an array
     259        if (!is_array($disable)) {
     260            $disable = array($disable);
     261        }
     262
     263        // Check which installers should be disabled
     264        $all = array(true, "all", "*");
     265        $intersect = array_intersect($all, $disable);
     266        if (!empty($intersect)) {
     267            // Disable all installers
     268            $this->supportedTypes = array();
     269            return;
     270        }
     271
     272        // Disable specified installers
     273        foreach ($disable as $key => $installer) {
     274            if (is_string($installer) && key_exists($installer, $this->supportedTypes)) {
     275                unset($this->supportedTypes[$installer]);
     276            }
     277        }
    188278    }
    189279}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class KodiCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'cms/plugins/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class KohanaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class LaravelInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'libraries/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class LithiumInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'libraries/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MODULEWorkInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    78class MODXEvoInstaller extends BaseInstaller
    89{
     10    /** @var array<string, string> */
    911    protected $locations = array(
    1012        'snippet'       => 'assets/snippets/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MagentoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'theme'   => 'app/design/frontend/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MakoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'package' => 'app/packages/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
     4
     5use Composer\Package\PackageInterface;
    36
    47class MauticInstaller extends BaseInstaller
    58{
     9    /** @var array<string, string> */
    610    protected $locations = array(
    7         'plugin' => 'plugins/{$name}/',
    8         'theme' => 'themes/{$name}/',
     11        'plugin'           => 'plugins/{$name}/',
     12        'theme'            => 'themes/{$name}/',
     13        'core'             => 'app/',
    914    );
     15
     16    private function getDirectoryName(): string
     17    {
     18        $extra = $this->package->getExtra();
     19        if (!empty($extra['install-directory-name'])) {
     20            return $extra['install-directory-name'];
     21        }
     22
     23        return $this->toCamelCase($this->package->getPrettyName());
     24    }
     25
     26    private function toCamelCase(string $packageName): string
     27    {
     28        return str_replace(' ', '', ucwords(str_replace('-', ' ', basename($packageName))));
     29    }
    1030
    1131    /**
    1232     * Format package name of mautic-plugins to CamelCase
    1333     */
    14     public function inflectPackageVars($vars)
     34    public function inflectPackageVars(array $vars): array
    1535    {
    16         if ($vars['type'] == 'mautic-plugin') {
    17             $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
    18                 return strtoupper($matches[0][1]);
    19             }, ucfirst($vars['name']));
     36        if ($vars['type'] == 'mautic-plugin' || $vars['type'] == 'mautic-theme') {
     37            $directoryName = $this->getDirectoryName();
     38            $vars['name'] = $directoryName;
    2039        }
    2140
    2241        return $vars;
    2342    }
    24 
    2543}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MediaWikiInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
     9        'core' => 'core/',
    710        'extension' => 'extensions/{$name}/',
    811        'skin' => 'skins/{$name}/',
     
    1619     *
    1720     * For package type mediawiki-skin, cut off a trailing '-skin' if present.
    18      *
    1921     */
    20     public function inflectPackageVars($vars)
     22    public function inflectPackageVars(array $vars): array
    2123    {
    22 
    2324        if ($vars['type'] === 'mediawiki-extension') {
    2425            return $this->inflectExtensionVars($vars);
     
    3233    }
    3334
    34     protected function inflectExtensionVars($vars)
     35    /**
     36     * @param array<string, string> $vars
     37     * @return array<string, string>
     38     */
     39    protected function inflectExtensionVars(array $vars): array
    3540    {
    36         $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);
     41        $vars['name'] = $this->pregReplace('/-extension$/', '', $vars['name']);
    3742        $vars['name'] = str_replace('-', ' ', $vars['name']);
    3843        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
     
    4146    }
    4247
    43     protected function inflectSkinVars($vars)
     48    /**
     49     * @param array<string, string> $vars
     50     * @return array<string, string>
     51     */
     52    protected function inflectSkinVars(array $vars): array
    4453    {
    45         $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
     54        $vars['name'] = $this->pregReplace('/-skin$/', '', $vars['name']);
    4655
    4756        return $vars;
    4857    }
    49 
    5058}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MicroweberInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'module'      => 'userfiles/modules/{$name}/',
    8         'module-skin' => 'userfiles/modules/{$name}/templates/',
    9         'template'    => 'userfiles/templates/{$name}/',
    10         'element'     => 'userfiles/elements/{$name}/',
    11         'vendor'      => 'vendor/{$name}/',
    12         'components'  => 'components/{$name}/'
     9        'module' => 'userfiles/modules/{$install_item_dir}/',
     10        'module-skin' => 'userfiles/modules/{$install_item_dir}/templates/',
     11        'template' => 'userfiles/templates/{$install_item_dir}/',
     12        'element' => 'userfiles/elements/{$install_item_dir}/',
     13        'vendor' => 'vendor/{$install_item_dir}/',
     14        'components' => 'components/{$install_item_dir}/'
    1315    );
    1416
     
    1921     *
    2022     * For package type microweber-template, cut off a trailing '-template' if present.
    21      *
    2223     */
    23     public function inflectPackageVars($vars)
     24    public function inflectPackageVars(array $vars): array
    2425    {
    25         if ($vars['type'] === 'microweber-template') {
    26             return $this->inflectTemplateVars($vars);
    27         }
    28         if ($vars['type'] === 'microweber-templates') {
    29             return $this->inflectTemplatesVars($vars);
    30         }
    31         if ($vars['type'] === 'microweber-core') {
    32             return $this->inflectCoreVars($vars);
    33         }
    34         if ($vars['type'] === 'microweber-adapter') {
    35             return $this->inflectCoreVars($vars);
    36         }
    37         if ($vars['type'] === 'microweber-module') {
    38             return $this->inflectModuleVars($vars);
    39         }
    40         if ($vars['type'] === 'microweber-modules') {
    41             return $this->inflectModulesVars($vars);
    42         }
    43         if ($vars['type'] === 'microweber-skin') {
    44             return $this->inflectSkinVars($vars);
    45         }
    46         if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
    47             return $this->inflectElementVars($vars);
     26        if ($this->package->getTargetDir() !== null && $this->package->getTargetDir() !== '') {
     27            $vars['install_item_dir'] = $this->package->getTargetDir();
     28        } else {
     29            $vars['install_item_dir'] = $vars['name'];
     30            if ($vars['type'] === 'microweber-template') {
     31                return $this->inflectTemplateVars($vars);
     32            }
     33            if ($vars['type'] === 'microweber-templates') {
     34                return $this->inflectTemplatesVars($vars);
     35            }
     36            if ($vars['type'] === 'microweber-core') {
     37                return $this->inflectCoreVars($vars);
     38            }
     39            if ($vars['type'] === 'microweber-adapter') {
     40                return $this->inflectCoreVars($vars);
     41            }
     42            if ($vars['type'] === 'microweber-module') {
     43                return $this->inflectModuleVars($vars);
     44            }
     45            if ($vars['type'] === 'microweber-modules') {
     46                return $this->inflectModulesVars($vars);
     47            }
     48            if ($vars['type'] === 'microweber-skin') {
     49                return $this->inflectSkinVars($vars);
     50            }
     51            if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
     52                return $this->inflectElementVars($vars);
     53            }
    4854        }
    4955
     
    5157    }
    5258
    53     protected function inflectTemplateVars($vars)
     59    /**
     60     * @param array<string, string> $vars
     61     * @return array<string, string>
     62     */
     63    protected function inflectTemplateVars(array $vars): array
    5464    {
    55         $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
    56         $vars['name'] = preg_replace('/template-$/', '', $vars['name']);
     65        $vars['install_item_dir'] = $this->pregReplace('/-template$/', '', $vars['install_item_dir']);
     66        $vars['install_item_dir'] = $this->pregReplace('/template-$/', '', $vars['install_item_dir']);
    5767
    5868        return $vars;
    5969    }
    6070
    61     protected function inflectTemplatesVars($vars)
     71    /**
     72     * @param array<string, string> $vars
     73     * @return array<string, string>
     74     */
     75    protected function inflectTemplatesVars(array $vars): array
    6276    {
    63         $vars['name'] = preg_replace('/-templates$/', '', $vars['name']);
    64         $vars['name'] = preg_replace('/templates-$/', '', $vars['name']);
     77        $vars['install_item_dir'] = $this->pregReplace('/-templates$/', '', $vars['install_item_dir']);
     78        $vars['install_item_dir'] = $this->pregReplace('/templates-$/', '', $vars['install_item_dir']);
    6579
    6680        return $vars;
    6781    }
    6882
    69     protected function inflectCoreVars($vars)
     83    /**
     84     * @param array<string, string> $vars
     85     * @return array<string, string>
     86     */
     87    protected function inflectCoreVars(array $vars): array
    7088    {
    71         $vars['name'] = preg_replace('/-providers$/', '', $vars['name']);
    72         $vars['name'] = preg_replace('/-provider$/', '', $vars['name']);
    73         $vars['name'] = preg_replace('/-adapter$/', '', $vars['name']);
     89        $vars['install_item_dir'] = $this->pregReplace('/-providers$/', '', $vars['install_item_dir']);
     90        $vars['install_item_dir'] = $this->pregReplace('/-provider$/', '', $vars['install_item_dir']);
     91        $vars['install_item_dir'] = $this->pregReplace('/-adapter$/', '', $vars['install_item_dir']);
    7492
    7593        return $vars;
    7694    }
    7795
    78     protected function inflectModuleVars($vars)
     96    /**
     97     * @param array<string, string> $vars
     98     * @return array<string, string>
     99     */
     100    protected function inflectModuleVars(array $vars): array
    79101    {
    80         $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
    81         $vars['name'] = preg_replace('/module-$/', '', $vars['name']);
     102        $vars['install_item_dir'] = $this->pregReplace('/-module$/', '', $vars['install_item_dir']);
     103        $vars['install_item_dir'] = $this->pregReplace('/module-$/', '', $vars['install_item_dir']);
    82104
    83105        return $vars;
    84106    }
    85107
    86     protected function inflectModulesVars($vars)
     108    /**
     109     * @param array<string, string> $vars
     110     * @return array<string, string>
     111     */
     112    protected function inflectModulesVars(array $vars): array
    87113    {
    88         $vars['name'] = preg_replace('/-modules$/', '', $vars['name']);
    89         $vars['name'] = preg_replace('/modules-$/', '', $vars['name']);
     114        $vars['install_item_dir'] = $this->pregReplace('/-modules$/', '', $vars['install_item_dir']);
     115        $vars['install_item_dir'] = $this->pregReplace('/modules-$/', '', $vars['install_item_dir']);
    90116
    91117        return $vars;
    92118    }
    93119
    94     protected function inflectSkinVars($vars)
     120    /**
     121     * @param array<string, string> $vars
     122     * @return array<string, string>
     123     */
     124    protected function inflectSkinVars(array $vars): array
    95125    {
    96         $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
    97         $vars['name'] = preg_replace('/skin-$/', '', $vars['name']);
     126        $vars['install_item_dir'] = $this->pregReplace('/-skin$/', '', $vars['install_item_dir']);
     127        $vars['install_item_dir'] = $this->pregReplace('/skin-$/', '', $vars['install_item_dir']);
    98128
    99129        return $vars;
    100130    }
    101131
    102     protected function inflectElementVars($vars)
     132    /**
     133     * @param array<string, string> $vars
     134     * @return array<string, string>
     135     */
     136    protected function inflectElementVars(array $vars): array
    103137    {
    104         $vars['name'] = preg_replace('/-elements$/', '', $vars['name']);
    105         $vars['name'] = preg_replace('/elements-$/', '', $vars['name']);
    106         $vars['name'] = preg_replace('/-element$/', '', $vars['name']);
    107         $vars['name'] = preg_replace('/element-$/', '', $vars['name']);
     138        $vars['install_item_dir'] = $this->pregReplace('/-elements$/', '', $vars['install_item_dir']);
     139        $vars['install_item_dir'] = $this->pregReplace('/elements-$/', '', $vars['install_item_dir']);
     140        $vars['install_item_dir'] = $this->pregReplace('/-element$/', '', $vars['install_item_dir']);
     141        $vars['install_item_dir'] = $this->pregReplace('/element-$/', '', $vars['install_item_dir']);
    108142
    109143        return $vars;
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MoodleInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'mod'                => 'mod/{$name}/',
     
    1214        'assignsubmission'   => 'mod/assign/submission/{$name}/',
    1315        'assignfeedback'     => 'mod/assign/feedback/{$name}/',
     16        'antivirus'          => 'lib/antivirus/{$name}/',
    1417        'auth'               => 'auth/{$name}/',
    1518        'availability'       => 'availability/condition/{$name}/',
     
    1922        'cachelock'          => 'cache/locks/{$name}/',
    2023        'calendartype'       => 'calendar/type/{$name}/',
     24        'customfield'        => 'customfield/field/{$name}/',
     25        'fileconverter'      => 'files/converter/{$name}/',
    2126        'format'             => 'course/format/{$name}/',
    2227        'coursereport'       => 'course/report/{$name}/',
     28        'contenttype'        => 'contentbank/contenttype/{$name}/',
     29        'customcertelement'  => 'mod/customcert/element/{$name}/',
    2330        'datafield'          => 'mod/data/field/{$name}/',
     31        'dataformat'         => 'dataformat/{$name}/',
    2432        'datapreset'         => 'mod/data/preset/{$name}/',
    2533        'editor'             => 'lib/editor/{$name}/',
     
    3442        'ltisource'          => 'mod/lti/source/{$name}/',
    3543        'ltiservice'         => 'mod/lti/service/{$name}/',
     44        'media'              => 'media/player/{$name}/',
    3645        'message'            => 'message/output/{$name}/',
    3746        'mnetservice'        => 'mnet/service/{$name}/',
     47        'paygw'              => 'payment/gateway/{$name}/',
    3848        'plagiarism'         => 'plagiarism/{$name}/',
    3949        'portfolio'          => 'portfolio/{$name}/',
     
    4656        'repository'         => 'repository/{$name}/',
    4757        'scormreport'        => 'mod/scorm/report/{$name}/',
     58        'search'             => 'search/engine/{$name}/',
    4859        'theme'              => 'theme/{$name}/',
    4960        'tinymce'            => 'lib/editor/tinymce/plugins/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class OctoberInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'modules/{$name}/',
    810        'plugin'    => 'plugins/{$vendor}/{$name}/',
    9         'theme'     => 'themes/{$name}/'
     11        'theme'     => 'themes/{$vendor}-{$name}/'
    1012    );
    1113
     
    1618     *
    1719     * For package type october-theme, cut off a trailing '-theme' if present.
    18      *
    1920     */
    20     public function inflectPackageVars($vars)
     21    public function inflectPackageVars(array $vars): array
    2122    {
    2223        if ($vars['type'] === 'october-plugin') {
     
    3132    }
    3233
    33     protected function inflectPluginVars($vars)
     34    /**
     35     * @param array<string, string> $vars
     36     * @return array<string, string>
     37     */
     38    protected function inflectPluginVars(array $vars): array
    3439    {
    35         $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
     40        $vars['name'] = $this->pregReplace('/^oc-|-plugin$/', '', $vars['name']);
     41        $vars['vendor'] = $this->pregReplace('/[^a-z0-9_]/i', '', $vars['vendor']);
    3642
    3743        return $vars;
    3844    }
    3945
    40     protected function inflectThemeVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectThemeVars(array $vars): array
    4151    {
    42         $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/^oc-|-theme$/', '', $vars['name']);
     53        $vars['vendor'] = $this->pregReplace('/[^a-z0-9_]/i', '', $vars['vendor']);
    4354
    4455        return $vars;
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class OxidInstaller extends BaseInstaller
    78{
    8     const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';
     9    const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';
    910
     11    /** @var array<string, string> */
    1012    protected $locations = array(
    1113        'module'    => 'modules/{$name}/',
     
    1416    );
    1517
    16     /**
    17      * getInstallPath
    18      *
    19      * @param PackageInterface $package
    20      * @param string $frameworkType
    21      * @return void
    22      */
    23     public function getInstallPath(PackageInterface $package, $frameworkType = '')
    24     {
    25         $installPath = parent::getInstallPath($package, $frameworkType);
    26         $type = $this->package->getType();
    27         if ($type === 'oxid-module') {
    28             $this->prepareVendorDirectory($installPath);
    29         }
    30         return $installPath;
    31     }
     18    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
     19    {
     20        $installPath = parent::getInstallPath($package, $frameworkType);
     21        $type = $this->package->getType();
     22        if ($type === 'oxid-module') {
     23            $this->prepareVendorDirectory($installPath);
     24        }
     25        return $installPath;
     26    }
    3227
    33     /**
    34      * prepareVendorDirectory
    35      *
    36      * Makes sure there is a vendormetadata.php file inside
    37      * the vendor folder if there is a vendor folder.
    38      *
    39      * @param string $installPath
    40      * @return void
    41      */
    42     protected function prepareVendorDirectory($installPath)
    43     {
    44         $matches = '';
    45         $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
    46         if (!$hasVendorDirectory) {
    47             return;
    48         }
     28    /**
     29     * Makes sure there is a vendormetadata.php file inside
     30     * the vendor folder if there is a vendor folder.
     31     */
     32    protected function prepareVendorDirectory(string $installPath): void
     33    {
     34        $matches = '';
     35        $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
     36        if (!$hasVendorDirectory) {
     37            return;
     38        }
    4939
    50         $vendorDirectory = $matches['vendor'];
    51         $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
    52         if (!file_exists($vendorPath)) {
    53             mkdir($vendorPath, 0755, true);
    54         }
     40        $vendorDirectory = $matches['vendor'];
     41        $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
     42        if (!file_exists($vendorPath)) {
     43            mkdir($vendorPath, 0755, true);
     44        }
    5545
    56         $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
    57         touch($vendorMetaDataPath);
    58     }
     46        $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
     47        touch($vendorMetaDataPath);
     48    }
    5949}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PPIInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PhiftyInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'bundle' => 'bundles/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PhpBBInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'extension' => 'ext/{$vendor}/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    910class PiwikInstaller extends BaseInstaller
    1011{
    11     /**
    12      * @var array
    13      */
     12    /** @var array<string, string> */
    1413    protected $locations = array(
    1514        'plugin' => 'plugins/{$name}/',
     
    1817    /**
    1918     * Format package name to CamelCase
    20      * @param array $vars
    21      *
    22      * @return array
    2319     */
    24     public function inflectPackageVars($vars)
     20    public function inflectPackageVars(array $vars): array
    2521    {
    26         $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
     22        $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
    2723        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    2824        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PlentymarketsInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'   => '{$name}/'
     
    1012    /**
    1113     * Remove hyphen, "plugin" and format to camelcase
    12      * @param array $vars
    13      *
    14      * @return array
    1514     */
    16     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1716    {
    18         $vars['name'] = explode("-", $vars['name']);
    19         foreach ($vars['name'] as $key => $name) {
    20             $vars['name'][$key] = ucfirst($vars['name'][$key]);
     17        $nameBits = explode("-", $vars['name']);
     18        foreach ($nameBits as $key => $name) {
     19            $nameBits[$key] = ucfirst($name);
    2120            if (strcasecmp($name, "Plugin") == 0) {
    22                 unset($vars['name'][$key]);
     21                unset($nameBits[$key]);
    2322            }
    2423        }
    25         $vars['name'] = implode("",$vars['name']);
     24        $vars['name'] = implode('', $nameBits);
    2625
    2726        return $vars;
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Plugin.php

    r2238319 r2717568  
    99class Plugin implements PluginInterface
    1010{
     11    /** @var Installer */
     12    private $installer;
    1113
    12     public function activate(Composer $composer, IOInterface $io)
     14    public function activate(Composer $composer, IOInterface $io): void
    1315    {
    14         $installer = new Installer($io, $composer);
    15         $composer->getInstallationManager()->addInstaller($installer);
     16        $this->installer = new Installer($io, $composer);
     17        $composer->getInstallationManager()->addInstaller($this->installer);
     18    }
     19
     20    public function deactivate(Composer $composer, IOInterface $io): void
     21    {
     22        $composer->getInstallationManager()->removeInstaller($this->installer);
     23    }
     24
     25    public function uninstall(Composer $composer, IOInterface $io): void
     26    {
    1627    }
    1728}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PrestashopInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php

    r2238319 r2717568  
    66{
    77
     8    /** @var array<string, string> */
    89    protected $locations = array(
    910        'module' => 'modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RadPHPInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'bundle' => 'src/{$name}/'
     
    1113     * Format package name to CamelCase
    1214     */
    13     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1416    {
    1517        $nameParts = explode('/', $vars['name']);
    1618        foreach ($nameParts as &$value) {
    17             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     19            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    1820            $value = str_replace(array('-', '_'), ' ', $value);
    1921            $value = str_replace(' ', '', ucwords($value));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ReIndexInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'theme'     => 'themes/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RedaxoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'addon'          => 'redaxo/include/addons/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RoundcubeInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'plugins/{$name}/',
     
    1012    /**
    1113     * Lowercase name and changes the name to a underscores
    12      *
    13      * @param  array $vars
    14      * @return array
    1514     */
    16     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1716    {
    1817        $vars['name'] = strtolower(str_replace('-', '_', $vars['name']));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class SMFInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'Sources/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    89class ShopwareInstaller extends BaseInstaller
    910{
     11    /** @var array<string, string> */
    1012    protected $locations = array(
    1113        'backend-plugin'    => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
     
    1921    /**
    2022     * Transforms the names
    21      * @param  array $vars
    22      * @return array
    2323     */
    24     public function inflectPackageVars($vars)
     24    public function inflectPackageVars(array $vars): array
    2525    {
    2626        if ($vars['type'] === 'shopware-theme') {
    2727            return $this->correctThemeName($vars);
    28         } else {
    29             return $this->correctPluginName($vars);
    3028        }
     29
     30        return $this->correctPluginName($vars);
    3131    }
    3232
    3333    /**
    3434     * Changes the name to a camelcased combination of vendor and name
    35      * @param  array $vars
    36      * @return array
     35     *
     36     * @param array<string, string> $vars
     37     * @return array<string, string>
    3738     */
    38     private function correctPluginName($vars)
     39    private function correctPluginName(array $vars): array
    3940    {
    4041        $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
    4142            return strtoupper($matches[0][1]);
    4243        }, $vars['name']);
     44
     45        if (null === $camelCasedName) {
     46            throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error());
     47        }
    4348
    4449        $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName);
     
    4954    /**
    5055     * Changes the name to a underscore separated name
    51      * @param  array $vars
    52      * @return array
     56     *
     57     * @param array<string, string> $vars
     58     * @return array<string, string>
    5359     */
    54     private function correctThemeName($vars)
     60    private function correctThemeName(array $vars): array
    5561    {
    5662        $vars['name'] = str_replace('-', '_', $vars['name']);
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class SilverStripeInstaller extends BaseInstaller
    78{
     9    /** @var array<string, string> */
    810    protected $locations = array(
    911        'module' => '{$name}/',
     
    1618     * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework
    1719     * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0
    18      *
    19      * @param  PackageInterface $package
    20      * @param  string           $frameworkType
    21      * @return string
    2220     */
    23     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     21    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
    2422    {
    2523        if (
     
    2927        ) {
    3028            return $this->templatePath($this->locations['module'], array('name' => 'sapphire'));
    31         } else {
    32             return parent::getInstallPath($package, $frameworkType);
    3329        }
    3430
     31        return parent::getInstallPath($package, $frameworkType);
    3532    }
    3633}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class TheliaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'                => 'local/modules/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php

    r2238319 r2717568  
    11<?php
    2     namespace Composer\Installers;
    3     /**
    4      * Composer installer for 3rd party Tusk utilities
    5      * @author Drew Ewing <drew@phenocode.com>
    6      */
    7     class TuskInstaller extends BaseInstaller
    8     {
    9         protected $locations = array(
    10             'task'    => '.tusk/tasks/{$name}/',
    11             'command' => '.tusk/commands/{$name}/',
    12             'asset'   => 'assets/tusk/{$name}/',
    13         );
    14     }
     2
     3namespace Composer\Installers;
     4
     5/**
     6 * Composer installer for 3rd party Tusk utilities
     7 * @author Drew Ewing <drew@phenocode.com>
     8 */
     9class TuskInstaller extends BaseInstaller
     10{
     11    /** @var array<string, string> */
     12    protected $locations = array(
     13        'task'    => '.tusk/tasks/{$name}/',
     14        'command' => '.tusk/commands/{$name}/',
     15        'asset'   => 'assets/tusk/{$name}/',
     16    );
     17}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class VanillaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'    => 'plugins/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php

    r2238319 r2717568  
    55class WHMCSInstaller extends BaseInstaller
    66{
     7    /** @var array<string, string> */
    78    protected $locations = array(
    8         'gateway' => 'modules/gateways/{$name}/',
     9        'addons' => 'modules/addons/{$vendor}_{$name}/',
     10        'fraud' => 'modules/fraud/{$vendor}_{$name}/',
     11        'gateways' => 'modules/gateways/{$vendor}_{$name}/',
     12        'notifications' => 'modules/notifications/{$vendor}_{$name}/',
     13        'registrars' => 'modules/registrars/{$vendor}_{$name}/',
     14        'reports' => 'modules/reports/{$vendor}_{$name}/',
     15        'security' => 'modules/security/{$vendor}_{$name}/',
     16        'servers' => 'modules/servers/{$vendor}_{$name}/',
     17        'social' => 'modules/social/{$vendor}_{$name}/',
     18        'support' => 'modules/support/{$vendor}_{$name}/',
     19        'templates' => 'templates/{$vendor}_{$name}/',
     20        'includes' => 'includes/{$vendor}_{$name}/'
    921    );
    1022}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class WolfCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'wolf/plugins/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class WordPressInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'    => 'wp-content/plugins/{$name}/',
    810        'theme'     => 'wp-content/themes/{$name}/',
    911        'muplugin'  => 'wp-content/mu-plugins/{$name}/',
     12        'dropin'    => 'wp-content/{$name}/',
    1013    );
    1114}
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php

    r2238319 r2717568  
    11<?php
    2 /**
    3  * Created by PhpStorm.
    4  * User: cbleek
    5  * Date: 25.03.16
    6  * Time: 20:55
    7  */
    82
    93namespace Composer\Installers;
    104
    11 
    125class YawikInstaller extends BaseInstaller
    136{
     7    /** @var array<string, string> */
    148    protected $locations = array(
    159        'module'  => 'module/{$name}/',
     
    1812    /**
    1913     * Format package name to CamelCase
    20      * @param array $vars
    21      *
    22      * @return array
    2314     */
    24     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    2516    {
    26         $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
     17        $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
    2718        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    2819        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ZendInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'library/{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ZikulaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$vendor}-{$name}/',
  • wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/bootstrap.php

    r2238319 r2717568  
    11<?php
    2 function includeIfExists($file)
     2
     3use Composer\Autoload\ClassLoader;
     4
     5function includeIfExists(string $file): ?ClassLoader
    36{
    47    if (file_exists($file)) {
    58        return include $file;
    69    }
     10
     11    return null;
    712}
    813if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) {
  • wk-google-analytics/tags/1.9.8/wk-ga.php

    r2715258 r2717568  
    55 * Plugin URI: https://wordpress.org/plugins/wk-google-analytics/
    66 * Description: Deploy Google Analytics on your website without having to edit code and without tracking your own visits. You can exclude any logged in user from this and enable tracking solely for them.
    7  * Version: 1.9.7
     7 * Version: 1.9.8
    88 * Author: WEBKINDER
    99 * Author URI: https://www.webkinder.ch
  • wk-google-analytics/trunk/readme.txt

    r2715258 r2717568  
    22Contributors: WEBKINDER
    33Tags: google analytics, tracking code, analytics, anonymization, anonymize, anonymizeIp, cookie, Datenschutz, ga, gaoptout, google, googleanalytics, google tag manager, gtm, Datenschutz, datenschutzkonform, script, snippet
    4 Requires at least: 4.8
     4Requires at least: 4.9
    55Tested up to: 5.9.3
    6 Requires PHP: 7.1
    7 Stable tag: 1.9.7
     6Requires PHP: 7.2
     7Stable tag: 1.9.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 1.9.8 =
     37
     38* Update composer packages and unit testing for CI
    3539
    3640= 1.9.7 =
  • wk-google-analytics/trunk/vendor/autoload.php

    r2715258 r2717568  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8::getLoader();
     7return ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824::getLoader();
  • wk-google-analytics/trunk/vendor/composer/ClassLoader.php

    r2402645 r2717568  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    http://www.php-fig.org/psr/psr-0/
    41  * @see    http://www.php-fig.org/psr/psr-4/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-var array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     178     * @param string          $prefix  The prefix
     179     * @param string[]|string $paths   The PSR-0 root directories
     180     * @param bool            $prepend Whether to prepend the directories
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     226     * @param string[]|string $paths   The PSR-4 base directories
     227     * @param bool            $prepend Whether to prepend the directories
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • wk-google-analytics/trunk/vendor/composer/autoload_classmap.php

    r2411206 r2717568  
    77
    88return array(
     9    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    910    'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
    10     'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
     11    'Composer\\Installers\\AkauntingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php',
    1112    'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
    1213    'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
     
    1718    'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
    1819    'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
     20    'Composer\\Installers\\CiviCrmInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
    1921    'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
    2022    'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
    2123    'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
    2224    'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
    23     'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
    2425    'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
    2526    'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
     27    'Composer\\Installers\\DframeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DframeInstaller.php',
    2628    'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
    2729    'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
    2830    'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
    2931    'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
     32    'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
    3033    'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
     34    'Composer\\Installers\\EzPlatformInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
    3135    'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
    3236    'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
     
    3539    'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
    3640    'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
    37     'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
    38     'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
     41    'Composer\\Installers\\ItopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
     42    'Composer\\Installers\\KanboardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
     43    'Composer\\Installers\\KnownInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KnownInstaller.php',
    3944    'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
    4045    'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
     46    'Composer\\Installers\\LanManagementSystemInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
    4147    'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
     48    'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
    4249    'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
    4350    'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
    4451    'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
    4552    'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
     53    'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
    4654    'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
     55    'Composer\\Installers\\MantisBTInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
    4756    'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
     57    'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
    4858    'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
     59    'Composer\\Installers\\MiaoxingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php',
    4960    'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
     61    'Composer\\Installers\\ModxInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
    5062    'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
    5163    'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
     64    'Composer\\Installers\\OntoWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
     65    'Composer\\Installers\\OsclassInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
    5266    'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
    5367    'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
     68    'Composer\\Installers\\PantheonInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PantheonInstaller.php',
    5469    'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
    5570    'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
    56     'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
    5771    'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
    5872    'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
    5973    'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
     74    'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
    6075    'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
     76    'Composer\\Installers\\ProcessWireInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php',
    6177    'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
     78    'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
    6279    'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
    6380    'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
     81    'Composer\\Installers\\Redaxo5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php',
    6482    'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
    6583    'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
     
    6785    'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
    6886    'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
    69     'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
    70     'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
    71     'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
     87    'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
     88    'Composer\\Installers\\StarbugInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/StarbugInstaller.php',
     89    'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
     90    'Composer\\Installers\\SyliusInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
     91    'Composer\\Installers\\TaoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TaoInstaller.php',
     92    'Composer\\Installers\\TastyIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php',
    7293    'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
    7394    'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
     95    'Composer\\Installers\\UserFrostingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
    7496    'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
     97    'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
    7598    'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
     99    'Composer\\Installers\\WinterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WinterInstaller.php',
    76100    'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
    77101    'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
  • wk-google-analytics/trunk/vendor/composer/autoload_real.php

    r2715258 r2717568  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8
     5class ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit32e57717e9721e837f04a955935c2ed8', 'loadClassLoader'));
     25        require __DIR__ . '/platform_check.php';
     26
     27        spl_autoload_register(array('ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824', 'loadClassLoader'));
    2830
    2931        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    3032        if ($useStaticLoader) {
    31             require_once __DIR__ . '/autoload_static.php';
     33            require __DIR__ . '/autoload_static.php';
    3234
    33             call_user_func(\Composer\Autoload\ComposerStaticInit32e57717e9721e837f04a955935c2ed8::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::getInitializer($loader));
    3436        } else {
    3537            $map = require __DIR__ . '/autoload_namespaces.php';
  • wk-google-analytics/trunk/vendor/composer/autoload_static.php

    r2715258 r2717568  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit32e57717e9721e837f04a955935c2ed8
     7class ComposerStaticInit607292fa727b35ff77acbc2a12eb9824
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3030
    3131    public static $classMap = array (
     32        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    3233        'Composer\\Installers\\AglInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AglInstaller.php',
    33         'Composer\\Installers\\AimeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
     34        'Composer\\Installers\\AkauntingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php',
    3435        'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
    3536        'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
     
    4041        'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
    4142        'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
     43        'Composer\\Installers\\CiviCrmInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
    4244        'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
    4345        'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
    4446        'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
    4547        'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
    46         'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
    4748        'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
    4849        'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
     50        'Composer\\Installers\\DframeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DframeInstaller.php',
    4951        'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
    5052        'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
    5153        'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
    5254        'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
     55        'Composer\\Installers\\EliasisInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
    5356        'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
     57        'Composer\\Installers\\EzPlatformInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
    5458        'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
    5559        'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
     
    5862        'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
    5963        'Composer\\Installers\\Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Installer.php',
    60         'Composer\\Installers\\JoomlaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
    61         'Composer\\Installers\\KirbyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
     64        'Composer\\Installers\\ItopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
     65        'Composer\\Installers\\KanboardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
     66        'Composer\\Installers\\KnownInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KnownInstaller.php',
    6267        'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
    6368        'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
     69        'Composer\\Installers\\LanManagementSystemInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
    6470        'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
     71        'Composer\\Installers\\LavaLiteInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
    6572        'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
    6673        'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
    6774        'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
    6875        'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
     76        'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
    6977        'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
     78        'Composer\\Installers\\MantisBTInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php',
    7079        'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
     80        'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
    7181        'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
     82        'Composer\\Installers\\MiaoxingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php',
    7283        'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
     84        'Composer\\Installers\\ModxInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
    7385        'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
    7486        'Composer\\Installers\\OctoberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
     87        'Composer\\Installers\\OntoWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
     88        'Composer\\Installers\\OsclassInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
    7589        'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
    7690        'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
     91        'Composer\\Installers\\PantheonInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PantheonInstaller.php',
    7792        'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
    7893        'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
    79         'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
    8094        'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
    8195        'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
    8296        'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php',
     97        'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
    8398        'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
     99        'Composer\\Installers\\ProcessWireInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php',
    84100        'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
     101        'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
    85102        'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
    86103        'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
     104        'Composer\\Installers\\Redaxo5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php',
    87105        'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
    88106        'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
     
    90108        'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
    91109        'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
    92         'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
    93         'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
    94         'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
     110        'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
     111        'Composer\\Installers\\StarbugInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/StarbugInstaller.php',
     112        'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
     113        'Composer\\Installers\\SyliusInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyliusInstaller.php',
     114        'Composer\\Installers\\TaoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TaoInstaller.php',
     115        'Composer\\Installers\\TastyIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php',
    95116        'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
    96117        'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
     118        'Composer\\Installers\\UserFrostingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
    97119        'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
     120        'Composer\\Installers\\VgmcpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
    98121        'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
     122        'Composer\\Installers\\WinterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WinterInstaller.php',
    99123        'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
    100124        'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
     
    111135    {
    112136        return \Closure::bind(function () use ($loader) {
    113             $loader->prefixLengthsPsr4 = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$prefixLengthsPsr4;
    114             $loader->prefixDirsPsr4 = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$prefixDirsPsr4;
    115             $loader->classMap = ComposerStaticInit32e57717e9721e837f04a955935c2ed8::$classMap;
     137            $loader->prefixLengthsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixLengthsPsr4;
     138            $loader->prefixDirsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixDirsPsr4;
     139            $loader->classMap = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$classMap;
    116140
    117141        }, null, ClassLoader::class);
  • wk-google-analytics/trunk/vendor/composer/installed.json

    r2238319 r2717568  
    1 [
    2     {
    3         "name": "composer/installers",
    4         "version": "v1.2.0",
    5         "version_normalized": "1.2.0.0",
    6         "source": {
    7             "type": "git",
    8             "url": "https://github.com/composer/installers.git",
    9             "reference": "d78064c68299743e0161004f2de3a0204e33b804"
    10         },
    11         "dist": {
    12             "type": "zip",
    13             "url": "https://api.github.com/repos/composer/installers/zipball/d78064c68299743e0161004f2de3a0204e33b804",
    14             "reference": "d78064c68299743e0161004f2de3a0204e33b804",
    15             "shasum": ""
    16         },
    17         "require": {
    18             "composer-plugin-api": "^1.0"
    19         },
    20         "replace": {
    21             "roundcube/plugin-installer": "*",
    22             "shama/baton": "*"
    23         },
    24         "require-dev": {
    25             "composer/composer": "1.0.*@dev",
    26             "phpunit/phpunit": "4.1.*"
    27         },
    28         "time": "2016-08-13T20:53:52+00:00",
    29         "type": "composer-plugin",
    30         "extra": {
    31             "class": "Composer\\Installers\\Plugin",
    32             "branch-alias": {
    33                 "dev-master": "1.0-dev"
    34             }
    35         },
    36         "installation-source": "dist",
    37         "autoload": {
    38             "psr-4": {
    39                 "Composer\\Installers\\": "src/Composer/Installers"
    40             }
    41         },
    42         "notification-url": "https://packagist.org/downloads/",
    43         "license": [
    44             "MIT"
    45         ],
    46         "authors": [
    47             {
    48                 "name": "Kyle Robinson Young",
    49                 "email": "kyle@dontkry.com",
    50                 "homepage": "https://github.com/shama"
    51             }
    52         ],
    53         "description": "A multi-framework Composer library installer",
    54         "homepage": "https://composer.github.io/installers/",
    55         "keywords": [
    56             "Craft",
    57             "Dolibarr",
    58             "Hurad",
    59             "ImageCMS",
    60             "MODX Evo",
    61             "Mautic",
    62             "OXID",
    63             "Plentymarkets",
    64             "RadPHP",
    65             "SMF",
    66             "Thelia",
    67             "WolfCMS",
    68             "agl",
    69             "aimeos",
    70             "annotatecms",
    71             "attogram",
    72             "bitrix",
    73             "cakephp",
    74             "chef",
    75             "cockpit",
    76             "codeigniter",
    77             "concrete5",
    78             "croogo",
    79             "dokuwiki",
    80             "drupal",
    81             "elgg",
    82             "expressionengine",
    83             "fuelphp",
    84             "grav",
    85             "installer",
    86             "joomla",
    87             "kohana",
    88             "laravel",
    89             "lithium",
    90             "magento",
    91             "mako",
    92             "mediawiki",
    93             "modulework",
    94             "moodle",
    95             "phpbb",
    96             "piwik",
    97             "ppi",
    98             "puppet",
    99             "reindex",
    100             "roundcube",
    101             "shopware",
    102             "silverstripe",
    103             "symfony",
    104             "typo3",
    105             "wordpress",
    106             "yawik",
    107             "zend",
    108             "zikula"
    109         ]
    110     }
    111 ]
     1{
     2    "packages": [
     3        {
     4            "name": "composer/installers",
     5            "version": "v2.1.0",
     6            "version_normalized": "2.1.0.0",
     7            "source": {
     8                "type": "git",
     9                "url": "https://github.com/composer/installers.git",
     10                "reference": "75e5ef05436c90ac565a48176cc7465991908352"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/composer/installers/zipball/75e5ef05436c90ac565a48176cc7465991908352",
     15                "reference": "75e5ef05436c90ac565a48176cc7465991908352",
     16                "shasum": ""
     17            },
     18            "require": {
     19                "composer-plugin-api": "^1.0 || ^2.0",
     20                "php": "^7.2 || ^8.0"
     21            },
     22            "require-dev": {
     23                "composer/composer": "1.6.* || ^2.0",
     24                "composer/semver": "^1 || ^3",
     25                "phpstan/phpstan": "^0.12.55",
     26                "phpstan/phpstan-phpunit": "^0.12.16",
     27                "symfony/phpunit-bridge": "^5.3",
     28                "symfony/process": "^5"
     29            },
     30            "time": "2022-03-18T12:27:54+00:00",
     31            "type": "composer-plugin",
     32            "extra": {
     33                "class": "Composer\\Installers\\Plugin",
     34                "branch-alias": {
     35                    "dev-main": "2.x-dev"
     36                },
     37                "plugin-modifies-install-path": true
     38            },
     39            "installation-source": "dist",
     40            "autoload": {
     41                "psr-4": {
     42                    "Composer\\Installers\\": "src/Composer/Installers"
     43                }
     44            },
     45            "notification-url": "https://packagist.org/downloads/",
     46            "license": [
     47                "MIT"
     48            ],
     49            "authors": [
     50                {
     51                    "name": "Kyle Robinson Young",
     52                    "email": "kyle@dontkry.com",
     53                    "homepage": "https://github.com/shama"
     54                }
     55            ],
     56            "description": "A multi-framework Composer library installer",
     57            "homepage": "https://composer.github.io/installers/",
     58            "keywords": [
     59                "Dolibarr",
     60                "Eliasis",
     61                "Hurad",
     62                "ImageCMS",
     63                "Kanboard",
     64                "Lan Management System",
     65                "MODX Evo",
     66                "MantisBT",
     67                "Mautic",
     68                "Maya",
     69                "OXID",
     70                "Plentymarkets",
     71                "Porto",
     72                "RadPHP",
     73                "SMF",
     74                "Starbug",
     75                "Thelia",
     76                "Whmcs",
     77                "WolfCMS",
     78                "agl",
     79                "annotatecms",
     80                "attogram",
     81                "bitrix",
     82                "cakephp",
     83                "chef",
     84                "cockpit",
     85                "codeigniter",
     86                "concrete5",
     87                "croogo",
     88                "dokuwiki",
     89                "drupal",
     90                "eZ Platform",
     91                "elgg",
     92                "expressionengine",
     93                "fuelphp",
     94                "grav",
     95                "installer",
     96                "itop",
     97                "known",
     98                "kohana",
     99                "laravel",
     100                "lavalite",
     101                "lithium",
     102                "magento",
     103                "majima",
     104                "mako",
     105                "mediawiki",
     106                "miaoxing",
     107                "modulework",
     108                "modx",
     109                "moodle",
     110                "osclass",
     111                "pantheon",
     112                "phpbb",
     113                "piwik",
     114                "ppi",
     115                "processwire",
     116                "puppet",
     117                "pxcms",
     118                "reindex",
     119                "roundcube",
     120                "shopware",
     121                "silverstripe",
     122                "sydes",
     123                "sylius",
     124                "tastyigniter",
     125                "wordpress",
     126                "yawik",
     127                "zend",
     128                "zikula"
     129            ],
     130            "support": {
     131                "issues": "https://github.com/composer/installers/issues",
     132                "source": "https://github.com/composer/installers/tree/v2.1.0"
     133            },
     134            "funding": [
     135                {
     136                    "url": "https://packagist.com",
     137                    "type": "custom"
     138                },
     139                {
     140                    "url": "https://github.com/composer",
     141                    "type": "github"
     142                },
     143                {
     144                    "url": "https://tidelift.com/funding/github/packagist/composer/composer",
     145                    "type": "tidelift"
     146                }
     147            ],
     148            "install-path": "./installers"
     149        }
     150    ],
     151    "dev": false,
     152    "dev-package-names": []
     153}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AglInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AglInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'More/{$name}/',
     
    1113     * Format package name to CamelCase
    1214     */
    13     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1416    {
    15         $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
     17        $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
    1618            return strtoupper($matches[1]);
    1719        }, $vars['name']);
     20
     21        if (null === $name) {
     22            throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error());
     23        }
     24
     25        $vars['name'] = $name;
    1826
    1927        return $vars;
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AnnotateCmsInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'addons/modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AsgardInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'Modules/{$name}/',
     
    1517     *
    1618     * For package type asgard-theme, cut off a trailing '-theme' if present.
    17      *
    1819     */
    19     public function inflectPackageVars($vars)
     20    public function inflectPackageVars(array $vars): array
    2021    {
    2122        if ($vars['type'] === 'asgard-module') {
     
    3031    }
    3132
    32     protected function inflectPluginVars($vars)
     33    /**
     34     * @param array<string, string> $vars
     35     * @return array<string, string>
     36     */
     37    protected function inflectPluginVars(array $vars): array
    3338    {
    34         $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
     39        $vars['name'] = $this->pregReplace('/-module$/', '', $vars['name']);
    3540        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    3641        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
     
    3944    }
    4045
    41     protected function inflectThemeVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectThemeVars(array $vars): array
    4251    {
    43         $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/-theme$/', '', $vars['name']);
    4453        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    4554        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class AttogramInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    89abstract class BaseInstaller
    910{
     11    /** @var array<string, string> */
    1012    protected $locations = array();
     13    /** @var Composer */
    1114    protected $composer;
     15    /** @var PackageInterface */
    1216    protected $package;
     17    /** @var IOInterface */
    1318    protected $io;
    1419
    1520    /**
    1621     * Initializes base installer.
    17      *
    18      * @param PackageInterface $package
    19      * @param Composer         $composer
    20      * @param IOInterface      $io
    2122     */
    22     public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)
     23    public function __construct(PackageInterface $package, Composer $composer, IOInterface $io)
    2324    {
    2425        $this->composer = $composer;
     
    2930    /**
    3031     * Return the install path based on package type.
    31      *
    32      * @param  PackageInterface $package
    33      * @param  string           $frameworkType
    34      * @return string
    3532     */
    36     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     33    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
    3734    {
    3835        $type = $this->package->getType();
     
    5350        }
    5451
    55         if ($this->composer->getPackage()) {
    56             $extra = $this->composer->getPackage()->getExtra();
    57             if (!empty($extra['installer-paths'])) {
    58                 $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
    59                 if ($customPath !== false) {
    60                     return $this->templatePath($customPath, $availableVars);
    61                 }
     52        $extra = $this->composer->getPackage()->getExtra();
     53        if (!empty($extra['installer-paths'])) {
     54            $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
     55            if ($customPath !== false) {
     56                return $this->templatePath($customPath, $availableVars);
    6257            }
    6358        }
    6459
    6560        $packageType = substr($type, strlen($frameworkType) + 1);
    66         $locations = $this->getLocations();
     61        $locations = $this->getLocations($frameworkType);
    6762        if (!isset($locations[$packageType])) {
    6863            throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type));
     
    7570     * For an installer to override to modify the vars per installer.
    7671     *
    77      * @param  array $vars
    78      * @return array
     72     * @param  array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string}
     73     * @return array<string, string>
    7974     */
    80     public function inflectPackageVars($vars)
     75    public function inflectPackageVars(array $vars): array
    8176    {
    8277        return $vars;
     
    8681     * Gets the installer's locations
    8782     *
    88      * @return array
     83     * @return array<string, string> map of package types => install path
    8984     */
    90     public function getLocations()
     85    public function getLocations(string $frameworkType)
    9186    {
    9287        return $this->locations;
     
    9691     * Replace vars in a path
    9792     *
    98      * @param  string $path
    99      * @param  array  $vars
    100      * @return string
     93     * @param  array<string, string> $vars
    10194     */
    102     protected function templatePath($path, array $vars = array())
     95    protected function templatePath(string $path, array $vars = array()): string
    10396    {
    10497        if (strpos($path, '{') !== false) {
     
    118111     * Search through a passed paths array for a custom install path.
    119112     *
    120      * @param  array  $paths
    121      * @param  string $name
    122      * @param  string $type
    123      * @param  string $vendor = NULL
    124      * @return string
     113     * @param  array<string, string[]|string> $paths
     114     * @return string|false
    125115     */
    126     protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)
     116    protected function mapCustomInstallPaths(array $paths, string $name, string $type, ?string $vendor = null)
    127117    {
    128118        foreach ($paths as $path => $names) {
     119            $names = (array) $names;
    129120            if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) {
    130121                return $path;
     
    134125        return false;
    135126    }
     127
     128    protected function pregReplace(string $pattern, string $replacement, string $subject): string
     129    {
     130        $result = preg_replace($pattern, $replacement, $subject);
     131        if (null === $result) {
     132            throw new \RuntimeException('Failed to run preg_replace with '.$pattern.': '.preg_last_error());
     133        }
     134
     135        return $result;
     136    }
    136137}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php

    r2238319 r2717568  
    1010 * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`.
    1111 * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`.
    12  * 
     12 *
    1313 * You can set custom path to directory with Bitrix kernel in `composer.json`:
    14  * 
     14 *
    1515 * ```json
    1616 * {
     
    2626class BitrixInstaller extends BaseInstaller
    2727{
     28    /** @var array<string, string> */
    2829    protected $locations = array(
    2930        'module'    => '{$bitrix_dir}/modules/{$name}/',    // deprecated, remove on the major release (Backward compatibility will be broken)
     
    3637
    3738    /**
    38      * @var array Storage for informations about duplicates at all the time of installation packages.
     39     * @var string[] Storage for informations about duplicates at all the time of installation packages.
    3940     */
    4041    private static $checkedDuplicates = array();
    4142
    42     /**
    43      * {@inheritdoc}
    44      */
    45     public function inflectPackageVars($vars)
     43    public function inflectPackageVars(array $vars): array
    4644    {
     45        /** @phpstan-ignore-next-line */
    4746        if ($this->composer->getPackage()) {
    4847            $extra = $this->composer->getPackage()->getExtra();
     
    6362     * {@inheritdoc}
    6463     */
    65     protected function templatePath($path, array $vars = array())
     64    protected function templatePath(string $path, array $vars = array()): string
    6665    {
    6766        $templatePath = parent::templatePath($path, $vars);
     
    7473     * Duplicates search packages.
    7574     *
    76      * @param string $path
    77      * @param array $vars
     75     * @param array<string, string> $vars
    7876     */
    79     protected function checkDuplicates($path, array $vars = array())
     77    protected function checkDuplicates(string $path, array $vars = array()): void
    8078    {
    8179        $packageType = substr($vars['type'], strlen('bitrix') + 1);
     
    9593        }
    9694
    97         if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) {
    98 
     95        if ($oldPath !== $path && file_exists($oldPath) && $this->io->isInteractive()) {
    9996            $this->io->writeError('    <error>Duplication of packages:</error>');
    10097            $this->io->writeError('    <info>Package ' . $oldPath . ' will be called instead package ' . $path . '</info>');
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class BonefishInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'package'    => 'Packages/{$vendor}/{$name}/'
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45use Composer\DependencyResolver\Pool;
    5 use Composer\Package\PackageInterface;
     6use Composer\Semver\Constraint\Constraint;
    67
    78class CakePHPInstaller extends BaseInstaller
    89{
     10    /** @var array<string, string> */
    911    protected $locations = array(
    1012        'plugin' => 'Plugin/{$name}/',
     
    1416     * Format package name to CamelCase
    1517     */
    16     public function inflectPackageVars($vars)
     18    public function inflectPackageVars(array $vars): array
    1719    {
    1820        if ($this->matchesCakeVersion('>=', '3.0.0')) {
     
    2224        $nameParts = explode('/', $vars['name']);
    2325        foreach ($nameParts as &$value) {
    24             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     26            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    2527            $value = str_replace(array('-', '_'), ' ', $value);
    2628            $value = str_replace(' ', '', ucwords($value));
     
    3436     * Change the default plugin location when cakephp >= 3.0
    3537     */
    36     public function getLocations()
     38    public function getLocations(string $frameworkType): array
    3739    {
    3840        if ($this->matchesCakeVersion('>=', '3.0.0')) {
     
    4547     * Check if CakePHP version matches against a version
    4648     *
    47      * @param string $matcher
    48      * @param string $version
    49      * @return bool
     49     * @phpstan-param Constraint::STR_OP_* $matcher
    5050     */
    51     protected function matchesCakeVersion($matcher, $version)
     51    protected function matchesCakeVersion(string $matcher, string $version): bool
    5252    {
    53         if (class_exists('Composer\Semver\Constraint\MultiConstraint')) {
    54             $multiClass = 'Composer\Semver\Constraint\MultiConstraint';
    55             $constraintClass = 'Composer\Semver\Constraint\Constraint';
    56         } else {
    57             $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint';
    58             $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint';
     53        $repositoryManager = $this->composer->getRepositoryManager();
     54        /** @phpstan-ignore-next-line */
     55        if (!$repositoryManager) {
     56            return false;
    5957        }
    6058
    61         $repositoryManager = $this->composer->getRepositoryManager();
    62         if ($repositoryManager) {
    63             $repos = $repositoryManager->getLocalRepository();
    64             if (!$repos) {
    65                 return false;
    66             }
    67             $cake3 = new $multiClass(array(
    68                 new $constraintClass($matcher, $version),
    69                 new $constraintClass('!=', '9999999-dev'),
    70             ));
    71             $pool = new Pool('dev');
    72             $pool->addRepository($repos);
    73             $packages = $pool->whatProvides('cakephp/cakephp');
    74             foreach ($packages as $package) {
    75                 $installed = new $constraintClass('=', $package->getVersion());
    76                 if ($cake3->matches($installed)) {
    77                     return true;
    78                     break;
    79                 }
    80             }
     59        $repos = $repositoryManager->getLocalRepository();
     60        /** @phpstan-ignore-next-line */
     61        if (!$repos) {
     62            return false;
    8163        }
    82         return false;
     64
     65        return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null;
    8366    }
    8467}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ChefInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'cookbook'  => 'Chef/{$vendor}/{$name}/',
     
    911    );
    1012}
    11 
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ClanCatsFrameworkInstaller extends BaseInstaller
    56{
    6     protected $locations = array(
    7         'ship'      => 'CCF/orbit/{$name}/',
    8         'theme'     => 'CCF/app/themes/{$name}/',
    9     );
     7    /** @var array<string, string> */
     8    protected $locations = array(
     9        'ship'      => 'CCF/orbit/{$name}/',
     10        'theme'     => 'CCF/app/themes/{$name}/',
     11    );
    1012}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CockpitInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'cockpit/modules/addons/{$name}/',
     
    1214     *
    1315     * Strip `module-` prefix from package name.
    14      *
    15      * @param array @vars
    16      *
    17      * @return array
    1816     */
    19     public function inflectPackageVars($vars)
     17    public function inflectPackageVars(array $vars): array
    2018    {
    2119        if ($vars['type'] == 'cockpit-module') {
     
    2624    }
    2725
    28     public function inflectModuleVars($vars)
     26    /**
     27     * @param array<string, string> $vars
     28     * @return array<string, string>
     29     */
     30    public function inflectModuleVars(array $vars): array
    2931    {
    30         $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name']));
     32        $vars['name'] = ucfirst($this->pregReplace('/cockpit-/i', '', $vars['name']));
    3133
    3234        return $vars;
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CodeIgniterInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library'     => 'application/libraries/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class Concrete5Installer extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'block'      => 'blocks/{$name}/',
     9        'core'       => 'concrete/',
     10        'block'      => 'application/blocks/{$name}/',
    811        'package'    => 'packages/{$name}/',
    9         'theme'      => 'themes/{$name}/',
     12        'theme'      => 'application/themes/{$name}/',
    1013        'update'     => 'updates/{$name}/',
    1114    );
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class CroogoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'Plugin/{$name}/',
     
    1214     * Format package name to CamelCase
    1315     */
    14     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1517    {
    1618        $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name']));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    56{
    67    /** @var array */
     8    /** @var array<string, string> */
    79    protected $locations = array(
    810        'app'    => 'app/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class DokuWikiInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'lib/plugins/{$name}/',
     
    1214     * Format package name.
    1315     *
    14      * For package type dokuwiki-plugin, cut off a trailing '-plugin', 
     16     * For package type dokuwiki-plugin, cut off a trailing '-plugin',
    1517     * or leading dokuwiki_ if present.
    16      * 
     18     *
    1719     * For package type dokuwiki-template, cut off a trailing '-template' if present.
    18      *
    1920     */
    20     public function inflectPackageVars($vars)
     21    public function inflectPackageVars(array $vars): array
    2122    {
    22 
    2323        if ($vars['type'] === 'dokuwiki-plugin') {
    2424            return $this->inflectPluginVars($vars);
     
    3232    }
    3333
    34     protected function inflectPluginVars($vars)
     34    /**
     35     * @param array<string, string> $vars
     36     * @return array<string, string>
     37     */
     38    protected function inflectPluginVars(array $vars): array
    3539    {
    36         $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
    37         $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
     40        $vars['name'] = $this->pregReplace('/-plugin$/', '', $vars['name']);
     41        $vars['name'] = $this->pregReplace('/^dokuwiki_?-?/', '', $vars['name']);
    3842
    3943        return $vars;
    4044    }
    4145
    42     protected function inflectTemplateVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectTemplateVars(array $vars): array
    4351    {
    44         $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
    45         $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/-template$/', '', $vars['name']);
     53        $vars['name'] = $this->pregReplace('/^dokuwiki_?-?/', '', $vars['name']);
    4654
    4755        return $vars;
    4856    }
    49 
    5057}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    1112{
    1213    //TODO: Add support for scripts and themes
     14    /** @var array<string, string> */
    1315    protected $locations = array(
    1416        'module' => 'htdocs/custom/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class DrupalInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'core'      => 'core/',
    8         'module'    => 'modules/{$name}/',
    9         'theme'     => 'themes/{$name}/',
    10         'library'   => 'libraries/{$name}/',
    11         'profile'   => 'profiles/{$name}/',
    12         'drush'     => 'drush/{$name}/',
    13         'custom-theme' => 'themes/custom/{$name}/',
    14         'custom-module' => 'modules/custom/{$name}',
     9        'core'             => 'core/',
     10        'module'           => 'modules/{$name}/',
     11        'theme'            => 'themes/{$name}/',
     12        'library'          => 'libraries/{$name}/',
     13        'profile'          => 'profiles/{$name}/',
     14        'database-driver'  => 'drivers/lib/Drupal/Driver/Database/{$name}/',
     15        'drush'            => 'drush/{$name}/',
     16        'custom-theme'     => 'themes/custom/{$name}/',
     17        'custom-module'    => 'modules/custom/{$name}/',
     18        'custom-profile'   => 'profiles/custom/{$name}/',
     19        'drupal-multisite' => 'sites/{$name}/',
     20        'console'          => 'console/{$name}/',
     21        'console-language' => 'console/language/{$name}/',
     22        'config'           => 'config/sync/',
    1523    );
    1624}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ElggInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'mod/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class ExpressionEngineInstaller extends BaseInstaller
    78{
    8 
    9     protected $locations = array();
    10 
     9    /** @var array<string, string> */
    1110    private $ee2Locations = array(
    1211        'addon'   => 'system/expressionengine/third_party/{$name}/',
     
    1413    );
    1514
     15    /** @var array<string, string> */
    1616    private $ee3Locations = array(
    1717        'addon'   => 'system/user/addons/{$name}/',
     
    1919    );
    2020
    21     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     21    public function getLocations(string $frameworkType): array
    2222    {
     23        if ($frameworkType === 'ee2') {
     24            $this->locations = $this->ee2Locations;
     25        } else {
     26            $this->locations = $this->ee3Locations;
     27        }
    2328
    24         $version = "{$frameworkType}Locations";
    25         $this->locations = $this->$version;
    26 
    27         return parent::getInstallPath($package, $frameworkType);
     29        return $this->locations;
    2830    }
    2931}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class FuelInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'  => 'fuel/app/modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class FuelphpInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'component'  => 'components/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/GravInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class GravInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'user/plugins/{$name}/',
     
    1113    /**
    1214     * Format package name
    13      *
    14      * @param array $vars
    15      *
    16      * @return array
    1715     */
    18     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1917    {
    2018        $restrictedWords = implode('|', array_keys($this->locations));
    2119
    2220        $vars['name'] = strtolower($vars['name']);
    23         $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
     21        $vars['name'] = $this->pregReplace(
     22            '/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
    2423            '$1',
    2524            $vars['name']
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class HuradInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'plugins/{$name}/',
     
    1214     * Format package name to CamelCase
    1315     */
    14     public function inflectPackageVars($vars)
     16    public function inflectPackageVars(array $vars): array
    1517    {
    1618        $nameParts = explode('/', $vars['name']);
    1719        foreach ($nameParts as &$value) {
    18             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     20            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    1921            $value = str_replace(array('-', '_'), ' ', $value);
    2022            $value = str_replace(' ', '', ucwords($value));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ImageCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'template'    => 'templates/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     5use Composer\Composer;
     6use Composer\Installer\BinaryInstaller;
     7use Composer\Installer\LibraryInstaller;
    48use Composer\IO\IOInterface;
    5 use Composer\Installer\LibraryInstaller;
     9use Composer\Package\Package;
    610use Composer\Package\PackageInterface;
    711use Composer\Repository\InstalledRepositoryInterface;
     12use Composer\Util\Filesystem;
     13use React\Promise\PromiseInterface;
    814
    915class Installer extends LibraryInstaller
     
    1218     * Package types to installer class map
    1319     *
    14      * @var array
     20     * @var array<string, string>
    1521     */
    1622    private $supportedTypes = array(
    17         'aimeos'       => 'AimeosInstaller',
     23        'akaunting'    => 'AkauntingInstaller',
    1824        'asgard'       => 'AsgardInstaller',
    1925        'attogram'     => 'AttogramInstaller',
     
    2430        'cakephp'      => 'CakePHPInstaller',
    2531        'chef'         => 'ChefInstaller',
     32        'civicrm'      => 'CiviCrmInstaller',
    2633        'ccframework'  => 'ClanCatsFrameworkInstaller',
    2734        'cockpit'      => 'CockpitInstaller',
    2835        'codeigniter'  => 'CodeIgniterInstaller',
    2936        'concrete5'    => 'Concrete5Installer',
    30         'craft'        => 'CraftInstaller',
    3137        'croogo'       => 'CroogoInstaller',
     38        'dframe'       => 'DframeInstaller',
    3239        'dokuwiki'     => 'DokuWikiInstaller',
    3340        'dolibarr'     => 'DolibarrInstaller',
     
    3542        'drupal'       => 'DrupalInstaller',
    3643        'elgg'         => 'ElggInstaller',
     44        'eliasis'      => 'EliasisInstaller',
    3745        'ee3'          => 'ExpressionEngineInstaller',
    3846        'ee2'          => 'ExpressionEngineInstaller',
     47        'ezplatform'   => 'EzPlatformInstaller',
    3948        'fuel'         => 'FuelInstaller',
    4049        'fuelphp'      => 'FuelphpInstaller',
    4150        'grav'         => 'GravInstaller',
    4251        'hurad'        => 'HuradInstaller',
     52        'tastyigniter' => 'TastyIgniterInstaller',
    4353        'imagecms'     => 'ImageCMSInstaller',
    44         'joomla'       => 'JoomlaInstaller',
    45         'kirby'        => 'KirbyInstaller',
     54        'itop'         => 'ItopInstaller',
     55        'kanboard'     => 'KanboardInstaller',
     56        'known'        => 'KnownInstaller',
    4657        'kodicms'      => 'KodiCMSInstaller',
    4758        'kohana'       => 'KohanaInstaller',
     59        'lms'          => 'LanManagementSystemInstaller',
    4860        'laravel'      => 'LaravelInstaller',
     61        'lavalite'     => 'LavaLiteInstaller',
    4962        'lithium'      => 'LithiumInstaller',
    5063        'magento'      => 'MagentoInstaller',
     64        'majima'       => 'MajimaInstaller',
     65        'mantisbt'     => 'MantisBTInstaller',
    5166        'mako'         => 'MakoInstaller',
     67        'maya'         => 'MayaInstaller',
    5268        'mautic'       => 'MauticInstaller',
    5369        'mediawiki'    => 'MediaWikiInstaller',
     70        'miaoxing'     => 'MiaoxingInstaller',
    5471        'microweber'   => 'MicroweberInstaller',
    5572        'modulework'   => 'MODULEWorkInstaller',
     73        'modx'         => 'ModxInstaller',
    5674        'modxevo'      => 'MODXEvoInstaller',
    5775        'moodle'       => 'MoodleInstaller',
    5876        'october'      => 'OctoberInstaller',
     77        'ontowiki'     => 'OntoWikiInstaller',
    5978        'oxid'         => 'OxidInstaller',
     79        'osclass'      => 'OsclassInstaller',
     80        'pxcms'        => 'PxcmsInstaller',
    6081        'phpbb'        => 'PhpBBInstaller',
    61         'pimcore'      => 'PimcoreInstaller',
    6282        'piwik'        => 'PiwikInstaller',
    6383        'plentymarkets'=> 'PlentymarketsInstaller',
     
    6686        'radphp'       => 'RadPHPInstaller',
    6787        'phifty'       => 'PhiftyInstaller',
     88        'porto'        => 'PortoInstaller',
     89        'processwire'  => 'ProcessWireInstaller',
     90        'quicksilver'  => 'PantheonInstaller',
    6891        'redaxo'       => 'RedaxoInstaller',
     92        'redaxo5'      => 'Redaxo5Installer',
    6993        'reindex'      => 'ReIndexInstaller',
    7094        'roundcube'    => 'RoundcubeInstaller',
    7195        'shopware'     => 'ShopwareInstaller',
     96        'sitedirect'   => 'SiteDirectInstaller',
    7297        'silverstripe' => 'SilverStripeInstaller',
    7398        'smf'          => 'SMFInstaller',
    74         'symfony1'     => 'Symfony1Installer',
     99        'starbug'      => 'StarbugInstaller',
     100        'sydes'        => 'SyDESInstaller',
     101        'sylius'       => 'SyliusInstaller',
     102        'tao'          => 'TaoInstaller',
    75103        'thelia'       => 'TheliaInstaller',
    76104        'tusk'         => 'TuskInstaller',
    77         'typo3-cms'    => 'TYPO3CmsInstaller',
    78         'typo3-flow'   => 'TYPO3FlowInstaller',
     105        'userfrosting' => 'UserFrostingInstaller',
    79106        'vanilla'      => 'VanillaInstaller',
    80107        'whmcs'        => 'WHMCSInstaller',
     108        'winter'       => 'WinterInstaller',
    81109        'wolfcms'      => 'WolfCMSInstaller',
    82110        'wordpress'    => 'WordPressInstaller',
     
    88116
    89117    /**
     118     * Disables installers specified in main composer extra installer-disable
     119     * list
     120     */
     121    public function __construct(
     122        IOInterface $io,
     123        Composer $composer,
     124        string $type = 'library',
     125        ?Filesystem $filesystem = null,
     126        ?BinaryInstaller $binaryInstaller = null
     127    ) {
     128        parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller);
     129        $this->removeDisabledInstallers();
     130    }
     131
     132    /**
    90133     * {@inheritDoc}
    91134     */
     
    104147        $installer = new $class($package, $this->composer, $this->getIO());
    105148
    106         return $installer->getInstallPath($package, $frameworkType);
     149        $path = $installer->getInstallPath($package, $frameworkType);
     150        if (!$this->filesystem->isAbsolutePath($path)) {
     151            $path = getcwd() . '/' . $path;
     152        }
     153
     154        return $path;
    107155    }
    108156
    109157    public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
    110158    {
    111         if (!$repo->hasPackage($package)) {
    112             throw new \InvalidArgumentException('Package is not installed: '.$package);
    113         }
    114 
    115         $repo->removePackage($package);
    116 
    117         $installPath = $this->getInstallPath($package);
    118         $this->io->write(sprintf('Deleting %s - %s', $installPath, $this->filesystem->removeDirectory($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
     159        $installPath = $this->getPackageBasePath($package);
     160        $io = $this->io;
     161        $outputStatus = function () use ($io, $installPath) {
     162            $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
     163        };
     164
     165        $promise = parent::uninstall($repo, $package);
     166
     167        // Composer v2 might return a promise here
     168        if ($promise instanceof PromiseInterface) {
     169            return $promise->then($outputStatus);
     170        }
     171
     172        // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async)
     173        $outputStatus();
     174
     175        return null;
    119176    }
    120177
     
    138195     * Finds a supported framework type if it exists and returns it
    139196     *
    140      * @param  string $type
    141      * @return string
    142      */
    143     protected function findFrameworkType($type)
    144     {
    145         $frameworkType = false;
    146 
     197     * @return string|false
     198     */
     199    protected function findFrameworkType(string $type)
     200    {
    147201        krsort($this->supportedTypes);
    148202
    149203        foreach ($this->supportedTypes as $key => $val) {
    150204            if ($key === substr($type, 0, strlen($key))) {
    151                 $frameworkType = substr($type, 0, strlen($key));
    152                 break;
     205                return substr($type, 0, strlen($key));
    153206            }
    154207        }
    155208
    156         return $frameworkType;
     209        return false;
    157210    }
    158211
     
    160213     * Get the second part of the regular expression to check for support of a
    161214     * package type
    162      *
    163      * @param  string $frameworkType
    164      * @return string
    165      */
    166     protected function getLocationPattern($frameworkType)
    167     {
    168         $pattern = false;
     215     */
     216    protected function getLocationPattern(string $frameworkType): string
     217    {
     218        $pattern = null;
    169219        if (!empty($this->supportedTypes[$frameworkType])) {
    170220            $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
    171221            /** @var BaseInstaller $framework */
    172             $framework = new $frameworkClass(null, $this->composer, $this->getIO());
    173             $locations = array_keys($framework->getLocations());
    174             $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
    175         }
    176 
    177         return $pattern ? : '(\w+)';
    178     }
    179 
    180     /**
    181      * Get I/O object
     222            $framework = new $frameworkClass(new Package('dummy/pkg', '1.0.0.0', '1.0.0'), $this->composer, $this->getIO());
     223            $locations = array_keys($framework->getLocations($frameworkType));
     224            if ($locations) {
     225                $pattern = '(' . implode('|', $locations) . ')';
     226            }
     227        }
     228
     229        return $pattern ?: '(\w+)';
     230    }
     231
     232    private function getIO(): IOInterface
     233    {
     234        return $this->io;
     235    }
     236
     237    /**
     238     * Look for installers set to be disabled in composer's extra config and
     239     * remove them from the list of supported installers.
    182240     *
    183      * @return IOInterface
    184      */
    185     private function getIO()
    186     {
    187         return $this->io;
     241     * Globals:
     242     *  - true, "all", and "*" - disable all installers.
     243     *  - false - enable all installers (useful with
     244     *     wikimedia/composer-merge-plugin or similar)
     245     */
     246    protected function removeDisabledInstallers(): void
     247    {
     248        $extra = $this->composer->getPackage()->getExtra();
     249
     250        if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) {
     251            // No installers are disabled
     252            return;
     253        }
     254
     255        // Get installers to disable
     256        $disable = $extra['installer-disable'];
     257
     258        // Ensure $disabled is an array
     259        if (!is_array($disable)) {
     260            $disable = array($disable);
     261        }
     262
     263        // Check which installers should be disabled
     264        $all = array(true, "all", "*");
     265        $intersect = array_intersect($all, $disable);
     266        if (!empty($intersect)) {
     267            // Disable all installers
     268            $this->supportedTypes = array();
     269            return;
     270        }
     271
     272        // Disable specified installers
     273        foreach ($disable as $key => $installer) {
     274            if (is_string($installer) && key_exists($installer, $this->supportedTypes)) {
     275                unset($this->supportedTypes[$installer]);
     276            }
     277        }
    188278    }
    189279}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class KodiCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'cms/plugins/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class KohanaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class LaravelInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'libraries/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class LithiumInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'libraries/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MODULEWorkInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    78class MODXEvoInstaller extends BaseInstaller
    89{
     10    /** @var array<string, string> */
    911    protected $locations = array(
    1012        'snippet'       => 'assets/snippets/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MagentoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'theme'   => 'app/design/frontend/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MakoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'package' => 'app/packages/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
     4
     5use Composer\Package\PackageInterface;
    36
    47class MauticInstaller extends BaseInstaller
    58{
     9    /** @var array<string, string> */
    610    protected $locations = array(
    7         'plugin' => 'plugins/{$name}/',
    8         'theme' => 'themes/{$name}/',
     11        'plugin'           => 'plugins/{$name}/',
     12        'theme'            => 'themes/{$name}/',
     13        'core'             => 'app/',
    914    );
     15
     16    private function getDirectoryName(): string
     17    {
     18        $extra = $this->package->getExtra();
     19        if (!empty($extra['install-directory-name'])) {
     20            return $extra['install-directory-name'];
     21        }
     22
     23        return $this->toCamelCase($this->package->getPrettyName());
     24    }
     25
     26    private function toCamelCase(string $packageName): string
     27    {
     28        return str_replace(' ', '', ucwords(str_replace('-', ' ', basename($packageName))));
     29    }
    1030
    1131    /**
    1232     * Format package name of mautic-plugins to CamelCase
    1333     */
    14     public function inflectPackageVars($vars)
     34    public function inflectPackageVars(array $vars): array
    1535    {
    16         if ($vars['type'] == 'mautic-plugin') {
    17             $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
    18                 return strtoupper($matches[0][1]);
    19             }, ucfirst($vars['name']));
     36        if ($vars['type'] == 'mautic-plugin' || $vars['type'] == 'mautic-theme') {
     37            $directoryName = $this->getDirectoryName();
     38            $vars['name'] = $directoryName;
    2039        }
    2140
    2241        return $vars;
    2342    }
    24 
    2543}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MediaWikiInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
     9        'core' => 'core/',
    710        'extension' => 'extensions/{$name}/',
    811        'skin' => 'skins/{$name}/',
     
    1619     *
    1720     * For package type mediawiki-skin, cut off a trailing '-skin' if present.
    18      *
    1921     */
    20     public function inflectPackageVars($vars)
     22    public function inflectPackageVars(array $vars): array
    2123    {
    22 
    2324        if ($vars['type'] === 'mediawiki-extension') {
    2425            return $this->inflectExtensionVars($vars);
     
    3233    }
    3334
    34     protected function inflectExtensionVars($vars)
     35    /**
     36     * @param array<string, string> $vars
     37     * @return array<string, string>
     38     */
     39    protected function inflectExtensionVars(array $vars): array
    3540    {
    36         $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);
     41        $vars['name'] = $this->pregReplace('/-extension$/', '', $vars['name']);
    3742        $vars['name'] = str_replace('-', ' ', $vars['name']);
    3843        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
     
    4146    }
    4247
    43     protected function inflectSkinVars($vars)
     48    /**
     49     * @param array<string, string> $vars
     50     * @return array<string, string>
     51     */
     52    protected function inflectSkinVars(array $vars): array
    4453    {
    45         $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
     54        $vars['name'] = $this->pregReplace('/-skin$/', '', $vars['name']);
    4655
    4756        return $vars;
    4857    }
    49 
    5058}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MicroweberInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    7         'module'      => 'userfiles/modules/{$name}/',
    8         'module-skin' => 'userfiles/modules/{$name}/templates/',
    9         'template'    => 'userfiles/templates/{$name}/',
    10         'element'     => 'userfiles/elements/{$name}/',
    11         'vendor'      => 'vendor/{$name}/',
    12         'components'  => 'components/{$name}/'
     9        'module' => 'userfiles/modules/{$install_item_dir}/',
     10        'module-skin' => 'userfiles/modules/{$install_item_dir}/templates/',
     11        'template' => 'userfiles/templates/{$install_item_dir}/',
     12        'element' => 'userfiles/elements/{$install_item_dir}/',
     13        'vendor' => 'vendor/{$install_item_dir}/',
     14        'components' => 'components/{$install_item_dir}/'
    1315    );
    1416
     
    1921     *
    2022     * For package type microweber-template, cut off a trailing '-template' if present.
    21      *
    2223     */
    23     public function inflectPackageVars($vars)
     24    public function inflectPackageVars(array $vars): array
    2425    {
    25         if ($vars['type'] === 'microweber-template') {
    26             return $this->inflectTemplateVars($vars);
    27         }
    28         if ($vars['type'] === 'microweber-templates') {
    29             return $this->inflectTemplatesVars($vars);
    30         }
    31         if ($vars['type'] === 'microweber-core') {
    32             return $this->inflectCoreVars($vars);
    33         }
    34         if ($vars['type'] === 'microweber-adapter') {
    35             return $this->inflectCoreVars($vars);
    36         }
    37         if ($vars['type'] === 'microweber-module') {
    38             return $this->inflectModuleVars($vars);
    39         }
    40         if ($vars['type'] === 'microweber-modules') {
    41             return $this->inflectModulesVars($vars);
    42         }
    43         if ($vars['type'] === 'microweber-skin') {
    44             return $this->inflectSkinVars($vars);
    45         }
    46         if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
    47             return $this->inflectElementVars($vars);
     26        if ($this->package->getTargetDir() !== null && $this->package->getTargetDir() !== '') {
     27            $vars['install_item_dir'] = $this->package->getTargetDir();
     28        } else {
     29            $vars['install_item_dir'] = $vars['name'];
     30            if ($vars['type'] === 'microweber-template') {
     31                return $this->inflectTemplateVars($vars);
     32            }
     33            if ($vars['type'] === 'microweber-templates') {
     34                return $this->inflectTemplatesVars($vars);
     35            }
     36            if ($vars['type'] === 'microweber-core') {
     37                return $this->inflectCoreVars($vars);
     38            }
     39            if ($vars['type'] === 'microweber-adapter') {
     40                return $this->inflectCoreVars($vars);
     41            }
     42            if ($vars['type'] === 'microweber-module') {
     43                return $this->inflectModuleVars($vars);
     44            }
     45            if ($vars['type'] === 'microweber-modules') {
     46                return $this->inflectModulesVars($vars);
     47            }
     48            if ($vars['type'] === 'microweber-skin') {
     49                return $this->inflectSkinVars($vars);
     50            }
     51            if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
     52                return $this->inflectElementVars($vars);
     53            }
    4854        }
    4955
     
    5157    }
    5258
    53     protected function inflectTemplateVars($vars)
     59    /**
     60     * @param array<string, string> $vars
     61     * @return array<string, string>
     62     */
     63    protected function inflectTemplateVars(array $vars): array
    5464    {
    55         $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
    56         $vars['name'] = preg_replace('/template-$/', '', $vars['name']);
     65        $vars['install_item_dir'] = $this->pregReplace('/-template$/', '', $vars['install_item_dir']);
     66        $vars['install_item_dir'] = $this->pregReplace('/template-$/', '', $vars['install_item_dir']);
    5767
    5868        return $vars;
    5969    }
    6070
    61     protected function inflectTemplatesVars($vars)
     71    /**
     72     * @param array<string, string> $vars
     73     * @return array<string, string>
     74     */
     75    protected function inflectTemplatesVars(array $vars): array
    6276    {
    63         $vars['name'] = preg_replace('/-templates$/', '', $vars['name']);
    64         $vars['name'] = preg_replace('/templates-$/', '', $vars['name']);
     77        $vars['install_item_dir'] = $this->pregReplace('/-templates$/', '', $vars['install_item_dir']);
     78        $vars['install_item_dir'] = $this->pregReplace('/templates-$/', '', $vars['install_item_dir']);
    6579
    6680        return $vars;
    6781    }
    6882
    69     protected function inflectCoreVars($vars)
     83    /**
     84     * @param array<string, string> $vars
     85     * @return array<string, string>
     86     */
     87    protected function inflectCoreVars(array $vars): array
    7088    {
    71         $vars['name'] = preg_replace('/-providers$/', '', $vars['name']);
    72         $vars['name'] = preg_replace('/-provider$/', '', $vars['name']);
    73         $vars['name'] = preg_replace('/-adapter$/', '', $vars['name']);
     89        $vars['install_item_dir'] = $this->pregReplace('/-providers$/', '', $vars['install_item_dir']);
     90        $vars['install_item_dir'] = $this->pregReplace('/-provider$/', '', $vars['install_item_dir']);
     91        $vars['install_item_dir'] = $this->pregReplace('/-adapter$/', '', $vars['install_item_dir']);
    7492
    7593        return $vars;
    7694    }
    7795
    78     protected function inflectModuleVars($vars)
     96    /**
     97     * @param array<string, string> $vars
     98     * @return array<string, string>
     99     */
     100    protected function inflectModuleVars(array $vars): array
    79101    {
    80         $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
    81         $vars['name'] = preg_replace('/module-$/', '', $vars['name']);
     102        $vars['install_item_dir'] = $this->pregReplace('/-module$/', '', $vars['install_item_dir']);
     103        $vars['install_item_dir'] = $this->pregReplace('/module-$/', '', $vars['install_item_dir']);
    82104
    83105        return $vars;
    84106    }
    85107
    86     protected function inflectModulesVars($vars)
     108    /**
     109     * @param array<string, string> $vars
     110     * @return array<string, string>
     111     */
     112    protected function inflectModulesVars(array $vars): array
    87113    {
    88         $vars['name'] = preg_replace('/-modules$/', '', $vars['name']);
    89         $vars['name'] = preg_replace('/modules-$/', '', $vars['name']);
     114        $vars['install_item_dir'] = $this->pregReplace('/-modules$/', '', $vars['install_item_dir']);
     115        $vars['install_item_dir'] = $this->pregReplace('/modules-$/', '', $vars['install_item_dir']);
    90116
    91117        return $vars;
    92118    }
    93119
    94     protected function inflectSkinVars($vars)
     120    /**
     121     * @param array<string, string> $vars
     122     * @return array<string, string>
     123     */
     124    protected function inflectSkinVars(array $vars): array
    95125    {
    96         $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
    97         $vars['name'] = preg_replace('/skin-$/', '', $vars['name']);
     126        $vars['install_item_dir'] = $this->pregReplace('/-skin$/', '', $vars['install_item_dir']);
     127        $vars['install_item_dir'] = $this->pregReplace('/skin-$/', '', $vars['install_item_dir']);
    98128
    99129        return $vars;
    100130    }
    101131
    102     protected function inflectElementVars($vars)
     132    /**
     133     * @param array<string, string> $vars
     134     * @return array<string, string>
     135     */
     136    protected function inflectElementVars(array $vars): array
    103137    {
    104         $vars['name'] = preg_replace('/-elements$/', '', $vars['name']);
    105         $vars['name'] = preg_replace('/elements-$/', '', $vars['name']);
    106         $vars['name'] = preg_replace('/-element$/', '', $vars['name']);
    107         $vars['name'] = preg_replace('/element-$/', '', $vars['name']);
     138        $vars['install_item_dir'] = $this->pregReplace('/-elements$/', '', $vars['install_item_dir']);
     139        $vars['install_item_dir'] = $this->pregReplace('/elements-$/', '', $vars['install_item_dir']);
     140        $vars['install_item_dir'] = $this->pregReplace('/-element$/', '', $vars['install_item_dir']);
     141        $vars['install_item_dir'] = $this->pregReplace('/element-$/', '', $vars['install_item_dir']);
    108142
    109143        return $vars;
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class MoodleInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'mod'                => 'mod/{$name}/',
     
    1214        'assignsubmission'   => 'mod/assign/submission/{$name}/',
    1315        'assignfeedback'     => 'mod/assign/feedback/{$name}/',
     16        'antivirus'          => 'lib/antivirus/{$name}/',
    1417        'auth'               => 'auth/{$name}/',
    1518        'availability'       => 'availability/condition/{$name}/',
     
    1922        'cachelock'          => 'cache/locks/{$name}/',
    2023        'calendartype'       => 'calendar/type/{$name}/',
     24        'customfield'        => 'customfield/field/{$name}/',
     25        'fileconverter'      => 'files/converter/{$name}/',
    2126        'format'             => 'course/format/{$name}/',
    2227        'coursereport'       => 'course/report/{$name}/',
     28        'contenttype'        => 'contentbank/contenttype/{$name}/',
     29        'customcertelement'  => 'mod/customcert/element/{$name}/',
    2330        'datafield'          => 'mod/data/field/{$name}/',
     31        'dataformat'         => 'dataformat/{$name}/',
    2432        'datapreset'         => 'mod/data/preset/{$name}/',
    2533        'editor'             => 'lib/editor/{$name}/',
     
    3442        'ltisource'          => 'mod/lti/source/{$name}/',
    3543        'ltiservice'         => 'mod/lti/service/{$name}/',
     44        'media'              => 'media/player/{$name}/',
    3645        'message'            => 'message/output/{$name}/',
    3746        'mnetservice'        => 'mnet/service/{$name}/',
     47        'paygw'              => 'payment/gateway/{$name}/',
    3848        'plagiarism'         => 'plagiarism/{$name}/',
    3949        'portfolio'          => 'portfolio/{$name}/',
     
    4656        'repository'         => 'repository/{$name}/',
    4757        'scormreport'        => 'mod/scorm/report/{$name}/',
     58        'search'             => 'search/engine/{$name}/',
    4859        'theme'              => 'theme/{$name}/',
    4960        'tinymce'            => 'lib/editor/tinymce/plugins/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class OctoberInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'    => 'modules/{$name}/',
    810        'plugin'    => 'plugins/{$vendor}/{$name}/',
    9         'theme'     => 'themes/{$name}/'
     11        'theme'     => 'themes/{$vendor}-{$name}/'
    1012    );
    1113
     
    1618     *
    1719     * For package type october-theme, cut off a trailing '-theme' if present.
    18      *
    1920     */
    20     public function inflectPackageVars($vars)
     21    public function inflectPackageVars(array $vars): array
    2122    {
    2223        if ($vars['type'] === 'october-plugin') {
     
    3132    }
    3233
    33     protected function inflectPluginVars($vars)
     34    /**
     35     * @param array<string, string> $vars
     36     * @return array<string, string>
     37     */
     38    protected function inflectPluginVars(array $vars): array
    3439    {
    35         $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
     40        $vars['name'] = $this->pregReplace('/^oc-|-plugin$/', '', $vars['name']);
     41        $vars['vendor'] = $this->pregReplace('/[^a-z0-9_]/i', '', $vars['vendor']);
    3642
    3743        return $vars;
    3844    }
    3945
    40     protected function inflectThemeVars($vars)
     46    /**
     47     * @param array<string, string> $vars
     48     * @return array<string, string>
     49     */
     50    protected function inflectThemeVars(array $vars): array
    4151    {
    42         $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
     52        $vars['name'] = $this->pregReplace('/^oc-|-theme$/', '', $vars['name']);
     53        $vars['vendor'] = $this->pregReplace('/[^a-z0-9_]/i', '', $vars['vendor']);
    4354
    4455        return $vars;
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class OxidInstaller extends BaseInstaller
    78{
    8     const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';
     9    const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';
    910
     11    /** @var array<string, string> */
    1012    protected $locations = array(
    1113        'module'    => 'modules/{$name}/',
     
    1416    );
    1517
    16     /**
    17      * getInstallPath
    18      *
    19      * @param PackageInterface $package
    20      * @param string $frameworkType
    21      * @return void
    22      */
    23     public function getInstallPath(PackageInterface $package, $frameworkType = '')
    24     {
    25         $installPath = parent::getInstallPath($package, $frameworkType);
    26         $type = $this->package->getType();
    27         if ($type === 'oxid-module') {
    28             $this->prepareVendorDirectory($installPath);
    29         }
    30         return $installPath;
    31     }
     18    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
     19    {
     20        $installPath = parent::getInstallPath($package, $frameworkType);
     21        $type = $this->package->getType();
     22        if ($type === 'oxid-module') {
     23            $this->prepareVendorDirectory($installPath);
     24        }
     25        return $installPath;
     26    }
    3227
    33     /**
    34      * prepareVendorDirectory
    35      *
    36      * Makes sure there is a vendormetadata.php file inside
    37      * the vendor folder if there is a vendor folder.
    38      *
    39      * @param string $installPath
    40      * @return void
    41      */
    42     protected function prepareVendorDirectory($installPath)
    43     {
    44         $matches = '';
    45         $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
    46         if (!$hasVendorDirectory) {
    47             return;
    48         }
     28    /**
     29     * Makes sure there is a vendormetadata.php file inside
     30     * the vendor folder if there is a vendor folder.
     31     */
     32    protected function prepareVendorDirectory(string $installPath): void
     33    {
     34        $matches = '';
     35        $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
     36        if (!$hasVendorDirectory) {
     37            return;
     38        }
    4939
    50         $vendorDirectory = $matches['vendor'];
    51         $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
    52         if (!file_exists($vendorPath)) {
    53             mkdir($vendorPath, 0755, true);
    54         }
     40        $vendorDirectory = $matches['vendor'];
     41        $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
     42        if (!file_exists($vendorPath)) {
     43            mkdir($vendorPath, 0755, true);
     44        }
    5545
    56         $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
    57         touch($vendorMetaDataPath);
    58     }
     46        $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
     47        touch($vendorMetaDataPath);
     48    }
    5949}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PPIInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PhiftyInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'bundle' => 'bundles/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PhpBBInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'extension' => 'ext/{$vendor}/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    910class PiwikInstaller extends BaseInstaller
    1011{
    11     /**
    12      * @var array
    13      */
     12    /** @var array<string, string> */
    1413    protected $locations = array(
    1514        'plugin' => 'plugins/{$name}/',
     
    1817    /**
    1918     * Format package name to CamelCase
    20      * @param array $vars
    21      *
    22      * @return array
    2319     */
    24     public function inflectPackageVars($vars)
     20    public function inflectPackageVars(array $vars): array
    2521    {
    26         $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
     22        $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
    2723        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    2824        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PlentymarketsInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'   => '{$name}/'
     
    1012    /**
    1113     * Remove hyphen, "plugin" and format to camelcase
    12      * @param array $vars
    13      *
    14      * @return array
    1514     */
    16     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1716    {
    18         $vars['name'] = explode("-", $vars['name']);
    19         foreach ($vars['name'] as $key => $name) {
    20             $vars['name'][$key] = ucfirst($vars['name'][$key]);
     17        $nameBits = explode("-", $vars['name']);
     18        foreach ($nameBits as $key => $name) {
     19            $nameBits[$key] = ucfirst($name);
    2120            if (strcasecmp($name, "Plugin") == 0) {
    22                 unset($vars['name'][$key]);
     21                unset($nameBits[$key]);
    2322            }
    2423        }
    25         $vars['name'] = implode("",$vars['name']);
     24        $vars['name'] = implode('', $nameBits);
    2625
    2726        return $vars;
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Plugin.php

    r2238319 r2717568  
    99class Plugin implements PluginInterface
    1010{
     11    /** @var Installer */
     12    private $installer;
    1113
    12     public function activate(Composer $composer, IOInterface $io)
     14    public function activate(Composer $composer, IOInterface $io): void
    1315    {
    14         $installer = new Installer($io, $composer);
    15         $composer->getInstallationManager()->addInstaller($installer);
     16        $this->installer = new Installer($io, $composer);
     17        $composer->getInstallationManager()->addInstaller($this->installer);
     18    }
     19
     20    public function deactivate(Composer $composer, IOInterface $io): void
     21    {
     22        $composer->getInstallationManager()->removeInstaller($this->installer);
     23    }
     24
     25    public function uninstall(Composer $composer, IOInterface $io): void
     26    {
    1627    }
    1728}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class PrestashopInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php

    r2238319 r2717568  
    66{
    77
     8    /** @var array<string, string> */
    89    protected $locations = array(
    910        'module' => 'modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RadPHPInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'bundle' => 'src/{$name}/'
     
    1113     * Format package name to CamelCase
    1214     */
    13     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1416    {
    1517        $nameParts = explode('/', $vars['name']);
    1618        foreach ($nameParts as &$value) {
    17             $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
     19            $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value));
    1820            $value = str_replace(array('-', '_'), ' ', $value);
    1921            $value = str_replace(' ', '', ucwords($value));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ReIndexInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'theme'     => 'themes/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RedaxoInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'addon'          => 'redaxo/include/addons/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class RoundcubeInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'plugins/{$name}/',
     
    1012    /**
    1113     * Lowercase name and changes the name to a underscores
    12      *
    13      * @param  array $vars
    14      * @return array
    1514     */
    16     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    1716    {
    1817        $vars['name'] = strtolower(str_replace('-', '_', $vars['name']));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class SMFInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'Sources/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    89class ShopwareInstaller extends BaseInstaller
    910{
     11    /** @var array<string, string> */
    1012    protected $locations = array(
    1113        'backend-plugin'    => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
     
    1921    /**
    2022     * Transforms the names
    21      * @param  array $vars
    22      * @return array
    2323     */
    24     public function inflectPackageVars($vars)
     24    public function inflectPackageVars(array $vars): array
    2525    {
    2626        if ($vars['type'] === 'shopware-theme') {
    2727            return $this->correctThemeName($vars);
    28         } else {
    29             return $this->correctPluginName($vars);
    3028        }
     29
     30        return $this->correctPluginName($vars);
    3131    }
    3232
    3333    /**
    3434     * Changes the name to a camelcased combination of vendor and name
    35      * @param  array $vars
    36      * @return array
     35     *
     36     * @param array<string, string> $vars
     37     * @return array<string, string>
    3738     */
    38     private function correctPluginName($vars)
     39    private function correctPluginName(array $vars): array
    3940    {
    4041        $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
    4142            return strtoupper($matches[0][1]);
    4243        }, $vars['name']);
     44
     45        if (null === $camelCasedName) {
     46            throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error());
     47        }
    4348
    4449        $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName);
     
    4954    /**
    5055     * Changes the name to a underscore separated name
    51      * @param  array $vars
    52      * @return array
     56     *
     57     * @param array<string, string> $vars
     58     * @return array<string, string>
    5359     */
    54     private function correctThemeName($vars)
     60    private function correctThemeName(array $vars): array
    5561    {
    5662        $vars['name'] = str_replace('-', '_', $vars['name']);
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
     
    67class SilverStripeInstaller extends BaseInstaller
    78{
     9    /** @var array<string, string> */
    810    protected $locations = array(
    911        'module' => '{$name}/',
     
    1618     * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework
    1719     * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0
    18      *
    19      * @param  PackageInterface $package
    20      * @param  string           $frameworkType
    21      * @return string
    2220     */
    23     public function getInstallPath(PackageInterface $package, $frameworkType = '')
     21    public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string
    2422    {
    2523        if (
     
    2927        ) {
    3028            return $this->templatePath($this->locations['module'], array('name' => 'sapphire'));
    31         } else {
    32             return parent::getInstallPath($package, $frameworkType);
    3329        }
    3430
     31        return parent::getInstallPath($package, $frameworkType);
    3532    }
    3633}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class TheliaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module'                => 'local/modules/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php

    r2238319 r2717568  
    11<?php
    2     namespace Composer\Installers;
    3     /**
    4      * Composer installer for 3rd party Tusk utilities
    5      * @author Drew Ewing <drew@phenocode.com>
    6      */
    7     class TuskInstaller extends BaseInstaller
    8     {
    9         protected $locations = array(
    10             'task'    => '.tusk/tasks/{$name}/',
    11             'command' => '.tusk/commands/{$name}/',
    12             'asset'   => 'assets/tusk/{$name}/',
    13         );
    14     }
     2
     3namespace Composer\Installers;
     4
     5/**
     6 * Composer installer for 3rd party Tusk utilities
     7 * @author Drew Ewing <drew@phenocode.com>
     8 */
     9class TuskInstaller extends BaseInstaller
     10{
     11    /** @var array<string, string> */
     12    protected $locations = array(
     13        'task'    => '.tusk/tasks/{$name}/',
     14        'command' => '.tusk/commands/{$name}/',
     15        'asset'   => 'assets/tusk/{$name}/',
     16    );
     17}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class VanillaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'    => 'plugins/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php

    r2238319 r2717568  
    55class WHMCSInstaller extends BaseInstaller
    66{
     7    /** @var array<string, string> */
    78    protected $locations = array(
    8         'gateway' => 'modules/gateways/{$name}/',
     9        'addons' => 'modules/addons/{$vendor}_{$name}/',
     10        'fraud' => 'modules/fraud/{$vendor}_{$name}/',
     11        'gateways' => 'modules/gateways/{$vendor}_{$name}/',
     12        'notifications' => 'modules/notifications/{$vendor}_{$name}/',
     13        'registrars' => 'modules/registrars/{$vendor}_{$name}/',
     14        'reports' => 'modules/reports/{$vendor}_{$name}/',
     15        'security' => 'modules/security/{$vendor}_{$name}/',
     16        'servers' => 'modules/servers/{$vendor}_{$name}/',
     17        'social' => 'modules/social/{$vendor}_{$name}/',
     18        'support' => 'modules/support/{$vendor}_{$name}/',
     19        'templates' => 'templates/{$vendor}_{$name}/',
     20        'includes' => 'includes/{$vendor}_{$name}/'
    921    );
    1022}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class WolfCMSInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin' => 'wolf/plugins/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class WordPressInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'plugin'    => 'wp-content/plugins/{$name}/',
    810        'theme'     => 'wp-content/themes/{$name}/',
    911        'muplugin'  => 'wp-content/mu-plugins/{$name}/',
     12        'dropin'    => 'wp-content/{$name}/',
    1013    );
    1114}
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php

    r2238319 r2717568  
    11<?php
    2 /**
    3  * Created by PhpStorm.
    4  * User: cbleek
    5  * Date: 25.03.16
    6  * Time: 20:55
    7  */
    82
    93namespace Composer\Installers;
    104
    11 
    125class YawikInstaller extends BaseInstaller
    136{
     7    /** @var array<string, string> */
    148    protected $locations = array(
    159        'module'  => 'module/{$name}/',
     
    1812    /**
    1913     * Format package name to CamelCase
    20      * @param array $vars
    21      *
    22      * @return array
    2314     */
    24     public function inflectPackageVars($vars)
     15    public function inflectPackageVars(array $vars): array
    2516    {
    26         $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
     17        $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
    2718        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    2819        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ZendInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'library' => 'library/{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php

    r2238319 r2717568  
    11<?php
     2
    23namespace Composer\Installers;
    34
    45class ZikulaInstaller extends BaseInstaller
    56{
     7    /** @var array<string, string> */
    68    protected $locations = array(
    79        'module' => 'modules/{$vendor}-{$name}/',
  • wk-google-analytics/trunk/vendor/composer/installers/src/bootstrap.php

    r2238319 r2717568  
    11<?php
    2 function includeIfExists($file)
     2
     3use Composer\Autoload\ClassLoader;
     4
     5function includeIfExists(string $file): ?ClassLoader
    36{
    47    if (file_exists($file)) {
    58        return include $file;
    69    }
     10
     11    return null;
    712}
    813if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) {
  • wk-google-analytics/trunk/wk-ga.php

    r2715258 r2717568  
    55 * Plugin URI: https://wordpress.org/plugins/wk-google-analytics/
    66 * Description: Deploy Google Analytics on your website without having to edit code and without tracking your own visits. You can exclude any logged in user from this and enable tracking solely for them.
    7  * Version: 1.9.7
     7 * Version: 1.9.8
    88 * Author: WEBKINDER
    99 * Author URI: https://www.webkinder.ch
Note: See TracChangeset for help on using the changeset viewer.