├── vendor ├── composer │ ├── installers │ │ ├── _config.yml │ │ ├── .gitignore │ │ ├── tests │ │ │ ├── bootstrap.php │ │ │ └── Composer │ │ │ │ └── Installers │ │ │ │ └── Test │ │ │ │ ├── PimcoreInstallerTest.php │ │ │ │ ├── YawikInstallerTest.php │ │ │ │ ├── MayaInstallerTest.php │ │ │ │ ├── PiwikInstallerTest.php │ │ │ │ └── TestCase.php │ │ ├── .editorconfig │ │ ├── src │ │ │ ├── Composer │ │ │ │ └── Installers │ │ │ │ │ ├── ElggInstaller.php │ │ │ │ │ ├── PPIInstaller.php │ │ │ │ │ ├── KohanaInstaller.php │ │ │ │ │ ├── AimeosInstaller.php │ │ │ │ │ ├── AttogramInstaller.php │ │ │ │ │ ├── ItopInstaller.php │ │ │ │ │ ├── LaravelInstaller.php │ │ │ │ │ ├── MakoInstaller.php │ │ │ │ │ ├── FuelphpInstaller.php │ │ │ │ │ ├── PortoInstaller.php │ │ │ │ │ ├── WolfCMSInstaller.php │ │ │ │ │ ├── MODULEWorkInstaller.php │ │ │ │ │ ├── PuppetInstaller.php │ │ │ │ │ ├── WHMCSInstaller.php │ │ │ │ │ ├── BonefishInstaller.php │ │ │ │ │ ├── UserFrostingInstaller.php │ │ │ │ │ ├── DecibelInstaller.php │ │ │ │ │ ├── SMFInstaller.php │ │ │ │ │ ├── KodiCMSInstaller.php │ │ │ │ │ ├── PrestashopInstaller.php │ │ │ │ │ ├── ReIndexInstaller.php │ │ │ │ │ ├── VanillaInstaller.php │ │ │ │ │ ├── ClanCatsFrameworkInstaller.php │ │ │ │ │ ├── ChefInstaller.php │ │ │ │ │ ├── LithiumInstaller.php │ │ │ │ │ ├── ZikulaInstaller.php │ │ │ │ │ ├── LavaLiteInstaller.php │ │ │ │ │ ├── EzPlatformInstaller.php │ │ │ │ │ ├── ModxInstaller.php │ │ │ │ │ ├── ZendInstaller.php │ │ │ │ │ ├── PhiftyInstaller.php │ │ │ │ │ ├── KirbyInstaller.php │ │ │ │ │ ├── PhpBBInstaller.php │ │ │ │ │ ├── RedaxoInstaller.php │ │ │ │ │ ├── FuelInstaller.php │ │ │ │ │ ├── MagentoInstaller.php │ │ │ │ │ ├── AnnotateCmsInstaller.php │ │ │ │ │ ├── ImageCMSInstaller.php │ │ │ │ │ ├── EliasisInstaller.php │ │ │ │ │ ├── OsclassInstaller.php │ │ │ │ │ ├── CodeIgniterInstaller.php │ │ │ │ │ ├── KanboardInstaller.php │ │ │ │ │ ├── WordPressInstaller.php │ │ │ │ │ ├── Concrete5Installer.php │ │ │ │ │ ├── DolibarrInstaller.php │ │ │ │ │ ├── Plugin.php │ │ │ │ │ ├── TheliaInstaller.php │ │ │ │ │ ├── TYPO3CmsInstaller.php │ │ │ │ │ ├── TuskInstaller.php │ │ │ │ │ ├── JoomlaInstaller.php │ │ │ │ │ ├── DrupalInstaller.php │ │ │ │ │ ├── AglInstaller.php │ │ │ │ │ ├── MODXEvoInstaller.php │ │ │ │ │ ├── RoundcubeInstaller.php │ │ │ │ │ ├── CroogoInstaller.php │ │ │ │ │ ├── PimcoreInstaller.php │ │ │ │ │ ├── Symfony1Installer.php │ │ │ │ │ ├── MauticInstaller.php │ │ │ │ │ ├── RadPHPInstaller.php │ │ │ │ │ ├── SiteDirectInstaller.php │ │ │ │ │ ├── HuradInstaller.php │ │ │ │ │ ├── YawikInstaller.php │ │ │ │ │ ├── OntoWikiInstaller.php │ │ │ │ │ ├── GravInstaller.php │ │ │ │ │ ├── PiwikInstaller.php │ │ │ │ │ ├── PlentymarketsInstaller.php │ │ │ │ │ ├── CockpitInstaller.php │ │ │ │ │ ├── LanManagementSystemInstaller.php │ │ │ │ │ ├── ExpressionEngineInstaller.php │ │ │ │ │ ├── MayaInstaller.php │ │ │ │ │ ├── CraftInstaller.php │ │ │ │ │ ├── MajimaInstaller.php │ │ │ │ │ ├── SilverStripeInstaller.php │ │ │ │ │ ├── OctoberInstaller.php │ │ │ │ │ ├── TYPO3FlowInstaller.php │ │ │ │ │ ├── SyDESInstaller.php │ │ │ │ │ ├── DokuWikiInstaller.php │ │ │ │ │ ├── MediaWikiInstaller.php │ │ │ │ │ ├── AsgardInstaller.php │ │ │ │ │ ├── VgmcpInstaller.php │ │ │ │ │ ├── OxidInstaller.php │ │ │ │ │ └── ShopwareInstaller.php │ │ │ └── bootstrap.php │ │ ├── .travis.yml │ │ ├── phpunit.xml.dist │ │ ├── LICENSE │ │ └── CONTRIBUTING.md │ ├── autoload_classmap.php │ ├── autoload_namespaces.php │ ├── autoload_files.php │ ├── autoload_psr4.php │ └── LICENSE ├── theiconic │ └── php-ga-measurement-protocol │ │ ├── mkdocs.yml │ │ ├── .gitignore │ │ ├── tests │ │ ├── support │ │ │ ├── classes │ │ │ │ ├── InvalidSingleTestParameter.php │ │ │ │ ├── SingleTestParameter.php │ │ │ │ ├── SingleTestParameterIndexed.php │ │ │ │ ├── InvalidCompoundParameterTestCollection.php │ │ │ │ ├── CompoundParameterTestCollection.php │ │ │ │ └── CompoundTestParameter.php │ │ │ └── scripts │ │ │ │ └── bootstrap.php │ │ └── TheIconic │ │ │ └── Tracking │ │ │ └── GoogleAnalytics │ │ │ └── Parameters │ │ │ ├── CompoundParameterTest.php │ │ │ ├── SingleParameterTest.php │ │ │ └── CompoundParameterCollectionTest.php │ │ ├── src │ │ ├── Exception │ │ │ ├── InvalidIndexException.php │ │ │ ├── InvalidNameException.php │ │ │ ├── InvalidCompoundParameterException.php │ │ │ └── InvalidPayloadDataException.php │ │ ├── Parameters │ │ │ ├── SocialInteractions │ │ │ │ ├── SocialAction.php │ │ │ │ ├── SocialActionTarget.php │ │ │ │ └── SocialNetwork.php │ │ │ ├── Timing │ │ │ │ ├── ContentLoadTime.php │ │ │ │ ├── DnsTime.php │ │ │ │ ├── PageLoadTime.php │ │ │ │ ├── TcpConnectTime.php │ │ │ │ ├── UserTimingLabel.php │ │ │ │ ├── UserTimingTime.php │ │ │ │ ├── PageDownloadTime.php │ │ │ │ ├── DomInteractiveTime.php │ │ │ │ ├── ServerResponseTime.php │ │ │ │ ├── UserTimingCategory.php │ │ │ │ ├── RedirectResponseTime.php │ │ │ │ └── UserTimingVariableName.php │ │ │ ├── User │ │ │ │ ├── UserId.php │ │ │ │ └── ClientId.php │ │ │ ├── Event │ │ │ │ ├── EventLabel.php │ │ │ │ ├── EventValue.php │ │ │ │ ├── EventAction.php │ │ │ │ └── EventCategory.php │ │ │ ├── General │ │ │ │ ├── QueueTime.php │ │ │ │ ├── CacheBuster.php │ │ │ │ ├── DataSource.php │ │ │ │ ├── TrackingId.php │ │ │ │ ├── AnonymizeIp.php │ │ │ │ └── ProtocolVersion.php │ │ │ ├── Ecommerce │ │ │ │ ├── ItemCode.php │ │ │ │ ├── ItemName.php │ │ │ │ ├── ItemPrice.php │ │ │ │ ├── CurrencyCode.php │ │ │ │ ├── ItemCategory.php │ │ │ │ └── ItemQuantity.php │ │ │ ├── Session │ │ │ │ ├── IpOverride.php │ │ │ │ ├── UserAgentOverride.php │ │ │ │ ├── GeographicalOverride.php │ │ │ │ └── SessionControl.php │ │ │ ├── EnhancedEcommerce │ │ │ │ ├── Tax.php │ │ │ │ ├── Revenue.php │ │ │ │ ├── Shipping.php │ │ │ │ ├── Affiliation.php │ │ │ │ ├── CouponCode.php │ │ │ │ ├── CheckoutStep.php │ │ │ │ ├── TransactionId.php │ │ │ │ ├── ProductActionList.php │ │ │ │ ├── CheckoutStepOption.php │ │ │ │ ├── ProductImpressionListName.php │ │ │ │ ├── PromotionCollection.php │ │ │ │ ├── ProductCollection.php │ │ │ │ ├── ProductImpressionCollection.php │ │ │ │ ├── PromotionAction.php │ │ │ │ ├── Promotion.php │ │ │ │ ├── Product.php │ │ │ │ ├── ProductImpression.php │ │ │ │ └── ProductAction.php │ │ │ ├── Hit │ │ │ │ └── NonInteractionHit.php │ │ │ ├── SystemInfo │ │ │ │ ├── JavaEnabled.php │ │ │ │ ├── FlashVersion.php │ │ │ │ ├── ScreenColors.php │ │ │ │ ├── UserLanguage.php │ │ │ │ ├── ViewportSize.php │ │ │ │ ├── DocumentEncoding.php │ │ │ │ └── ScreenResolution.php │ │ │ ├── AppTracking │ │ │ │ ├── ApplicationId.php │ │ │ │ ├── ApplicationName.php │ │ │ │ ├── ApplicationVersion.php │ │ │ │ └── ApplicationInstallerId.php │ │ │ ├── TrafficSources │ │ │ │ ├── CampaignId.php │ │ │ │ ├── CampaignName.php │ │ │ │ ├── CampaignMedium.php │ │ │ │ ├── CampaignSource.php │ │ │ │ ├── CampaignContent.php │ │ │ │ ├── CampaignKeyword.php │ │ │ │ ├── DocumentReferrer.php │ │ │ │ ├── GoogleAdwordsId.php │ │ │ │ └── GoogleDisplayAdsId.php │ │ │ ├── ContentInformation │ │ │ │ ├── LinkId.php │ │ │ │ ├── ScreenName.php │ │ │ │ ├── DocumentPath.php │ │ │ │ ├── DocumentTitle.php │ │ │ │ ├── DocumentHostName.php │ │ │ │ └── DocumentLocationUrl.php │ │ │ ├── Exceptions │ │ │ │ ├── IsExceptionFatal.php │ │ │ │ └── ExceptionDescription.php │ │ │ ├── ContentExperiments │ │ │ │ ├── ExperimentId.php │ │ │ │ └── ExperimentVariant.php │ │ │ ├── CustomDimensionsMetrics │ │ │ │ ├── CustomMetric.php │ │ │ │ └── CustomDimension.php │ │ │ ├── CompoundParameterCollectionInterface.php │ │ │ ├── CompoundParameterInterface.php │ │ │ ├── ContentGrouping │ │ │ │ └── ContentGroup.php │ │ │ ├── SingleParameterInterface.php │ │ │ └── SingleParameter.php │ │ ├── AnalyticsResponseInterface.php │ │ └── NullAnalyticsResponse.php │ │ ├── .travis.yml │ │ ├── phpunit.xml.dist │ │ ├── composer.json │ │ └── LICENSE ├── guzzlehttp │ ├── guzzle │ │ ├── src │ │ │ ├── Exception │ │ │ │ ├── GuzzleException.php │ │ │ │ ├── TooManyRedirectsException.php │ │ │ │ ├── TransferException.php │ │ │ │ ├── ClientException.php │ │ │ │ ├── ServerException.php │ │ │ │ ├── SeekException.php │ │ │ │ ├── ConnectException.php │ │ │ │ └── BadResponseException.php │ │ │ ├── functions_include.php │ │ │ └── Handler │ │ │ │ ├── CurlFactoryInterface.php │ │ │ │ ├── CurlHandler.php │ │ │ │ └── Proxy.php │ │ ├── LICENSE │ │ └── composer.json │ ├── psr7 │ │ ├── src │ │ │ ├── functions_include.php │ │ │ ├── NoSeekStream.php │ │ │ ├── LazyOpenStream.php │ │ │ ├── DroppingStream.php │ │ │ └── InflateStream.php │ │ ├── LICENSE │ │ └── composer.json │ └── promises │ │ ├── src │ │ ├── functions_include.php │ │ ├── CancellationException.php │ │ ├── PromisorInterface.php │ │ ├── AggregateException.php │ │ ├── TaskQueueInterface.php │ │ └── RejectionException.php │ │ ├── Makefile │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── autoload.php ├── jaybizzle │ └── crawler-detect │ │ ├── raw │ │ ├── Headers.json │ │ ├── Headers.txt │ │ ├── Exclusions.json │ │ └── Exclusions.txt │ │ ├── src │ │ └── Fixtures │ │ │ ├── AbstractProvider.php │ │ │ ├── Headers.php │ │ │ └── Exclusions.php │ │ ├── composer.json │ │ ├── LICENSE │ │ └── export.php └── psr │ └── http-message │ ├── README.md │ ├── composer.json │ ├── LICENSE │ └── CHANGELOG.md ├── resources ├── screenshots │ ├── ia_screenshot01.png │ ├── ia_screenshot02.png │ ├── ia_screenshot03.png │ ├── ia_screenshot04.png │ └── ia_screenshot05.png ├── js │ └── InstantAnalytics_Script.js └── css │ └── InstantAnalytics_Style.css ├── composer.json ├── .gitignore ├── LICENSE.txt └── controllers └── InstantAnalyticsController.php /vendor/composer/installers/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /vendor/composer/installers/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | .idea/ 4 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: THE ICONIC Google Analytics Measurement Protocol library 2 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php: -------------------------------------------------------------------------------- 1 | add('Composer\Installers\Test', __DIR__); 5 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php: -------------------------------------------------------------------------------- 1 | 'mod/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PPIInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/raw/Headers.json: -------------------------------------------------------------------------------- 1 | ["HTTP_USER_AGENT","HTTP_X_OPERAMINI_PHONE_UA","HTTP_X_DEVICE_USER_AGENT","HTTP_X_ORIGINAL_USER_AGENT","HTTP_X_SKYFIRE_PHONE","HTTP_X_BOLT_PHONE_UA","HTTP_DEVICE_STOCK_UA","HTTP_X_UCBROWSER_DEVICE_UA","HTTP_FROM","HTTP_X_SCANNER"] -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php: -------------------------------------------------------------------------------- 1 | 'ext/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ItopInstaller.php: -------------------------------------------------------------------------------- 1 | 'extensions/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php: -------------------------------------------------------------------------------- 1 | 'libraries/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MakoInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/packages/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/CancellationException.php: -------------------------------------------------------------------------------- 1 | 'components/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PortoInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/Containers/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php: -------------------------------------------------------------------------------- 1 | 'wolf/plugins/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/Makefile: -------------------------------------------------------------------------------- 1 | all: clean test 2 | 3 | test: 4 | vendor/bin/phpunit 5 | 6 | coverage: 7 | vendor/bin/phpunit --coverage-html=artifacts/coverage 8 | 9 | view-coverage: 10 | open artifacts/coverage/index.html 11 | 12 | clean: 13 | rm -rf artifacts/* 14 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/gateways/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php: -------------------------------------------------------------------------------- 1 | 'Packages/{$vendor}/{$name}/' 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/sprinkles/{$name}/', 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/raw/Headers.txt: -------------------------------------------------------------------------------- 1 | HTTP_USER_AGENT 2 | HTTP_X_OPERAMINI_PHONE_UA 3 | HTTP_X_DEVICE_USER_AGENT 4 | HTTP_X_ORIGINAL_USER_AGENT 5 | HTTP_X_SKYFIRE_PHONE 6 | HTTP_X_BOLT_PHONE_UA 7 | HTTP_DEVICE_STOCK_UA 8 | HTTP_X_UCBROWSER_DEVICE_UA 9 | HTTP_FROM 10 | HTTP_X_SCANNER -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/SMFInstaller.php: -------------------------------------------------------------------------------- 1 | 'Sources/{$name}/', 8 | 'theme' => 'Themes/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/support/classes/InvalidSingleTestParameter.php: -------------------------------------------------------------------------------- 1 | 'cms/plugins/{$name}/', 8 | 'media' => 'cms/media/vendor/{$name}/' 9 | ); 10 | } -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | 'theme' => 'themes/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php: -------------------------------------------------------------------------------- 1 | 'themes/{$name}/', 8 | 'plugin' => 'plugins/{$name}/' 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 8 | 'theme' => 'themes/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /resources/css/InstantAnalytics_Style.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Commerce Analytics plugin for Craft CMS 3 | * 4 | * Commerce Analytics CSS 5 | * 6 | * @author nystudio107 7 | * @copyright Copyright (c) 2016 nystudio107 8 | * @link http://nystudio107.com 9 | * @package CommerceAnalytics 10 | * @since 1.0.0 11 | */ 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php: -------------------------------------------------------------------------------- 1 | 'CCF/orbit/{$name}/', 8 | 'theme' => 'CCF/app/themes/{$name}/', 9 | ); 10 | } -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ChefInstaller.php: -------------------------------------------------------------------------------- 1 | 'Chef/{$vendor}/{$name}/', 8 | 'role' => 'Chef/roles/{$name}/', 9 | ); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php: -------------------------------------------------------------------------------- 1 | 'libraries/{$name}/', 8 | 'source' => 'libraries/_source/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$vendor}-{$name}/', 8 | 'theme' => 'themes/{$vendor}-{$name}/' 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php: -------------------------------------------------------------------------------- 1 | 'packages/{$vendor}/{$name}/', 8 | 'theme' => 'public/themes/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/support/classes/SingleTestParameter.php: -------------------------------------------------------------------------------- 1 | 'web/assets/ezplatform/', 8 | 'assets' => 'web/assets/ezplatform/{$name}/', 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ModxInstaller.php: -------------------------------------------------------------------------------- 1 | 'core/packages/{$name}/' 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/PromisorInterface.php: -------------------------------------------------------------------------------- 1 | 'library/{$name}/', 8 | 'extra' => 'extras/library/{$name}/', 9 | 'module' => 'module/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php: -------------------------------------------------------------------------------- 1 | 'bundles/{$name}/', 8 | 'library' => 'libraries/{$name}/', 9 | 'framework' => 'frameworks/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/support/classes/InvalidCompoundParameterTestCollection.php: -------------------------------------------------------------------------------- 1 | 'site/plugins/{$name}/', 8 | 'field' => 'site/fields/{$name}/', 9 | 'tag' => 'site/tags/{$name}/' 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php: -------------------------------------------------------------------------------- 1 | 'ext/{$vendor}/{$name}/', 8 | 'language' => 'language/{$name}/', 9 | 'style' => 'styles/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php: -------------------------------------------------------------------------------- 1 | 'redaxo/include/addons/{$name}/', 8 | 'bestyle-plugin' => 'redaxo/include/addons/be_style/plugins/{$name}/' 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/FuelInstaller.php: -------------------------------------------------------------------------------- 1 | 'fuel/app/modules/{$name}/', 8 | 'package' => 'fuel/packages/{$name}/', 9 | 'theme' => 'fuel/app/themes/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/design/frontend/{$name}/', 8 | 'skin' => 'skin/frontend/default/{$name}/', 9 | 'library' => 'lib/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/support/classes/CompoundParameterTestCollection.php: -------------------------------------------------------------------------------- 1 | 'addons/modules/{$name}/', 8 | 'component' => 'addons/components/{$name}/', 9 | 'service' => 'addons/services/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Exception/InvalidIndexException.php: -------------------------------------------------------------------------------- 1 | 'templates/{$name}/', 8 | 'module' => 'application/modules/{$name}/', 9 | 'library' => 'application/libraries/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | language: php 3 | sudo: false 4 | php: 5 | - "5.5" 6 | - "5.6" 7 | - "7" 8 | - hhvm 9 | install: 10 | - composer install 11 | - composer dump-autoload -o 12 | script: 13 | - mkdir -p build/logs 14 | - vendor/bin/phpunit --coverage-clover build/logs/clover.xml 15 | after_script: 16 | - php vendor/bin/coveralls -v 17 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php: -------------------------------------------------------------------------------- 1 | 'components/{$name}/', 8 | 'module' => 'modules/{$name}/', 9 | 'plugin' => 'plugins/{$name}/', 10 | 'template' => 'templates/{$name}/', 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php: -------------------------------------------------------------------------------- 1 | 'oc-content/plugins/{$name}/', 10 | 'theme' => 'oc-content/themes/{$name}/', 11 | 'language' => 'oc-content/languages/{$name}/', 12 | ); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php: -------------------------------------------------------------------------------- 1 | 'application/libraries/{$name}/', 8 | 'third-party' => 'application/third_party/{$name}/', 9 | 'module' => 'application/modules/{$name}/', 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Exception/InvalidNameException.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php: -------------------------------------------------------------------------------- 1 | 'wp-content/plugins/{$name}/', 8 | 'theme' => 'wp-content/themes/{$name}/', 9 | 'muplugin' => 'wp-content/mu-plugins/{$name}/', 10 | 'dropin' => 'wp-content/{$name}/', 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nystudio107/instantanalytics", 3 | "minimum-stability": "dev", 4 | "description": "Instant Analytics lets you track otherwise untrackable assets & events with Google Analytics, and eliminates the need for Javascript tracking", 5 | "type": "craft-plugin", 6 | "require": { 7 | "theiconic/php-ga-measurement-protocol": "^2.4.0", 8 | "jaybizzle/crawler-detect" :"^1.2.26", 9 | "composer/installers": "~1.0" 10 | } 11 | } -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php: -------------------------------------------------------------------------------- 1 | 'concrete/', 8 | 'block' => 'application/blocks/{$name}/', 9 | 'package' => 'packages/{$name}/', 10 | 'theme' => 'application/themes/{$name}/', 11 | 'update' => 'updates/{$name}/', 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class DolibarrInstaller extends BaseInstaller 11 | { 12 | //TODO: Add support for scripts and themes 13 | protected $locations = array( 14 | 'module' => 'htdocs/custom/{$name}/', 15 | ); 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/AggregateException.php: -------------------------------------------------------------------------------- 1 | getInstallationManager()->addInstaller($installer); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php: -------------------------------------------------------------------------------- 1 | 'local/modules/{$name}/', 8 | 'frontoffice-template' => 'templates/frontOffice/{$name}/', 9 | 'backoffice-template' => 'templates/backOffice/{$name}/', 10 | 'email-template' => 'templates/email/{$name}/', 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /vendor/composer/installers/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | sudo: false 4 | 5 | dist: trusty 6 | 7 | git: 8 | depth: 5 9 | 10 | php: 11 | - 5.4 12 | - 5.5 13 | - 5.6 14 | - 7.0 15 | - 7.1 16 | - 7.2 17 | - hhvm 18 | - nightly 19 | 20 | matrix: 21 | include: 22 | - dist: precise 23 | php: 5.3 24 | fast_finish: true 25 | allow_failures: 26 | - php: nightly 27 | 28 | before_script: 29 | - composer self-update 30 | - composer install 31 | 32 | script: 33 | - composer test 34 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class TYPO3CmsInstaller extends BaseInstaller 12 | { 13 | protected $locations = array( 14 | 'extension' => 'typo3conf/ext/{$name}/', 15 | ); 16 | } 17 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', 10 | 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', 11 | '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', 12 | ); 13 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/TuskInstaller.php: -------------------------------------------------------------------------------- 1 | 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 | } 15 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/support/classes/CompoundTestParameter.php: -------------------------------------------------------------------------------- 1 | 'id', 11 | '/^name$/' => 'nm', 12 | '/^dimension_(\d{1,3})$/' => 'd', 13 | ]; 14 | 15 | protected $requiredParameters = ['sku', 'name']; 16 | } 17 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php: -------------------------------------------------------------------------------- 1 | 'components/{$name}/', 8 | 'module' => 'modules/{$name}/', 9 | 'template' => 'templates/{$name}/', 10 | 'plugin' => 'plugins/{$name}/', 11 | 'library' => 'libraries/{$name}/', 12 | ); 13 | 14 | // TODO: Add inflector for mod_ and com_ names 15 | } 16 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | ./tests/TheIconic/Tracking/GoogleAnalytics/ 9 | 10 | 11 | 12 | 13 | ./vendor 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/SocialInteractions/SocialAction.php: -------------------------------------------------------------------------------- 1 | '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}', 15 | ); 16 | } 17 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/AglInstaller.php: -------------------------------------------------------------------------------- 1 | 'More/{$name}/', 8 | ); 9 | 10 | /** 11 | * Format package name to CamelCase 12 | */ 13 | public function inflectPackageVars($vars) 14 | { 15 | $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { 16 | return strtoupper($matches[1]); 17 | }, $vars['name']); 18 | 19 | return $vars; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php: -------------------------------------------------------------------------------- 1 | 'assets/snippets/{$name}/', 11 | 'plugin' => 'assets/plugins/{$name}/', 12 | 'module' => 'assets/modules/{$name}/', 13 | 'template' => 'assets/templates/{$name}/', 14 | 'lib' => 'assets/lib/{$name}/' 15 | ); 16 | } 17 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 8 | ); 9 | 10 | /** 11 | * Lowercase name and changes the name to a underscores 12 | * 13 | * @param array $vars 14 | * @return array 15 | */ 16 | public function inflectPackageVars($vars) 17 | { 18 | $vars['name'] = strtolower(str_replace('-', '_', $vars['name'])); 19 | 20 | return $vars; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/Timing/ContentLoadTime.php: -------------------------------------------------------------------------------- 1 | 'Plugin/{$name}/', 8 | 'theme' => 'View/Themed/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name to CamelCase 13 | */ 14 | public function inflectPackageVars($vars) 15 | { 16 | $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name'])); 17 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 18 | 19 | return $vars; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/SystemInfo/FlashVersion.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 8 | ); 9 | 10 | /** 11 | * Format package name to CamelCase 12 | */ 13 | public function inflectPackageVars($vars) 14 | { 15 | $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 16 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 17 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 18 | 19 | return $vars; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/ContentExperiments/ExperimentVariant.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | class Symfony1Installer extends BaseInstaller 10 | { 11 | protected $locations = array( 12 | 'plugin' => 'plugins/{$name}/', 13 | ); 14 | 15 | /** 16 | * Format package name to CamelCase 17 | */ 18 | public function inflectPackageVars($vars) 19 | { 20 | $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) { 21 | return strtoupper($matches[0][1]); 22 | }, $vars['name']); 23 | 24 | return $vars; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/src/Fixtures/AbstractProvider.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | namespace Jaybizzle\CrawlerDetect\Fixtures; 13 | 14 | abstract class AbstractProvider 15 | { 16 | /** 17 | * The data set. 18 | * 19 | * @var array 20 | */ 21 | protected $data; 22 | /** 23 | * Return the data set. 24 | * 25 | * @return array 26 | */ 27 | public function getAll() 28 | { 29 | return $this->data; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/SeekException.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MauticInstaller.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 8 | 'theme' => 'themes/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name of mautic-plugins to CamelCase 13 | */ 14 | public function inflectPackageVars($vars) 15 | { 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'])); 20 | } 21 | 22 | return $vars; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /vendor/psr/http-message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-message", 3 | "description": "Common interface for HTTP messages", 4 | "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], 5 | "homepage": "https://github.com/php-fig/http-message", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Http\\Message\\": "src/" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "1.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/raw/Exclusions.txt: -------------------------------------------------------------------------------- 1 | Safari.[\d\.]* 2 | Firefox.[\d\.]* 3 | Chrome.[\d\.]* 4 | Chromium.[\d\.]* 5 | MSIE.[\d\.] 6 | Opera\/[\d\.]* 7 | Mozilla.[\d\.]* 8 | AppleWebKit.[\d\.]* 9 | Trident.[\d\.]* 10 | Windows NT.[\d\.]* 11 | Android [\d\.]* 12 | Macintosh. 13 | Ubuntu 14 | Linux 15 | [ ]Intel 16 | Mac OS X [\d_]* 17 | (like )?Gecko(.[\d\.]*)? 18 | KHTML, 19 | CriOS.[\d\.]* 20 | CPU iPhone OS ([0-9_])* like Mac OS X 21 | CPU OS ([0-9_])* like Mac OS X 22 | iPod 23 | compatible 24 | x86_.. 25 | i686 26 | x64 27 | X11 28 | rv:[\d\.]* 29 | Version.[\d\.]* 30 | WOW64 31 | Win64 32 | Dalvik.[\d\.]* 33 | \.NET CLR [\d\.]* 34 | Presto.[\d\.]* 35 | Media Center PC 36 | BlackBerry 37 | Build 38 | Opera Mini\/\d{1,2}\.\d{1,2}\.[\d\.]*\/\d{1,2}\. 39 | Opera 40 | \.NET[\d\.]* 41 | ; -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php: -------------------------------------------------------------------------------- 1 | 'src/{$name}/' 8 | ); 9 | 10 | /** 11 | * Format package name to CamelCase 12 | */ 13 | public function inflectPackageVars($vars) 14 | { 15 | $nameParts = explode('/', $vars['name']); 16 | foreach ($nameParts as &$value) { 17 | $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 18 | $value = str_replace(array('-', '_'), ' ', $value); 19 | $value = str_replace(' ', '', ucwords($value)); 20 | } 21 | $vars['name'] = implode('/', $nameParts); 22 | return $vars; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/theiconic/php-ga-measurement-protocol/src'), 10 | 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 11 | 'Jaybizzle\\CrawlerDetect\\' => array($vendorDir . '/jaybizzle/crawler-detect/src'), 12 | 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 13 | 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 14 | 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 15 | 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'), 16 | ); 17 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$vendor}/{$name}/', 9 | 'plugin' => 'plugins/{$vendor}/{$name}/' 10 | ); 11 | 12 | public function inflectPackageVars($vars) 13 | { 14 | return $this->parseVars($vars); 15 | } 16 | 17 | protected function parseVars($vars) 18 | { 19 | $vars['vendor'] = strtolower($vars['vendor']) == 'sitedirect' ? 'SiteDirect' : $vars['vendor']; 20 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 21 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 22 | 23 | return $vars; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/ProductCollection.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | tests/Composer/Installers 17 | 18 | 19 | 20 | 21 | 22 | src/Composer/Installers 23 | 24 | 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Craft .gitignore 2 | # 3 | # Example .gitignore file for Craft CMS projects 4 | # 5 | # @author nystudio107 6 | # @copyright Copyright (c) 2017 nystudio107 7 | # @link https://nystudio107.com/ 8 | # @package craft-scripts 9 | # @since 1.1.0 10 | # @license MIT 11 | 12 | # This file should be renamed to '.gitignore' and placed in your 13 | # Craft CMS project root directory 14 | 15 | # BUILD FILES 16 | /bower_components/* 17 | /node_modules/* 18 | /build/* 19 | /yarn-error.log 20 | 21 | # MISC FILES 22 | .cache 23 | .DS_Store 24 | .idea 25 | .project 26 | .settings 27 | *.esproj 28 | *.sublime-workspace 29 | *.sublime-project 30 | *.tmproj 31 | *.tmproject 32 | .vscode/* 33 | !.vscode/settings.json 34 | !.vscode/tasks.json 35 | !.vscode/launch.json 36 | !.vscode/extensions.json 37 | config.codekit3 38 | prepros-6.config -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "theiconic/php-ga-measurement-protocol", 3 | "description": "Send data to Google Analytics from the server using PHP. This library fully implements GA measurement protocol.", 4 | "type": "library", 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "THE ICONIC ENGINEERING TEAM", 9 | "email": "engineering@theiconic.com.au" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.5", 14 | "guzzlehttp/guzzle": "^6.0" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "4.7.*", 18 | "satooshi/php-coveralls": "1.0.1" 19 | }, 20 | "autoload": { 21 | "psr-4": { 22 | "TheIconic\\Tracking\\GoogleAnalytics\\": "src/" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/ContentGrouping/ContentGroup.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 8 | 'theme' => 'plugins/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name to CamelCase 13 | */ 14 | public function inflectPackageVars($vars) 15 | { 16 | $nameParts = explode('/', $vars['name']); 17 | foreach ($nameParts as &$value) { 18 | $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 19 | $value = str_replace(array('-', '_'), ' ', $value); 20 | $value = str_replace(' ', '', ucwords($value)); 21 | } 22 | $vars['name'] = implode('/', $nameParts); 23 | return $vars; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/YawikInstaller.php: -------------------------------------------------------------------------------- 1 | 'module/{$name}/', 16 | ); 17 | 18 | /** 19 | * Format package name to CamelCase 20 | * @param array $vars 21 | * 22 | * @return array 23 | */ 24 | public function inflectPackageVars($vars) 25 | { 26 | $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 29 | 30 | return $vars; 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php: -------------------------------------------------------------------------------- 1 | pi" prefix. 11 | * 12 | * @link https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#enhanced-ecomm 13 | * 14 | * @package TheIconic\Tracking\GoogleAnalytics\Parameters\EnhancedEcommerce 15 | */ 16 | class ProductImpressionCollection extends CompoundParameterCollection 17 | { 18 | /** 19 | * @inheritDoc 20 | * 21 | * @var string 22 | */ 23 | protected $name = 'il:i:pi'; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php: -------------------------------------------------------------------------------- 1 | 'extensions/{$name}/', 8 | 'theme' => 'extensions/themes/{$name}/', 9 | 'translation' => 'extensions/translations/{$name}/', 10 | ); 11 | 12 | /** 13 | * Format package name to lower case and remove ".ontowiki" suffix 14 | */ 15 | public function inflectPackageVars($vars) 16 | { 17 | $vars['name'] = strtolower($vars['name']); 18 | $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']); 19 | $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); 20 | $vars['name'] = preg_replace('/-translation$/', '', $vars['name']); 21 | 22 | return $vars; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/GravInstaller.php: -------------------------------------------------------------------------------- 1 | 'user/plugins/{$name}/', 8 | 'theme' => 'user/themes/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name 13 | * 14 | * @param array $vars 15 | * 16 | * @return array 17 | */ 18 | public function inflectPackageVars($vars) 19 | { 20 | $restrictedWords = implode('|', array_keys($this->locations)); 21 | 22 | $vars['name'] = strtolower($vars['name']); 23 | $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', 24 | '$1', 25 | $vars['name'] 26 | ); 27 | 28 | return $vars; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/Session/SessionControl.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 16 | ); 17 | 18 | /** 19 | * Format package name to CamelCase 20 | * @param array $vars 21 | * 22 | * @return array 23 | */ 24 | public function inflectPackageVars($vars) 25 | { 26 | $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 27 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 28 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 29 | 30 | return $vars; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/PromotionAction.php: -------------------------------------------------------------------------------- 1 | '{$name}/' 8 | ); 9 | 10 | /** 11 | * Remove hyphen, "plugin" and format to camelcase 12 | * @param array $vars 13 | * 14 | * @return array 15 | */ 16 | public function inflectPackageVars($vars) 17 | { 18 | $vars['name'] = explode("-", $vars['name']); 19 | foreach ($vars['name'] as $key => $name) { 20 | $vars['name'][$key] = ucfirst($vars['name'][$key]); 21 | if (strcasecmp($name, "Plugin") == 0) { 22 | unset($vars['name'][$key]); 23 | } 24 | } 25 | $vars['name'] = implode("",$vars['name']); 26 | 27 | return $vars; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php: -------------------------------------------------------------------------------- 1 | 'cockpit/modules/addons/{$name}/', 8 | ); 9 | 10 | /** 11 | * Format module name. 12 | * 13 | * Strip `module-` prefix from package name. 14 | * 15 | * @param array @vars 16 | * 17 | * @return array 18 | */ 19 | public function inflectPackageVars($vars) 20 | { 21 | if ($vars['type'] == 'cockpit-module') { 22 | return $this->inflectModuleVars($vars); 23 | } 24 | 25 | return $vars; 26 | } 27 | 28 | public function inflectModuleVars($vars) 29 | { 30 | $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name'])); 31 | 32 | return $vars; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 10 | 'template' => 'templates/{$name}/', 11 | 'document-template' => 'documents/templates/{$name}/', 12 | 'userpanel-module' => 'userpanel/modules/{$name}/', 13 | ); 14 | 15 | /** 16 | * Format package name to CamelCase 17 | */ 18 | public function inflectPackageVars($vars) 19 | { 20 | $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 21 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 22 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 23 | 24 | return $vars; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php: -------------------------------------------------------------------------------- 1 | 'system/expressionengine/third_party/{$name}/', 13 | 'theme' => 'themes/third_party/{$name}/', 14 | ); 15 | 16 | private $ee3Locations = array( 17 | 'addon' => 'system/user/addons/{$name}/', 18 | 'theme' => 'themes/user/{$name}/', 19 | ); 20 | 21 | public function getInstallPath(PackageInterface $package, $frameworkType = '') 22 | { 23 | 24 | $version = "{$frameworkType}Locations"; 25 | $this->locations = $this->$version; 26 | 27 | return parent::getInstallPath($package, $frameworkType); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php: -------------------------------------------------------------------------------- 1 | =5.3.0" 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": "4.8.*", 20 | "satooshi/php-coveralls": "1.*" 21 | }, 22 | "autoload": { 23 | "psr-4": { 24 | "Jaybizzle\\CrawlerDetect\\": "src/" 25 | } 26 | }, 27 | "scripts": { 28 | "test": "vendor/bin/phpunit" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MayaInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | ); 9 | 10 | /** 11 | * Format package name. 12 | * 13 | * For package type maya-module, cut off a trailing '-module' if present. 14 | * 15 | */ 16 | public function inflectPackageVars($vars) 17 | { 18 | if ($vars['type'] === 'maya-module') { 19 | return $this->inflectModuleVars($vars); 20 | } 21 | 22 | return $vars; 23 | } 24 | 25 | protected function inflectModuleVars($vars) 26 | { 27 | $vars['name'] = preg_replace('/-module$/', '', $vars['name']); 28 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 29 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 30 | 31 | return $vars; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/NullAnalyticsResponse.php: -------------------------------------------------------------------------------- 1 | 'craft/plugins/{$name}/', 14 | ); 15 | 16 | /** 17 | * Strip `craft-` prefix and/or `-plugin` suffix from package names 18 | * 19 | * @param array $vars 20 | * 21 | * @return array 22 | */ 23 | final public function inflectPackageVars($vars) 24 | { 25 | return $this->inflectPluginVars($vars); 26 | } 27 | 28 | private function inflectPluginVars($vars) 29 | { 30 | $vars['name'] = preg_replace('/-' . self::NAME_SUFFIX . '$/i', '', $vars['name']); 31 | $vars['name'] = preg_replace('/^' . self::NAME_PREFIX . '-/i', '', $vars['name']); 32 | 33 | return $vars; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php: -------------------------------------------------------------------------------- 1 | 'plugins/{$name}/', 12 | ); 13 | 14 | /** 15 | * Transforms the names 16 | * @param array $vars 17 | * @return array 18 | */ 19 | public function inflectPackageVars($vars) 20 | { 21 | return $this->correctPluginName($vars); 22 | } 23 | 24 | /** 25 | * Change hyphenated names to camelcase 26 | * @param array $vars 27 | * @return array 28 | */ 29 | private function correctPluginName($vars) 30 | { 31 | $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { 32 | return strtoupper($matches[0][1]); 33 | }, $vars['name']); 34 | $vars['name'] = ucfirst($camelCasedName); 35 | return $vars; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/LazyOpenStream.php: -------------------------------------------------------------------------------- 1 | filename = $filename; 27 | $this->mode = $mode; 28 | } 29 | 30 | /** 31 | * Creates the underlying stream lazily when required. 32 | * 33 | * @return StreamInterface 34 | */ 35 | protected function createStream() 36 | { 37 | return stream_for(try_fopen($this->filename, $this->mode)); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/promises", 3 | "description": "Guzzle promises library", 4 | "keywords": ["promise"], 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "Michael Dowling", 9 | "email": "mtdowling@gmail.com", 10 | "homepage": "https://github.com/mtdowling" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.5.0" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "^4.8.36" 18 | }, 19 | "autoload": { 20 | "psr-4": { 21 | "GuzzleHttp\\Promise\\": "src/" 22 | }, 23 | "files": ["src/functions_include.php"] 24 | }, 25 | "autoload-dev": { 26 | "psr-4": { 27 | "GuzzleHttp\\Promise\\Tests\\": "tests/" 28 | } 29 | }, 30 | "scripts": { 31 | "test": "vendor/bin/phpunit", 32 | "test-ci": "vendor/bin/phpunit --coverage-text" 33 | }, 34 | "extra": { 35 | "branch-alias": { 36 | "dev-master": "1.4-dev" 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/composer/installers/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Kyle Robinson Young 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/Promotion.php: -------------------------------------------------------------------------------- 1 | 'id', 25 | '/^name$/' => 'nm', 26 | '/^creative$/' => 'cr', 27 | '/^position$/' => 'ps', 28 | ]; 29 | 30 | /** 31 | * @inheritDoc 32 | * 33 | * @var array 34 | */ 35 | protected $requiredParameters = ['id', 'name']; 36 | } 37 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/psr/http-message/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The Instant Analytics License 2 | Copyright (c) 2016 nystudio107 3 | 4 | Permission is hereby granted, free of charge, to any person or entity obtaining a copy of this software and associated documentation files (the "Software"), to use the software in any capacity, including commercial and for-profit use. Permission is also granted to alter, modify, or extend the Software for your own use, or commission a third-party to perform modifications for you. 5 | 6 | Permission is NOT granted to create derivative works, sublicense, and/or sell copies of the Software. This is not FOSS software. 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-2017 Mark Beech 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/export.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | require 'src/Fixtures/AbstractProvider.php'; 13 | require 'src/Fixtures/Crawlers.php'; 14 | require 'src/Fixtures/Exclusions.php'; 15 | require 'src/Fixtures/Headers.php'; 16 | 17 | $src = array( 18 | 'Crawlers', 19 | 'Exclusions', 20 | 'Headers', 21 | ); 22 | 23 | foreach ($src as $class) { 24 | $class = "Jaybizzle\\CrawlerDetect\\Fixtures\\$class"; 25 | $object = new $class; 26 | 27 | outputJson($object); 28 | outputTxt($object); 29 | } 30 | 31 | function outputJson($object) 32 | { 33 | $className = (new ReflectionClass($object))->getShortName(); 34 | file_put_contents("raw/$className.json", json_encode($object->getAll())); 35 | } 36 | 37 | function outputTxt($object) 38 | { 39 | $className = (new ReflectionClass($object))->getShortName(); 40 | file_put_contents("raw/$className.txt", implode($object->getAll(), PHP_EOL)); 41 | } 42 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/psr7", 3 | "type": "library", 4 | "description": "PSR-7 message implementation that also provides common utility methods", 5 | "keywords": ["request", "response", "message", "stream", "http", "uri", "url"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | }, 13 | { 14 | "name": "Tobias Schultze", 15 | "homepage": "https://github.com/Tobion" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.4.0", 20 | "psr/http-message": "~1.0" 21 | }, 22 | "require-dev": { 23 | "phpunit/phpunit": "~4.0" 24 | }, 25 | "provide": { 26 | "psr/http-message-implementation": "1.0" 27 | }, 28 | "autoload": { 29 | "psr-4": { 30 | "GuzzleHttp\\Psr7\\": "src/" 31 | }, 32 | "files": ["src/functions_include.php"] 33 | }, 34 | "extra": { 35 | "branch-alias": { 36 | "dev-master": "1.4-dev" 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 THE ICONIC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2016 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/composer/installers/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | If you would like to help, please take a look at the list of 4 | [issues](https://github.com/composer/installers/issues). 5 | 6 | ## Pull requests 7 | 8 | * [Fork and clone](https://help.github.com/articles/fork-a-repo). 9 | * Run the command `php composer.phar install` to install the dependencies. 10 | This will also install the dev dependencies. See [Composer](https://getcomposer.org/doc/03-cli.md#install). 11 | * Use the command `phpunit` to run the tests. See [PHPUnit](http://phpunit.de). 12 | * Create a branch, commit, push and send us a 13 | [pull request](https://help.github.com/articles/using-pull-requests). 14 | 15 | To ensure a consistent code base, you should make sure the code follows the 16 | coding standards [PSR-1](http://www.php-fig.org/psr/psr-1/) and 17 | [PSR-2](http://www.php-fig.org/psr/psr-2/). 18 | 19 | ### Create a new Installer 20 | 21 | * Create class extends `Composer\Installers\BaseInstaller` with your Installer. 22 | * Create unit tests as a separate class or as part of a `Composer\Installers\Test\InstallerTest`. 23 | * Add information about your Installer in `README.md` in section "Current Supported Package Types". 24 | * Run the tests. 25 | -------------------------------------------------------------------------------- /vendor/psr/http-message/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. 4 | 5 | ## 1.0.1 - 2016-08-06 6 | 7 | ### Added 8 | 9 | - Nothing. 10 | 11 | ### Deprecated 12 | 13 | - Nothing. 14 | 15 | ### Removed 16 | 17 | - Nothing. 18 | 19 | ### Fixed 20 | 21 | - Updated all `@return self` annotation references in interfaces to use 22 | `@return static`, which more closelly follows the semantics of the 23 | specification. 24 | - Updated the `MessageInterface::getHeaders()` return annotation to use the 25 | value `string[][]`, indicating the format is a nested array of strings. 26 | - Updated the `@link` annotation for `RequestInterface::withRequestTarget()` 27 | to point to the correct section of RFC 7230. 28 | - Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation 29 | to add the parameter name (`$uploadedFiles`). 30 | - Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()` 31 | method to correctly reference the method parameter (it was referencing an 32 | incorrect parameter name previously). 33 | 34 | ## 1.0.0 - 2016-05-18 35 | 36 | Initial stable release; reflects accepted PSR-7 specification. 37 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/DroppingStream.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 23 | $this->maxLength = $maxLength; 24 | } 25 | 26 | public function write($string) 27 | { 28 | $diff = $this->maxLength - $this->stream->getSize(); 29 | 30 | // Begin returning 0 when the underlying stream is too large. 31 | if ($diff <= 0) { 32 | return 0; 33 | } 34 | 35 | // Write the stream or a subset of the stream if needed. 36 | if (strlen($string) < $diff) { 37 | return $this->stream->write($string); 38 | } 39 | 40 | return $this->stream->write(substr($string, 0, $diff)); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php: -------------------------------------------------------------------------------- 1 | '{$name}/', 10 | 'theme' => 'themes/{$name}/', 11 | ); 12 | 13 | /** 14 | * Return the install path based on package type. 15 | * 16 | * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework 17 | * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0 18 | * 19 | * @param PackageInterface $package 20 | * @param string $frameworkType 21 | * @return string 22 | */ 23 | public function getInstallPath(PackageInterface $package, $frameworkType = '') 24 | { 25 | if ( 26 | $package->getName() == 'silverstripe/framework' 27 | && preg_match('/^\d+\.\d+\.\d+/', $package->getVersion()) 28 | && version_compare($package->getVersion(), '2.999.999') < 0 29 | ) { 30 | return $this->templatePath($this->locations['module'], array('name' => 'sapphire')); 31 | } 32 | 33 | return parent::getInstallPath($package, $frameworkType); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/guzzle", 3 | "type": "library", 4 | "description": "Guzzle is a PHP HTTP client library", 5 | "keywords": ["framework", "http", "rest", "web service", "curl", "client", "HTTP client"], 6 | "homepage": "http://guzzlephp.org/", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Michael Dowling", 11 | "email": "mtdowling@gmail.com", 12 | "homepage": "https://github.com/mtdowling" 13 | } 14 | ], 15 | "require": { 16 | "php": ">=5.5", 17 | "guzzlehttp/psr7": "^1.4", 18 | "guzzlehttp/promises": "^1.0" 19 | }, 20 | "require-dev": { 21 | "ext-curl": "*", 22 | "phpunit/phpunit": "^4.0 || ^5.0", 23 | "psr/log": "^1.0" 24 | }, 25 | "autoload": { 26 | "files": ["src/functions_include.php"], 27 | "psr-4": { 28 | "GuzzleHttp\\": "src/" 29 | } 30 | }, 31 | "autoload-dev": { 32 | "psr-4": { 33 | "GuzzleHttp\\Tests\\": "tests/" 34 | } 35 | }, 36 | "suggest": { 37 | "psr/log": "Required for using the Log middleware" 38 | }, 39 | "extra": { 40 | "branch-alias": { 41 | "dev-master": "6.2-dev" 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/src/Fixtures/Headers.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | namespace Jaybizzle\CrawlerDetect\Fixtures; 13 | 14 | class Headers extends AbstractProvider 15 | { 16 | /** 17 | * All possible HTTP headers that represent the user agent string. 18 | * 19 | * @var array 20 | */ 21 | protected $data = array( 22 | // The default User-Agent string. 23 | 'HTTP_USER_AGENT', 24 | // Header can occur on devices using Opera Mini. 25 | 'HTTP_X_OPERAMINI_PHONE_UA', 26 | // Vodafone specific header: http://www.seoprinciple.com/mobile-web-community-still-angry-at-vodafone/24/ 27 | 'HTTP_X_DEVICE_USER_AGENT', 28 | 'HTTP_X_ORIGINAL_USER_AGENT', 29 | 'HTTP_X_SKYFIRE_PHONE', 30 | 'HTTP_X_BOLT_PHONE_UA', 31 | 'HTTP_DEVICE_STOCK_UA', 32 | 'HTTP_X_UCBROWSER_DEVICE_UA', 33 | // Sometimes, bots (especially Google) use a genuine user agent, but fill this header in with their email address 34 | 'HTTP_FROM', 35 | 'HTTP_X_SCANNER', // Seen in use by Netsparker 36 | ); 37 | } 38 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php: -------------------------------------------------------------------------------- 1 | 'modules/{$name}/', 8 | 'plugin' => 'plugins/{$vendor}/{$name}/', 9 | 'theme' => 'themes/{$name}/' 10 | ); 11 | 12 | /** 13 | * Format package name. 14 | * 15 | * For package type october-plugin, cut off a trailing '-plugin' if present. 16 | * 17 | * For package type october-theme, cut off a trailing '-theme' if present. 18 | * 19 | */ 20 | public function inflectPackageVars($vars) 21 | { 22 | if ($vars['type'] === 'october-plugin') { 23 | return $this->inflectPluginVars($vars); 24 | } 25 | 26 | if ($vars['type'] === 'october-theme') { 27 | return $this->inflectThemeVars($vars); 28 | } 29 | 30 | return $vars; 31 | } 32 | 33 | protected function inflectPluginVars($vars) 34 | { 35 | $vars['name'] = preg_replace('/^oc-|-plugin$/', '', $vars['name']); 36 | 37 | return $vars; 38 | } 39 | 40 | protected function inflectThemeVars($vars) 41 | { 42 | $vars['name'] = preg_replace('/^oc-|-theme$/', '', $vars['name']); 43 | 44 | return $vars; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/Product.php: -------------------------------------------------------------------------------- 1 | 'id', 25 | '/^name$/' => 'nm', 26 | '/^brand$/' => 'br', 27 | '/^category$/' => 'ca', 28 | '/^variant$/' => 'va', 29 | '/^price$/' => 'pr', 30 | '/^coupon_code$/' => 'cc', 31 | '/^position$/' => 'ps', 32 | '/^quantity$/' => 'qt', 33 | '/^custom_dimension_(\d{1,3})$/' => 'cd', 34 | '/^custom_metric_(\d{1,3})$/' => 'cm', 35 | ]; 36 | 37 | /** 38 | * @var array 39 | */ 40 | protected $requiredParameters = []; 41 | } 42 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/ProductImpression.php: -------------------------------------------------------------------------------- 1 | 'id', 25 | '/^name$/' => 'nm', 26 | '/^brand$/' => 'br', 27 | '/^category$/' => 'ca', 28 | '/^variant$/' => 'va', 29 | '/^price$/' => 'pr', 30 | '/^position$/' => 'ps', 31 | '/^custom_dimension_(\d{1,3})$/' => 'cd', 32 | '/^custom_metric_(\d{1,3})$/' => 'cm', 33 | ]; 34 | 35 | /** 36 | * @inheritDoc 37 | * 38 | * @var array 39 | */ 40 | protected $requiredParameters = ['sku', 'name']; 41 | } 42 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php: -------------------------------------------------------------------------------- 1 | 'Packages/Application/{$name}/', 11 | 'framework' => 'Packages/Framework/{$name}/', 12 | 'plugin' => 'Packages/Plugins/{$name}/', 13 | 'site' => 'Packages/Sites/{$name}/', 14 | 'boilerplate' => 'Packages/Boilerplates/{$name}/', 15 | 'build' => 'Build/{$name}/', 16 | ); 17 | 18 | /** 19 | * Modify the package name to be a TYPO3 Flow style key. 20 | * 21 | * @param array $vars 22 | * @return array 23 | */ 24 | public function inflectPackageVars($vars) 25 | { 26 | $autoload = $this->package->getAutoload(); 27 | if (isset($autoload['psr-0']) && is_array($autoload['psr-0'])) { 28 | $namespace = key($autoload['psr-0']); 29 | $vars['name'] = str_replace('\\', '.', $namespace); 30 | } 31 | if (isset($autoload['psr-4']) && is_array($autoload['psr-4'])) { 32 | $namespace = key($autoload['psr-4']); 33 | $vars['name'] = rtrim(str_replace('\\', '.', $namespace), '.'); 34 | } 35 | 36 | return $vars; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | 4 | ## 1.3.1 - 2016-12-20 5 | 6 | ### Fixed 7 | 8 | - `wait()` foreign promise compatibility 9 | 10 | 11 | ## 1.3.0 - 2016-11-18 12 | 13 | ### Added 14 | 15 | - Adds support for custom task queues. 16 | 17 | ### Fixed 18 | 19 | - Fixed coroutine promise memory leak. 20 | 21 | 22 | ## 1.2.0 - 2016-05-18 23 | 24 | ### Changed 25 | 26 | - Update to now catch `\Throwable` on PHP 7+ 27 | 28 | 29 | ## 1.1.0 - 2016-03-07 30 | 31 | ### Changed 32 | 33 | - Update EachPromise to prevent recurring on a iterator when advancing, as this 34 | could trigger fatal generator errors. 35 | - Update Promise to allow recursive waiting without unwrapping exceptions. 36 | 37 | 38 | ## 1.0.3 - 2015-10-15 39 | 40 | ### Changed 41 | 42 | - Update EachPromise to immediately resolve when the underlying promise iterator 43 | is empty. Previously, such a promise would throw an exception when its `wait` 44 | function was called. 45 | 46 | 47 | ## 1.0.2 - 2015-05-15 48 | 49 | ### Changed 50 | 51 | - Conditionally require functions.php. 52 | 53 | 54 | ## 1.0.1 - 2015-06-24 55 | 56 | ### Changed 57 | 58 | - Updating EachPromise to call next on the underlying promise iterator as late 59 | as possible to ensure that generators that generate new requests based on 60 | callbacks are not iterated until after callbacks are invoked. 61 | 62 | 63 | ## 1.0.0 - 2015-05-12 64 | 65 | - Initial release 66 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/RejectionException.php: -------------------------------------------------------------------------------- 1 | reason = $reason; 21 | 22 | $message = 'The promise was rejected'; 23 | 24 | if ($description) { 25 | $message .= ' with reason: ' . $description; 26 | } elseif (is_string($reason) 27 | || (is_object($reason) && method_exists($reason, '__toString')) 28 | ) { 29 | $message .= ' with reason: ' . $this->reason; 30 | } elseif ($reason instanceof \JsonSerializable) { 31 | $message .= ' with reason: ' 32 | . json_encode($this->reason, JSON_PRETTY_PRINT); 33 | } 34 | 35 | parent::__construct($message); 36 | } 37 | 38 | /** 39 | * Returns the rejection reason. 40 | * 41 | * @return mixed 42 | */ 43 | public function getReason() 44 | { 45 | return $this->reason; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/TheIconic/Tracking/GoogleAnalytics/Parameters/CompoundParameterTest.php: -------------------------------------------------------------------------------- 1 | compoundParameter = new CompoundTestParameter(['sku' => 5, 'name' => 'hello', 'dimension_3' => 'yep']); 17 | } 18 | 19 | public function testCompoundParameter() 20 | { 21 | $expect = [ 22 | 'id' => 5, 23 | 'nm' => 'hello', 24 | 'd3' => 'yep', 25 | ]; 26 | 27 | $this->assertEquals($expect, $this->compoundParameter->getParameters()); 28 | } 29 | 30 | /** 31 | * @expectedException \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidCompoundParameterException 32 | */ 33 | public function testRequiredCompundParameter() 34 | { 35 | (new CompoundTestParameter(['sku' => 5])); 36 | } 37 | 38 | /** 39 | * @expectedException \InvalidArgumentException 40 | */ 41 | public function testInvalidDataCompundParameter() 42 | { 43 | (new CompoundTestParameter(['sku' => 5, 'name' => 'hello', 'dimensions_3' => 'yep'])); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php: -------------------------------------------------------------------------------- 1 | factory = isset($options['handle_factory']) 29 | ? $options['handle_factory'] 30 | : new CurlFactory(3); 31 | } 32 | 33 | public function __invoke(RequestInterface $request, array $options) 34 | { 35 | if (isset($options['delay'])) { 36 | usleep($options['delay'] * 1000); 37 | } 38 | 39 | $easy = $this->factory->create($request, $options); 40 | curl_exec($easy->handle); 41 | $easy->errno = curl_errno($easy->handle); 42 | 43 | return CurlFactory::finish($this, $easy, $this->factory); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php: -------------------------------------------------------------------------------- 1 | 'app/modules/{$name}/', 8 | 'theme' => 'themes/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format module name. 13 | * 14 | * Strip `sydes-` prefix and a trailing '-theme' or '-module' from package name if present. 15 | * 16 | * @param array @vars 17 | * 18 | * @return array 19 | */ 20 | public function inflectPackageVars($vars) 21 | { 22 | if ($vars['type'] == 'sydes-module') { 23 | return $this->inflectModuleVars($vars); 24 | } 25 | 26 | if ($vars['type'] === 'sydes-theme') { 27 | return $this->inflectThemeVars($vars); 28 | } 29 | 30 | return $vars; 31 | } 32 | 33 | public function inflectModuleVars($vars) 34 | { 35 | $vars['name'] = preg_replace('/(^sydes-|-module$)/i', '', $vars['name']); 36 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 37 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 38 | 39 | return $vars; 40 | } 41 | 42 | protected function inflectThemeVars($vars) 43 | { 44 | $vars['name'] = preg_replace('/(^sydes-|-theme$)/', '', $vars['name']); 45 | $vars['name'] = strtolower($vars['name']); 46 | 47 | return $vars; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php: -------------------------------------------------------------------------------- 1 | 'lib/plugins/{$name}/', 8 | 'template' => 'lib/tpl/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name. 13 | * 14 | * For package type dokuwiki-plugin, cut off a trailing '-plugin', 15 | * or leading dokuwiki_ if present. 16 | * 17 | * For package type dokuwiki-template, cut off a trailing '-template' if present. 18 | * 19 | */ 20 | public function inflectPackageVars($vars) 21 | { 22 | 23 | if ($vars['type'] === 'dokuwiki-plugin') { 24 | return $this->inflectPluginVars($vars); 25 | } 26 | 27 | if ($vars['type'] === 'dokuwiki-template') { 28 | return $this->inflectTemplateVars($vars); 29 | } 30 | 31 | return $vars; 32 | } 33 | 34 | protected function inflectPluginVars($vars) 35 | { 36 | $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']); 37 | $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']); 38 | 39 | return $vars; 40 | } 41 | 42 | protected function inflectTemplateVars($vars) 43 | { 44 | $vars['name'] = preg_replace('/-template$/', '', $vars['name']); 45 | $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']); 46 | 47 | return $vars; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php: -------------------------------------------------------------------------------- 1 | 'extensions/{$name}/', 8 | 'skin' => 'skins/{$name}/', 9 | ); 10 | 11 | /** 12 | * Format package name. 13 | * 14 | * For package type mediawiki-extension, cut off a trailing '-extension' if present and transform 15 | * to CamelCase keeping existing uppercase chars. 16 | * 17 | * For package type mediawiki-skin, cut off a trailing '-skin' if present. 18 | * 19 | */ 20 | public function inflectPackageVars($vars) 21 | { 22 | 23 | if ($vars['type'] === 'mediawiki-extension') { 24 | return $this->inflectExtensionVars($vars); 25 | } 26 | 27 | if ($vars['type'] === 'mediawiki-skin') { 28 | return $this->inflectSkinVars($vars); 29 | } 30 | 31 | return $vars; 32 | } 33 | 34 | protected function inflectExtensionVars($vars) 35 | { 36 | $vars['name'] = preg_replace('/-extension$/', '', $vars['name']); 37 | $vars['name'] = str_replace('-', ' ', $vars['name']); 38 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 39 | 40 | return $vars; 41 | } 42 | 43 | protected function inflectSkinVars($vars) 44 | { 45 | $vars['name'] = preg_replace('/-skin$/', '', $vars['name']); 46 | 47 | return $vars; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php: -------------------------------------------------------------------------------- 1 | package = new Package('CamelCased', '1.0', '1.0'); 21 | $this->io = $this->getMock('Composer\IO\PackageInterface'); 22 | $this->composer = new Composer(); 23 | } 24 | 25 | /** 26 | * testInflectPackageVars 27 | * 28 | * @return void 29 | */ 30 | public function testInflectPackageVars() 31 | { 32 | $installer = new PimcoreInstaller($this->package, $this->composer); 33 | $result = $installer->inflectPackageVars(array('name' => 'CamelCased')); 34 | $this->assertEquals($result, array('name' => 'CamelCased')); 35 | 36 | $installer = new PimcoreInstaller($this->package, $this->composer); 37 | $result = $installer->inflectPackageVars(array('name' => 'with-dash')); 38 | $this->assertEquals($result, array('name' => 'WithDash')); 39 | 40 | $installer = new PimcoreInstaller($this->package, $this->composer); 41 | $result = $installer->inflectPackageVars(array('name' => 'with_underscore')); 42 | $this->assertEquals($result, array('name' => 'WithUnderscore')); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/SingleParameter.php: -------------------------------------------------------------------------------- 1 | name = $this->addIndex($this->name, $index); 41 | } 42 | 43 | /** 44 | * @inheritDoc 45 | */ 46 | public function getName() 47 | { 48 | return $this->name; 49 | } 50 | 51 | /** 52 | * @inheritDoc 53 | */ 54 | public function setValue($value) 55 | { 56 | $this->value = $value; 57 | 58 | return $this; 59 | } 60 | 61 | /** 62 | * @inheritDoc 63 | */ 64 | public function getValue() 65 | { 66 | return $this->value; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php: -------------------------------------------------------------------------------- 1 | 'Modules/{$name}/', 8 | 'theme' => 'Themes/{$name}/' 9 | ); 10 | 11 | /** 12 | * Format package name. 13 | * 14 | * For package type asgard-module, cut off a trailing '-plugin' if present. 15 | * 16 | * For package type asgard-theme, cut off a trailing '-theme' if present. 17 | * 18 | */ 19 | public function inflectPackageVars($vars) 20 | { 21 | if ($vars['type'] === 'asgard-module') { 22 | return $this->inflectPluginVars($vars); 23 | } 24 | 25 | if ($vars['type'] === 'asgard-theme') { 26 | return $this->inflectThemeVars($vars); 27 | } 28 | 29 | return $vars; 30 | } 31 | 32 | protected function inflectPluginVars($vars) 33 | { 34 | $vars['name'] = preg_replace('/-module$/', '', $vars['name']); 35 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 36 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 37 | 38 | return $vars; 39 | } 40 | 41 | protected function inflectThemeVars($vars) 42 | { 43 | $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); 44 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 45 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 46 | 47 | return $vars; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php: -------------------------------------------------------------------------------- 1 | 'src/{$vendor}/{$name}/', 8 | 'theme' => 'themes/{$name}/' 9 | ); 10 | 11 | /** 12 | * Format package name. 13 | * 14 | * For package type vgmcp-bundle, cut off a trailing '-bundle' if present. 15 | * 16 | * For package type vgmcp-theme, cut off a trailing '-theme' if present. 17 | * 18 | */ 19 | public function inflectPackageVars($vars) 20 | { 21 | if ($vars['type'] === 'vgmcp-bundle') { 22 | return $this->inflectPluginVars($vars); 23 | } 24 | 25 | if ($vars['type'] === 'vgmcp-theme') { 26 | return $this->inflectThemeVars($vars); 27 | } 28 | 29 | return $vars; 30 | } 31 | 32 | protected function inflectPluginVars($vars) 33 | { 34 | $vars['name'] = preg_replace('/-bundle$/', '', $vars['name']); 35 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 36 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 37 | 38 | return $vars; 39 | } 40 | 41 | protected function inflectThemeVars($vars) 42 | { 43 | $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); 44 | $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 45 | $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 46 | 47 | return $vars; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/src/Parameters/EnhancedEcommerce/ProductAction.php: -------------------------------------------------------------------------------- 1 | .+)\/.+/'; 9 | 10 | protected $locations = array( 11 | 'module' => 'modules/{$name}/', 12 | 'theme' => 'application/views/{$name}/', 13 | 'out' => 'out/{$name}/', 14 | ); 15 | 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 | } 32 | 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 | } 49 | 50 | $vendorDirectory = $matches['vendor']; 51 | $vendorPath = getcwd() . '/modules/' . $vendorDirectory; 52 | if (!file_exists($vendorPath)) { 53 | mkdir($vendorPath, 0755, true); 54 | } 55 | 56 | $vendorMetaDataPath = $vendorPath . '/vendormetadata.php'; 57 | touch($vendorMetaDataPath); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php: -------------------------------------------------------------------------------- 1 | package = new Package('YawikCompanyRegistration', '1.0', '1.0'); 39 | $this->io = $this->getMock('Composer\IO\PackageInterface'); 40 | $this->composer = new Composer(); 41 | } 42 | 43 | /** 44 | * testInflectPackageVars 45 | * 46 | * @dataProvider packageNameProvider 47 | * @return void 48 | */ 49 | public function testInflectPackageVars($input) 50 | { 51 | $installer = new YawikInstaller($this->package, $this->composer); 52 | $result = $installer->inflectPackageVars(array('name' => $input)); 53 | $this->assertEquals($result, array('name' => 'YawikCompanyRegistration')); 54 | } 55 | 56 | public function packageNameProvider() 57 | { 58 | return array( 59 | array('yawik-company-registration'), 60 | array('yawik_company_registration'), 61 | array('YawikCompanyRegistration') 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/composer/installers/tests/Composer/Installers/Test/MayaInstallerTest.php: -------------------------------------------------------------------------------- 1 | installer = new MayaInstaller( 19 | new Package('NyanCat', '4.2', '4.2'), 20 | new Composer() 21 | ); 22 | } 23 | 24 | /** 25 | * @dataProvider packageNameInflectionProvider 26 | */ 27 | public function testInflectPackageVars($type, $name, $expected) 28 | { 29 | $this->assertEquals( 30 | array('name' => $expected, 'type' => $type), 31 | $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type)) 32 | ); 33 | } 34 | 35 | public function packageNameInflectionProvider() 36 | { 37 | return array( 38 | // Should keep module name StudlyCase 39 | array( 40 | 'maya-module', 41 | 'user-profile', 42 | 'UserProfile' 43 | ), 44 | array( 45 | 'maya-module', 46 | 'maya-module', 47 | 'Maya' 48 | ), 49 | array( 50 | 'maya-module', 51 | 'blog', 52 | 'Blog' 53 | ), 54 | // tests that exactly one '-module' is cut off 55 | array( 56 | 'maya-module', 57 | 'some-module-module', 58 | 'SomeModule', 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /controllers/InstantAnalyticsController.php: -------------------------------------------------------------------------------- 1 | request->getParam('url')); 32 | $title = urldecode(craft()->request->getParam('title')); 33 | $analytics = craft()->instantAnalytics->pageViewAnalytics($url, $title); 34 | $analytics->sendPageView(); 35 | craft()->request->redirect($url, true, 200); 36 | } /* -- actionTrackPageViewUrl */ 37 | 38 | /** 39 | */ 40 | public function actionTrackEventUrl() 41 | { 42 | $url = urldecode(craft()->request->getParam('url')); 43 | $eventCategory = urldecode(craft()->request->getParam('eventCategory')); 44 | $eventAction = urldecode(craft()->request->getParam('eventAction')); 45 | $eventLabel = urldecode(craft()->request->getParam('eventLabel')); 46 | $eventValue = urldecode(craft()->request->getParam('eventValue')); 47 | $analytics = craft()->instantAnalytics->eventAnalytics($eventCategory, $eventAction, $eventLabel, $eventValue); 48 | $analytics->sendEvent(); 49 | craft()->request->redirect($url, true, 200); 50 | } /* -- actionTrackPageViewUrl */ 51 | 52 | } -------------------------------------------------------------------------------- /vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php: -------------------------------------------------------------------------------- 1 | package = new Package('VisitSummary', '1.0', '1.0'); 39 | $this->io = $this->getMock('Composer\IO\PackageInterface'); 40 | $this->composer = new Composer(); 41 | } 42 | 43 | /** 44 | * testInflectPackageVars 45 | * 46 | * @return void 47 | */ 48 | public function testInflectPackageVars() 49 | { 50 | $installer = new PiwikInstaller($this->package, $this->composer); 51 | $result = $installer->inflectPackageVars(array('name' => 'VisitSummary')); 52 | $this->assertEquals($result, array('name' => 'VisitSummary')); 53 | 54 | $installer = new PiwikInstaller($this->package, $this->composer); 55 | $result = $installer->inflectPackageVars(array('name' => 'visit-summary')); 56 | $this->assertEquals($result, array('name' => 'VisitSummary')); 57 | 58 | $installer = new PiwikInstaller($this->package, $this->composer); 59 | $result = $installer->inflectPackageVars(array('name' => 'visit_summary')); 60 | $this->assertEquals($result, array('name' => 'VisitSummary')); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/TheIconic/Tracking/GoogleAnalytics/Parameters/SingleParameterTest.php: -------------------------------------------------------------------------------- 1 | stubSingleParameter = new SingleTestParameter(); 24 | $this->stubSingleParameterIndexed = new SingleTestParameterIndexed(2); 25 | } 26 | 27 | /** 28 | * @expectedException \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidNameException 29 | */ 30 | public function testInvalidSingleParameter() 31 | { 32 | (new InvalidSingleTestParameter); 33 | } 34 | 35 | /** 36 | * @expectedException \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidIndexException 37 | */ 38 | public function testInvalidSingleParameterIndexed() 39 | { 40 | (new SingleTestParameterIndexed()); 41 | } 42 | 43 | public function testGetName() 44 | { 45 | $this->assertEquals('test', $this->stubSingleParameter->getName()); 46 | } 47 | 48 | public function testGetNameIndexed() 49 | { 50 | $this->assertEquals('testi2', $this->stubSingleParameterIndexed->getName()); 51 | } 52 | 53 | public function testValue() 54 | { 55 | $this->stubSingleParameter->setValue(10); 56 | 57 | $this->assertEquals(10, $this->stubSingleParameter->getValue()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php: -------------------------------------------------------------------------------- 1 | 'engine/Shopware/Plugins/Local/Backend/{$name}/', 12 | 'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/', 13 | 'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/', 14 | 'theme' => 'templates/{$name}/', 15 | 'plugin' => 'custom/plugins/{$name}/', 16 | 'frontend-theme' => 'themes/Frontend/{$name}/', 17 | ); 18 | 19 | /** 20 | * Transforms the names 21 | * @param array $vars 22 | * @return array 23 | */ 24 | public function inflectPackageVars($vars) 25 | { 26 | if ($vars['type'] === 'shopware-theme') { 27 | return $this->correctThemeName($vars); 28 | } 29 | 30 | return $this->correctPluginName($vars); 31 | } 32 | 33 | /** 34 | * Changes the name to a camelcased combination of vendor and name 35 | * @param array $vars 36 | * @return array 37 | */ 38 | private function correctPluginName($vars) 39 | { 40 | $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { 41 | return strtoupper($matches[0][1]); 42 | }, $vars['name']); 43 | 44 | $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName); 45 | 46 | return $vars; 47 | } 48 | 49 | /** 50 | * Changes the name to a underscore separated name 51 | * @param array $vars 52 | * @return array 53 | */ 54 | private function correctThemeName($vars) 55 | { 56 | $vars['name'] = str_replace('-', '_', $vars['name']); 57 | 58 | return $vars; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/jaybizzle/crawler-detect/src/Fixtures/Exclusions.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | namespace Jaybizzle\CrawlerDetect\Fixtures; 13 | 14 | class Exclusions extends AbstractProvider 15 | { 16 | /** 17 | * List of strings to remove from the user agent before running the crawler regex 18 | * Over a large list of user agents, this gives us about a 55% speed increase! 19 | * 20 | * @var array 21 | */ 22 | protected $data = array( 23 | 'Safari.[\d\.]*', 24 | 'Firefox.[\d\.]*', 25 | 'Chrome.[\d\.]*', 26 | 'Chromium.[\d\.]*', 27 | 'MSIE.[\d\.]', 28 | 'Opera\/[\d\.]*', 29 | 'Mozilla.[\d\.]*', 30 | 'AppleWebKit.[\d\.]*', 31 | 'Trident.[\d\.]*', 32 | 'Windows NT.[\d\.]*', 33 | 'Android [\d\.]*', 34 | 'Macintosh.', 35 | 'Ubuntu', 36 | 'Linux', 37 | '[ ]Intel', 38 | 'Mac OS X [\d_]*', 39 | '(like )?Gecko(.[\d\.]*)?', 40 | 'KHTML,', 41 | 'CriOS.[\d\.]*', 42 | 'CPU iPhone OS ([0-9_])* like Mac OS X', 43 | 'CPU OS ([0-9_])* like Mac OS X', 44 | 'iPod', 45 | 'compatible', 46 | 'x86_..', 47 | 'i686', 48 | 'x64', 49 | 'X11', 50 | 'rv:[\d\.]*', 51 | 'Version.[\d\.]*', 52 | 'WOW64', 53 | 'Win64', 54 | 'Dalvik.[\d\.]*', 55 | ' \.NET CLR [\d\.]*', 56 | 'Presto.[\d\.]*', 57 | 'Media Center PC', 58 | 'BlackBerry', 59 | 'Build', 60 | 'Opera Mini\/\d{1,2}\.\d{1,2}\.[\d\.]*\/\d{1,2}\.', 61 | 'Opera', 62 | ' \.NET[\d\.]*', 63 | ';', // Remove the following characters ; 64 | ); 65 | } 66 | -------------------------------------------------------------------------------- /vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php: -------------------------------------------------------------------------------- 1 | 7 | * Jordi Boggiano 8 | * 9 | * For the full copyright and license information, please view the LICENSE 10 | * file that was distributed with this source code. 11 | */ 12 | 13 | namespace Composer\Installers\Test; 14 | 15 | use Composer\Package\Version\VersionParser; 16 | use Composer\Package\Package; 17 | use Composer\Package\AliasPackage; 18 | use Composer\Package\LinkConstraint\VersionConstraint; 19 | use Composer\Util\Filesystem; 20 | use PHPUnit\Framework\TestCase as BaseTestCase; 21 | 22 | abstract class TestCase extends BaseTestCase 23 | { 24 | private static $parser; 25 | 26 | protected static function getVersionParser() 27 | { 28 | if (!self::$parser) { 29 | self::$parser = new VersionParser(); 30 | } 31 | 32 | return self::$parser; 33 | } 34 | 35 | protected function getVersionConstraint($operator, $version) 36 | { 37 | return new VersionConstraint( 38 | $operator, 39 | self::getVersionParser()->normalize($version) 40 | ); 41 | } 42 | 43 | protected function getPackage($name, $version) 44 | { 45 | $normVersion = self::getVersionParser()->normalize($version); 46 | 47 | return new Package($name, $normVersion, $version); 48 | } 49 | 50 | protected function getAliasPackage($package, $version) 51 | { 52 | $normVersion = self::getVersionParser()->normalize($version); 53 | 54 | return new AliasPackage($package, $normVersion, $version); 55 | } 56 | 57 | protected function ensureDirectoryExistsAndClear($directory) 58 | { 59 | $fs = new Filesystem(); 60 | if (is_dir($directory)) { 61 | $fs->removeDirectory($directory); 62 | } 63 | mkdir($directory, 0777, true); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/InflateStream.php: -------------------------------------------------------------------------------- 1 | read(10); 25 | $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); 26 | // Skip the header, that is 10 + length of filename + 1 (nil) bytes 27 | $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); 28 | $resource = StreamWrapper::getResource($stream); 29 | stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ); 30 | $this->stream = new Stream($resource); 31 | } 32 | 33 | /** 34 | * @param StreamInterface $stream 35 | * @param $header 36 | * @return int 37 | */ 38 | private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) 39 | { 40 | $filename_header_length = 0; 41 | 42 | if (substr(bin2hex($header), 6, 2) === '08') { 43 | // we have a filename, read until nil 44 | $filename_header_length = 1; 45 | while ($stream->read(1) !== chr(0)) { 46 | $filename_header_length++; 47 | } 48 | } 49 | 50 | return $filename_header_length; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/theiconic/php-ga-measurement-protocol/tests/TheIconic/Tracking/GoogleAnalytics/Parameters/CompoundParameterCollectionTest.php: -------------------------------------------------------------------------------- 1 | testCollection = new CompoundParameterTestCollection(7); 20 | } 21 | 22 | /** 23 | * @expectedException \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidNameException 24 | */ 25 | public function testInvalidCompoundParameterCollection() 26 | { 27 | (new InvalidCompoundParameterTestCollection()); 28 | } 29 | 30 | public function testAddItem() 31 | { 32 | $item = new CompoundTestParameter(['sku' => 555, 'name' => 'yey']); 33 | 34 | $this->testCollection->add($item); 35 | 36 | foreach ($this->testCollection as $compoundParameter) { 37 | $expect = [ 38 | 'id' => 555, 39 | 'nm' => 'yey', 40 | ]; 41 | 42 | $this->assertEquals($expect, $compoundParameter->getParameters()); 43 | } 44 | 45 | $item = new CompoundTestParameter(['sku' => 777, 'name' => 'cathy']); 46 | 47 | $this->testCollection->add($item); 48 | 49 | $parameters = $this->testCollection->getParametersArray(); 50 | 51 | $expect = [ 52 | 'cp7t1id' => 555, 53 | 'cp7t1nm' => 'yey', 54 | 'cp7t2id' => 777, 55 | 'cp7t2nm' => 'cathy', 56 | ]; 57 | 58 | $this->assertEquals($expect, $parameters); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/Proxy.php: -------------------------------------------------------------------------------- 1 |