Changeset 2717568
- Timestamp:
- 05/03/2022 01:36:22 PM (4 years ago)
- Location:
- wk-google-analytics
- Files:
-
- 70 added
- 18 deleted
- 146 edited
- 1 copied
-
tags/1.9.8 (copied) (copied from wk-google-analytics/trunk)
-
tags/1.9.8/readme.txt (modified) (2 diffs)
-
tags/1.9.8/vendor/autoload.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
tags/1.9.8/vendor/composer/InstalledVersions.php (added)
-
tags/1.9.8/vendor/composer/autoload_classmap.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/autoload_static.php (modified) (6 diffs)
-
tags/1.9.8/vendor/composer/installed.json (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installed.php (added)
-
tags/1.9.8/vendor/composer/installers/.travis.yml (deleted)
-
tags/1.9.8/vendor/composer/installers/phpstan.neon.dist (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AglInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php (modified) (9 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php (modified) (6 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php (modified) (5 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/GravInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Installer.php (modified) (9 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php (modified) (5 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PantheonInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php (modified) (3 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Plugin.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php (modified) (4 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php (deleted)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php (added)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php (modified) (2 diffs)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/installers/src/bootstrap.php (modified) (1 diff)
-
tags/1.9.8/vendor/composer/platform_check.php (added)
-
tags/1.9.8/wk-ga.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/autoload_classmap.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (6 diffs)
-
trunk/vendor/composer/installed.json (modified) (1 diff)
-
trunk/vendor/composer/installed.php (added)
-
trunk/vendor/composer/installers/.travis.yml (deleted)
-
trunk/vendor/composer/installers/phpstan.neon.dist (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/AglInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php (modified) (4 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php (modified) (9 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php (modified) (6 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php (modified) (5 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php (modified) (4 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/GravInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/Installer.php (modified) (9 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php (modified) (4 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php (modified) (5 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/PantheonInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php (modified) (3 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/Plugin.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php (modified) (4 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php (modified) (4 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php (deleted)
-
trunk/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php (added)
-
trunk/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php (modified) (2 diffs)
-
trunk/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php (modified) (1 diff)
-
trunk/vendor/composer/installers/src/bootstrap.php (modified) (1 diff)
-
trunk/vendor/composer/platform_check.php (added)
-
trunk/wk-ga.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wk-google-analytics/tags/1.9.8/readme.txt
r2715258 r2717568 2 2 Contributors: WEBKINDER 3 3 Tags: 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. 84 Requires at least: 4.9 5 5 Tested up to: 5.9.3 6 Requires PHP: 7. 17 Stable tag: 1.9. 76 Requires PHP: 7.2 7 Stable tag: 1.9.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 == Changelog == 35 36 = 1.9.8 = 37 38 * Update composer packages and unit testing for CI 35 39 36 40 = 1.9.7 = -
wk-google-analytics/tags/1.9.8/vendor/autoload.php
r2715258 r2717568 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 32e57717e9721e837f04a955935c2ed8::getLoader();7 return ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824::getLoader(); -
wk-google-analytics/tags/1.9.8/vendor/composer/ClassLoader.php
r2402645 r2717568 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @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/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 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 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-var array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 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 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 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 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @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 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 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 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 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 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 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 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
wk-google-analytics/tags/1.9.8/vendor/composer/autoload_classmap.php
r2411206 r2717568 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 10 'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php', 10 'Composer\\Installers\\A imeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',11 'Composer\\Installers\\AkauntingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php', 11 12 'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php', 12 13 'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php', … … 17 18 'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php', 18 19 'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php', 20 'Composer\\Installers\\CiviCrmInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php', 19 21 'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php', 20 22 'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php', 21 23 'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php', 22 24 'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php', 23 'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',24 25 'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php', 25 26 'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php', 27 'Composer\\Installers\\DframeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DframeInstaller.php', 26 28 'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php', 27 29 'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php', 28 30 'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php', 29 31 'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php', 32 'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php', 30 33 'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php', 34 'Composer\\Installers\\EzPlatformInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php', 31 35 'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php', 32 36 'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php', … … 35 39 'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php', 36 40 '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', 39 44 'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php', 40 45 'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php', 46 'Composer\\Installers\\LanManagementSystemInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php', 41 47 'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php', 48 'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php', 42 49 'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php', 43 50 'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php', 44 51 'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php', 45 52 'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php', 53 'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php', 46 54 'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php', 55 'Composer\\Installers\\MantisBTInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php', 47 56 'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php', 57 'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php', 48 58 'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php', 59 'Composer\\Installers\\MiaoxingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php', 49 60 'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php', 61 'Composer\\Installers\\ModxInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php', 50 62 'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php', 51 63 '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', 52 66 'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php', 53 67 'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php', 68 'Composer\\Installers\\PantheonInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PantheonInstaller.php', 54 69 'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php', 55 70 'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php', 56 'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',57 71 'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php', 58 72 'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php', 59 73 'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php', 74 'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 60 75 'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 76 'Composer\\Installers\\ProcessWireInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 61 77 'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 78 'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', 62 79 'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php', 63 80 'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php', 81 'Composer\\Installers\\Redaxo5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php', 64 82 'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php', 65 83 'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php', … … 67 85 'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php', 68 86 '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', 72 93 'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php', 73 94 'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php', 95 'Composer\\Installers\\UserFrostingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php', 74 96 'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php', 97 'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php', 75 98 'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php', 99 'Composer\\Installers\\WinterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WinterInstaller.php', 76 100 'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php', 77 101 '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 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 32e57717e9721e837f04a955935c2ed85 class ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 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')); 28 30 29 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 32 if ($useStaticLoader) { 31 require _once__DIR__ . '/autoload_static.php';33 require __DIR__ . '/autoload_static.php'; 32 34 33 call_user_func(\Composer\Autoload\ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::getInitializer($loader)); 34 36 } else { 35 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
wk-google-analytics/tags/1.9.8/vendor/composer/autoload_static.php
r2715258 r2717568 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 32e57717e9721e837f04a955935c2ed87 class ComposerStaticInit607292fa727b35ff77acbc2a12eb9824 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 30 30 31 31 public static $classMap = array ( 32 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 32 33 'Composer\\Installers\\AglInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AglInstaller.php', 33 'Composer\\Installers\\A imeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',34 'Composer\\Installers\\AkauntingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php', 34 35 'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php', 35 36 'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php', … … 40 41 'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php', 41 42 'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php', 43 'Composer\\Installers\\CiviCrmInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php', 42 44 'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php', 43 45 'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php', 44 46 'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php', 45 47 'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php', 46 'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',47 48 'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php', 48 49 'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php', 50 'Composer\\Installers\\DframeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DframeInstaller.php', 49 51 'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php', 50 52 'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php', 51 53 'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php', 52 54 'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php', 55 'Composer\\Installers\\EliasisInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EliasisInstaller.php', 53 56 'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php', 57 'Composer\\Installers\\EzPlatformInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php', 54 58 'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php', 55 59 'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php', … … 58 62 'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php', 59 63 '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', 62 67 'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php', 63 68 'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php', 69 'Composer\\Installers\\LanManagementSystemInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php', 64 70 'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php', 71 'Composer\\Installers\\LavaLiteInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php', 65 72 'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php', 66 73 'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php', 67 74 'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php', 68 75 'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php', 76 'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php', 69 77 'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php', 78 'Composer\\Installers\\MantisBTInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php', 70 79 'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php', 80 'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php', 71 81 'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php', 82 'Composer\\Installers\\MiaoxingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php', 72 83 'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php', 84 'Composer\\Installers\\ModxInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ModxInstaller.php', 73 85 'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php', 74 86 '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', 75 89 'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php', 76 90 'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php', 91 'Composer\\Installers\\PantheonInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PantheonInstaller.php', 77 92 'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php', 78 93 'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php', 79 'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',80 94 'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php', 81 95 'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php', 82 96 'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php', 97 'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 83 98 'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 99 'Composer\\Installers\\ProcessWireInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 84 100 'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 101 'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', 85 102 'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php', 86 103 'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php', 104 'Composer\\Installers\\Redaxo5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php', 87 105 'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php', 88 106 'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php', … … 90 108 'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php', 91 109 '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', 95 116 'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php', 96 117 'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php', 118 'Composer\\Installers\\UserFrostingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php', 97 119 'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php', 120 'Composer\\Installers\\VgmcpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php', 98 121 'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php', 122 'Composer\\Installers\\WinterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WinterInstaller.php', 99 123 'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php', 100 124 'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php', … … 111 135 { 112 136 return \Closure::bind(function () use ($loader) { 113 $loader->prefixLengthsPsr4 = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$prefixLengthsPsr4;114 $loader->prefixDirsPsr4 = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$prefixDirsPsr4;115 $loader->classMap = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$classMap;137 $loader->prefixLengthsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixLengthsPsr4; 138 $loader->prefixDirsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixDirsPsr4; 139 $loader->classMap = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$classMap; 116 140 117 141 }, 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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AglInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'More/{$name}/', … … 11 13 * Format package name to CamelCase 12 14 */ 13 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 14 16 { 15 $ vars['name']= preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {17 $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { 16 18 return strtoupper($matches[1]); 17 19 }, $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; 18 26 19 27 return $vars; -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AnnotateCmsInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'addons/modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AsgardInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'Modules/{$name}/', … … 15 17 * 16 18 * For package type asgard-theme, cut off a trailing '-theme' if present. 17 *18 19 */ 19 public function inflectPackageVars( $vars)20 public function inflectPackageVars(array $vars): array 20 21 { 21 22 if ($vars['type'] === 'asgard-module') { … … 30 31 } 31 32 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 33 38 { 34 $vars['name'] = preg_replace('/-module$/', '', $vars['name']);39 $vars['name'] = $this->pregReplace('/-module$/', '', $vars['name']); 35 40 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 36 41 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); … … 39 44 } 40 45 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 42 51 { 43 $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);52 $vars['name'] = $this->pregReplace('/-theme$/', '', $vars['name']); 44 53 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 45 54 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AttogramInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 8 9 abstract class BaseInstaller 9 10 { 11 /** @var array<string, string> */ 10 12 protected $locations = array(); 13 /** @var Composer */ 11 14 protected $composer; 15 /** @var PackageInterface */ 12 16 protected $package; 17 /** @var IOInterface */ 13 18 protected $io; 14 19 15 20 /** 16 21 * Initializes base installer. 17 *18 * @param PackageInterface $package19 * @param Composer $composer20 * @param IOInterface $io21 22 */ 22 public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)23 public function __construct(PackageInterface $package, Composer $composer, IOInterface $io) 23 24 { 24 25 $this->composer = $composer; … … 29 30 /** 30 31 * Return the install path based on package type. 31 *32 * @param PackageInterface $package33 * @param string $frameworkType34 * @return string35 32 */ 36 public function getInstallPath(PackageInterface $package, $frameworkType = '')33 public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string 37 34 { 38 35 $type = $this->package->getType(); … … 53 50 } 54 51 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); 62 57 } 63 58 } 64 59 65 60 $packageType = substr($type, strlen($frameworkType) + 1); 66 $locations = $this->getLocations( );61 $locations = $this->getLocations($frameworkType); 67 62 if (!isset($locations[$packageType])) { 68 63 throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type)); … … 75 70 * For an installer to override to modify the vars per installer. 76 71 * 77 * @param array $vars78 * @return array 72 * @param array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string} 73 * @return array<string, string> 79 74 */ 80 public function inflectPackageVars( $vars)75 public function inflectPackageVars(array $vars): array 81 76 { 82 77 return $vars; … … 86 81 * Gets the installer's locations 87 82 * 88 * @return array 83 * @return array<string, string> map of package types => install path 89 84 */ 90 public function getLocations( )85 public function getLocations(string $frameworkType) 91 86 { 92 87 return $this->locations; … … 96 91 * Replace vars in a path 97 92 * 98 * @param string $path 99 * @param array $vars 100 * @return string 93 * @param array<string, string> $vars 101 94 */ 102 protected function templatePath( $path, array $vars = array())95 protected function templatePath(string $path, array $vars = array()): string 103 96 { 104 97 if (strpos($path, '{') !== false) { … … 118 111 * Search through a passed paths array for a custom install path. 119 112 * 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 125 115 */ 126 protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)116 protected function mapCustomInstallPaths(array $paths, string $name, string $type, ?string $vendor = null) 127 117 { 128 118 foreach ($paths as $path => $names) { 119 $names = (array) $names; 129 120 if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) { 130 121 return $path; … … 134 125 return false; 135 126 } 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 } 136 137 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php
r2238319 r2717568 10 10 * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`. 11 11 * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`. 12 * 12 * 13 13 * You can set custom path to directory with Bitrix kernel in `composer.json`: 14 * 14 * 15 15 * ```json 16 16 * { … … 26 26 class BitrixInstaller extends BaseInstaller 27 27 { 28 /** @var array<string, string> */ 28 29 protected $locations = array( 29 30 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) … … 36 37 37 38 /** 38 * @var arrayStorage 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. 39 40 */ 40 41 private static $checkedDuplicates = array(); 41 42 42 /** 43 * {@inheritdoc} 44 */ 45 public function inflectPackageVars($vars) 43 public function inflectPackageVars(array $vars): array 46 44 { 45 /** @phpstan-ignore-next-line */ 47 46 if ($this->composer->getPackage()) { 48 47 $extra = $this->composer->getPackage()->getExtra(); … … 63 62 * {@inheritdoc} 64 63 */ 65 protected function templatePath( $path, array $vars = array())64 protected function templatePath(string $path, array $vars = array()): string 66 65 { 67 66 $templatePath = parent::templatePath($path, $vars); … … 74 73 * Duplicates search packages. 75 74 * 76 * @param string $path 77 * @param array $vars 75 * @param array<string, string> $vars 78 76 */ 79 protected function checkDuplicates( $path, array $vars = array())77 protected function checkDuplicates(string $path, array $vars = array()): void 80 78 { 81 79 $packageType = substr($vars['type'], strlen('bitrix') + 1); … … 95 93 } 96 94 97 if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) { 98 95 if ($oldPath !== $path && file_exists($oldPath) && $this->io->isInteractive()) { 99 96 $this->io->writeError(' <error>Duplication of packages:</error>'); 100 97 $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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class BonefishInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'package' => 'Packages/{$vendor}/{$name}/' -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 use Composer\DependencyResolver\Pool; 5 use Composer\ Package\PackageInterface;6 use Composer\Semver\Constraint\Constraint; 6 7 7 8 class CakePHPInstaller extends BaseInstaller 8 9 { 10 /** @var array<string, string> */ 9 11 protected $locations = array( 10 12 'plugin' => 'Plugin/{$name}/', … … 14 16 * Format package name to CamelCase 15 17 */ 16 public function inflectPackageVars( $vars)18 public function inflectPackageVars(array $vars): array 17 19 { 18 20 if ($this->matchesCakeVersion('>=', '3.0.0')) { … … 22 24 $nameParts = explode('/', $vars['name']); 23 25 foreach ($nameParts as &$value) { 24 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));26 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 25 27 $value = str_replace(array('-', '_'), ' ', $value); 26 28 $value = str_replace(' ', '', ucwords($value)); … … 34 36 * Change the default plugin location when cakephp >= 3.0 35 37 */ 36 public function getLocations( )38 public function getLocations(string $frameworkType): array 37 39 { 38 40 if ($this->matchesCakeVersion('>=', '3.0.0')) { … … 45 47 * Check if CakePHP version matches against a version 46 48 * 47 * @param string $matcher 48 * @param string $version 49 * @return bool 49 * @phpstan-param Constraint::STR_OP_* $matcher 50 50 */ 51 protected function matchesCakeVersion( $matcher, $version)51 protected function matchesCakeVersion(string $matcher, string $version): bool 52 52 { 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; 59 57 } 60 58 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; 81 63 } 82 return false; 64 65 return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null; 83 66 } 84 67 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ChefInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'cookbook' => 'Chef/{$vendor}/{$name}/', … … 9 11 ); 10 12 } 11 -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ClanCatsFrameworkInstaller extends BaseInstaller 5 6 { 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 ); 10 12 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CockpitInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'cockpit/modules/addons/{$name}/', … … 12 14 * 13 15 * Strip `module-` prefix from package name. 14 *15 * @param array @vars16 *17 * @return array18 16 */ 19 public function inflectPackageVars( $vars)17 public function inflectPackageVars(array $vars): array 20 18 { 21 19 if ($vars['type'] == 'cockpit-module') { … … 26 24 } 27 25 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 29 31 { 30 $vars['name'] = ucfirst( preg_replace('/cockpit-/i', '', $vars['name']));32 $vars['name'] = ucfirst($this->pregReplace('/cockpit-/i', '', $vars['name'])); 31 33 32 34 return $vars; -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CodeIgniterInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'application/libraries/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class Concrete5Installer extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 'block' => 'blocks/{$name}/', 9 'core' => 'concrete/', 10 'block' => 'application/blocks/{$name}/', 8 11 'package' => 'packages/{$name}/', 9 'theme' => ' themes/{$name}/',12 'theme' => 'application/themes/{$name}/', 10 13 'update' => 'updates/{$name}/', 11 14 ); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CroogoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'Plugin/{$name}/', … … 12 14 * Format package name to CamelCase 13 15 */ 14 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 15 17 { 16 18 $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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 5 6 { 6 7 /** @var array */ 8 /** @var array<string, string> */ 7 9 protected $locations = array( 8 10 'app' => 'app/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class DokuWikiInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'lib/plugins/{$name}/', … … 12 14 * Format package name. 13 15 * 14 * For package type dokuwiki-plugin, cut off a trailing '-plugin', 16 * For package type dokuwiki-plugin, cut off a trailing '-plugin', 15 17 * or leading dokuwiki_ if present. 16 * 18 * 17 19 * For package type dokuwiki-template, cut off a trailing '-template' if present. 18 *19 20 */ 20 public function inflectPackageVars( $vars)21 public function inflectPackageVars(array $vars): array 21 22 { 22 23 23 if ($vars['type'] === 'dokuwiki-plugin') { 24 24 return $this->inflectPluginVars($vars); … … 32 32 } 33 33 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 35 39 { 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']); 38 42 39 43 return $vars; 40 44 } 41 45 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 43 51 { 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']); 46 54 47 55 return $vars; 48 56 } 49 50 57 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 11 12 { 12 13 //TODO: Add support for scripts and themes 14 /** @var array<string, string> */ 13 15 protected $locations = array( 14 16 'module' => 'htdocs/custom/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class DrupalInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 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/', 15 23 ); 16 24 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ElggInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'mod/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class ExpressionEngineInstaller extends BaseInstaller 7 8 { 8 9 protected $locations = array(); 10 9 /** @var array<string, string> */ 11 10 private $ee2Locations = array( 12 11 'addon' => 'system/expressionengine/third_party/{$name}/', … … 14 13 ); 15 14 15 /** @var array<string, string> */ 16 16 private $ee3Locations = array( 17 17 'addon' => 'system/user/addons/{$name}/', … … 19 19 ); 20 20 21 public function get InstallPath(PackageInterface $package, $frameworkType = '')21 public function getLocations(string $frameworkType): array 22 22 { 23 if ($frameworkType === 'ee2') { 24 $this->locations = $this->ee2Locations; 25 } else { 26 $this->locations = $this->ee3Locations; 27 } 23 28 24 $version = "{$frameworkType}Locations"; 25 $this->locations = $this->$version; 26 27 return parent::getInstallPath($package, $frameworkType); 29 return $this->locations; 28 30 } 29 31 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class FuelInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'fuel/app/modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class FuelphpInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'component' => 'components/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/GravInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class GravInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'user/plugins/{$name}/', … … 11 13 /** 12 14 * Format package name 13 *14 * @param array $vars15 *16 * @return array17 15 */ 18 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 19 17 { 20 18 $restrictedWords = implode('|', array_keys($this->locations)); 21 19 22 20 $vars['name'] = strtolower($vars['name']); 23 $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', 21 $vars['name'] = $this->pregReplace( 22 '/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', 24 23 '$1', 25 24 $vars['name'] -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class HuradInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', … … 12 14 * Format package name to CamelCase 13 15 */ 14 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 15 17 { 16 18 $nameParts = explode('/', $vars['name']); 17 19 foreach ($nameParts as &$value) { 18 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));20 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 19 21 $value = str_replace(array('-', '_'), ' ', $value); 20 22 $value = str_replace(' ', '', ucwords($value)); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ImageCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'template' => 'templates/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Installer.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 5 use Composer\Composer; 6 use Composer\Installer\BinaryInstaller; 7 use Composer\Installer\LibraryInstaller; 4 8 use Composer\IO\IOInterface; 5 use Composer\ Installer\LibraryInstaller;9 use Composer\Package\Package; 6 10 use Composer\Package\PackageInterface; 7 11 use Composer\Repository\InstalledRepositoryInterface; 12 use Composer\Util\Filesystem; 13 use React\Promise\PromiseInterface; 8 14 9 15 class Installer extends LibraryInstaller … … 12 18 * Package types to installer class map 13 19 * 14 * @var array 20 * @var array<string, string> 15 21 */ 16 22 private $supportedTypes = array( 17 'a imeos' => 'AimeosInstaller',23 'akaunting' => 'AkauntingInstaller', 18 24 'asgard' => 'AsgardInstaller', 19 25 'attogram' => 'AttogramInstaller', … … 24 30 'cakephp' => 'CakePHPInstaller', 25 31 'chef' => 'ChefInstaller', 32 'civicrm' => 'CiviCrmInstaller', 26 33 'ccframework' => 'ClanCatsFrameworkInstaller', 27 34 'cockpit' => 'CockpitInstaller', 28 35 'codeigniter' => 'CodeIgniterInstaller', 29 36 'concrete5' => 'Concrete5Installer', 30 'craft' => 'CraftInstaller',31 37 'croogo' => 'CroogoInstaller', 38 'dframe' => 'DframeInstaller', 32 39 'dokuwiki' => 'DokuWikiInstaller', 33 40 'dolibarr' => 'DolibarrInstaller', … … 35 42 'drupal' => 'DrupalInstaller', 36 43 'elgg' => 'ElggInstaller', 44 'eliasis' => 'EliasisInstaller', 37 45 'ee3' => 'ExpressionEngineInstaller', 38 46 'ee2' => 'ExpressionEngineInstaller', 47 'ezplatform' => 'EzPlatformInstaller', 39 48 'fuel' => 'FuelInstaller', 40 49 'fuelphp' => 'FuelphpInstaller', 41 50 'grav' => 'GravInstaller', 42 51 'hurad' => 'HuradInstaller', 52 'tastyigniter' => 'TastyIgniterInstaller', 43 53 'imagecms' => 'ImageCMSInstaller', 44 'joomla' => 'JoomlaInstaller', 45 'kirby' => 'KirbyInstaller', 54 'itop' => 'ItopInstaller', 55 'kanboard' => 'KanboardInstaller', 56 'known' => 'KnownInstaller', 46 57 'kodicms' => 'KodiCMSInstaller', 47 58 'kohana' => 'KohanaInstaller', 59 'lms' => 'LanManagementSystemInstaller', 48 60 'laravel' => 'LaravelInstaller', 61 'lavalite' => 'LavaLiteInstaller', 49 62 'lithium' => 'LithiumInstaller', 50 63 'magento' => 'MagentoInstaller', 64 'majima' => 'MajimaInstaller', 65 'mantisbt' => 'MantisBTInstaller', 51 66 'mako' => 'MakoInstaller', 67 'maya' => 'MayaInstaller', 52 68 'mautic' => 'MauticInstaller', 53 69 'mediawiki' => 'MediaWikiInstaller', 70 'miaoxing' => 'MiaoxingInstaller', 54 71 'microweber' => 'MicroweberInstaller', 55 72 'modulework' => 'MODULEWorkInstaller', 73 'modx' => 'ModxInstaller', 56 74 'modxevo' => 'MODXEvoInstaller', 57 75 'moodle' => 'MoodleInstaller', 58 76 'october' => 'OctoberInstaller', 77 'ontowiki' => 'OntoWikiInstaller', 59 78 'oxid' => 'OxidInstaller', 79 'osclass' => 'OsclassInstaller', 80 'pxcms' => 'PxcmsInstaller', 60 81 'phpbb' => 'PhpBBInstaller', 61 'pimcore' => 'PimcoreInstaller',62 82 'piwik' => 'PiwikInstaller', 63 83 'plentymarkets'=> 'PlentymarketsInstaller', … … 66 86 'radphp' => 'RadPHPInstaller', 67 87 'phifty' => 'PhiftyInstaller', 88 'porto' => 'PortoInstaller', 89 'processwire' => 'ProcessWireInstaller', 90 'quicksilver' => 'PantheonInstaller', 68 91 'redaxo' => 'RedaxoInstaller', 92 'redaxo5' => 'Redaxo5Installer', 69 93 'reindex' => 'ReIndexInstaller', 70 94 'roundcube' => 'RoundcubeInstaller', 71 95 'shopware' => 'ShopwareInstaller', 96 'sitedirect' => 'SiteDirectInstaller', 72 97 'silverstripe' => 'SilverStripeInstaller', 73 98 'smf' => 'SMFInstaller', 74 'symfony1' => 'Symfony1Installer', 99 'starbug' => 'StarbugInstaller', 100 'sydes' => 'SyDESInstaller', 101 'sylius' => 'SyliusInstaller', 102 'tao' => 'TaoInstaller', 75 103 'thelia' => 'TheliaInstaller', 76 104 'tusk' => 'TuskInstaller', 77 'typo3-cms' => 'TYPO3CmsInstaller', 78 'typo3-flow' => 'TYPO3FlowInstaller', 105 'userfrosting' => 'UserFrostingInstaller', 79 106 'vanilla' => 'VanillaInstaller', 80 107 'whmcs' => 'WHMCSInstaller', 108 'winter' => 'WinterInstaller', 81 109 'wolfcms' => 'WolfCMSInstaller', 82 110 'wordpress' => 'WordPressInstaller', … … 88 116 89 117 /** 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 /** 90 133 * {@inheritDoc} 91 134 */ … … 104 147 $installer = new $class($package, $this->composer, $this->getIO()); 105 148 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; 107 155 } 108 156 109 157 public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) 110 158 { 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; 119 176 } 120 177 … … 138 195 * Finds a supported framework type if it exists and returns it 139 196 * 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 { 147 201 krsort($this->supportedTypes); 148 202 149 203 foreach ($this->supportedTypes as $key => $val) { 150 204 if ($key === substr($type, 0, strlen($key))) { 151 $frameworkType = substr($type, 0, strlen($key)); 152 break; 205 return substr($type, 0, strlen($key)); 153 206 } 154 207 } 155 208 156 return $frameworkType;209 return false; 157 210 } 158 211 … … 160 213 * Get the second part of the regular expression to check for support of a 161 214 * 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; 169 219 if (!empty($this->supportedTypes[$frameworkType])) { 170 220 $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; 171 221 /** @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. 182 240 * 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 } 188 278 } 189 279 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class KodiCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'cms/plugins/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class KohanaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class LaravelInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'libraries/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class LithiumInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'libraries/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MODULEWorkInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 7 8 class MODXEvoInstaller extends BaseInstaller 8 9 { 10 /** @var array<string, string> */ 9 11 protected $locations = array( 10 12 'snippet' => 'assets/snippets/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MagentoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'theme' => 'app/design/frontend/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MakoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'package' => 'app/packages/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 4 5 use Composer\Package\PackageInterface; 3 6 4 7 class MauticInstaller extends BaseInstaller 5 8 { 9 /** @var array<string, string> */ 6 10 protected $locations = array( 7 'plugin' => 'plugins/{$name}/', 8 'theme' => 'themes/{$name}/', 11 'plugin' => 'plugins/{$name}/', 12 'theme' => 'themes/{$name}/', 13 'core' => 'app/', 9 14 ); 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 } 10 30 11 31 /** 12 32 * Format package name of mautic-plugins to CamelCase 13 33 */ 14 public function inflectPackageVars( $vars)34 public function inflectPackageVars(array $vars): array 15 35 { 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; 20 39 } 21 40 22 41 return $vars; 23 42 } 24 25 43 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MediaWikiInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 9 'core' => 'core/', 7 10 'extension' => 'extensions/{$name}/', 8 11 'skin' => 'skins/{$name}/', … … 16 19 * 17 20 * For package type mediawiki-skin, cut off a trailing '-skin' if present. 18 *19 21 */ 20 public function inflectPackageVars( $vars)22 public function inflectPackageVars(array $vars): array 21 23 { 22 23 24 if ($vars['type'] === 'mediawiki-extension') { 24 25 return $this->inflectExtensionVars($vars); … … 32 33 } 33 34 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 35 40 { 36 $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);41 $vars['name'] = $this->pregReplace('/-extension$/', '', $vars['name']); 37 42 $vars['name'] = str_replace('-', ' ', $vars['name']); 38 43 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); … … 41 46 } 42 47 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 44 53 { 45 $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);54 $vars['name'] = $this->pregReplace('/-skin$/', '', $vars['name']); 46 55 47 56 return $vars; 48 57 } 49 50 58 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MicroweberInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 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}/' 13 15 ); 14 16 … … 19 21 * 20 22 * For package type microweber-template, cut off a trailing '-template' if present. 21 *22 23 */ 23 public function inflectPackageVars( $vars)24 public function inflectPackageVars(array $vars): array 24 25 { 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 } 48 54 } 49 55 … … 51 57 } 52 58 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 54 64 { 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']); 57 67 58 68 return $vars; 59 69 } 60 70 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 62 76 { 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']); 65 79 66 80 return $vars; 67 81 } 68 82 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 70 88 { 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']); 74 92 75 93 return $vars; 76 94 } 77 95 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 79 101 { 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']); 82 104 83 105 return $vars; 84 106 } 85 107 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 87 113 { 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']); 90 116 91 117 return $vars; 92 118 } 93 119 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 95 125 { 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']); 98 128 99 129 return $vars; 100 130 } 101 131 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 103 137 { 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']); 108 142 109 143 return $vars; -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MoodleInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'mod' => 'mod/{$name}/', … … 12 14 'assignsubmission' => 'mod/assign/submission/{$name}/', 13 15 'assignfeedback' => 'mod/assign/feedback/{$name}/', 16 'antivirus' => 'lib/antivirus/{$name}/', 14 17 'auth' => 'auth/{$name}/', 15 18 'availability' => 'availability/condition/{$name}/', … … 19 22 'cachelock' => 'cache/locks/{$name}/', 20 23 'calendartype' => 'calendar/type/{$name}/', 24 'customfield' => 'customfield/field/{$name}/', 25 'fileconverter' => 'files/converter/{$name}/', 21 26 'format' => 'course/format/{$name}/', 22 27 'coursereport' => 'course/report/{$name}/', 28 'contenttype' => 'contentbank/contenttype/{$name}/', 29 'customcertelement' => 'mod/customcert/element/{$name}/', 23 30 'datafield' => 'mod/data/field/{$name}/', 31 'dataformat' => 'dataformat/{$name}/', 24 32 'datapreset' => 'mod/data/preset/{$name}/', 25 33 'editor' => 'lib/editor/{$name}/', … … 34 42 'ltisource' => 'mod/lti/source/{$name}/', 35 43 'ltiservice' => 'mod/lti/service/{$name}/', 44 'media' => 'media/player/{$name}/', 36 45 'message' => 'message/output/{$name}/', 37 46 'mnetservice' => 'mnet/service/{$name}/', 47 'paygw' => 'payment/gateway/{$name}/', 38 48 'plagiarism' => 'plagiarism/{$name}/', 39 49 'portfolio' => 'portfolio/{$name}/', … … 46 56 'repository' => 'repository/{$name}/', 47 57 'scormreport' => 'mod/scorm/report/{$name}/', 58 'search' => 'search/engine/{$name}/', 48 59 'theme' => 'theme/{$name}/', 49 60 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class OctoberInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', 8 10 'plugin' => 'plugins/{$vendor}/{$name}/', 9 'theme' => 'themes/{$ name}/'11 'theme' => 'themes/{$vendor}-{$name}/' 10 12 ); 11 13 … … 16 18 * 17 19 * For package type october-theme, cut off a trailing '-theme' if present. 18 *19 20 */ 20 public function inflectPackageVars( $vars)21 public function inflectPackageVars(array $vars): array 21 22 { 22 23 if ($vars['type'] === 'october-plugin') { … … 31 32 } 32 33 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 34 39 { 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']); 36 42 37 43 return $vars; 38 44 } 39 45 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 41 51 { 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']); 43 54 44 55 return $vars; -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class OxidInstaller extends BaseInstaller 7 8 { 8 const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';9 const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/'; 9 10 11 /** @var array<string, string> */ 10 12 protected $locations = array( 11 13 'module' => 'modules/{$name}/', … … 14 16 ); 15 17 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 } 32 27 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 } 49 39 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 } 55 45 56 $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';57 touch($vendorMetaDataPath);58 }46 $vendorMetaDataPath = $vendorPath . '/vendormetadata.php'; 47 touch($vendorMetaDataPath); 48 } 59 49 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PPIInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PhiftyInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'bundle' => 'bundles/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PhpBBInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'extension' => 'ext/{$vendor}/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 9 10 class PiwikInstaller extends BaseInstaller 10 11 { 11 /** 12 * @var array 13 */ 12 /** @var array<string, string> */ 14 13 protected $locations = array( 15 14 'plugin' => 'plugins/{$name}/', … … 18 17 /** 19 18 * Format package name to CamelCase 20 * @param array $vars21 *22 * @return array23 19 */ 24 public function inflectPackageVars( $vars)20 public function inflectPackageVars(array $vars): array 25 21 { 26 $vars['name'] = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));22 $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 23 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 24 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PlentymarketsInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => '{$name}/' … … 10 12 /** 11 13 * Remove hyphen, "plugin" and format to camelcase 12 * @param array $vars13 *14 * @return array15 14 */ 16 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 17 16 { 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); 21 20 if (strcasecmp($name, "Plugin") == 0) { 22 unset($ vars['name'][$key]);21 unset($nameBits[$key]); 23 22 } 24 23 } 25 $vars['name'] = implode( "",$vars['name']);24 $vars['name'] = implode('', $nameBits); 26 25 27 26 return $vars; -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/Plugin.php
r2238319 r2717568 9 9 class Plugin implements PluginInterface 10 10 { 11 /** @var Installer */ 12 private $installer; 11 13 12 public function activate(Composer $composer, IOInterface $io) 14 public function activate(Composer $composer, IOInterface $io): void 13 15 { 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 { 16 27 } 17 28 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PrestashopInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php
r2238319 r2717568 6 6 { 7 7 8 /** @var array<string, string> */ 8 9 protected $locations = array( 9 10 'module' => 'modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RadPHPInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'bundle' => 'src/{$name}/' … … 11 13 * Format package name to CamelCase 12 14 */ 13 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 14 16 { 15 17 $nameParts = explode('/', $vars['name']); 16 18 foreach ($nameParts as &$value) { 17 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));19 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 18 20 $value = str_replace(array('-', '_'), ' ', $value); 19 21 $value = str_replace(' ', '', ucwords($value)); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ReIndexInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'theme' => 'themes/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RedaxoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'addon' => 'redaxo/include/addons/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RoundcubeInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', … … 10 12 /** 11 13 * Lowercase name and changes the name to a underscores 12 *13 * @param array $vars14 * @return array15 14 */ 16 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 17 16 { 18 17 $vars['name'] = strtolower(str_replace('-', '_', $vars['name'])); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class SMFInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'Sources/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 8 9 class ShopwareInstaller extends BaseInstaller 9 10 { 11 /** @var array<string, string> */ 10 12 protected $locations = array( 11 13 'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/', … … 19 21 /** 20 22 * Transforms the names 21 * @param array $vars22 * @return array23 23 */ 24 public function inflectPackageVars( $vars)24 public function inflectPackageVars(array $vars): array 25 25 { 26 26 if ($vars['type'] === 'shopware-theme') { 27 27 return $this->correctThemeName($vars); 28 } else {29 return $this->correctPluginName($vars);30 28 } 29 30 return $this->correctPluginName($vars); 31 31 } 32 32 33 33 /** 34 34 * 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> 37 38 */ 38 private function correctPluginName( $vars)39 private function correctPluginName(array $vars): array 39 40 { 40 41 $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { 41 42 return strtoupper($matches[0][1]); 42 43 }, $vars['name']); 44 45 if (null === $camelCasedName) { 46 throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error()); 47 } 43 48 44 49 $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName); … … 49 54 /** 50 55 * 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> 53 59 */ 54 private function correctThemeName( $vars)60 private function correctThemeName(array $vars): array 55 61 { 56 62 $vars['name'] = str_replace('-', '_', $vars['name']); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class SilverStripeInstaller extends BaseInstaller 7 8 { 9 /** @var array<string, string> */ 8 10 protected $locations = array( 9 11 'module' => '{$name}/', … … 16 18 * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework 17 19 * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0 18 *19 * @param PackageInterface $package20 * @param string $frameworkType21 * @return string22 20 */ 23 public function getInstallPath(PackageInterface $package, $frameworkType = '')21 public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string 24 22 { 25 23 if ( … … 29 27 ) { 30 28 return $this->templatePath($this->locations['module'], array('name' => 'sapphire')); 31 } else {32 return parent::getInstallPath($package, $frameworkType);33 29 } 34 30 31 return parent::getInstallPath($package, $frameworkType); 35 32 } 36 33 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class TheliaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'local/modules/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php
r2238319 r2717568 1 1 <?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 3 namespace Composer\Installers; 4 5 /** 6 * Composer installer for 3rd party Tusk utilities 7 * @author Drew Ewing <drew@phenocode.com> 8 */ 9 class 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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class VanillaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php
r2238319 r2717568 5 5 class WHMCSInstaller extends BaseInstaller 6 6 { 7 /** @var array<string, string> */ 7 8 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}/' 9 21 ); 10 22 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class WolfCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'wolf/plugins/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class WordPressInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'wp-content/plugins/{$name}/', 8 10 'theme' => 'wp-content/themes/{$name}/', 9 11 'muplugin' => 'wp-content/mu-plugins/{$name}/', 12 'dropin' => 'wp-content/{$name}/', 10 13 ); 11 14 } -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php
r2238319 r2717568 1 1 <?php 2 /**3 * Created by PhpStorm.4 * User: cbleek5 * Date: 25.03.166 * Time: 20:557 */8 2 9 3 namespace Composer\Installers; 10 4 11 12 5 class YawikInstaller extends BaseInstaller 13 6 { 7 /** @var array<string, string> */ 14 8 protected $locations = array( 15 9 'module' => 'module/{$name}/', … … 18 12 /** 19 13 * Format package name to CamelCase 20 * @param array $vars21 *22 * @return array23 14 */ 24 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 25 16 { 26 $vars['name'] = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));17 $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 18 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 19 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ZendInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'library/{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ZikulaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$vendor}-{$name}/', -
wk-google-analytics/tags/1.9.8/vendor/composer/installers/src/bootstrap.php
r2238319 r2717568 1 1 <?php 2 function includeIfExists($file) 2 3 use Composer\Autoload\ClassLoader; 4 5 function includeIfExists(string $file): ?ClassLoader 3 6 { 4 7 if (file_exists($file)) { 5 8 return include $file; 6 9 } 10 11 return null; 7 12 } 8 13 if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) { -
wk-google-analytics/tags/1.9.8/wk-ga.php
r2715258 r2717568 5 5 * Plugin URI: https://wordpress.org/plugins/wk-google-analytics/ 6 6 * 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. 77 * Version: 1.9.8 8 8 * Author: WEBKINDER 9 9 * Author URI: https://www.webkinder.ch -
wk-google-analytics/trunk/readme.txt
r2715258 r2717568 2 2 Contributors: WEBKINDER 3 3 Tags: 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. 84 Requires at least: 4.9 5 5 Tested up to: 5.9.3 6 Requires PHP: 7. 17 Stable tag: 1.9. 76 Requires PHP: 7.2 7 Stable tag: 1.9.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 == Changelog == 35 36 = 1.9.8 = 37 38 * Update composer packages and unit testing for CI 35 39 36 40 = 1.9.7 = -
wk-google-analytics/trunk/vendor/autoload.php
r2715258 r2717568 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 32e57717e9721e837f04a955935c2ed8::getLoader();7 return ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824::getLoader(); -
wk-google-analytics/trunk/vendor/composer/ClassLoader.php
r2402645 r2717568 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @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/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 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 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-var array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 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 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 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 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @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 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 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 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 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 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 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 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
wk-google-analytics/trunk/vendor/composer/autoload_classmap.php
r2411206 r2717568 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 10 'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php', 10 'Composer\\Installers\\A imeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',11 'Composer\\Installers\\AkauntingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php', 11 12 'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php', 12 13 'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php', … … 17 18 'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php', 18 19 'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php', 20 'Composer\\Installers\\CiviCrmInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php', 19 21 'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php', 20 22 'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php', 21 23 'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php', 22 24 'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php', 23 'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',24 25 'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php', 25 26 'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php', 27 'Composer\\Installers\\DframeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DframeInstaller.php', 26 28 'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php', 27 29 'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php', 28 30 'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php', 29 31 'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php', 32 'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php', 30 33 'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php', 34 'Composer\\Installers\\EzPlatformInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php', 31 35 'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php', 32 36 'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php', … … 35 39 'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php', 36 40 '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', 39 44 'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php', 40 45 'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php', 46 'Composer\\Installers\\LanManagementSystemInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php', 41 47 'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php', 48 'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php', 42 49 'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php', 43 50 'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php', 44 51 'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php', 45 52 'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php', 53 'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php', 46 54 'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php', 55 'Composer\\Installers\\MantisBTInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php', 47 56 'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php', 57 'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php', 48 58 'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php', 59 'Composer\\Installers\\MiaoxingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php', 49 60 'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php', 61 'Composer\\Installers\\ModxInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php', 50 62 'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php', 51 63 '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', 52 66 'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php', 53 67 'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php', 68 'Composer\\Installers\\PantheonInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PantheonInstaller.php', 54 69 'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php', 55 70 'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php', 56 'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',57 71 'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php', 58 72 'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php', 59 73 'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php', 74 'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 60 75 'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 76 'Composer\\Installers\\ProcessWireInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 61 77 'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 78 'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', 62 79 'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php', 63 80 'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php', 81 'Composer\\Installers\\Redaxo5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php', 64 82 'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php', 65 83 'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php', … … 67 85 'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php', 68 86 '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', 72 93 'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php', 73 94 'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php', 95 'Composer\\Installers\\UserFrostingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php', 74 96 'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php', 97 'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php', 75 98 'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php', 99 'Composer\\Installers\\WinterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WinterInstaller.php', 76 100 'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php', 77 101 'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php', -
wk-google-analytics/trunk/vendor/composer/autoload_real.php
r2715258 r2717568 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 32e57717e9721e837f04a955935c2ed85 class ComposerAutoloaderInit607292fa727b35ff77acbc2a12eb9824 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 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')); 28 30 29 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 32 if ($useStaticLoader) { 31 require _once__DIR__ . '/autoload_static.php';33 require __DIR__ . '/autoload_static.php'; 32 34 33 call_user_func(\Composer\Autoload\ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::getInitializer($loader)); 34 36 } else { 35 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
wk-google-analytics/trunk/vendor/composer/autoload_static.php
r2715258 r2717568 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 32e57717e9721e837f04a955935c2ed87 class ComposerStaticInit607292fa727b35ff77acbc2a12eb9824 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 30 30 31 31 public static $classMap = array ( 32 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 32 33 'Composer\\Installers\\AglInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AglInstaller.php', 33 'Composer\\Installers\\A imeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',34 'Composer\\Installers\\AkauntingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AkauntingInstaller.php', 34 35 'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php', 35 36 'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php', … … 40 41 'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php', 41 42 'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php', 43 'Composer\\Installers\\CiviCrmInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php', 42 44 'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php', 43 45 'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php', 44 46 'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php', 45 47 'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php', 46 'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',47 48 'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php', 48 49 'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php', 50 'Composer\\Installers\\DframeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DframeInstaller.php', 49 51 'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php', 50 52 'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php', 51 53 'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php', 52 54 'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php', 55 'Composer\\Installers\\EliasisInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EliasisInstaller.php', 53 56 'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php', 57 'Composer\\Installers\\EzPlatformInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php', 54 58 'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php', 55 59 'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php', … … 58 62 'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php', 59 63 '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', 62 67 'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php', 63 68 'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php', 69 'Composer\\Installers\\LanManagementSystemInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php', 64 70 'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php', 71 'Composer\\Installers\\LavaLiteInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php', 65 72 'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php', 66 73 'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php', 67 74 'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php', 68 75 'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php', 76 'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php', 69 77 'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php', 78 'Composer\\Installers\\MantisBTInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MantisBTInstaller.php', 70 79 'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php', 80 'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php', 71 81 'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php', 82 'Composer\\Installers\\MiaoxingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MiaoxingInstaller.php', 72 83 'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php', 84 'Composer\\Installers\\ModxInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ModxInstaller.php', 73 85 'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php', 74 86 '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', 75 89 'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php', 76 90 'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php', 91 'Composer\\Installers\\PantheonInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PantheonInstaller.php', 77 92 'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php', 78 93 'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php', 79 'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',80 94 'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php', 81 95 'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php', 82 96 'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php', 97 'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 83 98 'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 99 'Composer\\Installers\\ProcessWireInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 84 100 'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 101 'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', 85 102 'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php', 86 103 'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php', 104 'Composer\\Installers\\Redaxo5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php', 87 105 'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php', 88 106 'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php', … … 90 108 'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php', 91 109 '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', 95 116 'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php', 96 117 'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php', 118 'Composer\\Installers\\UserFrostingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php', 97 119 'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php', 120 'Composer\\Installers\\VgmcpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php', 98 121 'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php', 122 'Composer\\Installers\\WinterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WinterInstaller.php', 99 123 'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php', 100 124 'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php', … … 111 135 { 112 136 return \Closure::bind(function () use ($loader) { 113 $loader->prefixLengthsPsr4 = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$prefixLengthsPsr4;114 $loader->prefixDirsPsr4 = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$prefixDirsPsr4;115 $loader->classMap = ComposerStaticInit 32e57717e9721e837f04a955935c2ed8::$classMap;137 $loader->prefixLengthsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixLengthsPsr4; 138 $loader->prefixDirsPsr4 = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$prefixDirsPsr4; 139 $loader->classMap = ComposerStaticInit607292fa727b35ff77acbc2a12eb9824::$classMap; 116 140 117 141 }, 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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AglInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'More/{$name}/', … … 11 13 * Format package name to CamelCase 12 14 */ 13 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 14 16 { 15 $ vars['name']= preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {17 $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { 16 18 return strtoupper($matches[1]); 17 19 }, $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; 18 26 19 27 return $vars; -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AnnotateCmsInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'addons/modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AsgardInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'Modules/{$name}/', … … 15 17 * 16 18 * For package type asgard-theme, cut off a trailing '-theme' if present. 17 *18 19 */ 19 public function inflectPackageVars( $vars)20 public function inflectPackageVars(array $vars): array 20 21 { 21 22 if ($vars['type'] === 'asgard-module') { … … 30 31 } 31 32 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 33 38 { 34 $vars['name'] = preg_replace('/-module$/', '', $vars['name']);39 $vars['name'] = $this->pregReplace('/-module$/', '', $vars['name']); 35 40 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 36 41 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); … … 39 44 } 40 45 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 42 51 { 43 $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);52 $vars['name'] = $this->pregReplace('/-theme$/', '', $vars['name']); 44 53 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 45 54 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class AttogramInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 8 9 abstract class BaseInstaller 9 10 { 11 /** @var array<string, string> */ 10 12 protected $locations = array(); 13 /** @var Composer */ 11 14 protected $composer; 15 /** @var PackageInterface */ 12 16 protected $package; 17 /** @var IOInterface */ 13 18 protected $io; 14 19 15 20 /** 16 21 * Initializes base installer. 17 *18 * @param PackageInterface $package19 * @param Composer $composer20 * @param IOInterface $io21 22 */ 22 public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)23 public function __construct(PackageInterface $package, Composer $composer, IOInterface $io) 23 24 { 24 25 $this->composer = $composer; … … 29 30 /** 30 31 * Return the install path based on package type. 31 *32 * @param PackageInterface $package33 * @param string $frameworkType34 * @return string35 32 */ 36 public function getInstallPath(PackageInterface $package, $frameworkType = '')33 public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string 37 34 { 38 35 $type = $this->package->getType(); … … 53 50 } 54 51 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); 62 57 } 63 58 } 64 59 65 60 $packageType = substr($type, strlen($frameworkType) + 1); 66 $locations = $this->getLocations( );61 $locations = $this->getLocations($frameworkType); 67 62 if (!isset($locations[$packageType])) { 68 63 throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type)); … … 75 70 * For an installer to override to modify the vars per installer. 76 71 * 77 * @param array $vars78 * @return array 72 * @param array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string} 73 * @return array<string, string> 79 74 */ 80 public function inflectPackageVars( $vars)75 public function inflectPackageVars(array $vars): array 81 76 { 82 77 return $vars; … … 86 81 * Gets the installer's locations 87 82 * 88 * @return array 83 * @return array<string, string> map of package types => install path 89 84 */ 90 public function getLocations( )85 public function getLocations(string $frameworkType) 91 86 { 92 87 return $this->locations; … … 96 91 * Replace vars in a path 97 92 * 98 * @param string $path 99 * @param array $vars 100 * @return string 93 * @param array<string, string> $vars 101 94 */ 102 protected function templatePath( $path, array $vars = array())95 protected function templatePath(string $path, array $vars = array()): string 103 96 { 104 97 if (strpos($path, '{') !== false) { … … 118 111 * Search through a passed paths array for a custom install path. 119 112 * 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 125 115 */ 126 protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)116 protected function mapCustomInstallPaths(array $paths, string $name, string $type, ?string $vendor = null) 127 117 { 128 118 foreach ($paths as $path => $names) { 119 $names = (array) $names; 129 120 if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) { 130 121 return $path; … … 134 125 return false; 135 126 } 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 } 136 137 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php
r2238319 r2717568 10 10 * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`. 11 11 * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`. 12 * 12 * 13 13 * You can set custom path to directory with Bitrix kernel in `composer.json`: 14 * 14 * 15 15 * ```json 16 16 * { … … 26 26 class BitrixInstaller extends BaseInstaller 27 27 { 28 /** @var array<string, string> */ 28 29 protected $locations = array( 29 30 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) … … 36 37 37 38 /** 38 * @var arrayStorage 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. 39 40 */ 40 41 private static $checkedDuplicates = array(); 41 42 42 /** 43 * {@inheritdoc} 44 */ 45 public function inflectPackageVars($vars) 43 public function inflectPackageVars(array $vars): array 46 44 { 45 /** @phpstan-ignore-next-line */ 47 46 if ($this->composer->getPackage()) { 48 47 $extra = $this->composer->getPackage()->getExtra(); … … 63 62 * {@inheritdoc} 64 63 */ 65 protected function templatePath( $path, array $vars = array())64 protected function templatePath(string $path, array $vars = array()): string 66 65 { 67 66 $templatePath = parent::templatePath($path, $vars); … … 74 73 * Duplicates search packages. 75 74 * 76 * @param string $path 77 * @param array $vars 75 * @param array<string, string> $vars 78 76 */ 79 protected function checkDuplicates( $path, array $vars = array())77 protected function checkDuplicates(string $path, array $vars = array()): void 80 78 { 81 79 $packageType = substr($vars['type'], strlen('bitrix') + 1); … … 95 93 } 96 94 97 if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) { 98 95 if ($oldPath !== $path && file_exists($oldPath) && $this->io->isInteractive()) { 99 96 $this->io->writeError(' <error>Duplication of packages:</error>'); 100 97 $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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class BonefishInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'package' => 'Packages/{$vendor}/{$name}/' -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 use Composer\DependencyResolver\Pool; 5 use Composer\ Package\PackageInterface;6 use Composer\Semver\Constraint\Constraint; 6 7 7 8 class CakePHPInstaller extends BaseInstaller 8 9 { 10 /** @var array<string, string> */ 9 11 protected $locations = array( 10 12 'plugin' => 'Plugin/{$name}/', … … 14 16 * Format package name to CamelCase 15 17 */ 16 public function inflectPackageVars( $vars)18 public function inflectPackageVars(array $vars): array 17 19 { 18 20 if ($this->matchesCakeVersion('>=', '3.0.0')) { … … 22 24 $nameParts = explode('/', $vars['name']); 23 25 foreach ($nameParts as &$value) { 24 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));26 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 25 27 $value = str_replace(array('-', '_'), ' ', $value); 26 28 $value = str_replace(' ', '', ucwords($value)); … … 34 36 * Change the default plugin location when cakephp >= 3.0 35 37 */ 36 public function getLocations( )38 public function getLocations(string $frameworkType): array 37 39 { 38 40 if ($this->matchesCakeVersion('>=', '3.0.0')) { … … 45 47 * Check if CakePHP version matches against a version 46 48 * 47 * @param string $matcher 48 * @param string $version 49 * @return bool 49 * @phpstan-param Constraint::STR_OP_* $matcher 50 50 */ 51 protected function matchesCakeVersion( $matcher, $version)51 protected function matchesCakeVersion(string $matcher, string $version): bool 52 52 { 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; 59 57 } 60 58 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; 81 63 } 82 return false; 64 65 return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null; 83 66 } 84 67 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ChefInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'cookbook' => 'Chef/{$vendor}/{$name}/', … … 9 11 ); 10 12 } 11 -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ClanCatsFrameworkInstaller extends BaseInstaller 5 6 { 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 ); 10 12 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CockpitInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'cockpit/modules/addons/{$name}/', … … 12 14 * 13 15 * Strip `module-` prefix from package name. 14 *15 * @param array @vars16 *17 * @return array18 16 */ 19 public function inflectPackageVars( $vars)17 public function inflectPackageVars(array $vars): array 20 18 { 21 19 if ($vars['type'] == 'cockpit-module') { … … 26 24 } 27 25 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 29 31 { 30 $vars['name'] = ucfirst( preg_replace('/cockpit-/i', '', $vars['name']));32 $vars['name'] = ucfirst($this->pregReplace('/cockpit-/i', '', $vars['name'])); 31 33 32 34 return $vars; -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CodeIgniterInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'application/libraries/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class Concrete5Installer extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 'block' => 'blocks/{$name}/', 9 'core' => 'concrete/', 10 'block' => 'application/blocks/{$name}/', 8 11 'package' => 'packages/{$name}/', 9 'theme' => ' themes/{$name}/',12 'theme' => 'application/themes/{$name}/', 10 13 'update' => 'updates/{$name}/', 11 14 ); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class CroogoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'Plugin/{$name}/', … … 12 14 * Format package name to CamelCase 13 15 */ 14 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 15 17 { 16 18 $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name'])); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 5 6 { 6 7 /** @var array */ 8 /** @var array<string, string> */ 7 9 protected $locations = array( 8 10 'app' => 'app/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class DokuWikiInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'lib/plugins/{$name}/', … … 12 14 * Format package name. 13 15 * 14 * For package type dokuwiki-plugin, cut off a trailing '-plugin', 16 * For package type dokuwiki-plugin, cut off a trailing '-plugin', 15 17 * or leading dokuwiki_ if present. 16 * 18 * 17 19 * For package type dokuwiki-template, cut off a trailing '-template' if present. 18 *19 20 */ 20 public function inflectPackageVars( $vars)21 public function inflectPackageVars(array $vars): array 21 22 { 22 23 23 if ($vars['type'] === 'dokuwiki-plugin') { 24 24 return $this->inflectPluginVars($vars); … … 32 32 } 33 33 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 35 39 { 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']); 38 42 39 43 return $vars; 40 44 } 41 45 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 43 51 { 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']); 46 54 47 55 return $vars; 48 56 } 49 50 57 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 11 12 { 12 13 //TODO: Add support for scripts and themes 14 /** @var array<string, string> */ 13 15 protected $locations = array( 14 16 'module' => 'htdocs/custom/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class DrupalInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 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/', 15 23 ); 16 24 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ElggInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'mod/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class ExpressionEngineInstaller extends BaseInstaller 7 8 { 8 9 protected $locations = array(); 10 9 /** @var array<string, string> */ 11 10 private $ee2Locations = array( 12 11 'addon' => 'system/expressionengine/third_party/{$name}/', … … 14 13 ); 15 14 15 /** @var array<string, string> */ 16 16 private $ee3Locations = array( 17 17 'addon' => 'system/user/addons/{$name}/', … … 19 19 ); 20 20 21 public function get InstallPath(PackageInterface $package, $frameworkType = '')21 public function getLocations(string $frameworkType): array 22 22 { 23 if ($frameworkType === 'ee2') { 24 $this->locations = $this->ee2Locations; 25 } else { 26 $this->locations = $this->ee3Locations; 27 } 23 28 24 $version = "{$frameworkType}Locations"; 25 $this->locations = $this->$version; 26 27 return parent::getInstallPath($package, $frameworkType); 29 return $this->locations; 28 30 } 29 31 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class FuelInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'fuel/app/modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class FuelphpInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'component' => 'components/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/GravInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class GravInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'user/plugins/{$name}/', … … 11 13 /** 12 14 * Format package name 13 *14 * @param array $vars15 *16 * @return array17 15 */ 18 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 19 17 { 20 18 $restrictedWords = implode('|', array_keys($this->locations)); 21 19 22 20 $vars['name'] = strtolower($vars['name']); 23 $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', 21 $vars['name'] = $this->pregReplace( 22 '/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', 24 23 '$1', 25 24 $vars['name'] -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class HuradInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', … … 12 14 * Format package name to CamelCase 13 15 */ 14 public function inflectPackageVars( $vars)16 public function inflectPackageVars(array $vars): array 15 17 { 16 18 $nameParts = explode('/', $vars['name']); 17 19 foreach ($nameParts as &$value) { 18 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));20 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 19 21 $value = str_replace(array('-', '_'), ' ', $value); 20 22 $value = str_replace(' ', '', ucwords($value)); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ImageCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'template' => 'templates/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 5 use Composer\Composer; 6 use Composer\Installer\BinaryInstaller; 7 use Composer\Installer\LibraryInstaller; 4 8 use Composer\IO\IOInterface; 5 use Composer\ Installer\LibraryInstaller;9 use Composer\Package\Package; 6 10 use Composer\Package\PackageInterface; 7 11 use Composer\Repository\InstalledRepositoryInterface; 12 use Composer\Util\Filesystem; 13 use React\Promise\PromiseInterface; 8 14 9 15 class Installer extends LibraryInstaller … … 12 18 * Package types to installer class map 13 19 * 14 * @var array 20 * @var array<string, string> 15 21 */ 16 22 private $supportedTypes = array( 17 'a imeos' => 'AimeosInstaller',23 'akaunting' => 'AkauntingInstaller', 18 24 'asgard' => 'AsgardInstaller', 19 25 'attogram' => 'AttogramInstaller', … … 24 30 'cakephp' => 'CakePHPInstaller', 25 31 'chef' => 'ChefInstaller', 32 'civicrm' => 'CiviCrmInstaller', 26 33 'ccframework' => 'ClanCatsFrameworkInstaller', 27 34 'cockpit' => 'CockpitInstaller', 28 35 'codeigniter' => 'CodeIgniterInstaller', 29 36 'concrete5' => 'Concrete5Installer', 30 'craft' => 'CraftInstaller',31 37 'croogo' => 'CroogoInstaller', 38 'dframe' => 'DframeInstaller', 32 39 'dokuwiki' => 'DokuWikiInstaller', 33 40 'dolibarr' => 'DolibarrInstaller', … … 35 42 'drupal' => 'DrupalInstaller', 36 43 'elgg' => 'ElggInstaller', 44 'eliasis' => 'EliasisInstaller', 37 45 'ee3' => 'ExpressionEngineInstaller', 38 46 'ee2' => 'ExpressionEngineInstaller', 47 'ezplatform' => 'EzPlatformInstaller', 39 48 'fuel' => 'FuelInstaller', 40 49 'fuelphp' => 'FuelphpInstaller', 41 50 'grav' => 'GravInstaller', 42 51 'hurad' => 'HuradInstaller', 52 'tastyigniter' => 'TastyIgniterInstaller', 43 53 'imagecms' => 'ImageCMSInstaller', 44 'joomla' => 'JoomlaInstaller', 45 'kirby' => 'KirbyInstaller', 54 'itop' => 'ItopInstaller', 55 'kanboard' => 'KanboardInstaller', 56 'known' => 'KnownInstaller', 46 57 'kodicms' => 'KodiCMSInstaller', 47 58 'kohana' => 'KohanaInstaller', 59 'lms' => 'LanManagementSystemInstaller', 48 60 'laravel' => 'LaravelInstaller', 61 'lavalite' => 'LavaLiteInstaller', 49 62 'lithium' => 'LithiumInstaller', 50 63 'magento' => 'MagentoInstaller', 64 'majima' => 'MajimaInstaller', 65 'mantisbt' => 'MantisBTInstaller', 51 66 'mako' => 'MakoInstaller', 67 'maya' => 'MayaInstaller', 52 68 'mautic' => 'MauticInstaller', 53 69 'mediawiki' => 'MediaWikiInstaller', 70 'miaoxing' => 'MiaoxingInstaller', 54 71 'microweber' => 'MicroweberInstaller', 55 72 'modulework' => 'MODULEWorkInstaller', 73 'modx' => 'ModxInstaller', 56 74 'modxevo' => 'MODXEvoInstaller', 57 75 'moodle' => 'MoodleInstaller', 58 76 'october' => 'OctoberInstaller', 77 'ontowiki' => 'OntoWikiInstaller', 59 78 'oxid' => 'OxidInstaller', 79 'osclass' => 'OsclassInstaller', 80 'pxcms' => 'PxcmsInstaller', 60 81 'phpbb' => 'PhpBBInstaller', 61 'pimcore' => 'PimcoreInstaller',62 82 'piwik' => 'PiwikInstaller', 63 83 'plentymarkets'=> 'PlentymarketsInstaller', … … 66 86 'radphp' => 'RadPHPInstaller', 67 87 'phifty' => 'PhiftyInstaller', 88 'porto' => 'PortoInstaller', 89 'processwire' => 'ProcessWireInstaller', 90 'quicksilver' => 'PantheonInstaller', 68 91 'redaxo' => 'RedaxoInstaller', 92 'redaxo5' => 'Redaxo5Installer', 69 93 'reindex' => 'ReIndexInstaller', 70 94 'roundcube' => 'RoundcubeInstaller', 71 95 'shopware' => 'ShopwareInstaller', 96 'sitedirect' => 'SiteDirectInstaller', 72 97 'silverstripe' => 'SilverStripeInstaller', 73 98 'smf' => 'SMFInstaller', 74 'symfony1' => 'Symfony1Installer', 99 'starbug' => 'StarbugInstaller', 100 'sydes' => 'SyDESInstaller', 101 'sylius' => 'SyliusInstaller', 102 'tao' => 'TaoInstaller', 75 103 'thelia' => 'TheliaInstaller', 76 104 'tusk' => 'TuskInstaller', 77 'typo3-cms' => 'TYPO3CmsInstaller', 78 'typo3-flow' => 'TYPO3FlowInstaller', 105 'userfrosting' => 'UserFrostingInstaller', 79 106 'vanilla' => 'VanillaInstaller', 80 107 'whmcs' => 'WHMCSInstaller', 108 'winter' => 'WinterInstaller', 81 109 'wolfcms' => 'WolfCMSInstaller', 82 110 'wordpress' => 'WordPressInstaller', … … 88 116 89 117 /** 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 /** 90 133 * {@inheritDoc} 91 134 */ … … 104 147 $installer = new $class($package, $this->composer, $this->getIO()); 105 148 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; 107 155 } 108 156 109 157 public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) 110 158 { 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; 119 176 } 120 177 … … 138 195 * Finds a supported framework type if it exists and returns it 139 196 * 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 { 147 201 krsort($this->supportedTypes); 148 202 149 203 foreach ($this->supportedTypes as $key => $val) { 150 204 if ($key === substr($type, 0, strlen($key))) { 151 $frameworkType = substr($type, 0, strlen($key)); 152 break; 205 return substr($type, 0, strlen($key)); 153 206 } 154 207 } 155 208 156 return $frameworkType;209 return false; 157 210 } 158 211 … … 160 213 * Get the second part of the regular expression to check for support of a 161 214 * 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; 169 219 if (!empty($this->supportedTypes[$frameworkType])) { 170 220 $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; 171 221 /** @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. 182 240 * 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 } 188 278 } 189 279 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class KodiCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'cms/plugins/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class KohanaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class LaravelInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'libraries/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class LithiumInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'libraries/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MODULEWorkInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 7 8 class MODXEvoInstaller extends BaseInstaller 8 9 { 10 /** @var array<string, string> */ 9 11 protected $locations = array( 10 12 'snippet' => 'assets/snippets/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MagentoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'theme' => 'app/design/frontend/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MakoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'package' => 'app/packages/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 4 5 use Composer\Package\PackageInterface; 3 6 4 7 class MauticInstaller extends BaseInstaller 5 8 { 9 /** @var array<string, string> */ 6 10 protected $locations = array( 7 'plugin' => 'plugins/{$name}/', 8 'theme' => 'themes/{$name}/', 11 'plugin' => 'plugins/{$name}/', 12 'theme' => 'themes/{$name}/', 13 'core' => 'app/', 9 14 ); 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 } 10 30 11 31 /** 12 32 * Format package name of mautic-plugins to CamelCase 13 33 */ 14 public function inflectPackageVars( $vars)34 public function inflectPackageVars(array $vars): array 15 35 { 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; 20 39 } 21 40 22 41 return $vars; 23 42 } 24 25 43 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MediaWikiInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 9 'core' => 'core/', 7 10 'extension' => 'extensions/{$name}/', 8 11 'skin' => 'skins/{$name}/', … … 16 19 * 17 20 * For package type mediawiki-skin, cut off a trailing '-skin' if present. 18 *19 21 */ 20 public function inflectPackageVars( $vars)22 public function inflectPackageVars(array $vars): array 21 23 { 22 23 24 if ($vars['type'] === 'mediawiki-extension') { 24 25 return $this->inflectExtensionVars($vars); … … 32 33 } 33 34 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 35 40 { 36 $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);41 $vars['name'] = $this->pregReplace('/-extension$/', '', $vars['name']); 37 42 $vars['name'] = str_replace('-', ' ', $vars['name']); 38 43 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); … … 41 46 } 42 47 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 44 53 { 45 $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);54 $vars['name'] = $this->pregReplace('/-skin$/', '', $vars['name']); 46 55 47 56 return $vars; 48 57 } 49 50 58 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MicroweberInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 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}/' 13 15 ); 14 16 … … 19 21 * 20 22 * For package type microweber-template, cut off a trailing '-template' if present. 21 *22 23 */ 23 public function inflectPackageVars( $vars)24 public function inflectPackageVars(array $vars): array 24 25 { 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 } 48 54 } 49 55 … … 51 57 } 52 58 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 54 64 { 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']); 57 67 58 68 return $vars; 59 69 } 60 70 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 62 76 { 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']); 65 79 66 80 return $vars; 67 81 } 68 82 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 70 88 { 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']); 74 92 75 93 return $vars; 76 94 } 77 95 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 79 101 { 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']); 82 104 83 105 return $vars; 84 106 } 85 107 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 87 113 { 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']); 90 116 91 117 return $vars; 92 118 } 93 119 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 95 125 { 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']); 98 128 99 129 return $vars; 100 130 } 101 131 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 103 137 { 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']); 108 142 109 143 return $vars; -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class MoodleInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'mod' => 'mod/{$name}/', … … 12 14 'assignsubmission' => 'mod/assign/submission/{$name}/', 13 15 'assignfeedback' => 'mod/assign/feedback/{$name}/', 16 'antivirus' => 'lib/antivirus/{$name}/', 14 17 'auth' => 'auth/{$name}/', 15 18 'availability' => 'availability/condition/{$name}/', … … 19 22 'cachelock' => 'cache/locks/{$name}/', 20 23 'calendartype' => 'calendar/type/{$name}/', 24 'customfield' => 'customfield/field/{$name}/', 25 'fileconverter' => 'files/converter/{$name}/', 21 26 'format' => 'course/format/{$name}/', 22 27 'coursereport' => 'course/report/{$name}/', 28 'contenttype' => 'contentbank/contenttype/{$name}/', 29 'customcertelement' => 'mod/customcert/element/{$name}/', 23 30 'datafield' => 'mod/data/field/{$name}/', 31 'dataformat' => 'dataformat/{$name}/', 24 32 'datapreset' => 'mod/data/preset/{$name}/', 25 33 'editor' => 'lib/editor/{$name}/', … … 34 42 'ltisource' => 'mod/lti/source/{$name}/', 35 43 'ltiservice' => 'mod/lti/service/{$name}/', 44 'media' => 'media/player/{$name}/', 36 45 'message' => 'message/output/{$name}/', 37 46 'mnetservice' => 'mnet/service/{$name}/', 47 'paygw' => 'payment/gateway/{$name}/', 38 48 'plagiarism' => 'plagiarism/{$name}/', 39 49 'portfolio' => 'portfolio/{$name}/', … … 46 56 'repository' => 'repository/{$name}/', 47 57 'scormreport' => 'mod/scorm/report/{$name}/', 58 'search' => 'search/engine/{$name}/', 48 59 'theme' => 'theme/{$name}/', 49 60 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class OctoberInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', 8 10 'plugin' => 'plugins/{$vendor}/{$name}/', 9 'theme' => 'themes/{$ name}/'11 'theme' => 'themes/{$vendor}-{$name}/' 10 12 ); 11 13 … … 16 18 * 17 19 * For package type october-theme, cut off a trailing '-theme' if present. 18 *19 20 */ 20 public function inflectPackageVars( $vars)21 public function inflectPackageVars(array $vars): array 21 22 { 22 23 if ($vars['type'] === 'october-plugin') { … … 31 32 } 32 33 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 34 39 { 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']); 36 42 37 43 return $vars; 38 44 } 39 45 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 41 51 { 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']); 43 54 44 55 return $vars; -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class OxidInstaller extends BaseInstaller 7 8 { 8 const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';9 const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/'; 9 10 11 /** @var array<string, string> */ 10 12 protected $locations = array( 11 13 'module' => 'modules/{$name}/', … … 14 16 ); 15 17 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 } 32 27 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 } 49 39 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 } 55 45 56 $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';57 touch($vendorMetaDataPath);58 }46 $vendorMetaDataPath = $vendorPath . '/vendormetadata.php'; 47 touch($vendorMetaDataPath); 48 } 59 49 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PPIInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PhiftyInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'bundle' => 'bundles/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PhpBBInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'extension' => 'ext/{$vendor}/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 9 10 class PiwikInstaller extends BaseInstaller 10 11 { 11 /** 12 * @var array 13 */ 12 /** @var array<string, string> */ 14 13 protected $locations = array( 15 14 'plugin' => 'plugins/{$name}/', … … 18 17 /** 19 18 * Format package name to CamelCase 20 * @param array $vars21 *22 * @return array23 19 */ 24 public function inflectPackageVars( $vars)20 public function inflectPackageVars(array $vars): array 25 21 { 26 $vars['name'] = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));22 $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 23 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 24 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PlentymarketsInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => '{$name}/' … … 10 12 /** 11 13 * Remove hyphen, "plugin" and format to camelcase 12 * @param array $vars13 *14 * @return array15 14 */ 16 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 17 16 { 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); 21 20 if (strcasecmp($name, "Plugin") == 0) { 22 unset($ vars['name'][$key]);21 unset($nameBits[$key]); 23 22 } 24 23 } 25 $vars['name'] = implode( "",$vars['name']);24 $vars['name'] = implode('', $nameBits); 26 25 27 26 return $vars; -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/Plugin.php
r2238319 r2717568 9 9 class Plugin implements PluginInterface 10 10 { 11 /** @var Installer */ 12 private $installer; 11 13 12 public function activate(Composer $composer, IOInterface $io) 14 public function activate(Composer $composer, IOInterface $io): void 13 15 { 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 { 16 27 } 17 28 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class PrestashopInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php
r2238319 r2717568 6 6 { 7 7 8 /** @var array<string, string> */ 8 9 protected $locations = array( 9 10 'module' => 'modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RadPHPInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'bundle' => 'src/{$name}/' … … 11 13 * Format package name to CamelCase 12 14 */ 13 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 14 16 { 15 17 $nameParts = explode('/', $vars['name']); 16 18 foreach ($nameParts as &$value) { 17 $value = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));19 $value = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 18 20 $value = str_replace(array('-', '_'), ' ', $value); 19 21 $value = str_replace(' ', '', ucwords($value)); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ReIndexInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'theme' => 'themes/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RedaxoInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'addon' => 'redaxo/include/addons/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class RoundcubeInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', … … 10 12 /** 11 13 * Lowercase name and changes the name to a underscores 12 *13 * @param array $vars14 * @return array15 14 */ 16 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 17 16 { 18 17 $vars['name'] = strtolower(str_replace('-', '_', $vars['name'])); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class SMFInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'Sources/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 8 9 class ShopwareInstaller extends BaseInstaller 9 10 { 11 /** @var array<string, string> */ 10 12 protected $locations = array( 11 13 'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/', … … 19 21 /** 20 22 * Transforms the names 21 * @param array $vars22 * @return array23 23 */ 24 public function inflectPackageVars( $vars)24 public function inflectPackageVars(array $vars): array 25 25 { 26 26 if ($vars['type'] === 'shopware-theme') { 27 27 return $this->correctThemeName($vars); 28 } else {29 return $this->correctPluginName($vars);30 28 } 29 30 return $this->correctPluginName($vars); 31 31 } 32 32 33 33 /** 34 34 * 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> 37 38 */ 38 private function correctPluginName( $vars)39 private function correctPluginName(array $vars): array 39 40 { 40 41 $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { 41 42 return strtoupper($matches[0][1]); 42 43 }, $vars['name']); 44 45 if (null === $camelCasedName) { 46 throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error()); 47 } 43 48 44 49 $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName); … … 49 54 /** 50 55 * 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> 53 59 */ 54 private function correctThemeName( $vars)60 private function correctThemeName(array $vars): array 55 61 { 56 62 $vars['name'] = str_replace('-', '_', $vars['name']); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 … … 6 7 class SilverStripeInstaller extends BaseInstaller 7 8 { 9 /** @var array<string, string> */ 8 10 protected $locations = array( 9 11 'module' => '{$name}/', … … 16 18 * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework 17 19 * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0 18 *19 * @param PackageInterface $package20 * @param string $frameworkType21 * @return string22 20 */ 23 public function getInstallPath(PackageInterface $package, $frameworkType = '')21 public function getInstallPath(PackageInterface $package, string $frameworkType = ''): string 24 22 { 25 23 if ( … … 29 27 ) { 30 28 return $this->templatePath($this->locations['module'], array('name' => 'sapphire')); 31 } else {32 return parent::getInstallPath($package, $frameworkType);33 29 } 34 30 31 return parent::getInstallPath($package, $frameworkType); 35 32 } 36 33 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class TheliaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'local/modules/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php
r2238319 r2717568 1 1 <?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 3 namespace Composer\Installers; 4 5 /** 6 * Composer installer for 3rd party Tusk utilities 7 * @author Drew Ewing <drew@phenocode.com> 8 */ 9 class 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 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class VanillaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'plugins/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php
r2238319 r2717568 5 5 class WHMCSInstaller extends BaseInstaller 6 6 { 7 /** @var array<string, string> */ 7 8 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}/' 9 21 ); 10 22 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class WolfCMSInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'wolf/plugins/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class WordPressInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'plugin' => 'wp-content/plugins/{$name}/', 8 10 'theme' => 'wp-content/themes/{$name}/', 9 11 'muplugin' => 'wp-content/mu-plugins/{$name}/', 12 'dropin' => 'wp-content/{$name}/', 10 13 ); 11 14 } -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php
r2238319 r2717568 1 1 <?php 2 /**3 * Created by PhpStorm.4 * User: cbleek5 * Date: 25.03.166 * Time: 20:557 */8 2 9 3 namespace Composer\Installers; 10 4 11 12 5 class YawikInstaller extends BaseInstaller 13 6 { 7 /** @var array<string, string> */ 14 8 protected $locations = array( 15 9 'module' => 'module/{$name}/', … … 18 12 /** 19 13 * Format package name to CamelCase 20 * @param array $vars21 *22 * @return array23 14 */ 24 public function inflectPackageVars( $vars)15 public function inflectPackageVars(array $vars): array 25 16 { 26 $vars['name'] = strtolower( preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));17 $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 18 $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 19 $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ZendInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'library' => 'library/{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php
r2238319 r2717568 1 1 <?php 2 2 3 namespace Composer\Installers; 3 4 4 5 class ZikulaInstaller extends BaseInstaller 5 6 { 7 /** @var array<string, string> */ 6 8 protected $locations = array( 7 9 'module' => 'modules/{$vendor}-{$name}/', -
wk-google-analytics/trunk/vendor/composer/installers/src/bootstrap.php
r2238319 r2717568 1 1 <?php 2 function includeIfExists($file) 2 3 use Composer\Autoload\ClassLoader; 4 5 function includeIfExists(string $file): ?ClassLoader 3 6 { 4 7 if (file_exists($file)) { 5 8 return include $file; 6 9 } 10 11 return null; 7 12 } 8 13 if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) { -
wk-google-analytics/trunk/wk-ga.php
r2715258 r2717568 5 5 * Plugin URI: https://wordpress.org/plugins/wk-google-analytics/ 6 6 * 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. 77 * Version: 1.9.8 8 8 * Author: WEBKINDER 9 9 * Author URI: https://www.webkinder.ch
Note: See TracChangeset
for help on using the changeset viewer.