diff --git a/.gitignore b/.gitignore index 6863fc7..6fb83b2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /assets/vendor/ .idea/ +vendor/ \ No newline at end of file diff --git a/composer.json b/composer.json index af9b197..a02d876 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "license": "GPL-2.0+", "require": { "php": "^5.6 || ^7", - "kint-php/kint": "^1", + "kint-php/kint": "^3.3", "filp/whoops": "^2" }, "suggest": { diff --git a/composer.lock b/composer.lock index 2c2b330..50f30ea 100644 --- a/composer.lock +++ b/composer.lock @@ -1,11 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "0750ad47228addea12426dbc2dfac0ba", - "content-hash": "c5ab0230680ab6864640b9ec359b1549", + "content-hash": "91702abbd6bfdaec7574a3fa060fe61a", "packages": [ { "name": "filp/whoops", @@ -66,58 +65,77 @@ "throwable", "whoops" ], - "time": "2018-10-23 09:00:00" + "time": "2018-10-23T09:00:00+00:00" }, { "name": "kint-php/kint", - "version": "1.1", + "version": "3.3", "source": { "type": "git", "url": "https://github.com/kint-php/kint.git", - "reference": "a8549198558560b24e2879c6bac2875de5371483" + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kint-php/kint/zipball/a8549198558560b24e2879c6bac2875de5371483", - "reference": "a8549198558560b24e2879c6bac2875de5371483", + "url": "https://api.github.com/repos/kint-php/kint/zipball/335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", "shasum": "" }, "require": { - "php": ">=5.1.0" + "php": ">=5.3.6" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpunit/phpunit": "^4.0", + "seld/phar-utils": "^1.0", + "symfony/finder": "^2.0 || ^3.0 || ^4.0", + "vimeo/psalm": "^3.0" }, + "suggest": { + "ext-ctype": "Simple data type tests", + "ext-iconv": "Provides fallback detection for ambiguous legacy string encodings such as the Windows and ISO 8859 code pages", + "ext-mbstring": "Provides string encoding detection", + "kint-php/kint-js": "Provides a simplified dump to console.log()", + "kint-php/kint-twig": "Provides d() and s() functions in twig templates", + "symfony/polyfill-ctype": "Replacement for ext-ctype if missing", + "symfony/polyfill-iconv": "Replacement for ext-iconv if missing", + "symfony/polyfill-mbstring": "Replacement for ext-mbstring if missing" + }, + "type": "library", "autoload": { "files": [ - "Kint.class.php" - ] + "init.php" + ], + "psr-4": { + "Kint\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ + { + "name": "Jonathan Vollebregt", + "homepage": "https://github.com/jnvsor" + }, { "name": "Rokas Šleinius", - "homepage": "https://github.com/kint-php" + "homepage": "https://github.com/raveren" }, { "name": "Contributors", - "homepage": "https://github.com/kint-php/kint/contributors" + "homepage": "https://github.com/kint-php/kint/graphs/contributors" } ], - "description": "Kint - debugging helper for PHP developers", - "homepage": "https://github.com/kint-php/kint", + "description": "Kint - debugging tool for PHP developers", + "homepage": "https://kint-php.github.io/kint/", "keywords": [ "debug", "kint", "php" ], - "time": "2017-01-15 14:23:43" + "time": "2019-10-17T18:05:24+00:00" }, { "name": "psr/log", @@ -164,7 +182,7 @@ "psr", "psr-3" ], - "time": "2018-11-20 15:27:04" + "time": "2018-11-20T15:27:04+00:00" } ], "packages-dev": [], @@ -176,5 +194,6 @@ "platform": { "php": "^5.6 || ^7" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/vendor/autoload.php b/vendor/autoload.php index fb68fc5..559fbd0 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -2,6 +2,6 @@ // autoload.php @generated by Composer -require_once __DIR__ . '/composer' . '/autoload_real.php'; +require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitcdce1547e94626464cb6e151646a63e1::getLoader(); diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index ff6ecfb..03b9bb9 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -53,13 +53,14 @@ class ClassLoader private $useIncludePath = false; private $classMap = array(); - private $classMapAuthoritative = false; + private $missingClasses = array(); + private $apcuPrefix; public function getPrefixes() { if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); } return array(); @@ -271,6 +272,26 @@ public function isClassMapAuthoritative() return $this->classMapAuthoritative; } + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + /** * Registers this instance as an autoloader. * @@ -313,29 +334,34 @@ public function loadClass($class) */ public function findFile($class) { - // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731 - if ('\\' == $class[0]) { - $class = substr($class, 1); - } - // class map lookup if (isset($this->classMap[$class])) { return $this->classMap[$class]; } - if ($this->classMapAuthoritative) { + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { return false; } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } $file = $this->findFileWithExtension($class, '.php'); // Search for Hack files if we are running on HHVM - if ($file === null && defined('HHVM_VERSION')) { + if (false === $file && defined('HHVM_VERSION')) { $file = $this->findFileWithExtension($class, '.hh'); } - if ($file === null) { + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { // Remember that this class does not exist. - return $this->classMap[$class] = false; + $this->missingClasses[$class] = true; } return $file; @@ -348,10 +374,14 @@ private function findFileWithExtension($class, $ext) $first = $class[0]; if (isset($this->prefixLengthsPsr4[$first])) { - foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { - if (0 === strpos($class, $prefix)) { - foreach ($this->prefixDirsPsr4[$prefix] as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { return $file; } } @@ -399,6 +429,8 @@ private function findFileWithExtension($class, $ext) if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { return $file; } + + return false; } } diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE index 1a28124..f27399a 100644 --- a/vendor/composer/LICENSE +++ b/vendor/composer/LICENSE @@ -1,5 +1,5 @@ -Copyright (c) 2016 Nils Adermann, Jordi Boggiano +Copyright (c) Nils Adermann, Jordi Boggiano Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index 7453cc9..9dde048 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -6,7 +6,7 @@ $baseDir = dirname($vendorDir); return array( - '35d1e42abf4d8c181ae544a92d8f3f6a' => $vendorDir . '/kint-php/kint/Kint.class.php', + '3917c79c5052b270641b5a200963dbc2' => $vendorDir . '/kint-php/kint/init.php', '598f6ff116a3a9ebed039e8721551d6d' => $baseDir . '/src/Support/whoops-loader.php', 'bc9d28b6d7d8d656e84ad897d81ca719' => $baseDir . '/src/Admin/admin-color.php', ); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index be4ecf4..29d959c 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -8,4 +8,5 @@ return array( 'Whoops\\' => array($vendorDir . '/filp/whoops/src/Whoops'), 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), + 'Kint\\' => array($vendorDir . '/kint-php/kint/src'), ); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index ac4765d..caaff51 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -13,6 +13,9 @@ public static function loadClassLoader($class) } } + /** + * @return \Composer\Autoload\ClassLoader + */ public static function getLoader() { if (null !== self::$loader) { @@ -23,7 +26,7 @@ public static function getLoader() self::$loader = $loader = new \Composer\Autoload\ClassLoader(); spl_autoload_unregister(array('ComposerAutoloaderInitcdce1547e94626464cb6e151646a63e1', 'loadClassLoader')); - $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION'); + $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index fb54b11..bd09c21 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -7,7 +7,7 @@ class ComposerStaticInitcdce1547e94626464cb6e151646a63e1 { public static $files = array ( - '35d1e42abf4d8c181ae544a92d8f3f6a' => __DIR__ . '/..' . '/kint-php/kint/Kint.class.php', + '3917c79c5052b270641b5a200963dbc2' => __DIR__ . '/..' . '/kint-php/kint/init.php', '598f6ff116a3a9ebed039e8721551d6d' => __DIR__ . '/../..' . '/src/Support/whoops-loader.php', 'bc9d28b6d7d8d656e84ad897d81ca719' => __DIR__ . '/../..' . '/src/Admin/admin-color.php', ); @@ -21,6 +21,10 @@ class ComposerStaticInitcdce1547e94626464cb6e151646a63e1 array ( 'Psr\\Log\\' => 8, ), + 'K' => + array ( + 'Kint\\' => 5, + ), ); public static $prefixDirsPsr4 = array ( @@ -32,6 +36,10 @@ class ComposerStaticInitcdce1547e94626464cb6e151646a63e1 array ( 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', ), + 'Kint\\' => + array ( + 0 => __DIR__ . '/..' . '/kint-php/kint/src', + ), ); public static function getInitializer(ClassLoader $loader) diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 105ffaf..95b8307 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1,34 +1,44 @@ [ { - "name": "kint-php/kint", - "version": "1.1", - "version_normalized": "1.1.0.0", + "name": "filp/whoops", + "version": "2.3.1", + "version_normalized": "2.3.1.0", "source": { "type": "git", - "url": "https://github.com/kint-php/kint.git", - "reference": "a8549198558560b24e2879c6bac2875de5371483" + "url": "https://github.com/filp/whoops.git", + "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kint-php/kint/zipball/a8549198558560b24e2879c6bac2875de5371483", - "reference": "a8549198558560b24e2879c6bac2875de5371483", + "url": "https://api.github.com/repos/filp/whoops/zipball/bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", + "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", "shasum": "" }, "require": { - "php": ">=5.1.0" + "php": "^5.5.9 || ^7.0", + "psr/log": "^1.0.1" + }, + "require-dev": { + "mockery/mockery": "^0.9 || ^1.0", + "phpunit/phpunit": "^4.8.35 || ^5.7", + "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0" }, - "time": "2017-01-15 14:23:43", + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "time": "2018-10-23T09:00:00+00:00", "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.2-dev" } }, "installation-source": "dist", "autoload": { - "files": [ - "Kint.class.php" - ] + "psr-4": { + "Whoops\\": "src/Whoops/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -36,51 +46,66 @@ ], "authors": [ { - "name": "Rokas Šleinius", - "homepage": "https://github.com/kint-php" - }, - { - "name": "Contributors", - "homepage": "https://github.com/kint-php/kint/contributors" + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" } ], - "description": "Kint - debugging helper for PHP developers", - "homepage": "https://github.com/kint-php/kint", + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", "keywords": [ - "debug", - "kint", - "php" + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" ] }, { - "name": "psr/log", - "version": "1.1.0", - "version_normalized": "1.1.0.0", + "name": "kint-php/kint", + "version": "3.3", + "version_normalized": "3.3.0.0", "source": { "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "url": "https://github.com/kint-php/kint.git", + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/kint-php/kint/zipball/335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=5.3.6" }, - "time": "2018-11-20 15:27:04", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpunit/phpunit": "^4.0", + "seld/phar-utils": "^1.0", + "symfony/finder": "^2.0 || ^3.0 || ^4.0", + "vimeo/psalm": "^3.0" }, + "suggest": { + "ext-ctype": "Simple data type tests", + "ext-iconv": "Provides fallback detection for ambiguous legacy string encodings such as the Windows and ISO 8859 code pages", + "ext-mbstring": "Provides string encoding detection", + "kint-php/kint-js": "Provides a simplified dump to console.log()", + "kint-php/kint-twig": "Provides d() and s() functions in twig templates", + "symfony/polyfill-ctype": "Replacement for ext-ctype if missing", + "symfony/polyfill-iconv": "Replacement for ext-iconv if missing", + "symfony/polyfill-mbstring": "Replacement for ext-mbstring if missing" + }, + "time": "2019-10-17T18:05:24+00:00", + "type": "library", "installation-source": "dist", "autoload": { + "files": [ + "init.php" + ], "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Kint\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -89,57 +114,55 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Jonathan Vollebregt", + "homepage": "https://github.com/jnvsor" + }, + { + "name": "Rokas Šleinius", + "homepage": "https://github.com/raveren" + }, + { + "name": "Contributors", + "homepage": "https://github.com/kint-php/kint/graphs/contributors" } ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", + "description": "Kint - debugging tool for PHP developers", + "homepage": "https://kint-php.github.io/kint/", "keywords": [ - "log", - "psr", - "psr-3" + "debug", + "kint", + "php" ] }, { - "name": "filp/whoops", - "version": "2.3.1", - "version_normalized": "2.3.1.0", + "name": "psr/log", + "version": "1.1.0", + "version_normalized": "1.1.0.0", "source": { "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7" + "url": "https://github.com/php-fig/log.git", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", - "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", + "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0", - "psr/log": "^1.0.1" - }, - "require-dev": { - "mockery/mockery": "^0.9 || ^1.0", - "phpunit/phpunit": "^4.8.35 || ^5.7", - "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0" - }, - "suggest": { - "symfony/var-dumper": "Pretty print complex values better with var-dumper available", - "whoops/soap": "Formats errors as SOAP responses" + "php": ">=5.3.0" }, - "time": "2018-10-23 09:00:00", + "time": "2018-11-20T15:27:04+00:00", "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-master": "1.0.x-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { - "Whoops\\": "src/Whoops/" + "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", @@ -148,20 +171,16 @@ ], "authors": [ { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", - "role": "Developer" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" + "log", + "psr", + "psr-3" ] } ] diff --git a/vendor/kint-php/kint/.gitignore b/vendor/kint-php/kint/.gitignore deleted file mode 100644 index 21a6284..0000000 --- a/vendor/kint-php/kint/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ - -/config.php -/.idea \ No newline at end of file diff --git a/vendor/kint-php/kint/CONTRIBUTING.md b/vendor/kint-php/kint/CONTRIBUTING.md deleted file mode 100644 index 15856bc..0000000 --- a/vendor/kint-php/kint/CONTRIBUTING.md +++ /dev/null @@ -1,16 +0,0 @@ -# Contributing - -> First and foremost, thank you for stepping in and trying to be part of the effort. - -### Goals - -When expanding Kint, keep in mind its main priorities: - -1. **Maximum PHP version range compatibility**: Kint supports and must continue to work down to at least PHP 5.1 and support all latest stable PHP features and additions as soon as they are released -2. **Ease of use**: developers must be able to install Kint effortlessly and start using it immediately with no additional required steps. It should also provide flexible and simple to use configuration when the user feels confident enough. Through configuration Kint should be able to adapt to popular workflow scenarios. -3. **No feature creep**: requests for edge use cases, especially ones that can be worked around with some configuration, should *not* be catered to. The definition of edge case is the popularity of the feature request, if it's popular - it's a workflow, if not - it might be an edge case. -4. **Do not compromise information clarity**: displaying relevant information and not omitting meaningful data takes precedence over every principle in this list - as well as (and not limited to) performance and tidy Kint codebase. -5. **Code quality**: the nature of Kint implies that it will be continued to develop for many years - at least to adapt to new language features and quirks. Keep the codebase as maintainable as possible. -5. **Stable releases**: never publish versions that are not thoroughly tested to the master branch. Due to the nature of this project, any kind of meaningful test coverage is mostly impossible *and* because it is a development tool, people may leave their `composer require-dev` Kint configuration to allow auto-updates. - -> To be continued: `Development instructions`, `Asset building` diff --git a/vendor/kint-php/kint/Kint.class.php b/vendor/kint-php/kint/Kint.class.php deleted file mode 100644 index ec697f8..0000000 --- a/vendor/kint-php/kint/Kint.class.php +++ /dev/null @@ -1,843 +0,0 @@ -= 0 ); - -require KINT_DIR . 'config.default.php'; -require KINT_DIR . 'inc/kintVariableData.class.php'; -require KINT_DIR . 'inc/kintParser.class.php'; -require KINT_DIR . 'inc/kintObject.class.php'; -require KINT_DIR . 'decorators/rich.php'; -require KINT_DIR . 'decorators/plain.php'; - -if ( is_readable( KINT_DIR . 'config.php' ) ) { - require KINT_DIR . 'config.php'; -} - -# init settings -if ( !empty( $GLOBALS['_kint_settings'] ) ) { - Kint::enabled( $GLOBALS['_kint_settings']['enabled'] ); - - foreach ( $GLOBALS['_kint_settings'] as $key => $val ) { - property_exists( 'Kint', $key ) and Kint::$$key = $val; - } - - unset( $GLOBALS['_kint_settings'], $key, $val ); -} - -class Kint -{ - // these are all public and 1:1 config array keys so you can switch them easily - private static $_enabledMode; # stores mode and active statuses - - public static $returnOutput; - public static $fileLinkFormat; - public static $displayCalledFrom; - public static $charEncodings; - public static $maxStrLength; - public static $appRootDirs; - public static $maxLevels; - public static $theme; - public static $expandedByDefault; - - public static $cliDetection; - public static $cliColors; - - const MODE_RICH = 'r'; - const MODE_WHITESPACE = 'w'; - const MODE_CLI = 'c'; - const MODE_PLAIN = 'p'; - - - public static $aliases = array( - 'methods' => array( - array( 'kint', 'dump' ), - array( 'kint', 'trace' ), - ), - 'functions' => array( - 'd', - 'dd', - 'ddd', - 's', - 'sd', - ) - ); - - private static $_firstRun = true; - - /** - * Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the - * current mode. - * - * @param mixed $forceMode - * null or void - return current mode - * false - disable (no output) - * true - enable and detect cli automatically - * Kint::MODE_* - enable and force selected mode disregarding detection and function - * shorthand (s()/d()), note that you can still override this - * with the "~" modifier - * - * @return mixed previously set value if a new one is passed - */ - public static function enabled( $forceMode = null ) - { - # act both as a setter... - if ( isset( $forceMode ) ) { - $before = self::$_enabledMode; - self::$_enabledMode = $forceMode; - - return $before; - } - - # ...and a getter - return self::$_enabledMode; - } - - /** - * Prints a debug backtrace, same as Kint::dump(1) - * - * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called - * - * @return mixed - */ - public static function trace( $trace = null ) - { - if ( !self::enabled() ) return ''; - - return self::dump( isset( $trace ) ? $trace : debug_backtrace( true ) ); - } - - - /** - * Dump information about variables, accepts any number of parameters, supports modifiers: - * - * clean up any output before kint and place the dump at the top of page: - * - Kint::dump() - * ***** - * expand all nodes on display: - * ! Kint::dump() - * ***** - * dump variables disregarding their depth: - * + Kint::dump() - * ***** - * return output instead of displaying it: - * @ Kint::dump() - * ***** - * force output as plain text - * ~ Kint::dump() - * - * Modifiers are supported by all dump wrapper functions, including Kint::trace(). Space is optional. - * - * - * You can also use the following shorthand to display debug_backtrace(): - * Kint::dump( 1 ); - * - * Passing the result from debug_backtrace() to kint::dump() as a single parameter will display it as trace too: - * $trace = debug_backtrace( true ); - * Kint::dump( $trace ); - * Or simply: - * Kint::dump( debug_backtrace() ); - * - * - * @param mixed $data - * - * @return void|string - */ - public static function dump( $data = null ) - { - if ( !self::enabled() ) return ''; - - list( $names, $modifiers, $callee, $previousCaller, $miniTrace ) = self::_getCalleeInfo( - defined( 'DEBUG_BACKTRACE_IGNORE_ARGS' ) - ? debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ) - : debug_backtrace() - ); - $modeOldValue = self::enabled(); - $firstRunOldValue = self::$_firstRun; - - # process modifiers: @, +, !, ~ and - - if ( strpos( $modifiers, '-' ) !== false ) { - self::$_firstRun = true; - while ( ob_get_level() ) { - ob_end_clean(); - } - } - if ( strpos( $modifiers, '!' ) !== false ) { - $expandedByDefaultOldValue = self::$expandedByDefault; - self::$expandedByDefault = true; - } - if ( strpos( $modifiers, '+' ) !== false ) { - $maxLevelsOldValue = self::$maxLevels; - self::$maxLevels = false; - } - if ( strpos( $modifiers, '@' ) !== false ) { - $returnOldValue = self::$returnOutput; - self::$returnOutput = true; - self::$_firstRun = true; - } - if ( strpos( $modifiers, '~' ) !== false ) { - self::enabled( self::MODE_WHITESPACE ); - } - - # set mode for current run - $mode = self::enabled(); - if ( $mode === true ) { - $mode = (PHP_SAPI === 'cli' && self::$cliDetection === true) - ? self::MODE_CLI - : self::MODE_RICH; - } - self::enabled( $mode ); - - $decorator = self::enabled() === self::MODE_RICH - ? 'Kint_Decorators_Rich' - : 'Kint_Decorators_Plain'; - - $output = ''; - if ( self::$_firstRun ) { - $output .= call_user_func( array( $decorator, 'init' ) ); - } - - - $trace = false; - if ( $names === array( null ) && func_num_args() === 1 && $data === 1 ) { # Kint::dump(1) shorthand - $trace = KINT_PHP53 ? debug_backtrace( true ) : debug_backtrace(); - } elseif ( func_num_args() === 1 && is_array( $data ) ) { - $trace = $data; # test if the single parameter is result of debug_backtrace() - } - $trace and $trace = self::_parseTrace( $trace ); - - - $output .= call_user_func( array( $decorator, 'wrapStart' ) ); - if ( $trace ) { - $output .= call_user_func( array( $decorator, 'decorateTrace' ), $trace ); - } else { - $data = func_num_args() === 0 - ? array( "[[no arguments passed]]" ) - : func_get_args(); - - foreach ( $data as $k => $argument ) { - kintParser::reset(); - # when the dump arguments take long to generate output, user might have changed the file and - # Kint might not parse the arguments correctly, so check if names are set and while the - # displayed names might be wrong, at least don't throw an error - $output .= call_user_func( - array( $decorator, 'decorate' ), - kintParser::factory( $argument, isset( $names[ $k ] ) ? $names[ $k ] : '' ) - ); - } - } - - $output .= call_user_func( array( $decorator, 'wrapEnd' ), $callee, $miniTrace, $previousCaller ); - - self::enabled( $modeOldValue ); - - self::$_firstRun = false; - if ( strpos( $modifiers, '~' ) !== false ) { - self::$_firstRun = $firstRunOldValue; - } else { - self::enabled( $modeOldValue ); - } - if ( strpos( $modifiers, '!' ) !== false ) { - self::$expandedByDefault = $expandedByDefaultOldValue; - } - if ( strpos( $modifiers, '+' ) !== false ) { - self::$maxLevels = $maxLevelsOldValue; - } - if ( strpos( $modifiers, '@' ) !== false ) { - self::$returnOutput = $returnOldValue; - self::$_firstRun = $firstRunOldValue; - return $output; - } - - if ( self::$returnOutput ) return $output; - - echo $output; - return ''; - } - - - /** - * generic path display callback, can be configured in the settings; purpose is to show relevant path info and hide - * as much of the path as possible. - * - * @param string $file - * - * @return string - */ - public static function shortenPath( $file ) - { - $file = str_replace( '\\', '/', $file ); - $shortenedName = $file; - $replaced = false; - if ( is_array( self::$appRootDirs ) ) foreach ( self::$appRootDirs as $path => $replaceString ) { - if ( empty( $path ) ) continue; - - $path = str_replace( '\\', '/', $path ); - - if ( strpos( $file, $path ) === 0 ) { - $shortenedName = $replaceString . substr( $file, strlen( $path ) ); - $replaced = true; - break; - } - } - - # fallback to find common path with Kint dir - if ( !$replaced ) { - $pathParts = explode( '/', str_replace( '\\', '/', KINT_DIR ) ); - $fileParts = explode( '/', $file ); - $i = 0; - foreach ( $fileParts as $i => $filePart ) { - if ( !isset( $pathParts[ $i ] ) || $pathParts[ $i ] !== $filePart ) break; - } - - $shortenedName = ( $i ? '.../' : '' ) . implode( '/', array_slice( $fileParts, $i ) ); - } - - return $shortenedName; - } - - public static function getIdeLink( $file, $line ) - { - return str_replace( array( '%f', '%l' ), array( $file, $line ), self::$fileLinkFormat ); - } - - /** - * trace helper, shows the place in code inline - * - * @param string $file full path to file - * @param int $lineNumber the line to display - * @param int $padding surrounding lines to show besides the main one - * - * @return bool|string - */ - private static function _showSource( $file, $lineNumber, $padding = 7 ) - { - if ( !$file OR !is_readable( $file ) ) { - # continuing will cause errors - return false; - } - - # open the file and set the line position - $file = fopen( $file, 'r' ); - $line = 0; - - # Set the reading range - $range = array( - 'start' => $lineNumber - $padding, - 'end' => $lineNumber + $padding - ); - - # set the zero-padding amount for line numbers - $format = '% ' . strlen( $range['end'] ) . 'd'; - - $source = ''; - while ( ( $row = fgets( $file ) ) !== false ) { - # increment the line number - if ( ++$line > $range['end'] ) { - break; - } - - if ( $line >= $range['start'] ) { - # make the row safe for output - $row = htmlspecialchars( $row, ENT_NOQUOTES, 'UTF-8' ); - - # trim whitespace and sanitize the row - $row = '' . sprintf( $format, $line ) . ' ' . $row; - - if ( $line === $lineNumber ) { - # apply highlighting to this row - $row = '
' . $row . '
'; - } else { - $row = '
' . $row . '
'; - } - - # add to the captured source - $source .= $row; - } - } - - # close the file - fclose( $file ); - - return $source; - } - - - /** - * returns parameter names that the function was passed, as well as any predefined symbols before function - * call (modifiers) - * - * @param array $trace - * - * @return array( $parameters, $modifier, $callee, $previousCaller ) - */ - private static function _getCalleeInfo( $trace ) - { - $previousCaller = array(); - $miniTrace = array(); - $prevStep = array(); - - # go from back of trace to find first occurrence of call to Kint or its wrappers - while ( $step = array_pop( $trace ) ) { - - if ( self::_stepIsInternal( $step ) ) { - $previousCaller = $prevStep; - break; - } elseif ( isset( $step['file'], $step['line'] ) ) { - unset( $step['object'], $step['args'] ); - array_unshift( $miniTrace, $step ); - } - - $prevStep = $step; - } - $callee = $step; - - if ( !isset( $callee['file'] ) || !is_readable( $callee['file'] ) ) - return array( null, null, $callee, $previousCaller, $miniTrace ); - - - # open the file and read it up to the position where the function call expression ended - $file = fopen( $callee['file'], 'r' ); - $line = 0; - $source = ''; - while ( ( $row = fgets( $file ) ) !== false ) { - if ( ++$line > $callee['line'] ) break; - $source .= $row; - } - fclose( $file ); - $source = self::_removeAllButCode( $source ); - - - if ( empty( $callee['class'] ) ) { - $codePattern = $callee['function']; - } else { - if ( $callee['type'] === '::' ) { - $codePattern = $callee['class'] . "\x07*" . $callee['type'] . "\x07*" . $callee['function'];; - } else /*if ( $callee['type'] === '->' )*/ { - $codePattern = ".*\x07*" . $callee['type'] . "\x07*" . $callee['function'];; - } - } - - // todo if more than one call in one line - not possible to determine variable names - // todo does not recognize string concat - # get the position of the last call to the function - preg_match_all( " - [ - # beginning of statement - [\x07{(] - - # search for modifiers (group 1) - ([-+!@~]*)? - - # spaces - \x07* - - # check if output is assigned to a variable (group 2) todo: does not detect concat - ( - \\$[a-z0-9_]+ # variable - \x07*\\.?=\x07* # assignment - )? - - # possibly a namespace symbol - \\\\? - - # spaces again - \x07* - - # main call to Kint - ({$codePattern}) - - # spaces everywhere - \x07* - - # find the character where kint's opening bracket resides (group 3) - (\\() - - ]ix", - $source, - $matches, - PREG_OFFSET_CAPTURE - ); - - $modifiers = end( $matches[1] ); - $assignment = end( $matches[2] ); - $callToKint = end( $matches[3] ); - $bracket = end( $matches[4] ); - - if ( empty( $callToKint ) ) { - # if a wrapper is misconfigured, don't display the whole file as variable name - return array( array(), $modifiers, $callee, $previousCaller, $miniTrace ); - } - - $modifiers = $modifiers[0]; - if ( $assignment[1] !== -1 ) { - $modifiers .= '@'; - } - - $paramsString = preg_replace( "[\x07+]", ' ', substr( $source, $bracket[1] + 1 ) ); - # we now have a string like this: - # ); - - # remove everything in brackets and quotes, we don't need nested statements nor literal strings which would - # only complicate separating individual arguments - $c = strlen( $paramsString ); - $inString = $escaped = $openedBracket = $closingBracket = false; - $i = 0; - $inBrackets = 0; - $openedBrackets = array(); - - while ( $i < $c ) { - $letter = $paramsString[ $i ]; - - if ( !$inString ) { - if ( $letter === '\'' || $letter === '"' ) { - $inString = $letter; - } elseif ( $letter === '(' || $letter === '[' ) { - $inBrackets++; - $openedBrackets[] = $openedBracket = $letter; - $closingBracket = $openedBracket === '(' ? ')' : ']'; - } elseif ( $inBrackets && $letter === $closingBracket ) { - $inBrackets--; - array_pop( $openedBrackets ); - $openedBracket = end( $openedBrackets ); - $closingBracket = $openedBracket === '(' ? ')' : ']'; - } elseif ( !$inBrackets && $letter === ')' ) { - $paramsString = substr( $paramsString, 0, $i ); - break; - } - } elseif ( $letter === $inString && !$escaped ) { - $inString = false; - } - - # replace whatever was inside quotes or brackets with untypeable characters, we don't - # need that info. We'll later replace the whole string with '...' - if ( $inBrackets > 0 ) { - if ( $inBrackets > 1 || $letter !== $openedBracket ) { - $paramsString[ $i ] = "\x07"; - } - } - if ( $inString ) { - if ( $letter !== $inString || $escaped ) { - $paramsString[ $i ] = "\x07"; - } - } - - $escaped = !$escaped && ( $letter === '\\' ); - $i++; - } - - # by now we have an un-nested arguments list, lets make it to an array for processing further - $arguments = explode( ',', preg_replace( "[\x07+]", '...', $paramsString ) ); - - # test each argument whether it was passed literary or was it an expression or a variable name - $parameters = array(); - $blacklist = array( 'null', 'true', 'false', 'array(...)', 'array()', '"..."', '[...]', 'b"..."', ); - foreach ( $arguments as $argument ) { - $argument = trim( $argument ); - - if ( is_numeric( $argument ) - || in_array( str_replace( "'", '"', strtolower( $argument ) ), $blacklist, true ) - ) { - $parameters[] = null; - } else { - $parameters[] = $argument; - } - } - - return array( $parameters, $modifiers, $callee, $previousCaller, $miniTrace ); - } - - /** - * removes comments and zaps whitespace & true, T_INLINE_HTML => true, T_DOC_COMMENT => true - ); - $whiteSpaceTokens = array( - T_WHITESPACE => true, T_CLOSE_TAG => true, - T_OPEN_TAG => true, T_OPEN_TAG_WITH_ECHO => true, - ); - - $cleanedSource = ''; - foreach ( token_get_all( $source ) as $token ) { - if ( is_array( $token ) ) { - if ( isset( $commentTokens[ $token[0] ] ) ) continue; - - if ( isset( $whiteSpaceTokens[ $token[0] ] ) ) { - $token = "\x07"; - } else { - $token = $token[1]; - } - } elseif ( $token === ';' ) { - $token = "\x07"; - } - - $cleanedSource .= $token; - } - return $cleanedSource; - } - - /** - * returns whether current trace step belongs to Kint or its wrappers - * - * @param $step - * - * @return array - */ - private static function _stepIsInternal( $step ) - { - if ( isset( $step['class'] ) ) { - foreach ( self::$aliases['methods'] as $alias ) { - if ( $alias[0] === strtolower( $step['class'] ) && $alias[1] === strtolower( $step['function'] ) ) { - return true; - } - } - return false; - } else { - return in_array( strtolower( $step['function'] ), self::$aliases['functions'], true ); - } - } - - private static function _parseTrace( array $data ) - { - $trace = array(); - $traceFields = array( 'file', 'line', 'args', 'class' ); - $fileFound = false; # file element must exist in one of the steps - - # validate whether a trace was indeed passed - while ( $step = array_pop( $data ) ) { - if ( !is_array( $step ) || !isset( $step['function'] ) ) return false; - if ( !$fileFound && isset( $step['file'] ) && file_exists( $step['file'] ) ) { - $fileFound = true; - } - - $valid = false; - foreach ( $traceFields as $element ) { - if ( isset( $step[ $element ] ) ) { - $valid = true; - break; - } - } - if ( !$valid ) return false; - - if ( self::_stepIsInternal( $step ) ) { - $step = array( - 'file' => $step['file'], - 'line' => $step['line'], - 'function' => '', - ); - array_unshift( $trace, $step ); - break; - } - if ( $step['function'] !== 'spl_autoload_call' ) { # meaningless - array_unshift( $trace, $step ); - } - } - if ( !$fileFound ) return false; - - $output = array(); - foreach ( $trace as $step ) { - if ( isset( $step['file'] ) ) { - $file = $step['file']; - - if ( isset( $step['line'] ) ) { - $line = $step['line']; - # include the source of this step - if ( self::enabled() === self::MODE_RICH ) { - $source = self::_showSource( $file, $line ); - } - } - } - - $function = $step['function']; - - if ( in_array( $function, array( 'include', 'include_once', 'require', 'require_once' ) ) ) { - if ( empty( $step['args'] ) ) { - # no arguments - $args = array(); - } else { - # sanitize the included file path - $args = array( 'file' => self::shortenPath( $step['args'][0] ) ); - } - } elseif ( isset( $step['args'] ) ) { - if ( empty( $step['class'] ) && !function_exists( $function ) ) { - # introspection on closures or language constructs in a stack trace is impossible before PHP 5.3 - $params = null; - } else { - try { - if ( isset( $step['class'] ) ) { - if ( method_exists( $step['class'], $function ) ) { - $reflection = new ReflectionMethod( $step['class'], $function ); - } else if ( isset( $step['type'] ) && $step['type'] == '::' ) { - $reflection = new ReflectionMethod( $step['class'], '__callStatic' ); - } else { - $reflection = new ReflectionMethod( $step['class'], '__call' ); - } - } else { - $reflection = new ReflectionFunction( $function ); - } - - # get the function parameters - $params = $reflection->getParameters(); - } catch ( Exception $e ) { # avoid various PHP version incompatibilities - $params = null; - } - } - - $args = array(); - foreach ( $step['args'] as $i => $arg ) { - if ( isset( $params[ $i ] ) ) { - # assign the argument by the parameter name - $args[ $params[ $i ]->name ] = $arg; - } else { - # assign the argument by number - $args[ '#' . ( $i + 1 ) ] = $arg; - } - } - } - - if ( isset( $step['class'] ) ) { - # Class->method() or Class::method() - $function = $step['class'] . $step['type'] . $function; - } - - // todo it's possible to parse the object name out from the source! - $output[] = array( - 'function' => $function, - 'args' => isset( $args ) ? $args : null, - 'file' => isset( $file ) ? $file : null, - 'line' => isset( $line ) ? $line : null, - 'source' => isset( $source ) ? $source : null, - 'object' => isset( $step['object'] ) ? $step['object'] : null, - ); - - unset( $function, $args, $file, $line, $source ); - } - - return $output; - } -} - - -if ( !function_exists( 'd' ) ) { - /** - * Alias of Kint::dump() - * - * @return string - */ - function d() - { - if ( !Kint::enabled() ) return ''; - $_ = func_get_args(); - return call_user_func_array( array( 'Kint', 'dump' ), $_ ); - } -} - -if ( !function_exists( 'dd' ) ) { - /** - * Alias of Kint::dump() - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - * @deprecated - */ - function dd() - { - if ( !Kint::enabled() ) return ''; - - echo "
Kint: dd() is being deprecated, please use ddd() instead
\n"; - $_ = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $_ ); - die; - } -} - -if ( !function_exists( 'ddd' ) ) { - /** - * Alias of Kint::dump() - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function ddd() - { - if ( !Kint::enabled() ) return ''; - $_ = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $_ ); - die; - } -} - -if ( !function_exists( 's' ) ) { - /** - * Alias of Kint::dump(), however the output is in plain htmlescaped text and some minor visibility enhancements - * added. If run in CLI mode, output is pure whitespace. - * - * To force rendering mode without autodetecting anything: - * - * Kint::enabled( Kint::MODE_PLAIN ); - * Kint::dump( $variable ); - * - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function s() - { - $enabled = Kint::enabled(); - if ( !$enabled ) return ''; - - if ( $enabled === Kint::MODE_WHITESPACE ) { # if already in whitespace, don't elevate to plain - $restoreMode = Kint::MODE_WHITESPACE; - } else { - $restoreMode = Kint::enabled( # remove cli colors in cli mode; remove rich interface in HTML mode - PHP_SAPI === 'cli' ? Kint::MODE_WHITESPACE : Kint::MODE_PLAIN - ); - } - - $params = func_get_args(); - $dump = call_user_func_array( array( 'Kint', 'dump' ), $params ); - Kint::enabled( $restoreMode ); - return $dump; - } -} - -if ( !function_exists( 'sd' ) ) { - /** - * @see s() - * - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function sd() - { - $enabled = Kint::enabled(); - if ( !$enabled ) return ''; - - if ( $enabled !== Kint::MODE_WHITESPACE ) { - Kint::enabled( - PHP_SAPI === 'cli' ? Kint::MODE_WHITESPACE : Kint::MODE_PLAIN - ); - } - - $params = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $params ); - die; - } -} diff --git a/vendor/kint-php/kint/LICENCE b/vendor/kint-php/kint/LICENCE deleted file mode 100644 index 936fe1f..0000000 --- a/vendor/kint-php/kint/LICENCE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Rokas Šleinius (raveren@gmail.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. \ No newline at end of file diff --git a/vendor/kint-php/kint/README.md b/vendor/kint-php/kint/README.md index 7232b23..b23f346 100644 --- a/vendor/kint-php/kint/README.md +++ b/vendor/kint-php/kint/README.md @@ -1,141 +1,82 @@ # Kint - debugging helper for PHP developers -[![Total Downloads](https://poser.pugx.org/raveren/kint/downloads.png)](https://packagist.org/packages/raveren/kint) +[![](https://travis-ci.org/kint-php/kint.svg?branch=master)](https://travis-ci.org/kint-php/kint) - -![Screenshot](http://kint-php.github.com/kint/img/preview.png) +![Screenshot](https://kint-php.github.io/kint/images/intro.png) ## What am I looking at? -At first glance Kint is just a pretty replacement for **[var_dump()](http://php.net/manual/en/function.var-dump.php)**, **[print_r()](http://php.net/manual/en/function.print-r.php)** and **[debug_backtrace()](http://php.net/manual/en/function.debug-backtrace.php)**. - -However, it's much, *much* more than that. Even the excellent `xdebug` var_dump improvements don't come close - you will eventually wonder how you developed without it. - -Just to list some of the most useful features: - - * The **variable name and file + line** where Kint was called from is displayed; - * You can **disable all Kint output easily and on the fly** - so you can even debug live systems without anyone knowing (even though you know you shouldn't be doing that!:). - * **CLI is detected** and formatted for automatically (but everything can be overridden on the fly) - if your setup supports it, the output is colored too:
- ![Kint CLI output](http://i.imgur.com/6B9MCLw.png) - * **Debug backtraces** are finally fully readable, actually informative and a pleasure to the eye. - * Kint has been **in active development since 2010** and is shipped with [Drupal 8](https://www.drupal.org/) by default as part of its devel suite. You can trust it not being abandoned or getting left behind in features. - * Variable content is **displayed in the most informative way** - and you *never, ever* miss anything! Kint guarantees you see every piece of physically available information about everything you are dumping*; - * in some cases, the content is truncated where it would otherwise be too large to view anyway - but the user is always made aware of that; - * Some variable content types have an alternative display - for example you will be able see `JSON` in its raw form - but also as an associative array:
- ![Kint displays data intelligently](http://i.imgur.com/9P57Ror.png)
- There are more than ten custom variable type displays inbuilt and more are added periodically. +At first glance Kint is just a pretty replacement for **[var_dump()](https://secure.php.net/function.var_dump)**, **[print_r()](https://secure.php.net/function.print_r)** and **[debug_backtrace()](https://secure.php.net/function.debug_backtrace)**. +However, it's much, *much* more than that. You will eventually wonder how you developed without it. -## Installation and Usage +## Installation One of the main goals of Kint is to be **zero setup**. -[Download the archive](https://github.com/kint-php/kint/archive/master.zip) and simply +[Download the file](https://raw.githubusercontent.com/kint-php/kint/master/build/kint.phar) and simply ```php ');`) - so even if you accidentally leave a dump in production, no one will know. - * `sd()` and `ddd()` are shorthands for `s();die;` and `d();die;` respectively. - * Kint has *keyboard shortcuts*! When Kint is visible, press D on the keyboard and you will be able to traverse the tree with arrows and tab keys - and expand/collapse nodes with space or enter. - * Double clicking the `[+]` sign in the output will expand/collapse ALL nodes; triple clicking big blocks of text will select it all. - * To catch output from Kint just assign it to a variablebeta - - ```php -$o = Kint::dump($GLOBALS); -// yes, the assignment is automatically detected, and $o -// now holds whatever was going to be printed otherwise. - -// it also supports modifiers (read on) for the variable: -~$o = Kint::dump($GLOBALS); // this output will be in whitespace -``` - * There are a couple of real-time modifiers you can use: +* Kint is enabled by default, set `Kint::$enabled_mode = false;` to turn it completely off. + The best practice is to enable Kint in a development environment only - so even if you accidentally leave a dump in production, no one will know. +* See the buttons on the right of the output? Click them to open a new tab, show the access path for the value, or show a search box. +* To see the output where you called Kint instead of the docked toolbar at the bottom of the page add the line `Kint\Renderer\RichRenderer::$folder = false;` right after you include Kint. +* There are a couple of real-time modifiers you can use: * `~d($var)` this call will output in plain text format. - * `+d($var)` will disregard depth level limits and output everything (careful, this can hang your browser on huge objects) - * `!d($var)` will show expanded rich output. - * `-d($var)` will attempt to `ob_clean` the previous output so if you're dumping something inside a HTML page, you will still see Kint output. - You can combine modifiers too: `~+d($var)` - * To force a specific dump output type just pass it to the `Kint::enabled()` method. Available options are: `Kint::MODE_RICH` (default), `Kint::MODE_PLAIN`, `Kint::MODE_WHITESPACE` and `Kint::MODE_CLI`: - - ```php -Kint::enabled(Kint::MODE_WHITESPACE); -$kintOutput = Kint::dump($GLOBALS); -// now $kintOutput can be written to a text log file and -// be perfectly readable from there -``` - * To change display theme, use `Kint::$theme = '';` where available options are: `'original'` (default), `'solarized'`, `'solarized-dark'` and `'aante-light'`. Here's an (outdated) preview:
- ![Kint themes](http://kint-php.github.io/kint/img/theme-preview.png) - * Kint also includes a naïve profiler you may find handy. It's for determining relatively which code blocks take longer than others: - - ```php -Kint::dump( microtime() ); // just pass microtime() -sleep( 1 ); -Kint::dump( microtime(), 'after sleep(1)' ); -sleep( 2 ); -ddd( microtime(), 'final call, after sleep(2)' ); -``` - ![Kint profiling feature](http://i.imgur.com/tmHUMW4.png) - * See the tiny arrows on the right of the output? Click them (not in the image though :) to open its parent node in a separate browser window. - ----- - -### Author - -**Rokas Šleinius** (raveren) - -### License + * `+d($var)` will disregard depth level limits and output everything. + *Careful, this can hang your browser on large objects!* + * `!d($var)` will expand the output automatically. + * `-d($var)` will attempt to `ob_clean` the previous output and flush after printing. + * You can combine modifiers too: `~+d($var)` +* Double clicking the + sign will open/close it and all its children. +* Triple clicking the + sign in will open/close everything on the page. +* Add heavy classes to the blacklist to improve performance: + `Kint\Parser\BlacklistPlugin::$shallow_blacklist[] = 'Psr\Container\ContainerInterface';` +* To change display theme, use `Kint\Renderer\RichRenderer::$theme = 'theme.css';`. You can pass the absolute path to a CSS file, or use one of the built in themes: + * `original.css` (default) + * `solarized.css` + * `solarized-dark.css` + * `aante-light.css` +* Kint has *keyboard shortcuts*! When Kint is visible, press D on the keyboard and you will be able to traverse the tree with arrows, HJKL, and TAB keys - and expand/collapse nodes with SPACE or ENTER. +* You can write plugins and wrapper functions to customize dump behavior! +* Read [the full documentation](https://kint-php.github.io/kint/) for more information + +## Authors + +[**Jonathan Vollebregt** (jnvsor)](https://github.com/jnvsor) +[**Rokas Šleinius** (raveren)](https://github.com/raveren) + +## License Licensed under the MIT License diff --git a/vendor/kint-php/kint/composer.json b/vendor/kint-php/kint/composer.json index beb0dc3..9fe64a4 100644 --- a/vendor/kint-php/kint/composer.json +++ b/vendor/kint-php/kint/composer.json @@ -1,29 +1,83 @@ { "name": "kint-php/kint", - "description": "Kint - debugging helper for PHP developers", + "description": "Kint - debugging tool for PHP developers", "keywords": ["kint", "php", "debug"], "type": "library", - "homepage": "https://github.com/kint-php/kint", + "homepage": "https://kint-php.github.io/kint/", "license": "MIT", "authors": [ + { + "name": "Jonathan Vollebregt", + "homepage": "https://github.com/jnvsor" + }, { "name": "Rokas Šleinius", - "homepage": "https://github.com/kint-php" + "homepage": "https://github.com/raveren" }, { "name": "Contributors", - "homepage": "https://github.com/kint-php/kint/contributors" + "homepage": "https://github.com/kint-php/kint/graphs/contributors" } ], "require": { - "php": ">=5.1.0" + "php": ">=5.3.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpunit/phpunit": "^4.0", + "symfony/finder": "^2.0 || ^3.0 || ^4.0", + "seld/phar-utils": "^1.0", + "vimeo/psalm": "^3.0" }, "autoload": { - "files": ["Kint.class.php"] + "files": ["init.php"], + "psr-4": { + "Kint\\": "src/" + } }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" + "autoload-dev": { + "psr-4": { + "Kint\\Test\\": "tests/" } + }, + "config": { + "platform": { + "php": "7.3" + } + }, + "scripts": { + "post-update-cmd": "npm ci", + "post-install-cmd": "@post-update-cmd", + "clean": [ + "rm -rf resources/compiled/", + "rm -rf build/" + ], + "format": [ + "@format:php", + "@format:js", + "@format:sass" + ], + "format:php": "php-cs-fixer fix", + "format:js": "npm run format:js", + "format:sass": "npm run format:sass", + "build": [ + "@build:sass", + "@build:js", + "@build:php" + ], + "build:sass": "npm run build:sass", + "build:js": "npm run build:js", + "build:php": "php ./build.php", + "analyze": "psalm --show-info=false" + }, + "suggest": { + "kint-php/kint-twig": "Provides d() and s() functions in twig templates", + "kint-php/kint-js": "Provides a simplified dump to console.log()", + "ext-mbstring": "Provides string encoding detection", + "ext-iconv": "Provides fallback detection for ambiguous legacy string encodings such as the Windows and ISO 8859 code pages", + "ext-ctype": "Simple data type tests", + "symfony/polyfill-mbstring": "Replacement for ext-mbstring if missing", + "symfony/polyfill-iconv": "Replacement for ext-iconv if missing", + "symfony/polyfill-ctype": "Replacement for ext-ctype if missing" } } diff --git a/vendor/kint-php/kint/config.default.php b/vendor/kint-php/kint/config.default.php deleted file mode 100644 index 72f0a69..0000000 --- a/vendor/kint-php/kint/config.default.php +++ /dev/null @@ -1,94 +0,0 @@ - '<ROOT>' ) - * - * [!] EXAMPLE (for Kohana framework): - * - * $_kintSettings['appRootDirs'] = array( - * APPPATH => 'APPPATH', // make sure the constants are already defined at the time of including this config file - * SYSPATH => 'SYSPATH', - * MODPATH => 'MODPATH', - * DOCROOT => 'DOCROOT', - * ); - * - * [!] EXAMPLE #2 (for a semi-universal approach) - * - * $_kintSettings['appRootDirs'] = array( - * realpath( __DIR__ . '/../../..' ) => 'ROOT', // go up as many levels as needed in the realpath() param - * ); - * - * $_kintSettings['fileLinkFormat'] = 'http://localhost:8091/?message=%f:%l'; - * - */ -$_kintSettings['appRootDirs'] = isset( $_SERVER['DOCUMENT_ROOT'] ) - ? array( $_SERVER['DOCUMENT_ROOT'] => '<ROOT>' ) - : array(); - - -/** @var int max length of string before it is truncated and displayed separately in full. Zero or false to disable */ -$_kintSettings['maxStrLength'] = 80; - -/** @var array possible alternative char encodings in order of probability, eg. array('windows-1251') */ -$_kintSettings['charEncodings'] = array( - 'UTF-8', - 'Windows-1252', # Western; includes iso-8859-1, replace this with windows-1251 if you have Russian code - 'euc-jp', # Japanese - - # all other charsets cannot be differentiated by PHP and/or are not supported by mb_* functions, - # I need a better means of detecting the codeset, no idea how though :( - - // 'iso-8859-13', # Baltic - // 'windows-1251', # Cyrillic - // 'windows-1250', # Central European - // 'shift_jis', # Japanese - // 'iso-2022-jp', # Japanese -); - - -/** @var int max array/object levels to go deep, if zero no limits are applied */ -$_kintSettings['maxLevels'] = 7; - - -/** @var string name of theme for rich view */ -$_kintSettings['theme'] = 'original'; - - -/** @var bool enable detection when Kint is command line. Formats output with whitespace only; does not HTML-escape it */ -$_kintSettings['cliDetection'] = true; - -/** @var bool in addition to above setting, enable detection when Kint is run in *UNIX* command line. - * Attempts to add coloring, but if seen as plain text, the color information is visible as gibberish - */ -$_kintSettings['cliColors'] = true; - - -unset( $_kintSettings ); \ No newline at end of file diff --git a/vendor/kint-php/kint/decorators/plain.php b/vendor/kint-php/kint/decorators/plain.php deleted file mode 100644 index ca292a1..0000000 --- a/vendor/kint-php/kint/decorators/plain.php +++ /dev/null @@ -1,335 +0,0 @@ - '1', 'dark' => '2', - 'italic' => '3', 'underline' => '4', - 'blink' => '5', 'reverse' => '7', - 'concealed' => '8', 'default' => '39', - - # colors - 'black' => '30', 'red' => '31', - 'green' => '32', 'yellow' => '33', - 'blue' => '34', 'magenta' => '35', - 'cyan' => '36', 'light_gray' => '37', - 'dark_gray' => '90', 'light_red' => '91', - 'light_green' => '92', 'light_yellow' => '93', - 'light_blue' => '94', 'light_magenta' => '95', - 'light_cyan' => '96', 'white' => '97', - - # backgrounds - 'bg_default' => '49', 'bg_black' => '40', - 'bg_red' => '41', 'bg_green' => '42', - 'bg_yellow' => '43', 'bg_blue' => '44', - 'bg_magenta' => '45', 'bg_cyan' => '46', - 'bg_light_gray' => '47', 'bg_dark_gray' => '100', - 'bg_light_red' => '101', 'bg_light_green' => '102', - 'bg_light_yellow' => '103', 'bg_light_blue' => '104', - 'bg_light_magenta' => '105', 'bg_light_cyan' => '106', - 'bg_white' => '107', - ); - private static $_utfSymbols = array( - '┌', '═', '┐', - '│', - '└', '─', '┘', - ); - private static $_winShellSymbols = array( - "\xda", "\xdc", "\xbf", - "\xb3", - "\xc0", "\xc4", "\xd9", - ); - private static $_htmlSymbols = array( - "┌", "▄", "┐", - "│", - "└", "─", "┘", - ); - - public static function decorate( kintVariableData $kintVar, $level = 0 ) - { - $output = ''; - if ( $level === 0 ) { - $name = $kintVar->name ? $kintVar->name : 'literal'; - $kintVar->name = null; - - $output .= self::_title( $name ); - } - - - $space = str_repeat( $s = ' ', $level ); - $output .= $space . self::_drawHeader( $kintVar ); - - - if ( $kintVar->extendedValue !== null ) { - $output .= ' ' . ( $kintVar->type === 'array' ? '[' : '(' ) . PHP_EOL; - - - if ( is_array( $kintVar->extendedValue ) ) { - foreach ( $kintVar->extendedValue as $v ) { - $output .= self::decorate( $v, $level + 1 ); - } - } elseif ( is_string( $kintVar->extendedValue ) ) { - $output .= $space . $s . $kintVar->extendedValue . PHP_EOL; # "depth too great" or similar - } else { - $output .= self::decorate( $kintVar->extendedValue, $level + 1 ); //it's kintVariableData - } - $output .= $space . ( $kintVar->type === 'array' ? ']' : ')' ) . PHP_EOL; - } else { - $output .= PHP_EOL; - } - - return $output; - } - - public static function decorateTrace( $traceData ) - { - $output = self::_title( 'TRACE' ); - $lastStep = count( $traceData ); - foreach ( $traceData as $stepNo => $step ) { - $title = str_pad( ++$stepNo . ': ', 4, ' ' ); - - $title .= self::_colorize( - ( isset( $step['file'] ) ? self::_buildCalleeString( $step ) : 'PHP internal call' ), - 'title' - ); - - if ( !empty( $step['function'] ) ) { - $title .= ' ' . $step['function']; - if ( isset( $step['args'] ) ) { - $title .= '('; - if ( empty( $step['args'] ) ) { - $title .= ')'; - } else { - } - $title .= PHP_EOL; - } - } - - $output .= $title; - - if ( !empty( $step['args'] ) ) { - $appendDollar = $step['function'] === '{closure}' ? '' : '$'; - - $i = 0; - foreach ( $step['args'] as $name => $argument ) { - $argument = kintParser::factory( - $argument, - $name ? $appendDollar . $name : '#' . ++$i - ); - $argument->operator = $name ? ' =' : ':'; - $maxLevels = Kint::$maxLevels; - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels + 2; - } - $output .= self::decorate( $argument, 2 ); - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels; - } - } - $output .= ' )' . PHP_EOL; - } - - if ( !empty( $step['object'] ) ) { - $output .= self::_colorize( - ' ' . self::_char( '─', 27 ) . ' Callee object ' . self::_char( '─', 34 ), - 'title' - ); - - $maxLevels = Kint::$maxLevels; - if ( $maxLevels ) { - # in cli the terminal window is filled too quickly to display huge objects - Kint::$maxLevels = Kint::enabled() === Kint::MODE_CLI - ? 1 - : $maxLevels + 1; - } - $output .= self::decorate( kintParser::factory( $step['object'] ), 1 ); - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels; - } - } - - if ( $stepNo !== $lastStep ) { - $output .= self::_colorize( self::_char( '─', 80 ), 'title' ); - } - } - - return $output; - } - - - private static function _colorize( $text, $type, $nlAfter = true ) - { - $nlAfter = $nlAfter ? PHP_EOL : ''; - - switch ( Kint::enabled() ) { - case Kint::MODE_PLAIN: - if ( !self::$_enableColors ) return $text . $nlAfter; - - switch ( $type ) { - case 'value': - $text = "{$text}"; - break; - case 'type': - $text = "{$text}"; - break; - case 'title': - $text = "{$text}"; - break; - } - - return $text . $nlAfter; - break; - case Kint::MODE_CLI: - if ( !self::$_enableColors ) return $text . $nlAfter; - - $optionsMap = array( - 'title' => "\x1b[36m", # cyan - 'type' => "\x1b[35;1m", # magenta bold - 'value' => "\x1b[32m", # green - ); - - return $optionsMap[ $type ] . $text . "\x1b[0m" . $nlAfter; - break; - case Kint::MODE_WHITESPACE: - default: - return $text . $nlAfter; - break; - } - } - - - private static function _char( $char, $repeat = null ) - { - switch ( Kint::enabled() ) { - case Kint::MODE_PLAIN: - $char = self::$_htmlSymbols[ array_search( $char, self::$_utfSymbols, true ) ]; - break; - case Kint::MODE_CLI: - $inWindowsShell = PHP_SAPI === 'cli' && DIRECTORY_SEPARATOR !== '/'; - if ( $inWindowsShell ) { - $char = self::$_winShellSymbols[ array_search( $char, self::$_utfSymbols, true ) ]; - } - break; - case Kint::MODE_WHITESPACE: - default: - break; - } - - return $repeat ? str_repeat( $char, $repeat ) : $char; - } - - private static function _title( $text ) - { - $escaped = kintParser::escape( $text ); - $lengthDifference = strlen( $escaped ) - strlen( $text ); - return - self::_colorize( - self::_char( '┌' ) . self::_char( '─', 78 ) . self::_char( '┐' ) . PHP_EOL - . self::_char( '│' ), - 'title', - false - ) - - . self::_colorize( str_pad( $escaped, 78 + $lengthDifference, ' ', STR_PAD_BOTH ), 'title', false ) - - . self::_colorize( self::_char( '│' ) . PHP_EOL - . self::_char( '└' ) . self::_char( '─', 78 ) . self::_char( '┘' ), - 'title' - ); - } - - public static function wrapStart() - { - if ( Kint::enabled() === Kint::MODE_PLAIN ) { - return '
';
-		}
-		return '';
-	}
-
-	public static function wrapEnd( $callee, $miniTrace, $prevCaller )
-	{
-		$lastLine = self::_colorize( self::_char( "═", 80 ), 'title' );
-		$lastChar = Kint::enabled() === Kint::MODE_PLAIN ? '
' : ''; - - - if ( !Kint::$displayCalledFrom ) return $lastLine . $lastChar; - - - return $lastLine . self::_colorize( 'Called from ' . self::_buildCalleeString( $callee ), 'title' ) . $lastChar; - } - - - private static function _drawHeader( kintVariableData $kintVar ) - { - $output = ''; - - if ( $kintVar->access ) { - $output .= ' ' . $kintVar->access; - } - - if ( $kintVar->name !== null && $kintVar->name !== '' ) { - $output .= ' ' . kintParser::escape( $kintVar->name ); - } - - if ( $kintVar->operator ) { - $output .= ' ' . $kintVar->operator; - } - - $output .= ' ' . self::_colorize( $kintVar->type, 'type', false ); - - if ( $kintVar->size !== null ) { - $output .= ' (' . $kintVar->size . ')'; - } - - - if ( $kintVar->value !== null && $kintVar->value !== '' ) { - $output .= ' ' . self::_colorize( - $kintVar->value, # escape shell - 'value', - false - ); - } - - return ltrim( $output ); - } - - private static function _buildCalleeString( $callee ) - { - if ( Kint::enabled() === Kint::MODE_CLI ) { // todo win/nix - return "{$callee['file']}:{$callee['line']}"; - } - - $url = Kint::getIdeLink( $callee['file'], $callee['line'] ); - $shortenedName = Kint::shortenPath( $callee['file'] ) . ':' . $callee['line']; - - if ( Kint::enabled() === Kint::MODE_PLAIN ) { - if ( strpos( $url, 'http://' ) === 0 ) { - $calleeInfo = "{$shortenedName}"; - } else { - $calleeInfo = "{$shortenedName}"; - } - } else { - $calleeInfo = $shortenedName; - } - - return $calleeInfo; - } - - public static function init() - { - self::$_enableColors = - Kint::$cliColors - && ( DIRECTORY_SEPARATOR === '/' || getenv( 'ANSICON' ) !== false || getenv( 'ConEmuANSI' ) === 'ON' ); - - return Kint::enabled() === Kint::MODE_PLAIN - ? '' - : ''; - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/decorators/rich.php b/vendor/kint-php/kint/decorators/rich.php deleted file mode 100644 index 5825ac9..0000000 --- a/vendor/kint-php/kint/decorators/rich.php +++ /dev/null @@ -1,319 +0,0 @@ -'; - - $extendedPresent = $kintVar->extendedValue !== null || $kintVar->_alternatives !== null; - - if ( $extendedPresent ) { - $class = 'kint-parent'; - if ( Kint::$expandedByDefault ) { - $class .= ' kint-show'; - } - $output .= '
'; - } else { - $output .= '
'; - } - - if ( $extendedPresent ) { - $output .= ''; - } - - $output .= self::_drawHeader( $kintVar ) . $kintVar->value . '
'; - - - if ( $extendedPresent ) { - $output .= '
'; - } - - if ( isset( $kintVar->extendedValue ) ) { - - if ( is_array( $kintVar->extendedValue ) ) { - foreach ( $kintVar->extendedValue as $v ) { - $output .= self::decorate( $v ); - } - } elseif ( is_string( $kintVar->extendedValue ) ) { - $output .= '
' . $kintVar->extendedValue . '
'; - } else { - $output .= self::decorate( $kintVar->extendedValue ); //it's kint's container - } - - } elseif ( isset( $kintVar->_alternatives ) ) { - $output .= "
    "; - - foreach ( $kintVar->_alternatives as $k => $var ) { - $active = $k === 0 ? ' class="kint-active-tab"' : ''; - $output .= "" . self::_drawHeader( $var, false ) . ''; - } - - $output .= "
    "; - - foreach ( $kintVar->_alternatives as $var ) { - $output .= "
  • "; - - $var = $var->value; - - if ( is_array( $var ) ) { - foreach ( $var as $v ) { - $output .= is_string( $v ) - ? '
    ' . $v . '
    ' - : self::decorate( $v ); - } - } elseif ( is_string( $var ) ) { - $output .= '
    ' . $var . '
    '; - } elseif ( isset( $var ) ) { - throw new Exception( - 'Kint has encountered an error, ' - . 'please paste this report to https://github.com/kint-php/kint/issues
    ' - . 'Error encountered at ' . basename( __FILE__ ) . ':' . __LINE__ . '
    ' - . ' variables: ' - . htmlspecialchars( var_export( $kintVar->_alternatives, true ), ENT_QUOTES ) - ); - } - - $output .= "
  • "; - } - - $output .= "
"; - } - if ( $extendedPresent ) { - $output .= '
'; - } - - $output .= ''; - - return $output; - } - - public static function decorateTrace( $traceData ) - { - $output = '
'; - - foreach ( $traceData as $i => $step ) { - $class = 'kint-parent'; - if ( Kint::$expandedByDefault ) { - $class .= ' kint-show'; - } - - $output .= '
' - . '' . ( $i + 1 ) . ' ' - . '' - . ''; - - if ( isset( $step['file'] ) ) { - $output .= self::_ideLink( $step['file'], $step['line'] ); - } else { - $output .= 'PHP internal call'; - } - - $output .= ''; - - $output .= $step['function']; - - if ( isset( $step['args'] ) ) { - $output .= '(' . implode( ', ', array_keys( $step['args'] ) ) . ')'; - } - $output .= '
'; - $firstTab = ' class="kint-active-tab"'; - $output .= '
    '; - - if ( !empty( $step['source'] ) ) { - $output .= "Source"; - $firstTab = ''; - } - - if ( !empty( $step['args'] ) ) { - $output .= "Arguments"; - $firstTab = ''; - } - - if ( !empty( $step['object'] ) ) { - kintParser::reset(); - $calleeDump = kintParser::factory( $step['object'] ); - - $output .= "Callee object [{$calleeDump->type}]"; - } - - - $output .= '
    '; - - - if ( !empty( $step['source'] ) ) { - $output .= "
  • {$step['source']}
  • "; - } - - if ( !empty( $step['args'] ) ) { - $output .= "
  • "; - foreach ( $step['args'] as $k => $arg ) { - kintParser::reset(); - $output .= self::decorate( kintParser::factory( $arg, $k ) ); - } - $output .= "
  • "; - } - if ( !empty( $step['object'] ) ) { - $output .= "
  • " . self::decorate( $calleeDump ) . "
  • "; - } - - $output .= '
'; - } - $output .= '
'; - - return $output; - } - - - /** - * called for each dump, opens the html tag - * - * @param array $callee caller information taken from debug backtrace - * - * @return string - */ - public static function wrapStart() - { - return "
"; - } - - - /** - * closes Kint::_wrapStart() started html tags and displays callee information - * - * @param array $callee caller information taken from debug backtrace - * @param array $miniTrace full path to kint call - * @param array $prevCaller previous caller information taken from debug backtrace - * - * @return string - */ - public static function wrapEnd( $callee, $miniTrace, $prevCaller ) - { - if ( !Kint::$displayCalledFrom ) { - return '
'; - } - - $callingFunction = ''; - $calleeInfo = ''; - $traceDisplay = ''; - if ( isset( $prevCaller['class'] ) ) { - $callingFunction = $prevCaller['class']; - } - if ( isset( $prevCaller['type'] ) ) { - $callingFunction .= $prevCaller['type']; - } - if ( isset( $prevCaller['function'] ) - && !in_array( $prevCaller['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) - ) { - $callingFunction .= $prevCaller['function'] . '()'; - } - $callingFunction and $callingFunction = " [{$callingFunction}]"; - - - if ( isset( $callee['file'] ) ) { - $calleeInfo .= 'Called from ' . self::_ideLink( $callee['file'], $callee['line'] ); - } - - if ( !empty( $miniTrace ) ) { - $traceDisplay = '
    '; - foreach ( $miniTrace as $step ) { - $traceDisplay .= '
  1. ' . self::_ideLink( $step['file'], $step['line'] ); // closing tag not required - if ( isset( $step['function'] ) - && !in_array( $step['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) - ) { - $classString = ' ['; - if ( isset( $step['class'] ) ) { - $classString .= $step['class']; - } - if ( isset( $step['type'] ) ) { - $classString .= $step['type']; - } - $classString .= $step['function'] . '()]'; - $traceDisplay .= $classString; - } - } - $traceDisplay .= '
'; - - $calleeInfo = '' . $calleeInfo; - } - - - return "
" - . ' ' - . "{$calleeInfo}{$callingFunction}{$traceDisplay}" - . "
"; - } - - - private static function _drawHeader( kintVariableData $kintVar, $verbose = true ) - { - $output = ''; - if ( $verbose ) { - if ( $kintVar->access !== null ) { - $output .= "" . $kintVar->access . " "; - } - - if ( $kintVar->name !== null && $kintVar->name !== '' ) { - $output .= "" . kintParser::escape( $kintVar->name ) . " "; - } - - if ( $kintVar->operator !== null ) { - $output .= $kintVar->operator . " "; - } - } - - if ( $kintVar->type !== null ) { - if ( $verbose ) { - $output .= ""; - } - - $output .= $kintVar->type; - - if ( $verbose ) { - $output .= ""; - } else { - $output .= " "; - } - } - - - if ( $kintVar->size !== null ) { - $output .= "(" . $kintVar->size . ") "; - } - - return $output; - } - - private static function _ideLink( $file, $line ) - { - $shortenedPath = Kint::shortenPath( $file ); - if ( !Kint::$fileLinkFormat ) return $shortenedPath . ':' . $line; - - $ideLink = Kint::getIdeLink( $file, $line ); - $class = ( strpos( $ideLink, 'http://' ) === 0 ) ? 'class="kint-ide-link" ' : ''; - return "{$shortenedPath}:{$line}"; - } - - - /** - * produces css and js required for display. May be called multiple times, will only produce output once per - * pageload or until `-` or `@` modifier is used - * - * @return string - */ - public static function init() - { - $baseDir = KINT_DIR . 'view/compiled/'; - - if ( !is_readable( $cssFile = $baseDir . Kint::$theme . '.css' ) ) { - $cssFile = $baseDir . 'original.css'; - } - - return - '' - . '\n"; - } -} diff --git a/vendor/kint-php/kint/examples/overview.php b/vendor/kint-php/kint/examples/overview.php deleted file mode 100644 index 70f5be9..0000000 --- a/vendor/kint-php/kint/examples/overview.php +++ /dev/null @@ -1,176 +0,0 @@ -additionalData = $data; } - - /** - * @return \DateTime date object - */ - public function getCreatedDate() { } - - /** - * @param \DateTime $date - */ - public function setCreatedDate( DateTime $date ) { $this->createdDate = $date; } - - /** - * Dummy method that triggers trace - */ - public function ensure() { Kint::trace(); } -} - -class UserManager -{ - private $user; - - /** - * Get user from manager - */ - public function getUser() { return $this->user; } - - /** - * Debug specific user - * - * @param \User $user - */ - public function debugUser( $user ) - { - $this->user = $user; - d( $this->getUser() ); - } - - /** - * Ensure user (triggers ensure() method on \User object that trace) - * - * @void - */ - public function ensureUser() { $this->user->ensure(); } -} - -$user = new User; -$user->setAdditionalData( array( - 'last_login' => new DateTime(), - 'current_unix_timestamp' => time(), - 'random_rgb_color_code' => '#FF9900', - 'impressions' => 60, - 'nickname' => 'Someuser', - ) -); -$user->setCreatedDate( new DateTime( '2013-10-10' ) ); -$userManager = new UserManager(); - -for ( $i = 1; $i < 6; $i++ ) { - $tabularData[] = array( - 'date' => "2013-01-0{$i}", - 'allowed' => $i % 3 == 0, - 'action' => "action {$i}", - 'clicks' => rand( 100, 50000 ), - 'impressions' => rand( 10000, 500000 ), - ); - - if ( $i % 2 == 0 ) { - unset( $tabularData[ $i - 1 ]['clicks'] ); - } -} - -$nestedArray = array(); - -for ( $i = 1; $i < 6; $i++ ) { - $nestedArray["user group {$i}"] = array( - "user {$i}" => array( - 'name' => "Name {$i}", - 'surname' => "Surname {$i}" - ), - - 'data' => array( - 'conversions' => rand( 100, 5000 ), - 'spent' => array( 'currency' => 'EUR', 'amount' => rand( 10000, 500000 ) ) - ), - ); -} -?> - - - Kint PHP debugging tool - overview - - -
- - -

Kint PHP debugging tool - overview

-
-

Debug variables

-debugUser( $user ); -d( $userManager, $tabularData ); -d( $nestedArray ); -?> -

Trace

-ensureUser(); ?> - - \ No newline at end of file diff --git a/vendor/kint-php/kint/inc/kintObject.class.php b/vendor/kint-php/kint/inc/kintObject.class.php deleted file mode 100644 index 6365123..0000000 --- a/vendor/kint-php/kint/inc/kintObject.class.php +++ /dev/null @@ -1,19 +0,0 @@ - self::$_level, - 'objects' => self::$_objects, - ); - - self::$_level++; - - $varData = new kintVariableData; - $varData->name = $name; - - # first parse the variable based on its type - $varType = gettype( $variable ); - $varType === 'unknown type' and $varType = 'unknown'; # PHP 5.4 inconsistency - $methodName = '_parse_' . $varType; - - # objects can be presented in a different way altogether, INSTEAD, not ALONGSIDE the generic parser - if ( $varType === 'object' ) { - foreach ( self::$_objectParsers as $parserClass ) { - $className = 'Kint_Objects_' . $parserClass; - - /** @var $object KintObject */ - $object = new $className; - if ( ( $alternativeTabs = $object->parse( $variable ) ) !== false ) { - self::$_skipAlternatives = true; - $alternativeDisplay = new kintVariableData; - $alternativeDisplay->type = $object->name; - $alternativeDisplay->value = $object->value; - $alternativeDisplay->name = $name; - - foreach ( $alternativeTabs as $name => $values ) { - $alternative = kintParser::factory( $values ); - $alternative->type = $name; - if ( Kint::enabled() === Kint::MODE_RICH ) { - empty( $alternative->value ) and $alternative->value = $alternative->extendedValue; - $alternativeDisplay->_alternatives[] = $alternative; - } else { - $alternativeDisplay->extendedValue[] = $alternative; - } - } - - self::$_skipAlternatives = false; - self::$_level = $revert['level']; - self::$_objects = $revert['objects']; - return $alternativeDisplay; - } - } - } - - # base type parser returning false means "stop processing further": e.g. recursion - if ( self::$methodName( $variable, $varData ) === false ) { - self::$_level--; - return $varData; - } - - if ( Kint::enabled() === Kint::MODE_RICH && !self::$_skipAlternatives ) { - # if an alternative returns something that can be represented in an alternative way, don't :) - self::$_skipAlternatives = true; - - # now check whether the variable can be represented in a different way - foreach ( self::$_customDataTypes as $parserClass ) { - $className = 'Kint_Parsers_' . $parserClass; - - /** @var $parser kintParser */ - $parser = new $className; - $parser->name = $name; # the parser may overwrite the name value, so set it first - - if ( $parser->_parse( $variable ) !== false ) { - $varData->_alternatives[] = $parser; - } - } - - - # if alternatives exist, push extendedValue to their front and display it as one of alternatives - if ( !empty( $varData->_alternatives ) && isset( $varData->extendedValue ) ) { - $_ = new kintVariableData; - - $_->value = $varData->extendedValue; - $_->type = 'contents'; - $_->size = null; - - array_unshift( $varData->_alternatives, $_ ); - $varData->extendedValue = null; - } - - self::$_skipAlternatives = false; - } - - self::$_level = $revert['level']; - self::$_objects = $revert['objects']; - - if ( strlen( $varData->name ) > 80 ) { - $varData->name = - self::_substr( $varData->name, 0, 37 ) - . '...' - . self::_substr( $varData->name, -38, null ); - } - return $varData; - } - - private static function _checkDepth() - { - return Kint::$maxLevels != 0 && self::$_level >= Kint::$maxLevels; - } - - private static function _isArrayTabular( array $variable ) - { - if ( Kint::enabled() !== Kint::MODE_RICH ) return false; - - $arrayKeys = array(); - $keys = null; - $closeEnough = false; - foreach ( $variable as $row ) { - if ( !is_array( $row ) || empty( $row ) ) return false; - - foreach ( $row as $col ) { - if ( !empty( $col ) && !is_scalar( $col ) ) return false; // todo add tabular "tolerance" - } - - if ( isset( $keys ) && !$closeEnough ) { - # let's just see if the first two rows have same keys, that's faster and has the - # positive side effect of easily spotting missing keys in later rows - if ( $keys !== array_keys( $row ) ) return false; - - $closeEnough = true; - } else { - $keys = array_keys( $row ); - } - - $arrayKeys = array_unique( array_merge( $arrayKeys, $keys ) ); - } - - return $arrayKeys; - } - - private static function _decorateCell( kintVariableData $kintVar ) - { - if ( $kintVar->extendedValue !== null || !empty( $kintVar->_alternatives ) ) { - return '' . Kint_Decorators_Rich::decorate( $kintVar ) . ''; - } - - $output = 'value !== null ) { - $output .= ' title="' . $kintVar->type; - - if ( $kintVar->size !== null ) { - $output .= " (" . $kintVar->size . ")"; - } - - $output .= '">' . $kintVar->value; - } else { - $output .= '>'; - - if ( $kintVar->type !== 'NULL' ) { - $output .= '' . $kintVar->type; - - if ( $kintVar->size !== null ) { - $output .= "(" . $kintVar->size . ")"; - } - - $output .= ''; - } else { - $output .= 'NULL'; - } - } - - - return $output . ''; - } - - - public static function escape( $value, $encoding = null ) - { - if ( empty( $value ) ) return $value; - - if ( Kint::enabled() === Kint::MODE_CLI ) { - $value = str_replace( "\x1b", "\\x1b", $value ); - } - - if ( Kint::enabled() === Kint::MODE_CLI || Kint::enabled() === Kint::MODE_WHITESPACE ) return $value; - - $encoding or $encoding = self::_detectEncoding( $value ); - $value = htmlspecialchars( $value, ENT_NOQUOTES, $encoding === 'ASCII' ? 'UTF-8' : $encoding ); - - - if ( $encoding === 'UTF-8' ) { - // todo we could make the symbols hover-title show the code for the invisible symbol - # when possible force invisible characters to have some sort of display (experimental) - $value = preg_replace( '/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F]/u', '?', $value ); - } - - # this call converts all non-ASCII characters into html chars of format - if ( function_exists( 'mb_encode_numericentity' ) ) { - $value = mb_encode_numericentity( - $value, - array( 0x80, 0xffff, 0, 0xffff, ), - $encoding - ); - } - - return $value; - } - - - private static $_dealingWithGlobals = false; - - private static function _parse_array( &$variable, kintVariableData $variableData ) - { - isset( self::$_marker ) or self::$_marker = "\x00" . uniqid(); - - # naturally, $GLOBALS variable is an intertwined recursion nightmare, use black magic - $globalsDetector = false; - if ( array_key_exists( 'GLOBALS', $variable ) && is_array( $variable['GLOBALS'] ) ) { - $globalsDetector = "\x01" . uniqid(); - - $variable['GLOBALS'][ $globalsDetector ] = true; - if ( isset( $variable[ $globalsDetector ] ) ) { - unset( $variable[ $globalsDetector ] ); - self::$_dealingWithGlobals = true; - } else { - unset( $variable['GLOBALS'][ $globalsDetector ] ); - $globalsDetector = false; - } - } - - $variableData->type = 'array'; - $variableData->size = count( $variable ); - - if ( $variableData->size === 0 ) { - return; - } - if ( isset( $variable[ self::$_marker ] ) ) { # recursion; todo mayhaps show from where - if ( self::$_dealingWithGlobals ) { - $variableData->value = '*RECURSION*'; - } else { - unset( $variable[ self::$_marker ] ); - $variableData->value = self::$_marker; - } - return false; - } - if ( self::_checkDepth() ) { - $variableData->extendedValue = "*DEPTH TOO GREAT*"; - return false; - } - - $isSequential = self::_isSequential( $variable ); - - if ( $variableData->size > 1 && ( $arrayKeys = self::_isArrayTabular( $variable ) ) !== false ) { - $variable[ self::$_marker ] = true; # this must be AFTER _isArrayTabular - $firstRow = true; - $extendedValue = ''; - - foreach ( $variable as $rowIndex => & $row ) { - # display strings in their full length - self::$_placeFullStringInValue = true; - - if ( $rowIndex === self::$_marker ) continue; - - if ( isset( $row[ self::$_marker ] ) ) { - $variableData->value = "*RECURSION*"; - return false; - } - - - $extendedValue .= ''; - if ( $isSequential ) { - $output = ''; - } else { - $output = self::_decorateCell( kintParser::factory( $rowIndex ) ); - } - if ( $firstRow ) { - $extendedValue .= ''; - } - - # we iterate the known full set of keys from all rows in case some appeared at later rows, - # as we only check the first two to assume - foreach ( $arrayKeys as $key ) { - if ( $firstRow ) { - $extendedValue .= ''; - } - - if ( !array_key_exists( $key, $row ) ) { - $output .= ''; - continue; - } - - $var = kintParser::factory( $row[ $key ] ); - - if ( $var->value === self::$_marker ) { - $variableData->value = '*RECURSION*'; - return false; - } elseif ( $var->value === '*RECURSION*' ) { - $output .= ''; - } else { - $output .= self::_decorateCell( $var ); - } - unset( $var ); - } - - if ( $firstRow ) { - $extendedValue .= ''; - $firstRow = false; - } - - $extendedValue .= $output . ''; - } - self::$_placeFullStringInValue = false; - - $variableData->extendedValue = $extendedValue . '
' . '#' . ( $rowIndex + 1 ) . ' ' . self::escape( $key ) . '*RECURSION*
'; - - } else { - $variable[ self::$_marker ] = true; - $extendedValue = array(); - - foreach ( $variable as $key => & $val ) { - if ( $key === self::$_marker ) continue; - - $output = kintParser::factory( $val ); - if ( $output->value === self::$_marker ) { - $variableData->value = "*RECURSION*"; // recursion occurred on a higher level, thus $this is recursion - return false; - } - if ( !$isSequential ) { - $output->operator = '=>'; - } - $output->name = $isSequential ? null : "'" . $key . "'"; - $extendedValue[] = $output; - } - $variableData->extendedValue = $extendedValue; - } - - if ( $globalsDetector ) { - self::$_dealingWithGlobals = false; - } - - unset( $variable[ self::$_marker ] ); - } - - - private static function _parse_object( &$variable, kintVariableData $variableData ) - { - if ( function_exists( 'spl_object_hash' ) ) { - $hash = spl_object_hash( $variable ); - } else { - ob_start(); - var_dump( $variable ); - preg_match( '[#(\d+)]', ob_get_clean(), $match ); - $hash = $match[1]; - } - - $castedArray = (array) $variable; - $variableData->type = get_class( $variable ); - $variableData->size = count( $castedArray ); - - if ( isset( self::$_objects[ $hash ] ) ) { - $variableData->value = '*RECURSION*'; - return false; - } - if ( self::_checkDepth() ) { - $variableData->extendedValue = "*DEPTH TOO GREAT*"; - return false; - } - - - # ArrayObject (and maybe ArrayIterator, did not try yet) unsurprisingly consist of mainly dark magic. - # What bothers me most, var_dump sees no problem with it, and ArrayObject also uses a custom, - # undocumented serialize function, so you can see the properties in internal functions, but - # can never iterate some of them if the flags are not STD_PROP_LIST. Fun stuff. - if ( $variableData->type === 'ArrayObject' || is_subclass_of( $variable, 'ArrayObject' ) ) { - $arrayObjectFlags = $variable->getFlags(); - $variable->setFlags( ArrayObject::STD_PROP_LIST ); - } - - self::$_objects[ $hash ] = true; // todo store reflectorObject here for alternatives cache - $reflector = new ReflectionObject( $variable ); - - # add link to definition of userland objects - if ( Kint::enabled() === Kint::MODE_RICH && Kint::$fileLinkFormat && $reflector->isUserDefined() ) { - $url = Kint::getIdeLink( $reflector->getFileName(), $reflector->getStartLine() ); - - $class = ( strpos( $url, 'http://' ) === 0 ) ? 'class="kint-ide-link" ' : ''; - $variableData->type = "{$variableData->type}"; - } - $variableData->size = 0; - - $extendedValue = array(); - $encountered = array(); - - # copy the object as an array as it provides more info than Reflection (depends) - foreach ( $castedArray as $key => $value ) { - /* casting object to array: - * integer properties are inaccessible; - * private variables have the class name prepended to the variable name; - * protected variables have a '*' prepended to the variable name. - * These prepended values have null bytes on either side. - * http://www.php.net/manual/en/language.types.array.php#language.types.array.casting - */ - if ( $key{0} === "\x00" ) { - - $access = $key{1} === "*" ? "protected" : "private"; - - // Remove the access level from the variable name - $key = substr( $key, strrpos( $key, "\x00" ) + 1 ); - } else { - $access = "public"; - } - - $encountered[ $key ] = true; - - $output = kintParser::factory( $value, self::escape( $key ) ); - $output->access = $access; - $output->operator = '->'; - $extendedValue[] = $output; - $variableData->size++; - } - - foreach ( $reflector->getProperties() as $property ) { - $name = $property->name; - if ( $property->isStatic() || isset( $encountered[ $name ] ) ) continue; - - if ( $property->isProtected() ) { - $property->setAccessible( true ); - $access = "protected"; - } elseif ( $property->isPrivate() ) { - $property->setAccessible( true ); - $access = "private"; - } else { - $access = "public"; - } - - $value = $property->getValue( $variable ); - - $output = kintParser::factory( $value, self::escape( $name ) ); - $output->access = $access; - $output->operator = '->'; - $extendedValue[] = $output; - $variableData->size++; - } - - if ( isset( $arrayObjectFlags ) ) { - $variable->setFlags( $arrayObjectFlags ); - } - - if ( $variableData->size ) { - $variableData->extendedValue = $extendedValue; - } - } - - - private static function _parse_boolean( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'bool'; - $variableData->value = $variable ? 'TRUE' : 'FALSE'; - } - - private static function _parse_double( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'float'; - $variableData->value = $variable; - } - - private static function _parse_integer( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'integer'; - $variableData->value = $variable; - } - - private static function _parse_null( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'NULL'; - } - - private static function _parse_resource( &$variable, kintVariableData $variableData ) - { - $resourceType = get_resource_type( $variable ); - $variableData->type = "resource ({$resourceType})"; - - if ( $resourceType === 'stream' && $meta = stream_get_meta_data( $variable ) ) { - - if ( isset( $meta['uri'] ) ) { - $file = $meta['uri']; - - if ( function_exists( 'stream_is_local' ) ) { - // Only exists on PHP >= 5.2.4 - if ( stream_is_local( $file ) ) { - $file = Kint::shortenPath( $file ); - } - } - - $variableData->value = $file; - } - } - } - - private static function _parse_string( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'string'; - - $encoding = self::_detectEncoding( $variable ); - if ( $encoding !== 'ASCII' ) { - $variableData->type .= ' ' . $encoding; - } - - - $variableData->size = self::_strlen( $variable, $encoding ); - if ( Kint::enabled() !== Kint::MODE_RICH ) { - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - return; - } - - - if ( !self::$_placeFullStringInValue ) { - - $strippedString = preg_replace( '[\s+]', ' ', $variable ); - if ( Kint::$maxStrLength && $variableData->size > Kint::$maxStrLength ) { - - // encode and truncate - $variableData->value = '"' - . self::escape( self::_substr( $strippedString, 0, Kint::$maxStrLength, $encoding ), $encoding ) - . '…"'; - $variableData->extendedValue = self::escape( $variable, $encoding ); - - return; - } elseif ( $variable !== $strippedString ) { // omit no data from display - - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - $variableData->extendedValue = self::escape( $variable, $encoding ); - - return; - } - } - - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - } - - private static function _parse_unknown( &$variable, kintVariableData $variableData ) - { - $type = gettype( $variable ); - $variableData->type = "UNKNOWN" . ( !empty( $type ) ? " ({$type})" : '' ); - $variableData->value = var_export( $variable, true ); - } - -} \ No newline at end of file diff --git a/vendor/kint-php/kint/inc/kintVariableData.class.php b/vendor/kint-php/kint/inc/kintVariableData.class.php deleted file mode 100644 index b5fedcc..0000000 --- a/vendor/kint-php/kint/inc/kintVariableData.class.php +++ /dev/null @@ -1,87 +0,0 @@ -getMethods() as $method ) { - $params = array(); - - // Access type - $access = implode( ' ', Reflection::getModifierNames( $method->getModifiers() ) ); - - // Method parameters - foreach ( $method->getParameters() as $param ) { - $paramString = ''; - - if ( $param->isArray() ) { - $paramString .= 'array '; - } else { - try { - if ( $paramClassName = $param->getClass() ) { - $paramString .= $paramClassName->name . ' '; - } - } catch ( ReflectionException $e ) { - preg_match( '/\[\s\<\w+?>\s([\w]+)/s', $param->__toString(), $matches ); - $paramClassName = isset( $matches[1] ) ? $matches[1] : ''; - - $paramString .= ' UNDEFINED CLASS (' . $paramClassName . ') '; - } - } - - $paramString .= ( $param->isPassedByReference() ? '&' : '' ) . '$' . $param->getName(); - - if ( $param->isDefaultValueAvailable() ) { - if ( is_array( $param->getDefaultValue() ) ) { - $arrayValues = array(); - foreach ( $param->getDefaultValue() as $key => $value ) { - $arrayValues[] = $key . ' => ' . $value; - } - - $defaultValue = 'array(' . implode( ', ', $arrayValues ) . ')'; - } elseif ( $param->getDefaultValue() === null ) { - $defaultValue = 'NULL'; - } elseif ( $param->getDefaultValue() === false ) { - $defaultValue = 'false'; - } elseif ( $param->getDefaultValue() === true ) { - $defaultValue = 'true'; - } elseif ( $param->getDefaultValue() === '' ) { - $defaultValue = '""'; - } else { - $defaultValue = $param->getDefaultValue(); - } - - $paramString .= ' = ' . $defaultValue; - } - - $params[] = $paramString; - } - - $output = new kintVariableData; - - // Simple DocBlock parser, look for @return - if ( ( $docBlock = $method->getDocComment() ) ) { - $matches = array(); - if ( preg_match_all( '/@(\w+)\s+(.*)\r?\n/m', $docBlock, $matches ) ) { - $lines = array_combine( $matches[1], $matches[2] ); - if ( isset( $lines['return'] ) ) { - $output->operator = '->'; - # since we're outputting code, assumption that the string is utf8 is most likely correct - # and saves resources - $output->type = self::escape( $lines['return'], 'UTF-8' ); - } - } - } - - $output->name = ( $method->returnsReference() ? '&' : '' ) . $method->getName() . '(' - . implode( ', ', $params ) . ')'; - $output->access = $access; - - if ( is_string( $docBlock ) ) { - $lines = array(); - foreach ( explode( "\n", $docBlock ) as $line ) { - $line = trim( $line ); - - if ( in_array( $line, array( '/**', '/*', '*/' ) ) ) { - continue; - } elseif ( strpos( $line, '*' ) === 0 ) { - $line = substr( $line, 1 ); - } - - $lines[] = self::escape( trim( $line ), 'UTF-8' ); - } - - $output->extendedValue = implode( "\n", $lines ) . "\n\n"; - } - - $declaringClass = $method->getDeclaringClass(); - $declaringClassName = $declaringClass->getName(); - - if ( $declaringClassName !== $className ) { - $output->extendedValue .= "Inherited from {$declaringClassName}\n"; - } - - $fileName = Kint::shortenPath( $method->getFileName() ) . ':' . $method->getStartLine(); - $output->extendedValue .= "Defined in {$fileName}"; - - $sortName = $access . $method->getName(); - - if ( $method->isPrivate() ) { - $private[ $sortName ] = $output; - } elseif ( $method->isProtected() ) { - $protected[ $sortName ] = $output; - } else { - $public[ $sortName ] = $output; - } - } - - if ( !$private && !$protected && !$public ) { - self::$cache[ $className ] = false; - } - - ksort( $public ); - ksort( $protected ); - ksort( $private ); - - self::$cache[ $className ] = $public + $protected + $private; - } - - if ( count( self::$cache[ $className ] ) === 0 ) { - return false; - } - - $this->value = self::$cache[ $className ]; - $this->type = 'Available methods'; - $this->size = count( self::$cache[ $className ] ); - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/classstatics.php b/vendor/kint-php/kint/parsers/custom/classstatics.php deleted file mode 100644 index cde23c6..0000000 --- a/vendor/kint-php/kint/parsers/custom/classstatics.php +++ /dev/null @@ -1,49 +0,0 @@ -getProperties( ReflectionProperty::IS_STATIC ) as $property ) { - if ( $property->isPrivate() ) { - if ( !method_exists( $property, 'setAccessible' ) ) { - break; - } - $property->setAccessible( true ); - $access = "private"; - } elseif ( $property->isProtected() ) { - $property->setAccessible( true ); - $access = "protected"; - } else { - $access = 'public'; - } - - $_ = $property->getValue(); - $output = kintParser::factory( $_, '$' . $property->getName() ); - - $output->access = $access; - $output->operator = '::'; - $extendedValue[] = $output; - } - - foreach ( $reflection->getConstants() as $constant => $val ) { - $output = kintParser::factory( $val, $constant ); - - $output->access = 'constant'; - $output->operator = '::'; - $extendedValue[] = $output; - } - - if ( empty( $extendedValue ) ) return false; - - $this->value = $extendedValue; - $this->type = 'Static class properties'; - $this->size = count( $extendedValue ); - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/color.php b/vendor/kint-php/kint/parsers/custom/color.php deleted file mode 100644 index c213c01..0000000 --- a/vendor/kint-php/kint/parsers/custom/color.php +++ /dev/null @@ -1,400 +0,0 @@ -'#f0f8ff','antiquewhite'=>'#faebd7','aqua'=>'#00ffff','aquamarine'=>'#7fffd4','azure'=>'#f0ffff', - 'beige'=>'#f5f5dc','bisque'=>'#ffe4c4','black'=>'#000000','blanchedalmond'=>'#ffebcd','blue'=>'#0000ff', - 'blueviolet'=>'#8a2be2','brown'=>'#a52a2a','burlywood'=>'#deb887','cadetblue'=>'#5f9ea0','chartreuse'=>'#7fff00', - 'chocolate'=>'#d2691e','coral'=>'#ff7f50','cornflowerblue'=>'#6495ed','cornsilk'=>'#fff8dc','crimson'=>'#dc143c', - 'cyan'=>'#00ffff','darkblue'=>'#00008b','darkcyan'=>'#008b8b','darkgoldenrod'=>'#b8860b','darkgray'=>'#a9a9a9', - 'darkgrey'=>'#a9a9a9','darkgreen'=>'#006400','darkkhaki'=>'#bdb76b','darkmagenta'=>'#8b008b', - 'darkolivegreen'=>'#556b2f','darkorange'=>'#ff8c00','darkorchid'=>'#9932cc','darkred'=>'#8b0000', - 'darksalmon'=>'#e9967a','darkseagreen'=>'#8fbc8f','darkslateblue'=>'#483d8b','darkslategray'=>'#2f4f4f', - 'darkslategrey'=>'#2f4f4f','darkturquoise'=>'#00ced1','darkviolet'=>'#9400d3','deeppink'=>'#ff1493', - 'deepskyblue'=>'#00bfff','dimgray'=>'#696969','dimgrey'=>'#696969','dodgerblue'=>'#1e90ff', - 'firebrick'=>'#b22222','floralwhite'=>'#fffaf0','forestgreen'=>'#228b22','fuchsia'=>'#ff00ff', - 'gainsboro'=>'#dcdcdc','ghostwhite'=>'#f8f8ff','gold'=>'#ffd700','goldenrod'=>'#daa520','gray'=>'#808080', - 'grey'=>'#808080','green'=>'#008000','greenyellow'=>'#adff2f','honeydew'=>'#f0fff0','hotpink'=>'#ff69b4', - 'indianred'=>'#cd5c5c','indigo'=>'#4b0082','ivory'=>'#fffff0','khaki'=>'#f0e68c','lavender'=>'#e6e6fa', - 'lavenderblush'=>'#fff0f5','lawngreen'=>'#7cfc00','lemonchiffon'=>'#fffacd','lightblue'=>'#add8e6', - 'lightcoral'=>'#f08080','lightcyan'=>'#e0ffff','lightgoldenrodyellow'=>'#fafad2','lightgray'=>'#d3d3d3', - 'lightgrey'=>'#d3d3d3','lightgreen'=>'#90ee90','lightpink'=>'#ffb6c1','lightsalmon'=>'#ffa07a', - 'lightseagreen'=>'#20b2aa','lightskyblue'=>'#87cefa','lightslategray'=>'#778899','lightslategrey'=>'#778899', - 'lightsteelblue'=>'#b0c4de','lightyellow'=>'#ffffe0','lime'=>'#00ff00','limegreen'=>'#32cd32','linen'=>'#faf0e6', - 'magenta'=>'#ff00ff','maroon'=>'#800000','mediumaquamarine'=>'#66cdaa','mediumblue'=>'#0000cd', - 'mediumorchid'=>'#ba55d3','mediumpurple'=>'#9370d8','mediumseagreen'=>'#3cb371','mediumslateblue'=>'#7b68ee', - 'mediumspringgreen'=>'#00fa9a','mediumturquoise'=>'#48d1cc','mediumvioletred'=>'#c71585', - 'midnightblue'=>'#191970','mintcream'=>'#f5fffa','mistyrose'=>'#ffe4e1','moccasin'=>'#ffe4b5', - 'navajowhite'=>'#ffdead','navy'=>'#000080','oldlace'=>'#fdf5e6','olive'=>'#808000','olivedrab'=>'#6b8e23', - 'orange'=>'#ffa500','orangered'=>'#ff4500','orchid'=>'#da70d6','palegoldenrod'=>'#eee8aa','palegreen'=>'#98fb98', - 'paleturquoise'=>'#afeeee','palevioletred'=>'#d87093','papayawhip'=>'#ffefd5','peachpuff'=>'#ffdab9', - 'peru'=>'#cd853f','pink'=>'#ffc0cb','plum'=>'#dda0dd','powderblue'=>'#b0e0e6','purple'=>'#800080', - 'red'=>'#ff0000','rosybrown'=>'#bc8f8f','royalblue'=>'#4169e1','saddlebrown'=>'#8b4513','salmon'=>'#fa8072', - 'sandybrown'=>'#f4a460','seagreen'=>'#2e8b57','seashell'=>'#fff5ee','sienna'=>'#a0522d','silver'=>'#c0c0c0', - 'skyblue'=>'#87ceeb','slateblue'=>'#6a5acd','slategray'=>'#708090','slategrey'=>'#708090','snow'=>'#fffafa', - 'springgreen'=>'#00ff7f','steelblue'=>'#4682b4','tan'=>'#d2b48c','teal'=>'#008080','thistle'=>'#d8bfd8', - 'tomato'=>'#ff6347','turquoise'=>'#40e0d0','violet'=>'#ee82ee','wheat'=>'#f5deb3','white'=>'#ffffff', - 'whitesmoke'=>'#f5f5f5','yellow'=>'#ffff00','yellowgreen'=>'#9acd32' - ); - - - protected function _parse( & $variable ) - { - if ( !self::_fits( $variable ) ) return false; - - $this->type = 'CSS color'; - $variants = self::_convert( $variable ); - $this->value = - "
{$variable}
" - . "hex : {$variants['hex']}\n" - . "rgb : {$variants['rgb']}\n" - . ( isset( $variants['name'] ) ? "name: {$variants['name']}\n" : '' ) - . "hsl : {$variants['hsl']}"; - } - - - private static function _fits( $variable ) - { - if ( !is_string( $variable ) ) return false; - - $var = strtolower( trim( $variable ) ); - - return isset( self::$_css3Named[$var] ) - || preg_match( - '/^(?:#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{6}|(?:rgb|hsl)a?\s*\((?:\s*[0-9.%]+\s*,?){3,4}\))$/', - $var - ); - } - - private static function _convert( $color ) - { - $color = strtolower( trim( $color ) ); - $decimalColors = array(); - $variants = array( - 'hex' => null, - 'rgb' => null, - 'name' => null, - 'hsl' => null, - ); - - if ( isset( self::$_css3Named[ $color ] ) ) { - $variants['name'] = $color; - $color = self::$_css3Named[ $color ]; - } - - if ( $color{0} === '#' ) { - $variants['hex'] = $color; - $color = substr( $color, 1 ); - if ( strlen( $color ) === 6 ) { - $colors = str_split( $color, 2 ); - } else { - $colors = array( - $color{0} . $color{0}, - $color{1} . $color{1}, - $color{2} . $color{2}, - ); - } - - $decimalColors = array_map( 'hexdec', $colors ); - } elseif ( substr( $color, 0, 3 ) === 'rgb' ) { - $variants['rgb'] = $color; - preg_match_all( '#([0-9.%]+)#', $color, $matches ); - $decimalColors = $matches[1]; - foreach ( $decimalColors as &$color ) { - if ( strpos( $color, '%' ) !== false ) { - $color = str_replace( '%', '', $color ) * 2.55; - } - } - - - } elseif ( substr( $color, 0, 3 ) === 'hsl' ) { - $variants['hsl'] = $color; - preg_match_all( '#([0-9.%]+)#', $color, $matches ); - - $colors = $matches[1]; - $colors[0] /= 360; - $colors[1] = str_replace( '%', '', $colors[1] ) / 100; - $colors[2] = str_replace( '%', '', $colors[2] ) / 100; - - $decimalColors = self::_HSLtoRGB( $colors ); - if ( isset( $colors[3] ) ) { - $decimalColors[] = $colors[3]; - } - } - - if ( isset( $decimalColors[3] ) ) { - $alpha = $decimalColors[3]; - unset( $decimalColors[3] ); - } else { - $alpha = null; - } - foreach ( $variants as $type => &$variant ) { - if ( isset( $variant ) ) continue; - - switch ( $type ) { - case 'hex': - $variant = '#'; - foreach ( $decimalColors as &$color ) { - $variant .= str_pad( dechex( $color ), 2, "0", STR_PAD_LEFT ); - } - $variant .= isset( $alpha ) ? ' (alpha omitted)' : ''; - break; - case 'rgb': - $rgb = $decimalColors; - if ( isset( $alpha ) ) { - $rgb[] = $alpha; - $a = 'a'; - } else { - $a = ''; - } - $variant = "rgb{$a}( " . implode( ', ', $rgb ) . " )"; - break; - case 'hsl': - $rgb = self::_RGBtoHSL( $decimalColors ); - if ( $rgb === null ) { - unset( $variants[ $type ] ); - break; - } - if ( isset( $alpha ) ) { - $rgb[] = $alpha; - $a = 'a'; - } else { - $a = ''; - } - - $variant = "hsl{$a}( " . implode( ', ', $rgb ) . " )"; - break; - case 'name': - // [!] name in initial variants array must go after hex - if ( ( $key = array_search( $variants['hex'], self::$_css3Named, true ) ) !== false ) { - $variant = $key; - } else { - unset( $variants[ $type ] ); - } - break; - } - - } - - return $variants; - } - - - private static function _HSLtoRGB( array $hsl ) - { - list( $h, $s, $l ) = $hsl; - $m2 = ( $l <= 0.5 ) ? $l * ( $s + 1 ) : $l + $s - $l * $s; - $m1 = $l * 2 - $m2; - return array( - round( self::_hue2rgb( $m1, $m2, $h + 0.33333 ) * 255 ), - round( self::_hue2rgb( $m1, $m2, $h ) * 255 ), - round( self::_hue2rgb( $m1, $m2, $h - 0.33333 ) * 255 ), - ); - } - - - /** - * Helper function for _color_hsl2rgb(). - */ - private static function _hue2rgb( $m1, $m2, $h ) - { - $h = ( $h < 0 ) ? $h + 1 : ( ( $h > 1 ) ? $h - 1 : $h ); - if ( $h * 6 < 1 ) return $m1 + ( $m2 - $m1 ) * $h * 6; - if ( $h * 2 < 1 ) return $m2; - if ( $h * 3 < 2 ) return $m1 + ( $m2 - $m1 ) * ( 0.66666 - $h ) * 6; - return $m1; - } - - - private static function _RGBtoHSL( array $rgb ) - { - list( $clrR, $clrG, $clrB ) = $rgb; - - $clrMin = min( $clrR, $clrG, $clrB ); - $clrMax = max( $clrR, $clrG, $clrB ); - $deltaMax = $clrMax - $clrMin; - - $L = ( $clrMax + $clrMin ) / 510; - - if ( 0 == $deltaMax ) { - $H = 0; - $S = 0; - } else { - if ( 0.5 > $L ) { - $S = $deltaMax / ( $clrMax + $clrMin ); - } else { - $S = $deltaMax / ( 510 - $clrMax - $clrMin ); - } - - if ( $clrMax == $clrR ) { - $H = ( $clrG - $clrB ) / ( 6.0 * $deltaMax ); - } else if ( $clrMax == $clrG ) { - $H = 1 / 3 + ( $clrB - $clrR ) / ( 6.0 * $deltaMax ); - } else { - $H = 2 / 3 + ( $clrR - $clrG ) / ( 6.0 * $deltaMax ); - } - - if ( 0 > $H ) $H += 1; - if ( 1 < $H ) $H -= 1; - } - return array( - round( $H * 360 ), - round( $S * 100 ) . '%', - round( $L * 100 ) . '%' - ); - - } -} - -/* ************* - * TEST DATA - * -dd(array( -'hsl(0, 100%,50%)', -'hsl(30, 100%,50%)', -'hsl(60, 100%,50%)', -'hsl(90, 100%,50%)', -'hsl(120,100%,50%)', -'hsl(150,100%,50%)', -'hsl(180,100%,50%)', -'hsl(210,100%,50%)', -'hsl(240,100%,50%)', -'hsl(270,100%,50%)', -'hsl(300,100%,50%)', -'hsl(330,100%,50%)', -'hsl(360,100%,50%)', -'hsl(120,100%,25%)', -'hsl(120,100%,50%)', -'hsl(120,100%,75%)', -'hsl(120,100%,50%)', -'hsl(120, 67%,50%)', -'hsl(120, 33%,50%)', -'hsl(120, 0%,50%)', -'hsl(120, 60%,70%)', -'#f03', -'#F03', -'#ff0033', -'#FF0033', -'rgb(255,0,51)', -'rgb(255, 0, 51)', -'rgb(100%,0%,20%)', -'rgb(100%, 0%, 20%)', -'hsla(240,100%,50%,0.05)', -'hsla(240,100%,50%, 0.4)', -'hsla(240,100%,50%, 0.7)', -'hsla(240,100%,50%, 1)', -'rgba(255,0,0,0.1)', -'rgba(255,0,0,0.4)', -'rgba(255,0,0,0.7)', -'rgba(255,0,0, 1)', -'black', -'silver', -'gray', -'white', -'maroon', -'red', -'purple', -'fuchsia', -'green', -'lime', -'olive', -'yellow', -'navy', -'blue', -'teal', -'aqua', -'orange', -'aliceblue', -'antiquewhite', -'aquamarine', -'azure', -'beige', -'bisque', -'blanchedalmond', -'blueviolet', -'brown', -'burlywood', -'cadetblue', -'chartreuse', -'chocolate', -'coral', -'cornflowerblue', -'cornsilk', -'crimson', -'darkblue', -'darkcyan', -'darkgoldenrod', -'darkgray', -'darkgreen', -'darkgrey', -'darkkhaki', -'darkmagenta', -'darkolivegreen', -'darkorange', -'darkorchid', -'darkred', -'darksalmon', -'darkseagreen', -'darkslateblue', -'darkslategray', -'darkslategrey', -'darkturquoise', -'darkviolet', -'deeppink', -'deepskyblue', -'dimgray', -'dimgrey', -'dodgerblue', -'firebrick', -'floralwhite', -'forestgreen', -'gainsboro', -'ghostwhite', -'gold', -'goldenrod', -'greenyellow', -'grey', -'honeydew', -'hotpink', -'indianred', -'indigo', -'ivory', -'khaki', -'lavender', -'lavenderblush', -'lawngreen', -'lemonchiffon', -'lightblue', -'lightcoral', -'lightcyan', -'lightgoldenrodyellow', -'lightgray', -'lightgreen', -'lightgrey', -'lightpink', -'lightsalmon', -'lightseagreen', -'lightskyblue', -'lightslategray', -'lightslategrey', -'lightsteelblue', -'lightyellow', -'limegreen', -'linen', -'mediumaquamarine', -'mediumblue', -'mediumorchid', -'mediumpurple', -'mediumseagreen', -'mediumslateblue', -'mediumspringgreen', -'mediumturquoise', -'mediumvioletred', -'midnightblue', -'mintcream', -'mistyrose', -'moccasin', -'navajowhite', -'oldlace', -'olivedrab', -));*/ diff --git a/vendor/kint-php/kint/parsers/custom/fspath.php b/vendor/kint-php/kint/parsers/custom/fspath.php deleted file mode 100644 index 0610391..0000000 --- a/vendor/kint-php/kint/parsers/custom/fspath.php +++ /dev/null @@ -1,69 +0,0 @@ - 2048 - || preg_match( '[[:?<>"*|]]', $variable ) - || !@is_readable( $variable ) # f@#! PHP and its random warnings - ) return false; - - try { - $fileInfo = new SplFileInfo( $variable ); - $flags = array(); - $perms = $fileInfo->getPerms(); - - if ( ( $perms & 0xC000 ) === 0xC000 ) { - $type = 'File socket'; - $flags[] = 's'; - } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { - $type = 'File symlink'; - $flags[] = 'l'; - } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { - $type = 'File'; - $flags[] = '-'; - } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { - $type = 'Block special file'; - $flags[] = 'b'; - } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { - $type = 'Directory'; - $flags[] = 'd'; - } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { - $type = 'Character special file'; - $flags[] = 'c'; - } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { - $type = 'FIFO pipe file'; - $flags[] = 'p'; - } else { - $type = 'Unknown file'; - $flags[] = 'u'; - } - - // owner - $flags[] = ( ( $perms & 0x0100 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0080 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0040 ) ? ( ( $perms & 0x0800 ) ? 's' : 'x' ) : ( ( $perms & 0x0800 ) ? 'S' : '-' ) ); - - // group - $flags[] = ( ( $perms & 0x0020 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0010 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0008 ) ? ( ( $perms & 0x0400 ) ? 's' : 'x' ) : ( ( $perms & 0x0400 ) ? 'S' : '-' ) ); - - // world - $flags[] = ( ( $perms & 0x0004 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0002 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0001 ) ? ( ( $perms & 0x0200 ) ? 't' : 'x' ) : ( ( $perms & 0x0200 ) ? 'T' : '-' ) ); - - $this->type = $type; - $this->size = sprintf( '%.2fK', $fileInfo->getSize() / 1024 ); - $this->value = implode( $flags ); - - } catch ( Exception $e ) { - return false; - } - - } -} diff --git a/vendor/kint-php/kint/parsers/custom/json.php b/vendor/kint-php/kint/parsers/custom/json.php deleted file mode 100644 index f752a21..0000000 --- a/vendor/kint-php/kint/parsers/custom/json.php +++ /dev/null @@ -1,19 +0,0 @@ -value = kintParser::factory( $val )->extendedValue; - $this->type = 'JSON'; - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/microtime.php b/vendor/kint-php/kint/parsers/custom/microtime.php deleted file mode 100644 index 2c5fe68..0000000 --- a/vendor/kint-php/kint/parsers/custom/microtime.php +++ /dev/null @@ -1,60 +0,0 @@ -value = @date( 'Y-m-d H:i:s', $sec ) . '.' . substr( $usec, 2, 4 ); - - $numberOfCalls = count( self::$_times ); - if ( $numberOfCalls > 0 ) { # meh, faster than count($times) > 1 - $lap = $time - end( self::$_times ); - self::$_laps[] = $lap; - - $this->value .= "\nSINCE LAST CALL: " . round( $lap, 4 ) . 's.'; - if ( $numberOfCalls > 1 ) { - $this->value .= "\nSINCE START: " . round( $time - self::$_times[0], 4 ) . 's.'; - $this->value .= "\nAVERAGE DURATION: " - . round( array_sum( self::$_laps ) / $numberOfCalls, 4 ) . 's.'; - } - } - - $unit = array( 'B', 'KB', 'MB', 'GB', 'TB' ); - if ( KINT_PHP53 ) { - $this->value .= "\nMEMORY USAGE: " . $size . " bytes (" - . round( $size / pow( 1024, ( $i = floor( log( $size, 1024 ) ) ) ), 3 ) . ' ' . $unit[ $i ] . ")"; - } - - self::$_times[] = $time; - $this->type = 'Stats'; - } - - /* - function test() { - d( 'start', microtime() ); - for ( $i = 0; $i < 10; $i++ ) { - d( - $duration = mt_rand( 0, 200000 ), // the reported duration will be larger because of Kint overhead - usleep( $duration ), - microtime() - ); - } - dd( ); - } - */ -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/objectiterateable.php b/vendor/kint-php/kint/parsers/custom/objectiterateable.php deleted file mode 100644 index bbc0de0..0000000 --- a/vendor/kint-php/kint/parsers/custom/objectiterateable.php +++ /dev/null @@ -1,22 +0,0 @@ -value = kintParser::factory( $arrayCopy )->extendedValue; - $this->type = 'Iterator contents'; - $this->size = count( $arrayCopy ); - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/splobjectstorage.php b/vendor/kint-php/kint/parsers/custom/splobjectstorage.php deleted file mode 100644 index 69da91f..0000000 --- a/vendor/kint-php/kint/parsers/custom/splobjectstorage.php +++ /dev/null @@ -1,24 +0,0 @@ -count(); - if ( $count === 0 ) return false; - - $variable->rewind(); - while ( $variable->valid() ) { - $current = $variable->current(); - $this->value[] = kintParser::factory( $current ); - $variable->next(); - } - - $this->type = 'Storage contents'; - $this->size = $count; - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/timestamp.php b/vendor/kint-php/kint/parsers/custom/timestamp.php deleted file mode 100644 index d1a3ce3..0000000 --- a/vendor/kint-php/kint/parsers/custom/timestamp.php +++ /dev/null @@ -1,29 +0,0 @@ -type = 'timestamp'; - # avoid dreaded "Timezone must be set" error - $this->value = @date( 'Y-m-d H:i:s', $var ); - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/parsers/custom/xml.php b/vendor/kint-php/kint/parsers/custom/xml.php deleted file mode 100644 index 63283a0..0000000 --- a/vendor/kint-php/kint/parsers/custom/xml.php +++ /dev/null @@ -1,25 +0,0 @@ -value = kintParser::factory( $xml )->extendedValue; - $this->type = 'XML'; - } -} diff --git a/vendor/kint-php/kint/parsers/objects/closure.php b/vendor/kint-php/kint/parsers/objects/closure.php deleted file mode 100644 index 25fb852..0000000 --- a/vendor/kint-php/kint/parsers/objects/closure.php +++ /dev/null @@ -1,33 +0,0 @@ -name = 'Closure'; - $reflection = new ReflectionFunction( $variable ); - $ret = array( - 'Parameters' => array() - ); - if ( $val = $reflection->getParameters() ) { - foreach ( $val as $parameter ) { - // todo http://php.net/manual/en/class.reflectionparameter.php - $ret['Parameters'][] = $parameter->name; - } - - } - if ( $val = $reflection->getStaticVariables() ) { - $ret['Uses'] = $val; - } - if ( method_exists($reflection, 'getClousureThis') && $val = $reflection->getClosureThis() ) { - $ret['Uses']['$this'] = $val; - } - if ( $val = $reflection->getFileName() ) { - $this->value = Kint::shortenPath( $val ) . ':' . $reflection->getStartLine(); - } - - return $ret; - } -} diff --git a/vendor/kint-php/kint/parsers/objects/smarty.php b/vendor/kint-php/kint/parsers/objects/smarty.php deleted file mode 100644 index 52b0750..0000000 --- a/vendor/kint-php/kint/parsers/objects/smarty.php +++ /dev/null @@ -1,35 +0,0 @@ -name = 'object Smarty (v' . substr( Smarty::SMARTY_VERSION, 7 ) . ')'; # trim 'Smarty-' - - $assigned = $globalAssigns = array(); - foreach ( $variable->tpl_vars as $name => $var ) { - $assigned[ $name ] = $var->value; - } - foreach ( Smarty::$global_tpl_vars as $name => $var ) { - if ( $name === 'SCRIPT_NAME' ) continue; - - $globalAssigns[ $name ] = $var->value; - } - - return array( - 'Assigned' => $assigned, - 'Assigned globally' => $globalAssigns, - 'Configuration' => array( - 'Compiled files stored in' => isset($variable->compile_dir) - ? $variable->compile_dir - : $variable->getCompileDir(), - ) - ); - - } -} diff --git a/vendor/kint-php/kint/parsers/objects/splfileinfo.php b/vendor/kint-php/kint/parsers/objects/splfileinfo.php deleted file mode 100644 index 964dd61..0000000 --- a/vendor/kint-php/kint/parsers/objects/splfileinfo.php +++ /dev/null @@ -1,70 +0,0 @@ -name = 'SplFileInfo'; - $this->value = $variable->getBasename(); - - - $flags = array(); - $perms = $variable->getPerms(); - - if ( ( $perms & 0xC000 ) === 0xC000 ) { - $type = 'File socket'; - $flags[] = 's'; - } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { - $type = 'File symlink'; - $flags[] = 'l'; - } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { - $type = 'File'; - $flags[] = '-'; - } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { - $type = 'Block special file'; - $flags[] = 'b'; - } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { - $type = 'Directory'; - $flags[] = 'd'; - } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { - $type = 'Character special file'; - $flags[] = 'c'; - } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { - $type = 'FIFO pipe file'; - $flags[] = 'p'; - } else { - $type = 'Unknown file'; - $flags[] = 'u'; - } - - // owner - $flags[] = ( ( $perms & 0x0100 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0080 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0040 ) ? ( ( $perms & 0x0800 ) ? 's' : 'x' ) : ( ( $perms & 0x0800 ) ? 'S' : '-' ) ); - - // group - $flags[] = ( ( $perms & 0x0020 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0010 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0008 ) ? ( ( $perms & 0x0400 ) ? 's' : 'x' ) : ( ( $perms & 0x0400 ) ? 'S' : '-' ) ); - - // world - $flags[] = ( ( $perms & 0x0004 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0002 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0001 ) ? ( ( $perms & 0x0200 ) ? 't' : 'x' ) : ( ( $perms & 0x0200 ) ? 'T' : '-' ) ); - - $size = sprintf( '%.2fK', $variable->getSize() / 1024 ); - $flags = implode( $flags ); - $path = $variable->getRealPath(); - - return array( - 'File information' => array( - 'Full path' => $path, - 'Type' => $type, - 'Size' => $size, - 'Flags' => $flags - ) - ); - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/base.js b/vendor/kint-php/kint/view/base.js deleted file mode 100644 index b8087a7..0000000 --- a/vendor/kint-php/kint/view/base.js +++ /dev/null @@ -1,437 +0,0 @@ -/** - java -jar compiler.jar --js $FileName$ --js_output_file compiled/kint.js --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function(){%output%})()" - */ - -if ( typeof kintInitialized === 'undefined' ) { - kintInitialized = 1; - var kint = { - visiblePluses : [], // all visible toggle carets - currentPlus : -1, // currently selected caret - - selectText : function( element ) { - var selection = window.getSelection(), - range = document.createRange(); - - range.selectNodeContents(element); - selection.removeAllRanges(); - selection.addRange(range); - }, - - each : function( selector, callback ) { - Array.prototype.slice.call(document.querySelectorAll(selector), 0).forEach(callback) - }, - - hasClass : function( target, className ) { - if ( !target.classList ) return false; - - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - return target.classList.contains(className); - }, - - addClass : function( target, className ) { - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - target.classList.add(className); - }, - - removeClass : function( target, className ) { - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - target.classList.remove(className); - return target; - }, - - next : function( element ) { - do { - element = element.nextElementSibling; - } while ( element.nodeName.toLowerCase() !== 'dd' ); - - return element; - }, - - toggle : function( element, hide ) { - var parent = kint.next(element); - - if ( typeof hide === 'undefined' ) { - hide = kint.hasClass(element); - } - - if ( hide ) { - kint.removeClass(element); - } else { - kint.addClass(element); - } - - if ( parent.childNodes.length === 1 ) { - parent = parent.childNodes[0].childNodes[0]; // reuse variable cause I can - - // parent is checked in case of empty
 when array("\n") is dumped
-				if ( parent && kint.hasClass(parent, 'kint-parent') ) {
-					kint.toggle(parent, hide)
-				}
-			}
-		},
-
-		toggleChildren : function( element, hide ) {
-			var parent = kint.next(element)
-				, nodes = parent.getElementsByClassName('kint-parent')
-				, i = nodes.length;
-
-			if ( typeof hide === 'undefined' ) {
-				hide = kint.hasClass(element);
-			}
-
-			while ( i-- ) {
-				kint.toggle(nodes[i], hide);
-			}
-			kint.toggle(element, hide);
-		},
-
-		toggleAll : function( caret ) {
-			var elements = document.getElementsByClassName('kint-parent')
-				, i = elements.length
-				, visible = kint.hasClass(caret.parentNode);
-
-			while ( i-- ) {
-				kint.toggle(elements[i], visible);
-			}
-		},
-
-		switchTab : function( target ) {
-			var lis, el = target, index = 0;
-
-			target.parentNode.getElementsByClassName('kint-active-tab')[0].className = '';
-			target.className = 'kint-active-tab';
-
-			// take the index of clicked title tab and make the same n-th content tab visible
-			while ( el = el.previousSibling ) el.nodeType === 1 && index++;
-			lis = target.parentNode.nextSibling.childNodes;
-			for ( var i = 0; i < lis.length; i++ ) {
-				if ( i === index ) {
-					lis[i].style.display = 'block';
-
-					if ( lis[i].childNodes.length === 1 ) {
-						el = lis[i].childNodes[0].childNodes[0];
-
-						if ( kint.hasClass(el, 'kint-parent') ) {
-							kint.toggle(el, false)
-						}
-					}
-				} else {
-					lis[i].style.display = 'none';
-				}
-			}
-		},
-
-		isSibling : function( el ) {
-			for ( ; ; ) {
-				el = el.parentNode;
-				if ( !el || kint.hasClass(el, 'kint') ) break;
-			}
-
-			return !!el;
-		},
-
-		fetchVisiblePluses : function() {
-			kint.visiblePluses = [];
-			kint.each('.kint nav, .kint-tabs>li:not(.kint-active-tab)', function( el ) {
-				if ( el.offsetWidth !== 0 || el.offsetHeight !== 0 ) {
-					kint.visiblePluses.push(el)
-				}
-			});
-		},
-
-		openInNewWindow : function( kintContainer ) {
-			var newWindow;
-
-			if ( newWindow = window.open() ) {
-				newWindow.document.open();
-				newWindow.document.write(
-					''
-					+ ''
-					+ 'Kint (' + new Date().toISOString() + ')'
-					+ ''
-					+ document.getElementsByClassName('-kint-js')[0].outerHTML
-					+ document.getElementsByClassName('-kint-css')[0].outerHTML
-					+ ''
-					+ ''
-					+ ''
-					+ '
' - + kintContainer.parentNode.outerHTML - + '
' - ); - newWindow.document.close(); - } - }, - - sortTable : function( table, column ) { - var tbody = table.tBodies[0]; - - var format = function( s ) { - var n = column === 1 ? s.replace(/^#/, '') : s; - if ( isNaN(n) ) { - return s.trim().toLocaleLowerCase(); - } else { - n = parseFloat(n); - return isNaN(n) ? s.trim() : n; - } - }; - - - [].slice.call(table.tBodies[0].rows) - .sort(function( a, b ) { - a = format(a.cells[column].textContent); - b = format(b.cells[column].textContent); - if ( a < b ) return -1; - if ( a > b ) return 1; - - return 0; - }) - .forEach(function( el ) { - tbody.appendChild(el); - }); - }, - - keyCallBacks : { - cleanup : function( i ) { - var focusedClass = 'kint-focused'; - var prevElement = document.querySelector('.' + focusedClass); - prevElement && kint.removeClass(prevElement, focusedClass); - - if ( i !== -1 ) { - var el = kint.visiblePluses[i]; - kint.addClass(el, focusedClass); - - - var offsetTop = function( el ) { - return el.offsetTop + ( el.offsetParent ? offsetTop(el.offsetParent) : 0 ); - }; - - var top = offsetTop(el) - (window.innerHeight / 2 ); - window.scrollTo(0, top); - } - - kint.currentPlus = i; - }, - - moveCursor : function( up, i ) { - // todo make the first VISIBLE plus active - if ( up ) { - if ( --i < 0 ) { - i = kint.visiblePluses.length - 1; - } - } else { - if ( ++i >= kint.visiblePluses.length ) { - i = 0; - } - } - - kint.keyCallBacks.cleanup(i); - return false; - } - } - }; - - window.addEventListener("click", function( e ) { - var target = e.target - , nodeName = target.nodeName.toLowerCase(); - - if ( !kint.isSibling(target) ) return; - - // auto-select name of variable - if ( nodeName === 'dfn' ) { - kint.selectText(target); - target = target.parentNode; - } else if ( nodeName === 'var' ) { // stupid workaround for misc elements - target = target.parentNode; // to not stop event from further propagating - nodeName = target.nodeName.toLowerCase() - } else if ( nodeName === 'th' ) { - if ( !e.ctrlKey ) { - kint.sortTable(target.parentNode.parentNode.parentNode, target.cellIndex) - } - return false; - } - - // switch tabs - if ( nodeName === 'li' && target.parentNode.className === 'kint-tabs' ) { - if ( target.className !== 'kint-active-tab' ) { - kint.switchTab(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - } - return false; - } - - // handle clicks on the navigation caret - if ( nodeName === 'nav' ) { - // special case for nav in footer - if ( target.parentNode.nodeName.toLowerCase() === 'footer' ) { - target = target.parentNode; - if ( kint.hasClass(target) ) { - kint.removeClass(target) - } else { - kint.addClass(target) - } - } else { - // ensure doubleclick has different behaviour, see below - setTimeout(function() { - var timer = parseInt(target.kintTimer, 10); - if ( timer > 0 ) { - target.kintTimer--; - } else { - kint.toggleChildren(target.parentNode); //
- if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - } - }, 300); - } - - e.stopPropagation(); - return false; - } else if ( kint.hasClass(target, 'kint-parent') ) { - kint.toggle(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - return false; - } else if ( kint.hasClass(target, 'kint-ide-link') ) { - e.preventDefault(); - var ajax = new XMLHttpRequest(); // add ajax call to contact editor but prevent link default action - ajax.open('GET', target.href); - ajax.send(null); - return false; - } else if ( kint.hasClass(target, 'kint-popup-trigger') ) { - var kintContainer = target.parentNode; - if ( kintContainer.nodeName.toLowerCase() === 'footer' ) { - kintContainer = kintContainer.previousSibling; - } else { - while ( kintContainer && !kint.hasClass(kintContainer, 'kint-parent') ) { - kintContainer = kintContainer.parentNode; - } - } - - kint.openInNewWindow(kintContainer); - } else if ( nodeName === 'pre' && e.detail === 3 ) { // triple click pre to select it all - kint.selectText(target); - } - }, false); - - window.addEventListener("dblclick", function( e ) { - var target = e.target; - if ( !kint.isSibling(target) ) return; - - if ( target.nodeName.toLowerCase() === 'nav' ) { - target.kintTimer = 2; - kint.toggleAll(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - e.stopPropagation(); - } - }, false); - - // keyboard navigation - window.onkeydown = function( e ) { // direct assignment is used to have priority over ex FAYT - - // do nothing if alt/ctrl key is pressed or if we're actually typing somewhere - if ( e.target !== document.body || e.altKey || e.ctrlKey ) return; - - var keyCode = e.keyCode - , shiftKey = e.shiftKey - , i = kint.currentPlus; - - - if ( keyCode === 68 ) { // 'd' : toggles navigation on/off - if ( i === -1 ) { - kint.fetchVisiblePluses(); - return kint.keyCallBacks.moveCursor(false, i); - } else { - kint.keyCallBacks.cleanup(-1); - return false; - } - } else { - if ( i === -1 ) return; - - if ( keyCode === 9 ) { // TAB : moves up/down depending on shift key - return kint.keyCallBacks.moveCursor(shiftKey, i); - } else if ( keyCode === 38 ) { // ARROW UP : moves up - return kint.keyCallBacks.moveCursor(true, i); - } else if ( keyCode === 40 ) { // ARROW DOWN : down - return kint.keyCallBacks.moveCursor(false, i); - } - } - - - var kintNode = kint.visiblePluses[i]; - if ( kintNode.nodeName.toLowerCase() === 'li' ) { // we're on a trace tab - if ( keyCode === 32 || keyCode === 13 ) { // SPACE/ENTER - kint.switchTab(kintNode); - kint.fetchVisiblePluses(); - return kint.keyCallBacks.moveCursor(true, i); - } else if ( keyCode === 39 ) { // arrows - return kint.keyCallBacks.moveCursor(false, i); - } else if ( keyCode === 37 ) { - return kint.keyCallBacks.moveCursor(true, i); - } - } - - kintNode = kintNode.parentNode; // simple dump - if ( keyCode === 32 || keyCode === 13 ) { // SPACE/ENTER : toggles - kint.toggle(kintNode); - kint.fetchVisiblePluses(); - return false; - } else if ( keyCode === 39 || keyCode === 37 ) { // ARROW LEFT/RIGHT : respectively hides/shows and traverses - var visible = kint.hasClass(kintNode); - var hide = keyCode === 37; - - if ( visible ) { - kint.toggleChildren(kintNode, hide); // expand/collapse all children if immediate ones are showing - } else { - if ( hide ) { // LEFT - // traverse to parent and THEN hide - do {kintNode = kintNode.parentNode} while ( kintNode && kintNode.nodeName.toLowerCase() !== 'dd' ); - - if ( kintNode ) { - kintNode = kintNode.previousElementSibling; - - i = -1; - var parentPlus = kintNode.querySelector('nav'); - while ( parentPlus !== kint.visiblePluses[++i] ) {} - kint.keyCallBacks.cleanup(i) - } else { // we are at root - kintNode = kint.visiblePluses[i].parentNode; - } - } - kint.toggle(kintNode, hide); - } - kint.fetchVisiblePluses(); - return false; - } - }; - - window.addEventListener("load", function( e ) { // colorize microtime results relative to others - var elements = Array.prototype.slice.call(document.querySelectorAll('.kint-microtime'), 0); - elements.forEach(function( el ) { - var value = parseFloat(el.innerHTML) - , min = Infinity - , max = -Infinity - , ratio; - - elements.forEach(function( el ) { - var val = parseFloat(el.innerHTML); - - if ( min > val ) min = val; - if ( max < val ) max = val; - }); - - ratio = 1 - (value - min) / (max - min); - - el.style.background = 'hsl(' + Math.round(ratio * 120) + ',60%,70%)'; - }); - }); -} - -// debug purposes only, removed in minified source -function clg( i ) { - if ( !window.console )return; - var l = arguments.length, o = 0; - while ( o < l )console.log(arguments[o++]) -} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/base.less b/vendor/kint-php/kint/view/base.less deleted file mode 100644 index e5d525f..0000000 --- a/vendor/kint-php/kint/view/base.less +++ /dev/null @@ -1,408 +0,0 @@ -// -// VARIABLES FOR THEMES TO OVERRIDE -// -------------------------------------------------- - -@spacing : 4; - -// caret taken from solarized -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg=="); - -// -// SET UP HELPER VARIABLES -// -------------------------------------------------- - -@border: 1px solid @border-color; - -.selection() { - background : @border-color-hover; - color : @text-color; -} - -// -// BASE STYLES -// -------------------------------------------------- - -.kint::selection { .selection() } - -.kint::-moz-selection { .selection() } - -.kint::-webkit-selection { .selection() } - -.kint, -.kint::before, -.kint::after, -.kint *, -.kint *::before, -.kint *::after { - box-sizing : border-box; - border-radius : 0; - color : @text-color; - float : none !important; - font-family : Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; - line-height : 15px; - margin : 0; - padding : 0; - text-align : left; -} - -.kint { - font-size : 13px; - margin : @spacing * 2px 0; - overflow-x : auto; - white-space : nowrap; - - dt { - background : @main-background; - border : @border; - color : @text-color; - display : block; - font-weight : bold; - list-style : none outside none; - overflow : auto; - padding : @spacing * 1px; - - &:hover { - border-color : @border-color-hover; - } - - > var { - margin-right : 5px; - } - } - - > dl dl { - padding : 0 0 0 @spacing * 3px; - } - - // - // DROPDOWN CARET - // -------------------------------------------------- - - nav { - background : @caret-image no-repeat scroll 0 0 transparent; - cursor : pointer; - display : inline-block; - height : 15px; - width : 15px; - margin-right : 3px; - vertical-align : middle; - } - - dt.kint-parent:hover nav { - background-position : 0 -15px; - } - - dt.kint-parent.kint-show:hover > nav { - background-position : 0 -45px; - } - - dt.kint-show > nav { - background-position : 0 -30px; - } - - dt.kint-parent + dd { - display : none; - border-left : 1px dashed @border-color; - } - - dt.kint-parent.kint-show + dd { - display : block; - } - - // - // INDIVIDUAL ITEMS - // -------------------------------------------------- - - var, - var a { - color : @variable-type-color; - font-style : normal; - } - - dt:hover var, - dt:hover var a { - color : @variable-type-color-hover; - } - - dfn { - font-style : normal; - font-family : monospace; - color : @variable-name-color; - } - - pre { - color : @text-color; - margin : 0 0 0 @spacing * 3px; - padding : 5px; - overflow-y : hidden; - border-top : 0; - border : @border; - background : @main-background; - display : block; - word-break : normal; - } - - .kint-popup-trigger { - float : right !important; - cursor : pointer; - color : @border-color-hover; - - &:hover { - color : @border-color; - } - } - - dt.kint-parent > .kint-popup-trigger { - font-size : 13px; - } - - footer { - padding : 0 3px 3px; - font-size : 9px; - - > .kint-popup-trigger { - font-size : 12px; - } - - nav { - background-size : 10px; - height : 10px; - width : 10px; - - &:hover { - background-position : 0 -10px; - } - } - - > ol { - display : none; - margin-left : 32px; - } - - &.kint-show { - > ol { - display : block; - } - - nav { - background-position : 0 -20px; - - &:hover { - background-position : 0 -30px; - } - } - } - } - - a { - color : @text-color; - text-shadow : none; - - &:hover { - color : @variable-name-color; - border-bottom : 1px dotted @variable-name-color; - } - } - - // - // TABS - // -------------------------------------------------- - - ul { - list-style : none; - padding-left : @spacing * 3px; - - &:not(.kint-tabs) { - li { - border-left : 1px dashed @border-color; - - > dl { - border-left : none; - } - } - } - - &.kint-tabs { - margin : 0 0 0 @spacing * 3px; - padding-left : 0; - background : @main-background; - border : @border; - border-top : 0; - - li { - background : @secondary-background; - border : @border; - cursor : pointer; - display : inline-block; - height : @spacing * 6px; - margin : round(@spacing / 2) * 1px; - padding : 0 2px + round(@spacing * 2.5px); - vertical-align : top; - - &:hover, - &.kint-active-tab:hover { - border-color : @border-color-hover; - color : @variable-type-color-hover; - } - - &.kint-active-tab { - background : @main-background; - border-top : 0; - margin-top : -1px; - height : 27px; - line-height : 24px; - } - - &:not(.kint-active-tab) { - line-height : @spacing * 5px; - } - } - - li + li { - margin-left : 0 - } - } - - &:not(.kint-tabs) > li:not(:first-child) { - display : none; - } - } - - dt:hover + dd > ul > li.kint-active-tab { - border-color : @border-color-hover; - color : @variable-type-color-hover; - } -} - -// -// REPORT -// -------------------------------------------------- - -.kint-report { - border-collapse : collapse; - empty-cells : show; - border-spacing : 0; - - * { - font-size : 12px; - } - - dt { - background : none; - padding : (@spacing/2) * 1px; - - .kint-parent { - min-width : 100%; - overflow : hidden; - text-overflow : ellipsis; - white-space : nowrap; - } - } - - td, - th { - border : @border; - padding : (@spacing/2) * 1px; - vertical-align : center; - } - - th { - cursor : alias; - } - - td:first-child, - th { - font-weight : bold; - background : @secondary-background; - color : @variable-name-color; - } - - td { - background : @main-background; - white-space : pre; - - > dl { - padding : 0; - } - } - - pre { - border-top : 0; - border-right : 0; - } - - th:first-child { - background : none; - border : 0; - } - - td.kint-empty { - background : #d33682 !important; - } - - tr:hover { - > td { - box-shadow : 0 0 1px 0 @border-color-hover inset; - } - - var { - color : @variable-type-color-hover; - } - } - ul.kint-tabs li.kint-active-tab { - height : 20px; - line-height : 17px; - } -} - -// -// TRACE -// -------------------------------------------------- -.kint-trace { - .kint-source { - line-height : round(@spacing * 3.5) * 1px; - - span { - padding-right : 1px; - border-right : 3px inset @variable-type-color; - } - - .kint-highlight { - background : @secondary-background; - } - } - - .kint-parent { - > b { - min-width : 18px; - display : inline-block; - text-align : right; - color : @variable-name-color; - } - - > var { - > a { - color : @variable-type-color; - } - } - } -} - -// -// MISC -// -------------------------------------------------- - -// keyboard navigation caret -.kint-focused { - .keyboard-caret -} - -.kint-microtime, -.kint-color-preview { - box-shadow : 0 0 2px 0 #b6cedb; - height : 16px; - text-align : center; - text-shadow : -1px 0 #839496, 0 1px #839496, 1px 0 #839496, 0 -1px #839496; - width : 230px; - color : #fdf6e3; -} diff --git a/vendor/kint-php/kint/view/compiled/aante-light.css b/vendor/kint-php/kint/view/compiled/aante-light.css deleted file mode 100644 index 472b5fd..0000000 --- a/vendor/kint-php/kint/view/compiled/aante-light.css +++ /dev/null @@ -1,394 +0,0 @@ -/** - * @author Ante Aljinovic https://github.com/aljinovic - */ -.kint::selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint::-moz-selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint::-webkit-selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint, -.kint::before, -.kint::after, -.kint *, -.kint *::before, -.kint *::after { - box-sizing: border-box; - border-radius: 0; - color: #1d1e1e; - float: none !important; - font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; - line-height: 15px; - margin: 0; - padding: 0; - text-align: left; -} -.kint { - font-size: 13px; - margin: 8px 0; - overflow-x: auto; - white-space: nowrap; -} -.kint dt { - background: #f8f8f8; - border: 1px solid #d7d7d7; - color: #1d1e1e; - display: block; - font-weight: bold; - list-style: none outside none; - overflow: auto; - padding: 4px; -} -.kint dt:hover { - border-color: #aaaaaa; -} -.kint dt > var { - margin-right: 5px; -} -.kint > dl dl { - padding: 0 0 0 12px; -} -.kint nav { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAYAAAC5OOBJAAAAvklEQVR42mNgGMFAS0uLLSQk5HxoaOh/XDg4OLgdpwEBAQEGQAN+YtMIFH/i4ODAg9cFQNMbsWkOCgrKJMv5ID5Qipko/6M7PzAw0ImkAIQ5H0hvISv0gZpP+fn5qZAVfcBAkmEYBaNZcjRLjmbJUUCvqAIlDlAiASUWkjWDkiU0eTaSpBGUEZBy1E9QRiFWLzO2LEmU80GZHkcRhN/5oGIGVNzgKIbwOx9UwOErAIl2/igYzZKjWXI0S9IHAAASJijo0Ypj8AAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent; - cursor: pointer; - display: inline-block; - height: 15px; - width: 15px; - margin-right: 3px; - vertical-align: middle; -} -.kint dt.kint-parent:hover nav { - background-position: 0 -15px; -} -.kint dt.kint-parent.kint-show:hover > nav { - background-position: 0 -45px; -} -.kint dt.kint-show > nav { - background-position: 0 -30px; -} -.kint dt.kint-parent + dd { - display: none; - border-left: 1px dashed #d7d7d7; -} -.kint dt.kint-parent.kint-show + dd { - display: block; -} -.kint var, -.kint var a { - color: #0066ff; - font-style: normal; -} -.kint dt:hover var, -.kint dt:hover var a { - color: #ff0000; -} -.kint dfn { - font-style: normal; - font-family: monospace; - color: #1d1e1e; -} -.kint pre { - color: #1d1e1e; - margin: 0 0 0 12px; - padding: 5px; - overflow-y: hidden; - border-top: 0; - border: 1px solid #d7d7d7; - background: #f8f8f8; - display: block; - word-break: normal; -} -.kint .kint-popup-trigger { - float: right !important; - cursor: pointer; - color: #aaaaaa; -} -.kint .kint-popup-trigger:hover { - color: #d7d7d7; -} -.kint dt.kint-parent > .kint-popup-trigger { - font-size: 13px; -} -.kint footer { - padding: 0 3px 3px; - font-size: 9px; -} -.kint footer > .kint-popup-trigger { - font-size: 12px; -} -.kint footer nav { - background-size: 10px; - height: 10px; - width: 10px; -} -.kint footer nav:hover { - background-position: 0 -10px; -} -.kint footer > ol { - display: none; - margin-left: 32px; -} -.kint footer.kint-show > ol { - display: block; -} -.kint footer.kint-show nav { - background-position: 0 -20px; -} -.kint footer.kint-show nav:hover { - background-position: 0 -30px; -} -.kint a { - color: #1d1e1e; - text-shadow: none; -} -.kint a:hover { - color: #1d1e1e; - border-bottom: 1px dotted #1d1e1e; -} -.kint ul { - list-style: none; - padding-left: 12px; -} -.kint ul:not(.kint-tabs) li { - border-left: 1px dashed #d7d7d7; -} -.kint ul:not(.kint-tabs) li > dl { - border-left: none; -} -.kint ul.kint-tabs { - margin: 0 0 0 12px; - padding-left: 0; - background: #f8f8f8; - border: 1px solid #d7d7d7; - border-top: 0; -} -.kint ul.kint-tabs li { - background: #f8f8f8; - border: 1px solid #d7d7d7; - cursor: pointer; - display: inline-block; - height: 24px; - margin: 2px; - padding: 0 12px; - vertical-align: top; -} -.kint ul.kint-tabs li:hover, -.kint ul.kint-tabs li.kint-active-tab:hover { - border-color: #aaaaaa; - color: #ff0000; -} -.kint ul.kint-tabs li.kint-active-tab { - background: #f8f8f8; - border-top: 0; - margin-top: -1px; - height: 27px; - line-height: 24px; -} -.kint ul.kint-tabs li:not(.kint-active-tab) { - line-height: 20px; -} -.kint ul.kint-tabs li + li { - margin-left: 0; -} -.kint ul:not(.kint-tabs) > li:not(:first-child) { - display: none; -} -.kint dt:hover + dd > ul > li.kint-active-tab { - border-color: #aaaaaa; - color: #ff0000; -} -.kint-report { - border-collapse: collapse; - empty-cells: show; - border-spacing: 0; -} -.kint-report * { - font-size: 12px; -} -.kint-report dt { - background: none; - padding: 2px; -} -.kint-report dt .kint-parent { - min-width: 100%; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.kint-report td, -.kint-report th { - border: 1px solid #d7d7d7; - padding: 2px; - vertical-align: center; -} -.kint-report th { - cursor: alias; -} -.kint-report td:first-child, -.kint-report th { - font-weight: bold; - background: #f8f8f8; - color: #1d1e1e; -} -.kint-report td { - background: #f8f8f8; - white-space: pre; -} -.kint-report td > dl { - padding: 0; -} -.kint-report pre { - border-top: 0; - border-right: 0; -} -.kint-report th:first-child { - background: none; - border: 0; -} -.kint-report td.kint-empty { - background: #d33682 !important; -} -.kint-report tr:hover > td { - box-shadow: 0 0 1px 0 #aaaaaa inset; -} -.kint-report tr:hover var { - color: #ff0000; -} -.kint-report ul.kint-tabs li.kint-active-tab { - height: 20px; - line-height: 17px; -} -.kint-trace .kint-source { - line-height: 14px; -} -.kint-trace .kint-source span { - padding-right: 1px; - border-right: 3px inset #0066ff; -} -.kint-trace .kint-source .kint-highlight { - background: #f8f8f8; -} -.kint-trace .kint-parent > b { - min-width: 18px; - display: inline-block; - text-align: right; - color: #1d1e1e; -} -.kint-trace .kint-parent > var > a { - color: #0066ff; -} -.kint-focused { - box-shadow: 0 0 3px 2px #ff0000; -} -.kint-microtime, -.kint-color-preview { - box-shadow: 0 0 2px 0 #b6cedb; - height: 16px; - text-align: center; - text-shadow: -1px 0 #839496, 0 1px #839496, 1px 0 #839496, 0 -1px #839496; - width: 230px; - color: #fdf6e3; -} -.kint dt { - font-weight: normal; -} -.kint dt.kint-parent { - margin-top: 4px; -} -.kint > dl { - background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #ffffff 15px); -} -.kint dl dl { - margin-top: 4px; - padding-left: 25px; - border-left: none; -} -.kint > dl > dt { - background: #f8f8f8; -} -.kint ul { - margin: 0; - padding-left: 0; -} -.kint ul:not(.kint-tabs) > li { - border-left: 0; -} -.kint ul.kint-tabs { - background: #f8f8f8; - border: 1px solid #d7d7d7; - border-width: 0 1px 1px 1px; - padding: 4px 0 0 12px; - margin-left: -1px; - margin-top: -1px; -} -.kint ul.kint-tabs li, -.kint ul.kint-tabs li + li { - margin: 0 0 0 4px; -} -.kint ul.kint-tabs li { - border-bottom-width: 0; - height: 25px; -} -.kint ul.kint-tabs li:first-child { - margin-left: 0; -} -.kint ul.kint-tabs li.kint-active-tab { - border-top: 1px solid #d7d7d7; - background: #fff; - font-weight: bold; - padding-top: 0; - border-bottom: 1px solid #fff !important; - margin-bottom: -1px; -} -.kint ul.kint-tabs li.kint-active-tab:hover { - border-bottom: 1px solid #fff; -} -.kint ul > li > pre { - border: 1px solid #d7d7d7; -} -.kint dt:hover + dd > ul { - border-color: #aaaaaa; -} -.kint pre { - background: #fff; - margin-top: 4px; - margin-left: 25px; -} -.kint .kint-popup-trigger:hover { - color: #ff0000; -} -.kint .kint-source .kint-highlight { - background: #cfc; -} -.kint-report td { - background: #fff; -} -.kint-report td > dl { - padding: 0; - margin: 0; -} -.kint-report td > dl > dt.kint-parent { - margin: 0; -} -.kint-report td:first-child, -.kint-report td, -.kint-report th { - padding: 2px 4px; -} -.kint-report td.kint-empty { - background: #d7d7d7 !important; -} -.kint-report dd, -.kint-report dt { - background: #fff; -} -.kint-report tr:hover > td { - box-shadow: none; - background: #cfc; -} diff --git a/vendor/kint-php/kint/view/compiled/kint.js b/vendor/kint-php/kint/view/compiled/kint.js deleted file mode 100644 index a7eea2d..0000000 --- a/vendor/kint-php/kint/view/compiled/kint.js +++ /dev/null @@ -1,10 +0,0 @@ -(function(){if("undefined"===typeof kintInitialized){kintInitialized=1;var e=[],f=-1,g=function(a){var b=window.getSelection(),c=document.createRange();c.selectNodeContents(a);b.removeAllRanges();b.addRange(c)},h=function(a){Array.prototype.slice.call(document.querySelectorAll(".kint nav, .kint-tabs>li:not(.kint-active-tab)"),0).forEach(a)},k=function(a,b){if(!a.classList)return!1;"undefined"===typeof b&&(b="kint-show");return a.classList.contains(b)},l=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.add(b)}, -m=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.remove(b)},n=function(a){do a=a.nextElementSibling;while("dd"!==a.nodeName.toLowerCase());return a},q=function(a,b){var c=n(a);"undefined"===typeof b&&(b=k(a));b?m(a):l(a);1===c.childNodes.length&&(c=c.childNodes[0].childNodes[0])&&k(c,"kint-parent")&&q(c,b)},r=function(a,b){var c=n(a).getElementsByClassName("kint-parent"),d=c.length;for("undefined"===typeof b&&(b=k(a));d--;)q(c[d],b);q(a,b)},t=function(a){var b=a,c=0;a.parentNode.getElementsByClassName("kint-active-tab")[0].className= -"";for(a.className="kint-active-tab";b=b.previousSibling;)1===b.nodeType&&c++;a=a.parentNode.nextSibling.childNodes;for(var d=0;dKint ("+(new Date).toISOString()+')'+document.getElementsByClassName("-kint-js")[0].outerHTML+document.getElementsByClassName("-kint-css")[0].outerHTML+'
'+a.parentNode.outerHTML+"
"),b.document.close()},x=function(a,b){function c(a){var c=1===b?a.replace(/^#/,""):a;if(isNaN(c))return a.trim().toLocaleLowerCase();c=parseFloat(c);return isNaN(c)? -a.trim():c}var d=a.tBodies[0];[].slice.call(a.tBodies[0].rows).sort(function(a,d){a=c(a.cells[b].textContent);d=c(d.cells[b].textContent);return ad?1:0}).forEach(function(a){d.appendChild(a)})},y=function(a){var b=document.querySelector(".kint-focused");b&&m(b,"kint-focused");if(-1!==a){b=e[a];l(b,"kint-focused");var c=function(a){return a.offsetTop+(a.offsetParent?c(a.offsetParent):0)};window.scrollTo(0,c(b)-window.innerHeight/2)}f=a},z=function(a,b){a?0>--b&&(b=e.length-1):++b>=e.length&& -(b=0);y(b);return!1};window.addEventListener("click",function(a){var b=a.target,c=b.nodeName.toLowerCase();if(u(b)){if("dfn"===c)g(b),b=b.parentNode;else if("var"===c)b=b.parentNode,c=b.nodeName.toLowerCase();else if("th"===c)return a.ctrlKey||x(b.parentNode.parentNode.parentNode,b.cellIndex),!1;if("li"===c&&"kint-tabs"===b.parentNode.className)return"kint-active-tab"!==b.className&&(t(b),-1!==f&&v()),!1;if("nav"===c)return"footer"===b.parentNode.nodeName.toLowerCase()?(b=b.parentNode,k(b)?m(b):l(b)): -setTimeout(function(){0a&&(d=a);pvar{margin-right:5px}.kint>dl dl{padding:0 0 0 12px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAACVBMVEX///82b4tctzBls0NMAAAAQklEQVR42rWRIQ4AAAgCwf8/2qgER2BeuwJsgAqIzekMfMryPL9XQSkobE6vwKcsz/N7FfPvh09lnPf/b+7673+f0uHuAZ/EdkNQAAAAAElFTkSuQmCC") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #b6cedb}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#0092db;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#5cb730}.kint dfn{font-style:normal;font-family:monospace;color:#1d1e1e}.kint pre{color:#1d1e1e;margin:0 0 0 12px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #b6cedb;background:#e0eaef;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#0092db}.kint .kint-popup-trigger:hover{color:#b6cedb}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#1d1e1e;text-shadow:none}.kint a:hover{color:#1d1e1e;border-bottom:1px dotted #1d1e1e}.kint ul{list-style:none;padding-left:12px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #b6cedb}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 12px;padding-left:0;background:#e0eaef;border:1px solid #b6cedb;border-top:0}.kint ul.kint-tabs li{background:#c1d4df;border:1px solid #b6cedb;cursor:pointer;display:inline-block;height:24px;margin:2px;padding:0 12px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#0092db;color:#5cb730}.kint ul.kint-tabs li.kint-active-tab{background:#e0eaef;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:20px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#0092db;color:#5cb730}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #b6cedb;padding:2px;vertical-align:center}.kint-report th{cursor:alias}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#c1d4df;color:#1d1e1e}.kint-report td{background:#e0eaef;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #0092db inset}.kint-report tr:hover var{color:#5cb730}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:14px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #0092db}.kint-trace .kint-source .kint-highlight{background:#c1d4df}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#1d1e1e}.kint-trace .kint-parent>var>a{color:#0092db}.kint-focused{box-shadow:0 0 3px 2px #5cb730}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint>dl>dt{background:linear-gradient(to bottom, #e3ecf0 0, #c0d4df 100%)}.kint ul.kint-tabs{background:linear-gradient(to bottom, #9dbed0 0, #b2ccda 100%)}.kint>dl:not(.kint-trace)>dd>ul.kint-tabs li{background:#e0eaef}.kint>dl:not(.kint-trace)>dd>ul.kint-tabs li.kint-active-tab{background:#c1d4df}.kint>dl.kint-trace>dt{background:linear-gradient(to bottom, #c0d4df 0, #e3ecf0 100%)}.kint .kint-source .kint-highlight{background:#f0eb96} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/compiled/solarized-dark.css b/vendor/kint-php/kint/view/compiled/solarized-dark.css deleted file mode 100644 index d7c68ab..0000000 --- a/vendor/kint-php/kint/view/compiled/solarized-dark.css +++ /dev/null @@ -1 +0,0 @@ -.kint::selection{background:#268bd2;color:#839496}.kint::-moz-selection{background:#268bd2;color:#839496}.kint::-webkit-selection{background:#268bd2;color:#839496}.kint,.kint::before,.kint::after,.kint *,.kint *::before,.kint *::after{box-sizing:border-box;border-radius:0;color:#839496;float:none !important;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;line-height:15px;margin:0;padding:0;text-align:left}.kint{font-size:13px;margin:10px 0;overflow-x:auto;white-space:nowrap}.kint dt{background:#002b36;border:1px solid #586e75;color:#839496;display:block;font-weight:bold;list-style:none outside none;overflow:auto;padding:5px}.kint dt:hover{border-color:#268bd2}.kint dt>var{margin-right:5px}.kint>dl dl{padding:0 0 0 15px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #586e75}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#268bd2;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#2aa198}.kint dfn{font-style:normal;font-family:monospace;color:#93a1a1}.kint pre{color:#839496;margin:0 0 0 15px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #586e75;background:#002b36;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#268bd2}.kint .kint-popup-trigger:hover{color:#586e75}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#839496;text-shadow:none}.kint a:hover{color:#93a1a1;border-bottom:1px dotted #93a1a1}.kint ul{list-style:none;padding-left:15px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #586e75}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 15px;padding-left:0;background:#002b36;border:1px solid #586e75;border-top:0}.kint ul.kint-tabs li{background:#073642;border:1px solid #586e75;cursor:pointer;display:inline-block;height:30px;margin:3px;padding:0 15px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#268bd2;color:#2aa198}.kint ul.kint-tabs li.kint-active-tab{background:#002b36;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:25px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#268bd2;color:#2aa198}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2.5px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #586e75;padding:2.5px;vertical-align:top}.kint-report th{cursor:alias}.kint-report td{background:#002b36;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#073642;color:#93a1a1;padding:2.5px 0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #268bd2 inset}.kint-report tr:hover var{color:#2aa198}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:18px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #268bd2}.kint-trace .kint-source .kint-highlight{background:#073642}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#93a1a1}.kint-trace .kint-parent>var>a{color:#268bd2}.kint-focused{box-shadow:0 0 3px 2px #859900 inset;border-radius:7px}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint footer li{color:#ddd}body{background:#073642;color:#fff}.kint{background:#073642;box-shadow:0 0 5px 3px #073642}.kint>dl>dt,.kint ul.kint-tabs{box-shadow:4px 0 2px -3px #268bd2 inset}.kint ul.kint-tabs li.kint-active-tab{padding-top:7px;height:34px} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/compiled/solarized.css b/vendor/kint-php/kint/view/compiled/solarized.css deleted file mode 100644 index 772e14b..0000000 --- a/vendor/kint-php/kint/view/compiled/solarized.css +++ /dev/null @@ -1 +0,0 @@ -.kint::selection{background:#268bd2;color:#657b83}.kint::-moz-selection{background:#268bd2;color:#657b83}.kint::-webkit-selection{background:#268bd2;color:#657b83}.kint,.kint::before,.kint::after,.kint *,.kint *::before,.kint *::after{box-sizing:border-box;border-radius:0;color:#657b83;float:none !important;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;line-height:15px;margin:0;padding:0;text-align:left}.kint{font-size:13px;margin:10px 0;overflow-x:auto;white-space:nowrap}.kint dt{background:#fdf6e3;border:1px solid #93a1a1;color:#657b83;display:block;font-weight:bold;list-style:none outside none;overflow:auto;padding:5px}.kint dt:hover{border-color:#268bd2}.kint dt>var{margin-right:5px}.kint>dl dl{padding:0 0 0 15px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #93a1a1}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#268bd2;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#2aa198}.kint dfn{font-style:normal;font-family:monospace;color:#586e75}.kint pre{color:#657b83;margin:0 0 0 15px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #93a1a1;background:#fdf6e3;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#268bd2}.kint .kint-popup-trigger:hover{color:#93a1a1}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#657b83;text-shadow:none}.kint a:hover{color:#586e75;border-bottom:1px dotted #586e75}.kint ul{list-style:none;padding-left:15px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #93a1a1}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 15px;padding-left:0;background:#fdf6e3;border:1px solid #93a1a1;border-top:0}.kint ul.kint-tabs li{background:#eee8d5;border:1px solid #93a1a1;cursor:pointer;display:inline-block;height:30px;margin:3px;padding:0 15px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#268bd2;color:#2aa198}.kint ul.kint-tabs li.kint-active-tab{background:#fdf6e3;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:25px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#268bd2;color:#2aa198}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2.5px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #93a1a1;padding:2.5px;vertical-align:top}.kint-report th{cursor:alias}.kint-report td{background:#fdf6e3;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#eee8d5;color:#586e75;padding:2.5px 0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #268bd2 inset}.kint-report tr:hover var{color:#2aa198}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:18px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #268bd2}.kint-trace .kint-source .kint-highlight{background:#eee8d5}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#586e75}.kint-trace .kint-parent>var>a{color:#268bd2}.kint-focused{box-shadow:0 0 3px 2px #859900 inset;border-radius:7px}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint>dl>dt,.kint ul.kint-tabs{box-shadow:4px 0 2px -3px #268bd2 inset}.kint ul.kint-tabs li.kint-active-tab{padding-top:7px;height:34px} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/themes/aante-light.less b/vendor/kint-php/kint/view/themes/aante-light.less deleted file mode 100644 index f342d75..0000000 --- a/vendor/kint-php/kint/view/themes/aante-light.less +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @author Ante Aljinovic https://github.com/aljinovic - */ -@import "../base"; - -@main-background: #f8f8f8; -@secondary-background : #f8f8f8; - -@text-color: #1d1e1e; -@variable-name-color: #1d1e1e; -@variable-type-color: #06f; -@variable-type-color-hover: #f00; - -@border-color: #d7d7d7; -@border-color-hover: #aaa; - -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAYAAAC5OOBJAAAAvklEQVR42mNgGMFAS0uLLSQk5HxoaOh/XDg4OLgdpwEBAQEGQAN+YtMIFH/i4ODAg9cFQNMbsWkOCgrKJMv5ID5Qipko/6M7PzAw0ImkAIQ5H0hvISv0gZpP+fn5qZAVfcBAkmEYBaNZcjRLjmbJUUCvqAIlDlAiASUWkjWDkiU0eTaSpBGUEZBy1E9QRiFWLzO2LEmU80GZHkcRhN/5oGIGVNzgKIbwOx9UwOErAIl2/igYzZKjWXI0S9IHAAASJijo0Ypj8AAAAABJRU5ErkJggg=="); - -.keyboard-caret() { - box-shadow : 0 0 3px 2px @variable-type-color-hover; -} - -.kint { - dt { - font-weight : normal; - - &.kint-parent { - margin-top : 4px; - } - } - - > dl { - background : linear-gradient(90deg, rgba(255,255,255,0) 0, #fff 15px); - } - - dl dl { - margin-top : 4px; - padding-left : 25px; - border-left : none; - } - - > dl > dt { - background : @secondary-background; - } - - // - // TABS - // -------------------------------------------------- - - ul { - margin : 0; - padding-left : 0; - - &:not(.kint-tabs) > li { - border-left : 0; - } - - &.kint-tabs { - background : @secondary-background; - border : @border; - border-width : 0 1px 1px 1px; - padding : 4px 0 0 12px; - margin-left : -1px; - margin-top : -1px; - - li, - li + li { - margin : 0 0 0 4px; - } - - li { - border-bottom-width : 0; - height : @spacing * 6px + 1px; - - - &:first-child { - margin-left : 0; - } - - &.kint-active-tab { - border-top : @border; - background : #fff; - font-weight : bold; - padding-top : 0; - border-bottom : 1px solid #fff !important; - margin-bottom : -1px; - } - - &.kint-active-tab:hover { - border-bottom : 1px solid #fff; - } - } - } - - > li > pre { - border : @border; - } - } - - dt:hover + dd > ul { - border-color : @border-color-hover; - } - - pre { - background : #fff; - margin-top : 4px; - margin-left : 25px; - } - - .kint-popup-trigger:hover { - color : @variable-type-color-hover; - } - - .kint-source .kint-highlight { - background : #cfc; - } -} - -// -// REPORT -// -------------------------------------------------- - -.kint-report { - td { - background : #fff; - - > dl { - padding : 0; - margin : 0; - > dt.kint-parent { - margin: 0; - } - } - } - - td:first-child, - td, - th { - padding : 2px 4px; - } - - td.kint-empty { - background : @border-color !important; - } - - dd, dt { - background: #fff; - } - - tr:hover > td { - box-shadow : none; - background : #cfc; - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/themes/original.less b/vendor/kint-php/kint/view/themes/original.less deleted file mode 100644 index 839a9de..0000000 --- a/vendor/kint-php/kint/view/themes/original.less +++ /dev/null @@ -1,43 +0,0 @@ -@import "../base"; - -@main-background: #e0eaef; -@secondary-background: #c1d4df; - -@text-color: #1d1e1e; -@variable-name-color: #1d1e1e; -@variable-type-color: #0092db; -@variable-type-color-hover: #5cb730; - -@border-color: #b6cedb; -@border-color-hover: #0092db; - -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAACVBMVEX///82b4tctzBls0NMAAAAQklEQVR42rWRIQ4AAAgCwf8/2qgER2BeuwJsgAqIzekMfMryPL9XQSkobE6vwKcsz/N7FfPvh09lnPf/b+7673+f0uHuAZ/EdkNQAAAAAElFTkSuQmCC"); - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #5cb730; -} - -.kint { - > dl > dt { - background : linear-gradient(to bottom, #e3ecf0 0, #c0d4df 100%); - } - - ul.kint-tabs { - background : linear-gradient(to bottom, #9dbed0 0px, #b2ccda 100%); - } - - & > dl:not(.kint-trace) > dd > ul.kint-tabs li { - background : @main-background; - &.kint-active-tab { - background : @secondary-background; - } - } - - & > dl.kint-trace > dt { - background : linear-gradient(to bottom, #c0d4df 0px, #e3ecf0 100%); - } - - .kint-source .kint-highlight { - background : #f0eb96; - } -} \ No newline at end of file diff --git a/vendor/kint-php/kint/view/themes/solarized-dark.less b/vendor/kint-php/kint/view/themes/solarized-dark.less deleted file mode 100644 index 83e2e3e..0000000 --- a/vendor/kint-php/kint/view/themes/solarized-dark.less +++ /dev/null @@ -1,44 +0,0 @@ -@import "../base"; - -@spacing : 5; - -@main-background: #002b36; // base 03 -@secondary-background : #073642; // base 02 - -@text-color: #839496; // base 0 -@variable-name-color: #93a1a1; // base 1 -@variable-type-color: #268bd2; // blue -@variable-type-color-hover: #2aa198; // cyan - -@border-color: #586e75; // base 01 -@border-color-hover: #268bd2; // blue - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #859900 inset; // green - border-radius : 7px; -} - -body { - background : @secondary-background; - color : #fff; // for non-kint elements to remain at least semi-readable -} - -.kint { - background : @secondary-background; - box-shadow : 0 0 5px 3px @secondary-background; - - > dl > dt, - ul.kint-tabs { - box-shadow : 4px 0 2px -3px @variable-type-color inset; - } -} - -.kint ul.kint-tabs li.kint-active-tab { - padding-top: 7px; - height: 34px; -} - -// mini trace -.kint footer li { - color: #ddd; -} diff --git a/vendor/kint-php/kint/view/themes/solarized.less b/vendor/kint-php/kint/view/themes/solarized.less deleted file mode 100644 index ded8748..0000000 --- a/vendor/kint-php/kint/view/themes/solarized.less +++ /dev/null @@ -1,29 +0,0 @@ -@import "../base"; - -@spacing : 5; - -@main-background: #fdf6e3; // base 3 -@secondary-background : #eee8d5; // base 2 - -@text-color: #657b83; // base 00 -@variable-name-color: #586e75; // base 01 -@variable-type-color: #268bd2; // blue -@variable-type-color-hover: #2aa198; // cyan - -@border-color: #93a1a1; // base 1 -@border-color-hover: #268bd2; // blue - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #859900 inset; // green - border-radius : 7px; -} - -.kint > dl > dt, -.kint ul.kint-tabs { - box-shadow : 4px 0 2px -3px @variable-type-color inset; -} - -.kint ul.kint-tabs li.kint-active-tab { - padding-top: 7px; - height: 34px; -} \ No newline at end of file