diff --git a/.gitignore b/.gitignore
index 9fed8a4..11fd061 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,32 @@ tmp
logs
.idea
files
-archive/*
\ No newline at end of file
+archive/*
+
+# Зависимости Composer без локальных изменений не храним в Git.
+/vendor/*
+!/vendor/browser_detection/
+!/vendor/dbf/
+!/vendor/sms/
+!/vendor/cakephp/
+/vendor/cakephp/*
+!/vendor/cakephp/cakephp/
+!/vendor/composer/
+/vendor/composer/*
+!/vendor/composer/composer/
+!/vendor/dompdf/
+/vendor/dompdf/*
+!/vendor/dompdf/dompdf/
+!/vendor/m1/
+/vendor/m1/*
+!/vendor/m1/env/
+!/vendor/parsecsv/
+/vendor/parsecsv/*
+!/vendor/parsecsv/php-parsecsv/
+!/vendor/squizlabs/
+/vendor/squizlabs/*
+!/vendor/squizlabs/php_codesniffer/
+!/vendor/symfony/
+/vendor/symfony/*
+!/vendor/symfony/debug/
+!/vendor/empty
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..40040e7
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# Зависимости приложения
+
+Версии зависимостей зафиксированы в `composer.lock`. Пакеты, совпавшие с
+официальными архивами этих версий, и создаваемые Composer служебные файлы
+исключены из Git.
+
+В `vendor` сохранены ручные DBF/SMS/BrowserDetection-библиотеки, пакеты с
+локальными отличиями и пакеты без подтверждённого эталона. В том числе
+сохраняются правки CakePHP и дополнительные шрифты Dompdf. Состав каталогов
+задан исключениями в `.gitignore`.
+
+Перед восстановлением зависимостей нужно сохранить отслеживаемую часть
+`vendor` в отдельную копию. После восстановления пакетов по `composer.lock`
+в изолированном окружении сохранённые файлы возвращаются поверх пакетов.
+Это сохраняет существующие правки и шрифты; слепая переустановка может их
+перезаписать. Восстановление и проверка работы приложения выполняются отдельно.
diff --git a/vendor/ajgl/breakpoint-twig-extension/.gitignore b/vendor/ajgl/breakpoint-twig-extension/.gitignore
deleted file mode 100644
index 25be7c4..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/vendor/
-*.cache
-composer.lock
-phpunit.xml
diff --git a/vendor/ajgl/breakpoint-twig-extension/.php_cs b/vendor/ajgl/breakpoint-twig-extension/.php_cs
deleted file mode 100644
index 6587885..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/.php_cs
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-For the full copyright and license information, please view the LICENSE
-file that was distributed with this source code.
-EOF;
-
-return \PhpCsFixer\Config::create()
- ->setRiskyAllowed(true)
- ->setRules(
- [
- '@Symfony' => true,
- '@Symfony:risky' => true,
- 'array_syntax' => array('syntax' => 'short'),
- 'fully_qualified_strict_types' => true,
- 'header_comment' => array('header' => $header),
- 'native_function_invocation' => false,
- 'ordered_imports' => [
- 'imports_order' => ['class', 'const', 'function'],
- ],
- 'phpdoc_order' => true,
- 'psr4' => true,
- 'strict_comparison' => true,
- 'strict_param' => true,
- ]
- )
- ->setFinder(
- \PhpCsFixer\Finder::create()
- ->in(__DIR__.'/src')
- ->in(__DIR__.'/tests')
- )
-;
diff --git a/vendor/ajgl/breakpoint-twig-extension/.scrutinizer.yml b/vendor/ajgl/breakpoint-twig-extension/.scrutinizer.yml
deleted file mode 100644
index 8b19e9e..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/.scrutinizer.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# .scrutinizer.yml
-checks:
- php: true
-
-tools:
- external_code_coverage:
- timeout: 900
diff --git a/vendor/ajgl/breakpoint-twig-extension/.travis.yml b/vendor/ajgl/breakpoint-twig-extension/.travis.yml
deleted file mode 100644
index bbcf510..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/.travis.yml
+++ /dev/null
@@ -1,68 +0,0 @@
-language: php
-sudo: false
-cache:
- directories:
- - $HOME/.composer/cache/files
- - $HOME/symfony-bridge/.phpunit
-
-env:
- global:
- - PHPUNIT_FLAGS="-v"
- - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
-
-matrix:
- fast_finish: true
- include:
- # Minimum supported dependencies with the latest and oldest PHP version
- - php: 7.3
- env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
- - php: 5.6
- env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
-
- # Test the latest stable release
- - php: 5.6
- - php: 7.0
- - php: 7.1
- - php: 7.2
- - php: 7.3
- env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" LINT=true
-
- # Test LTS versions. This makes sure we do not use Symfony packages with version greater
- # than 2 or 3 respectively. Read more at https://github.com/symfony/lts
- - php: 7.3
- env: DEPENDENCIES="symfony/lts:^2"
- - php: 7.3
- env: DEPENDENCIES="symfony/lts:^3"
-
- # Latest commit to master
- - php: 7.3
- env: STABILITY="dev"
- - php: 7.4
- env: STABILITY="dev"
- - php: nightly
- env: STABILITY="dev"
-
- allow_failures:
- # Dev-master is allowed to fail.
- - env: STABILITY="dev"
-
-before_install:
- - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
- - if [[ $LINT = true ]]; then wget https://cs.symfony.com/download/php-cs-fixer-v2.phar; fi
-
-install:
- - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
- - ./vendor/bin/simple-phpunit install
-
-script:
- - composer validate --strict --no-check-lock
- - if [[ $LINT = true ]]; then php php-cs-fixer-v2.phar fix --dry-run --diff --no-ansi; fi
- # simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and
- # it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge)
- - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
-
-after_script:
- - wget https://scrutinizer-ci.com/ocular.phar
- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
diff --git a/vendor/ajgl/breakpoint-twig-extension/CHANGELOG.md b/vendor/ajgl/breakpoint-twig-extension/CHANGELOG.md
deleted file mode 100644
index 17d5dec..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/CHANGELOG.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# [CHANGELOG](http://keepachangelog.com/)
-All notable changes to this project will be documented in this file.
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-## [Unreleased][unreleased]
-
-
-## [0.3.4] - 2019-04-10
-
-### Fixed
-- Population of `$arguments` variable
-
-
-## [0.3.3] - 2019-03-18
-
-### Fixed
-- Population of `$arguments` variable
-- Usage of deprecated classes
-
-
-## [0.3.2] - 2018-12-10
-
-### Added
-- Add support for Symfony 4
-
-## [0.3.1] - 2017-11-20
-
-### Changed
-- Require PHP 5.6
-
-### Fixed
-- Update requirements to allow twig 2.x
-
-
-## [0.3.0] - 2016-03-31
-
-### Added
-- Add `$environment` and `$context` variables
-- Allow to inspect function arguments
-
-
-## [0.2.0] - 2016-03-10
-
-### Added
-- Add Symfony Bundle
-
-
-## 0.1.0 - 2016-03-09
-
-### Added
-- Add `breakpoint` function
-
-
-[unreleased]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.3.4...master
-[0.3.4]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.3.3...0.3.4
-[0.3.3]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.3.2...0.3.3
-[0.3.2]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.3.1...0.3.2
-[0.3.1]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.3.0...0.3.1
-[0.3.0]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.2.0...0.3.0
-[0.2.0]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/compare/0.1.0...0.2.0
diff --git a/vendor/ajgl/breakpoint-twig-extension/LICENSE b/vendor/ajgl/breakpoint-twig-extension/LICENSE
deleted file mode 100644
index 9aeafa2..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright (c) 2013-2016 Antonio J. García Lagar
-
-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.
diff --git a/vendor/ajgl/breakpoint-twig-extension/README.md b/vendor/ajgl/breakpoint-twig-extension/README.md
deleted file mode 100644
index 5844613..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/README.md
+++ /dev/null
@@ -1,124 +0,0 @@
-AjglBreakpointTwigExtension
-===========================
-
-The AjglBreakpointTwigExtension component allows you set breakpoints in twig templates.
-
-[](https://travis-ci.org/ajgarlag/AjglBreakpointTwigExtension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://packagist.org/packages/ajgl/breakpoint-twig-extension)
-[](https://scrutinizer-ci.com/g/ajgarlag/AjglBreakpointTwigExtension/?branch=master)
-[](https://scrutinizer-ci.com/g/ajgarlag/AjglBreakpointTwigExtension/?branch=master)
-[](https://insight.sensiolabs.com/projects/e0f1276d-6ded-4a20-9b3f-1a7c77a92015)
-
-This component requires the [Xdebug] PHP extension to be installed.
-
-
-Installation
-------------
-
-To install the latest stable version of this component, open a console and execute the following command:
-```
-$ composer require ajgl/breakpoint-twig-extension
-```
-
-
-Usage
------
-
-The first step is to register the extension into the twig environment
-```php
-/* @var $twig Twig_Environment */
-$twig->addExtension(new Ajgl\Twig\Extension\BreakpointExtension());
-```
-
-Once registered, you can call the new `breakpoint` function:
-```twig
-
-
-
-
- title
-
-
- {{ breakpoint() }}
-
-
-```
-
-Once stopped, your debugger will allow you to inspect the `$environment` and `$context` variables.
-
-### Function arguments
-
-Any argument passed to the twig function will be added to the `$arguments` array, so you can inspect it easily.
-
-```twig
-
-
-
-
- title
-
-
- {{ breakpoint(app.user, app.session) }}
-
-
-```
-
-Symfony Bundle
---------------
-
-If you want to use this extension in your Symfony application, you can enable the
-Symfony Bundle included in this package.
-
-The bundle will register the twig extension automatically. So, once enabled, you
-can insert the `breakpoint` twig function in your templates.
-
-### Symfony 2/3
-
-```php
-// app/AppKernel.php
-if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
- $bundles[] = new Ajgl\Twig\Extension\SymfonyBundle\AjglBreakpointTwigExtensionBundle();
-}
-```
-
-### Symfony 4
-
-```php
-// config/bundles.php
-//...
-return [
- //...
- Ajgl\Twig\Extension\SymfonyBundle\AjglBreakpointTwigExtensionBundle::class => ['dev' => true]
-];
-```
-
-License
--------
-
-This component is under the MIT license. See the complete license in the [LICENSE] file.
-
-
-Reporting an issue or a feature request
----------------------------------------
-
-Issues and feature requests are tracked in the [Github issue tracker].
-
-
-Author Information
-------------------
-
-Developed with ♥ by [Antonio J. García Lagar].
-
-If you find this component useful, please add a ★ in the [GitHub repository page] and/or the [Packagist package page].
-
-[Xdebug]: https://xdebug.org/
-[LICENSE]: LICENSE
-[Github issue tracker]: https://github.com/ajgarlag/AjglBreakpointTwigExtension/issues
-[Antonio J. García Lagar]: http://aj.garcialagar.es
-[GitHub repository page]: https://github.com/ajgarlag/AjglBreakpointTwigExtension
-[Packagist package page]: https://packagist.org/packages/ajgl/breakpoint-twig-extension
diff --git a/vendor/ajgl/breakpoint-twig-extension/composer.json b/vendor/ajgl/breakpoint-twig-extension/composer.json
deleted file mode 100644
index f05e3e0..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/composer.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "name": "ajgl/breakpoint-twig-extension",
- "description": "Twig extension to set breakpoints",
- "keywords": ["twig", "xdebug", "breakpoint"],
- "homepage": "https://github.com/ajgarlag/AjglBreakpointTwigExtension",
- "license": "MIT",
- "authors": [
- {
- "name": "Antonio J. García Lagar",
- "email": "aj@garcialagar.es",
- "homepage": "http://aj.garcialagar.es",
- "role": "developer"
- }
- ],
- "autoload": {
- "psr-4": { "Ajgl\\Twig\\Extension\\": "src/" }
- },
- "autoload-dev": {
- "psr-4": { "Ajgl\\Twig\\Extension\\Tests\\": "tests/" }
- },
- "require": {
- "php": ">=5.6",
- "twig/twig": "^1.14|^2.0"
- },
- "require-dev": {
- "symfony/framework-bundle": "^2.7|^3.2|^4.1",
- "symfony/twig-bundle": "^2.7|^3.2|^4.1",
- "symfony/phpunit-bridge": "^3.4|^4.1"
- },
- "suggest": {
- "ext-xdebug": "The Xdebug extension is required for the breakpoint to work",
- "symfony/framework-bundle": "The framework bundle to integrate the extension into Symfony",
- "symfony/twig-bundle": "The twig bundle to integrate the extension into Symfony"
- },
- "scripts": {
- "phpunit": "vendor/bin/simple-phpunit --colors=always",
- "test": [
- "@phpunit"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "0.3.x-dev"
- }
- }
-}
diff --git a/vendor/ajgl/breakpoint-twig-extension/phpunit.xml.dist b/vendor/ajgl/breakpoint-twig-extension/phpunit.xml.dist
deleted file mode 100644
index ec8dc6e..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/phpunit.xml.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
- ./tests
-
-
-
-
-
- ./src
-
-
-
-
diff --git a/vendor/ajgl/breakpoint-twig-extension/src/BreakpointExtension.php b/vendor/ajgl/breakpoint-twig-extension/src/BreakpointExtension.php
deleted file mode 100644
index f839d68..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/src/BreakpointExtension.php
+++ /dev/null
@@ -1,49 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Ajgl\Twig\Extension;
-
-use Twig\Environment;
-use Twig\Extension\AbstractExtension;
-use Twig\TwigFunction;
-
-/**
- * @author Antonio J. García Lagar
- */
-class BreakpointExtension extends AbstractExtension
-{
- public function getName()
- {
- return 'breakpoint';
- }
-
- public function getFunctions()
- {
- return [
- new TwigFunction('breakpoint', [$this, 'setBreakpoint'], ['needs_environment' => true, 'needs_context' => true]),
- ];
- }
-
- /**
- * If Xdebug is detected, makes the debugger break.
- *
- * @param Environment $environment the environment instance
- * @param mixed $context variables from the Twig template
- */
- public function setBreakpoint(Environment $environment, $context)
- {
- if (function_exists('xdebug_break')) {
- $arguments = func_get_args();
- $arguments = array_slice($arguments, 2);
- xdebug_break();
- }
- }
-}
diff --git a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/AjglBreakpointTwigExtensionBundle.php b/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/AjglBreakpointTwigExtensionBundle.php
deleted file mode 100644
index 2caa7ca..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/AjglBreakpointTwigExtensionBundle.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Ajgl\Twig\Extension\SymfonyBundle;
-
-use Symfony\Component\HttpKernel\Bundle\Bundle;
-
-/**
- * @author Antonio J. García Lagar
- */
-class AjglBreakpointTwigExtensionBundle extends Bundle
-{
-}
diff --git a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtension.php b/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtension.php
deleted file mode 100644
index cf25daa..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtension.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Ajgl\Twig\Extension\SymfonyBundle\DependencyInjection;
-
-use Symfony\Component\Config\FileLocator;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Loader;
-use Symfony\Component\HttpKernel\DependencyInjection\Extension;
-
-/**
- * @author Antonio J. García Lagar
- */
-class AjglBreakpointTwigExtensionExtension extends Extension
-{
- public function load(array $config, ContainerBuilder $container)
- {
- $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- $loader->load('twig.xml');
- }
-}
diff --git a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/Resources/config/twig.xml b/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/Resources/config/twig.xml
deleted file mode 100644
index e7bd832..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/src/SymfonyBundle/Resources/config/twig.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/vendor/ajgl/breakpoint-twig-extension/tests/BreakpointExtensionTest.php b/vendor/ajgl/breakpoint-twig-extension/tests/BreakpointExtensionTest.php
deleted file mode 100644
index 3f88bdf..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/tests/BreakpointExtensionTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Ajgl\Twig\Extension\Tests;
-
-use Ajgl\Twig\Extension\BreakpointExtension;
-use PHPUnit\Framework\TestCase;
-
-/**
- * @author Antonio J. García Lagar
- */
-class BreakpointExtensionTest extends TestCase
-{
- /**
- * @var BreakpointExtension
- */
- protected $extension;
-
- protected function setUp()
- {
- $this->extension = new BreakpointExtension();
- }
-
- public function testGetName()
- {
- $this->assertSame('breakpoint', $this->extension->getName());
- }
-
- public function testGetFunctions()
- {
- $functions = $this->extension->getFunctions();
- $this->assertCount(1, $functions);
- $function = reset($functions);
- $this->assertInstanceOf('Twig_SimpleFunction', $function);
- $callable = $function->getCallable();
- $this->assertTrue(is_array($callable));
- $this->assertCount(2, $callable);
- $this->assertSame($this->extension, $callable[0]);
- $this->assertSame('setBreakpoint', $callable[1]);
- }
-}
diff --git a/vendor/ajgl/breakpoint-twig-extension/tests/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtensionTest.php b/vendor/ajgl/breakpoint-twig-extension/tests/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtensionTest.php
deleted file mode 100644
index 7c51e6f..0000000
--- a/vendor/ajgl/breakpoint-twig-extension/tests/SymfonyBundle/DependencyInjection/AjglBreakpointTwigExtensionExtensionTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Ajgl\Twig\Extension\Tests\SymfonyBundle\DependencyInjection;
-
-use Ajgl\Twig\Extension\SymfonyBundle\DependencyInjection\AjglBreakpointTwigExtensionExtension;
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-
-/**
- * @author Antonio J. García Lagar
- */
-class AjglBreakpointTwigExtensionExtensionTest extends TestCase
-{
- /**
- * @var ContainerBuilder
- */
- protected $container;
-
- /**
- * @var AjglBreakpointTwigExtensionExtension
- */
- protected $extension;
-
- protected function setUp()
- {
- $this->container = new ContainerBuilder();
- $this->extension = new AjglBreakpointTwigExtensionExtension();
- }
-
- public function testTwigExtensionsDefinition()
- {
- $this->extension->load([], $this->container);
- $this->assertTrue($this->container->hasDefinition('ajgl_twig_extension.breakpoint'));
- $definition = $this->container->getDefinition('ajgl_twig_extension.breakpoint');
- $this->assertSame(
- 'Ajgl\Twig\Extension\BreakpointExtension',
- $definition->getClass()
- );
- $this->assertNotNull($definition->getTag('twig.extension'));
- }
-}
diff --git a/vendor/aptoma/twig-markdown/.travis.yml b/vendor/aptoma/twig-markdown/.travis.yml
deleted file mode 100644
index 62d7420..0000000
--- a/vendor/aptoma/twig-markdown/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-language: php
-sudo: false
-
-php:
- - 5.4
- - 5.5
- - 5.6
- - 7
-
-env:
- global:
- # travis encrypt CODECLIMATE_REPO_TOKEN=
- - secure: "n4I9GwRCxi9UGjhDGe79SV6Nr/fRKpA8N+qqqbkveJv01Z4IRcAsRBRxKrSAX8zJUoFhlJK73VeRnBfdSBddsL3RqgDMbHilZFy6yC7Dj/vVyNe90RPWxc5J7w3sidT2g1OsgWueiUis8y3dGOQd2sewfcb2pZa29/eQusBV5i0="
-
-install:
- - composer install
-
-before_script:
- - mkdir -p build/logs
-
-script:
- - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
-
-after_script:
- - php vendor/bin/coveralls -v
- - ./vendor/bin/test-reporter --stdout > codeclimate.json
- - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)' https://codeclimate.com/test_reports"
diff --git a/vendor/aptoma/twig-markdown/CHANGELOG.md b/vendor/aptoma/twig-markdown/CHANGELOG.md
deleted file mode 100644
index 09db06d..0000000
--- a/vendor/aptoma/twig-markdown/CHANGELOG.md
+++ /dev/null
@@ -1,23 +0,0 @@
-CHANGELOG
-=========
-
-2.0.0
------
-
-- **BC**: Require Twig v1.12, in order to replace deprecated Twig_Filter_Method with Twig_SimpleFilter
-- **Added**: Add support for ParsedownEnging
-
-1.2.0
------
-
-- **Added**: Add support for GitHub's markdown engine
-
-1.1.0
------
-
-- **Added**: Add support for PHP League CommonMark engine
-
-1.0.0
------
-
-- **BC**: Remove deprecated dflydev-markdown parser
diff --git a/vendor/aptoma/twig-markdown/README.md b/vendor/aptoma/twig-markdown/README.md
deleted file mode 100644
index b6807ef..0000000
--- a/vendor/aptoma/twig-markdown/README.md
+++ /dev/null
@@ -1,171 +0,0 @@
-Twig Markdown Extension
-=======================
-
-[](http://travis-ci.org/aptoma/twig-markdown)
-[](https://coveralls.io/r/aptoma/twig-markdown)
-
-Twig Markdown extension provides a new filter and a tag to allow parsing of
-content as Markdown in [Twig][1] templates.
-
-This extension could be integrated with several Markdown parser as it provides an interface, which allows you to customize your Markdown parser.
-
-### Supported parsers
-
- * [michelf/php-markdown](https://github.com/michelf/php-markdown) (+ MarkdownExtra)
- * [league/commonmark](http://commonmark.thephpleague.com/)
- * [KnpLabs/php-github-api](https://github.com/KnpLabs/php-github-api)
- * [erusev/parsedown](https://github.com/erusev/parsedown)
-
-## Features
-
- * Filter support `{{ "# Heading Level 1"|markdown }}`
- * Tag support `{% markdown %}{% endmarkdown %}`
-
-When used as a tag, the indentation level of the first line sets the default indentation level for the rest of the tag content.
-From this indentation level, all same indentation or outdented levels text will be transformed as regular text.
-
-This feature allows you to write your Markdown content at any indentation level without caring of Markdown internal transformation:
-
-```php
-
-
{{ title }}
-
- {% markdown %}
- This is a list that is indented to match the context around the markdown tag:
-
- * List item 1
- * List item 2
- * Sub List Item
- * Sub Sub List Item
-
- The following block will be transformed as code, as it is indented more than the
- surrounding content:
-
- $code = "good";
-
- {% endmarkdown %}
-
-
diff --git a/vendor/cakephp/bake/src/Template/Bake/Form/form.twig b/vendor/cakephp/bake/src/Template/Bake/Form/form.twig
deleted file mode 100644
index 32bd7d5..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Form/form.twig
+++ /dev/null
@@ -1,60 +0,0 @@
-{#
-/**
-* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
-* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-*
-* Licensed under The MIT License
-* For full copyright and license information, please see the LICENSE.txt
-* Redistributions of files must retain the above copyright notice.
-*
-* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-* @link http://cakephp.org CakePHP(tm) Project
-* @since 2.0.0
-* @license http://www.opensource.org/licenses/mit-license.php MIT License
-*/
-#}
-setTable('{{ table }}');
-{% endif %}
-
-{%- if displayField %}
- $this->setDisplayField('{{ displayField }}');
-{% endif %}
-
-{%- if primaryKey %}
- {%- if primaryKey is iterable and primaryKey|length > 1 %}
- $this->setPrimaryKey([{{ Bake.stringifyList(primaryKey, {'indent': false})|raw }}]);
- {{- "\n" }}
- {%- else %}
- $this->setPrimaryKey('{{ primaryKey|as_array|first }}');
- {{- "\n" }}
- {%- endif %}
-{% endif %}
-
-{%- if behaviors %}
-
-{% endif %}
-
-{%- for behavior, behaviorData in behaviors %}
- $this->addBehavior('{{ behavior }}'{{ (behaviorData ? (", [" ~ Bake.stringifyList(behaviorData, {'indent': 3, 'quotes': false})|raw ~ ']') : '')|raw }});
-{% endfor %}
-
-{%- if associations.belongsTo or associations.hasMany or associations.belongsToMany %}
-
-{% endif %}
-
-{%- for type, assocs in associations %}
- {%- for assoc in assocs %}
- {%- set assocData = [] %}
- {%- for key, val in assoc if key is not same as('alias') %}
- {%- set assocData = assocData|merge({(key): val}) %}
- {%- endfor %}
- $this->{{ type }}('{{ assoc.alias }}', [{{ Bake.stringifyList(assocData, {'indent': 3})|raw }}]);
- {{- "\n" }}
- {%- endfor %}
-{% endfor %}
- }
-{{- "\n" }}
-
-{%- if validation %}
-
- /**
- * Default validation rules.
- *
- * @param \Cake\Validation\Validator $validator Validator instance.
- * @return \Cake\Validation\Validator
- */
- public function validationDefault(Validator $validator)
- {
-{% for field, rules in validation %}
-{% set validationMethods = Bake.getValidationMethods(field, rules) %}
-{% if validationMethods %}
- $validator
-{% for validationMethod in validationMethods %}
-{% if loop.last %}
-{% set validationMethod = validationMethod ~ ';' %}
-{% endif %}
- {{ validationMethod|raw }}
-{% endfor %}
-
-{% endif %}
-{% endfor %}
- return $validator;
- }
-{% endif %}
-
-{%- if rulesChecker %}
-
- /**
- * Returns a rules checker object that will be used for validating
- * application integrity.
- *
- * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
- * @return \Cake\ORM\RulesChecker
- */
- public function buildRules(RulesChecker $rules)
- {
-{% for field, rule in rulesChecker %}
- $rules->add($rules->{{ rule.name }}(['{{ field }}']{{ (rule.extra is defined and rule.extra ? (", '#{rule.extra}'") : '')|raw }}));
-{% endfor %}
-
- return $rules;
- }
-{% endif %}
-
-{%- if connection is not same as('default') %}
-
- /**
- * Returns the database connection name to use by default.
- *
- * @return string
- */
- public static function defaultConnectionName()
- {
- return '{{ connection }}';
- }
-{% endif %}
-}
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/.gitignore.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/.gitignore.twig
deleted file mode 100644
index 2bcbfb6..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/.gitignore.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-/composer.lock
-/phpunit.xml
-/vendor
-config/Migrations/schema-dump-default.lock
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/README.md.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/README.md.twig
deleted file mode 100644
index 0763927..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/README.md.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-# {{ plugin }} plugin for CakePHP
-
-## Installation
-
-You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).
-
-The recommended way to install composer packages is:
-
-```
-composer require {{ package }}
-```
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/composer.json.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/composer.json.twig
deleted file mode 100644
index da1adf2..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/composer.json.twig
+++ /dev/null
@@ -1,39 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-{% set namespace = namespace|replace({'\\': '\\\\'}) %}
-{
- "name": "{{ package }}",
- "description": "{{ plugin }} plugin for CakePHP",
- "type": "cakephp-plugin",
- "license": "MIT",
- "require": {
- "cakephp/cakephp": "^3.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.14|^6.0"
- },
- "autoload": {
- "psr-4": {
- "{{ namespace }}\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "{{ namespace }}\\Test\\": "tests/",
- "Cake\\Test\\": "vendor/cakephp/cakephp/tests/"
- }
- }
-}
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/config/routes.php.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/config/routes.php.twig
deleted file mode 100644
index 30c8020..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/config/routes.php.twig
+++ /dev/null
@@ -1,27 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
- '/{{ routePath }}'],
- function (RouteBuilder $routes) {
- $routes->fallbacks(DashedRoute::class);
- }
-);
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/phpunit.xml.dist.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/phpunit.xml.dist.twig
deleted file mode 100644
index 2653e66..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/phpunit.xml.dist.twig
+++ /dev/null
@@ -1,50 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-
-
-
-
-
-
-
-
-
-
- tests/TestCase/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- src/
-
-
-
-
diff --git a/vendor/cakephp/bake/src/Template/Bake/Plugin/src/Controller/AppController.php.twig b/vendor/cakephp/bake/src/Template/Bake/Plugin/src/Controller/AppController.php.twig
deleted file mode 100644
index 2f82948..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Plugin/src/Controller/AppController.php.twig
+++ /dev/null
@@ -1,24 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-out($this->OptionParser->help());
- }
-}
diff --git a/vendor/cakephp/bake/src/Template/Bake/Shell/task.twig b/vendor/cakephp/bake/src/Template/Bake/Shell/task.twig
deleted file mode 100644
index 5c7b7fc..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Shell/task.twig
+++ /dev/null
@@ -1,46 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-
-{% element 'form' %}
diff --git a/vendor/cakephp/bake/src/Template/Bake/Template/edit.twig b/vendor/cakephp/bake/src/Template/Bake/Template/edit.twig
deleted file mode 100644
index cde0d35..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Template/edit.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-
-{% element 'form' %}
diff --git a/vendor/cakephp/bake/src/Template/Bake/Template/index.twig b/vendor/cakephp/bake/src/Template/Bake/Template/index.twig
deleted file mode 100644
index 79050ef..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Template/index.twig
+++ /dev/null
@@ -1,90 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-
-{% set fields = Bake.filterFields(fields, schema, modelObject, indexColumns, ['binary', 'text']) %}
-
-
-
= __('{{ pluralHumanName }}') ?>
-
-
-
-{% for field in fields %}
-
= $this->Paginator->sort('{{ field }}') ?>
-{% endfor %}
-
= __('Actions') ?>
-
-
-
-
-
-{% for field in fields %}
-{% set isKey = false %}
-{% if associations.BelongsTo %}
-{% for alias, details in associations.BelongsTo if field == details.foreignKey %}
-{% set isKey = true %}
-
-{% endfor %}
-{% endif %}
-{% if isKey is not same as(true) %}
-{% set columnData = Bake.columnData(field, schema) %}
-{% if columnData.type not in ['integer', 'float', 'decimal', 'biginteger', 'smallinteger', 'tinyinteger'] %}
-
= h(${{ singularVar }}->{{ field }}) ?>
-{% else %}
-
= $this->Number->format(${{ singularVar }}->{{ field }}) ?>
diff --git a/vendor/cakephp/bake/src/Template/Bake/Template/view.twig b/vendor/cakephp/bake/src/Template/Bake/Template/view.twig
deleted file mode 100644
index 200a2f8..0000000
--- a/vendor/cakephp/bake/src/Template/Bake/Template/view.twig
+++ /dev/null
@@ -1,137 +0,0 @@
-{#
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-#}
-
-{% set associations = {'BelongsTo': [], 'HasOne': [], 'HasMany': [], 'BelongsToMany': []}|merge(associations) %}
-{% set fieldsData = Bake.getViewFieldsData(fields, schema, associations) %}
-{% set associationFields = fieldsData.associationFields %}
-{% set groupedFields = fieldsData.groupedFields %}
-{% set pK = '$' ~ singularVar ~ '->' ~ primaryKey[0] %}
-
-
-
= h(${{ singularVar }}->{{ displayField }}) ?>
-
-{% if groupedFields['string'] %}
-{% for field in groupedFields['string'] %}
-{% if associationFields[field] %}
-{% set details = associationFields[field] %}
-
There is a blank newline after the short description
- *
There is a blank newline between the long and short description
- *
There is a blank newline between the long description and tags
- *
Parameter names represent those in the method
- *
Parameter comments are in the correct order
- *
Parameter comments are complete
- *
A type hint is provided for array and custom class
- *
Type hint matches the actual variable/class type
- *
A blank line is present before the first and after the last parameter
- *
A return type exists
- *
Any throw tag must have a comment
- *
The tag order and indentation are correct
- *
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood
- * @author Marc McIntyre
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @version Release: @package_version@
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-class FunctionCommentSniff extends PearFunctionCommentSniff
-{
- /**
- * Is the comment an inheritdoc?
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @return bool True if the comment is an inheritdoc
- */
- protected function isInheritDoc(File $phpcsFile, $stackPtr)
- {
- $start = $phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $stackPtr - 1);
- $end = $phpcsFile->findNext(T_DOC_COMMENT_CLOSE_TAG, $start);
- $content = $phpcsFile->getTokensAsString($start, ($end - $start));
-
- return preg_match('/{@inheritDoc}|@inheritDoc/i', $content) === 1;
- }
-
- /**
- * Process the return comment of this function comment.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- * @return void
- */
- protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
- {
- if ($this->isInheritDoc($phpcsFile, $stackPtr)) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- // Skip constructor and destructor.
- $className = '';
- foreach ($tokens[$stackPtr]['conditions'] as $condPtr => $condition) {
- if ($condition === T_CLASS || $condition === T_INTERFACE) {
- $className = $phpcsFile->getDeclarationName($condPtr);
- $className = strtolower(ltrim($className, '_'));
- }
- }
-
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- $isSpecialMethod = ($methodName === '__construct' || $methodName === '__destruct');
- if ($methodName !== '_') {
- $methodName = strtolower(ltrim($methodName, '_'));
- }
-
- $return = null;
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@return') {
- if ($return !== null) {
- $error = 'Only 1 @return tag is allowed in a function comment';
- $phpcsFile->addError($error, $tag, 'DuplicateReturn');
-
- return;
- }
-
- $return = $tag;
- }
- }
-
- if ($isSpecialMethod === true) {
- return;
- }
-
- if ($return === null) {
- $error = 'Missing @return tag in function comment';
- $phpcsFile->addWarning($error, $tokens[$commentStart]['comment_closer'], 'MissingReturn');
-
- return;
- }
-
- $content = $tokens[($return + 2)]['content'];
- if (empty($content) === true || $tokens[($return + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- $error = 'Return type missing for @return tag in function comment';
- $phpcsFile->addError($error, $return, 'MissingReturnType');
-
- return;
- }
-
- // Check return type (can be multiple, separated by '|').
- list($types, ) = explode(' ', $content);
- $typeNames = explode('|', $types);
- $suggestedNames = [];
- foreach ($typeNames as $i => $typeName) {
- if ($typeName === 'integer') {
- $suggestedName = 'int';
- } elseif ($typeName === 'boolean') {
- $suggestedName = 'bool';
- } elseif (in_array($typeName, ['int', 'bool'])) {
- $suggestedName = $typeName;
- } else {
- $suggestedName = Common::suggestType($typeName);
- }
- if (in_array($suggestedName, $suggestedNames) === false) {
- $suggestedNames[] = $suggestedName;
- }
- }
-
- $suggestedType = implode('|', $suggestedNames);
- if ($types !== $suggestedType) {
- $error = 'Expected "%s" but found "%s" for function return type';
- $data = [
- $suggestedType,
- $types,
- ];
- $phpcsFile->addError($error, $return, 'InvalidReturn', $data);
- }
-
- $endToken = isset($tokens[$stackPtr]['scope_closer']) ? $tokens[$stackPtr]['scope_closer'] : false;
- if (!$endToken) {
- return;
- }
-
- // If the return type is void, make sure there is
- // no non-void return statements in the function.
- if ($typeNames === ['void']) {
- for ($returnToken = $stackPtr; $returnToken < $endToken; $returnToken++) {
- if ($tokens[$returnToken]['code'] === T_CLOSURE) {
- $returnToken = $tokens[$returnToken]['scope_closer'];
- continue;
- }
-
- if (
- $tokens[$returnToken]['code'] === T_RETURN
- || $tokens[$returnToken]['code'] === T_YIELD
- || $tokens[$returnToken]['code'] === T_YIELD_FROM
- ) {
- break;
- }
- }
-
- if ($returnToken !== $endToken) {
- // If the function is not returning anything, just
- // exiting, then there is no problem.
- $semicolon = $phpcsFile->findNext(T_WHITESPACE, ($returnToken + 1), null, true);
- if ($tokens[$semicolon]['code'] !== T_SEMICOLON) {
- $error = 'Function return type is void, but function contains return statement';
- $phpcsFile->addWarning($error, $return, 'InvalidReturnVoid');
- }
- }
-
- return;
- }
-
- // If return type is not void, there needs to be a return statement
- // somewhere in the function that returns something.
- if (!in_array('mixed', $typeNames, true) && !in_array('void', $typeNames, true)) {
- $returnToken = $phpcsFile->findNext([T_RETURN, T_YIELD, T_YIELD_FROM], $stackPtr, $endToken);
- if ($returnToken === false) {
- $error = 'Function return type is not void, but function has no return statement';
- $phpcsFile->addWarning($error, $return, 'InvalidNoReturn');
- } else {
- $semicolon = $phpcsFile->findNext(T_WHITESPACE, ($returnToken + 1), null, true);
- if ($tokens[$semicolon]['code'] === T_SEMICOLON) {
- $error = 'Function return type is not void, but function is returning void here';
- $phpcsFile->addWarning($error, $returnToken, 'InvalidReturnNotVoid');
- }
- }
- }
- }
-
- /**
- * Process any throw tags that this function comment has.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- * @return void
- */
- protected function processThrows(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($tokens[$tag]['content'] !== '@throws') {
- continue;
- }
-
- $exception = $comment = null;
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = [];
- preg_match('/([^\s]+)(?:\s+(.*))?/', $tokens[($tag + 2)]['content'], $matches);
- $exception = $matches[1];
- if (isset($matches[2]) === true) {
- $comment = $matches[2];
- }
- }
-
- if ($exception === null) {
- $error = 'Exception type and comment missing for @throws tag in function comment';
- $phpcsFile->addWarning($error, $tag, 'InvalidThrows');
- } elseif ($comment === null) {
- $error = 'Comment missing for @throws tag in function comment';
- $phpcsFile->addWarning($error, $tag, 'EmptyThrows');
- } else {
- // Any strings until the next tag belong to this comment.
- if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
- $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
-
- for ($i = ($tag + 3); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- $comment .= ' ' . $tokens[$i]['content'];
- }
- }
-
- // Starts with a capital letter and ends with a fullstop.
- $firstChar = $comment[0];
- if (strtoupper($firstChar) !== $firstChar) {
- $error = '@throws tag comment must start with a capital letter';
- $phpcsFile->addWarning($error, ($tag + 2), 'ThrowsNotCapital');
- }
-
- $lastChar = substr($comment, -1);
- if ($lastChar !== '.') {
- $error = '@throws tag comment must end with a full stop';
- $phpcsFile->addWarning($error, ($tag + 2), 'ThrowsNoFullStop');
- }
- }
- }
- }
-
- /**
- * Process the function parameter comments.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- * @return void
- */
- protected function processParams(File $phpcsFile, $stackPtr, $commentStart)
- {
- if ($this->isInheritDoc($phpcsFile, $stackPtr)) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $params = [];
- $maxType = $maxVar = 0;
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($tokens[$tag]['content'] !== '@param') {
- continue;
- }
-
- $type = $var = $comment = '';
- $typeSpace = $varSpace = 0;
- $commentLines = [];
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = [];
- preg_match('/([^$&]+)(?:((?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $matches);
-
- $typeLen = strlen($matches[1]);
- $type = trim($matches[1]);
- $typeSpace = ($typeLen - strlen($type));
- $typeLen = strlen($type);
- if ($typeLen > $maxType) {
- $maxType = $typeLen;
- }
-
- if (isset($matches[2]) === true) {
- $var = $matches[2];
- $varLen = strlen($var);
- if ($varLen > $maxVar) {
- $maxVar = $varLen;
- }
-
- if (isset($matches[4]) === true) {
- $varSpace = strlen($matches[3]);
- $comment = $matches[4];
- $commentLines[] = [
- 'comment' => $comment,
- 'token' => ($tag + 2),
- 'indent' => $varSpace,
- ];
-
- // Any strings until the next tag belong to this comment.
- if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
- $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
-
- for ($i = ($tag + 3); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- $indent = 0;
- if ($tokens[($i - 1)]['code'] === T_DOC_COMMENT_WHITESPACE) {
- $indent = strlen($tokens[($i - 1)]['content']);
- }
-
- $comment .= ' ' . $tokens[$i]['content'];
- $commentLines[] = [
- 'comment' => $tokens[$i]['content'],
- 'token' => $i,
- 'indent' => $indent,
- ];
- }
- }
- } else {
- $error = 'Missing parameter comment';
- $phpcsFile->addError($error, $tag, 'MissingParamComment');
- $commentLines[] = ['comment' => ''];
- }
- } else {
- $error = 'Missing parameter name';
- $phpcsFile->addError($error, $tag, 'MissingParamName');
- }
- } else {
- $error = 'Missing parameter type';
- $phpcsFile->addError($error, $tag, 'MissingParamType');
- }
-
- $params[] = compact('tag', 'type', 'var', 'comment', 'commentLines', 'typeSpace', 'varSpace');
- }
-
- $realParams = $phpcsFile->getMethodParameters($stackPtr);
- $foundParams = [];
-
- foreach ($params as $pos => $param) {
- // If the type is empty, the whole line is empty.
- if ($param['type'] === '') {
- continue;
- }
-
- // Check the param type value.
- $typeNames = explode('|', $param['type']);
- foreach ($typeNames as $typeName) {
- if ($typeName === 'integer') {
- $suggestedName = 'int';
- } elseif ($typeName === 'boolean') {
- $suggestedName = 'bool';
- } elseif (in_array($typeName, ['int', 'bool'])) {
- $suggestedName = $typeName;
- } else {
- $suggestedName = Common::suggestType($typeName);
- }
-
- if ($typeName !== $suggestedName) {
- $error = 'Expected "%s" but found "%s" for parameter type';
- $data = [$suggestedName, $typeName];
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'IncorrectParamVarName', $data);
- if ($fix === true) {
- $content = $suggestedName;
- $content .= str_repeat(' ', $param['typeSpace']);
- $content .= $param['var'];
- $content .= str_repeat(' ', $param['varSpace']);
- if (isset($param['commentLines'][0])) {
- $content .= $param['commentLines'][0]['comment'];
- }
- $phpcsFile->fixer->replaceToken(($param['tag'] + 2), $content);
- }
- }
- }
-
- if ($param['var'] === '') {
- continue;
- }
-
- $foundParams[] = $param['var'];
-
- // Make sure the param name is correct.
- if (isset($realParams[$pos]) === true) {
- $realName = $realParams[$pos]['name'];
- if ($realName !== $param['var']) {
- $code = 'ParamNameNoMatch';
- $data = [$param['var'], $realName];
-
- $error = 'Doc comment for parameter %s does not match ';
- if (strtolower($param['var']) === strtolower($realName)) {
- $error .= 'case of ';
- $code = 'ParamNameNoCaseMatch';
- }
-
- $error .= 'actual variable name %s';
-
- $fix = $phpcsFile->addFixableWarning($error, $param['tag'], $code, $data);
-
- if ($fix === true) {
- $content = $suggestedName;
- $content .= str_repeat(' ', $param['typeSpace']);
- $content .= $realName;
- $content .= str_repeat(' ', $param['varSpace']);
- $content .= $param['commentLines'][0]['comment'];
- $phpcsFile->fixer->replaceToken(($param['tag'] + 2), $content);
- }
- }
- } elseif (substr($param['var'], -4) !== ',...') {
- // We must have an extra parameter comment.
- $error = 'Superfluous parameter comment';
- $phpcsFile->addError($error, $param['tag'], 'ExtraParamComment');
- }
-
- if ($param['comment'] === '') {
- continue;
- }
-
- // Param comments must start with a capital letter and end with the full stop.
- $firstChar = $param['comment'][0];
- if (preg_match('|\p{Lu}|u', $firstChar) === 0) {
- $error = 'Parameter comment must start with a capital letter';
- $phpcsFile->addWarning($error, $param['tag'], 'ParamCommentNotCapital');
- }
-
- $lastChar = substr($param['comment'], -1);
- if ($lastChar !== '.') {
- $error = 'Parameter comment must end with a full stop';
- $phpcsFile->addWarning($error, $param['tag'], 'ParamCommentFullStop');
- }
- }
-
- $realNames = [];
- foreach ($realParams as $realParam) {
- $realNames[] = $realParam['name'];
- }
-
- // Report missing comments.
- $diff = array_diff($realNames, $foundParams);
- foreach ($diff as $neededParam) {
- $error = 'Doc comment for parameter "%s" missing';
- $data = [$neededParam];
- $phpcsFile->addWarning($error, $commentStart, 'MissingParamTag', $data);
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ControlStructuresSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ControlStructuresSniff.php
deleted file mode 100644
index 0727230..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ControlStructuresSniff.php
+++ /dev/null
@@ -1,62 +0,0 @@
-getTokens();
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_OPEN_PARENTHESIS) {
- $closer = $tokens[$nextToken]['parenthesis_closer'];
- $diff = $closer - $stackPtr;
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + $diff + 1), null, true);
- }
- if ($tokens[$nextToken]['code'] === T_IF) {
- // "else if" is not checked by this sniff, another sniff takes care of that.
- return;
- }
- if ($tokens[$nextToken]['code'] !== T_OPEN_CURLY_BRACKET && $tokens[$nextToken]['code'] !== T_COLON) {
- $error = 'Curly brackets required for if/elseif/else.';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ElseIfDeclarationSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
deleted file mode 100644
index fa1816e..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
+++ /dev/null
@@ -1,53 +0,0 @@
-getTokens();
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] !== T_IF) {
- return;
- }
-
- $error = 'Usage of ELSE IF not allowed; use ELSEIF instead';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/WhileStructuresSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/WhileStructuresSniff.php
deleted file mode 100644
index 42045f8..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/ControlStructures/WhileStructuresSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-getTokens();
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_OPEN_PARENTHESIS) {
- $closer = $tokens[$nextToken]['parenthesis_closer'];
- $diff = $closer - $stackPtr;
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + $diff + 1), null, true);
- }
-
- if ($tokens[$stackPtr]['code'] === T_WHILE && $tokens[$nextToken]['code'] === T_SEMICOLON) {
- /* This while is probably part of a do-while construction, skip it .. */
- return;
- }
- if ($tokens[$nextToken]['code'] !== T_OPEN_CURLY_BRACKET && $tokens[$nextToken]['code'] !== T_COLON) {
- $error = 'Curly brackets required in a do-while or while loop';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/BlankLineBeforeReturnSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/BlankLineBeforeReturnSniff.php
deleted file mode 100644
index bebba1c..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/BlankLineBeforeReturnSniff.php
+++ /dev/null
@@ -1,80 +0,0 @@
-
- * @license http://spdx.org/licenses/MIT MIT License
- * @link https://github.com/escapestudios/Symfony2-coding-standard
- */
-class BlankLineBeforeReturnSniff implements Sniff
-{
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = [
- 'PHP',
- 'JS',
- ];
-
- /**
- * {@inheritDoc}
- */
- public function register()
- {
- return [T_RETURN];
- }
-
- /**
- * {@inheritDoc}
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $current = $stackPtr;
- $previousLine = $tokens[$stackPtr]['line'] - 1;
- $prevLineTokens = [];
-
- while ($current >= 0 && $tokens[$current]['line'] >= $previousLine) {
- if (
- $tokens[$current]['line'] == $previousLine
- && $tokens[$current]['type'] !== 'T_WHITESPACE'
- && $tokens[$current]['type'] !== 'T_COMMENT'
- && $tokens[$current]['type'] !== 'T_DOC_COMMENT_OPEN_TAG'
- && $tokens[$current]['type'] !== 'T_DOC_COMMENT_TAG'
- && $tokens[$current]['type'] !== 'T_DOC_COMMENT_STRING'
- && $tokens[$current]['type'] !== 'T_DOC_COMMENT_CLOSE_TAG'
- && $tokens[$current]['type'] !== 'T_DOC_COMMENT_WHITESPACE'
- ) {
- $prevLineTokens[] = $tokens[$current]['type'];
- }
- $current--;
- }
-
- if (
- isset($prevLineTokens[0])
- && ($prevLineTokens[0] === 'T_OPEN_CURLY_BRACKET'
- || $prevLineTokens[0] === 'T_COLON'
- || $prevLineTokens[0] === 'T_OPEN_TAG')
- ) {
- return;
- } elseif (count($prevLineTokens) > 0) {
- $fix = $phpcsFile->addFixableError(
- 'Missing blank line before return statement',
- $stackPtr,
- 'BlankLineBeforeReturn'
- );
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewlineBefore($stackPtr - 1);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/UseInAlphabeticalOrderSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/UseInAlphabeticalOrderSniff.php
deleted file mode 100644
index 5e76934..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Formatting/UseInAlphabeticalOrderSniff.php
+++ /dev/null
@@ -1,154 +0,0 @@
-_processed[$phpcsFile->getFilename()])) {
- return;
- }
- $filename = $phpcsFile->getFilename();
-
- $this->_uses = [];
- $next = $stackPtr;
-
- while ($next !== false) {
- $this->_checkUseToken($phpcsFile, $next);
- $next = $phpcsFile->findNext(T_USE, $next + 1);
- }
-
- // Prevent multiple uses in the same file from entering
- $this->_processed[$phpcsFile->getFilename()] = true;
-
- foreach ($this->_uses as $scope => $used) {
- $defined = $sorted = array_keys($used);
-
- natcasesort($sorted);
- $sorted = array_values($sorted);
- if ($sorted === $defined) {
- continue;
- }
-
- foreach ($defined as $i => $name) {
- if ($name !== $sorted[$i]) {
- $error = 'Use classes must be in alphabetical order. Was expecting ' . $sorted[$i];
- $phpcsFile->addError($error, $used[$name], 'UseInAlphabeticalOrder');
- }
- }
- }
- }
-
- /**
- * Check all the use tokens in a file.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file to check.
- * @param int $stackPtr The index of the first use token.
- * @return void
- */
- protected function _checkUseToken($phpcsFile, $stackPtr)
- {
- // If the use token is for a closure we want to ignore it.
- $isClosure = $this->_isClosure($phpcsFile, $stackPtr);
- if ($isClosure) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $scope = 'use';
- $useType = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
- if ($useType !== false && $tokens[$useType]['code'] === T_STRING) {
- $useContent = strtolower($tokens[$useType]['content']);
- if ($useContent === 'function' || $useContent === 'const') {
- $scope .= ' ' . $useContent;
- $stackPtr = $useType + 1;
- }
- }
-
- $content = '';
- $end = $phpcsFile->findNext([T_SEMICOLON, T_OPEN_CURLY_BRACKET], $stackPtr);
- $useTokens = array_slice($tokens, $stackPtr, $end - $stackPtr, true);
-
- foreach ($useTokens as $index => $token) {
- if ($token['code'] === T_STRING || $token['code'] === T_NS_SEPARATOR) {
- $content .= $token['content'];
- }
- }
-
- // Check for class scoping on use. Traits should be
- // ordered independently.
- if (!empty($token['conditions'])) {
- $scope .= key($token['conditions']);
- }
- $this->_uses[$scope][$content] = $stackPtr;
- }
-
- /**
- * Check if the current stackPtr is a use token that is for a closure.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The index of the first use token.
- * @return bool
- */
- protected function _isClosure($phpcsFile, $stackPtr)
- {
- return $phpcsFile->findPrevious(
- [T_CLOSURE],
- ($stackPtr - 1),
- null,
- false,
- null,
- true
- );
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php
deleted file mode 100644
index eb0bbfa..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php
+++ /dev/null
@@ -1,54 +0,0 @@
-getTokens();
- $spaces = 0;
-
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $spaces = strlen($tokens[($stackPtr + 1)]['content']);
- }
-
- if ($spaces !== 1) {
- $error = 'Expected 1 space after closure\'s function keyword; %s found';
- $data = [$spaces];
- $phpcsFile->addError($error, $stackPtr, 'SpaceAfterFunction', $data);
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php
deleted file mode 100644
index e3f4ea5..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php
+++ /dev/null
@@ -1,34 +0,0 @@
-getDeclarationName($stackPtr);
- $className = $phpcsFile->getDeclarationName($currScope);
- $errorData = [$className . '::' . $methodName];
-
- // Ignore magic methods
- if (preg_match('/^__(' . implode('|', $this->_magicMethods) . ')$/', $methodName)) {
- return;
- }
-
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
- if ($methodProps['scope_specified'] === false) {
- // Let another sniffer take care of that
- return;
- }
-
- $isPublic = $methodProps['scope'] === 'public';
-
- if ($isPublic === true && $methodName[0] === '_') {
- $error = 'Public method name "%s" must not be prefixed with underscore';
- $phpcsFile->addError($error, $stackPtr, 'PublicWithUnderscore', $errorData);
-
- return;
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php
deleted file mode 100644
index 5c9acb4..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-getTokens();
- $traitName = $tokens[$stackPtr + 2]['content'];
-
- if (substr($traitName, -5) !== 'Trait') {
- $error = 'Traits must have a "Trait" suffix.';
- $phpcsFile->addError($error, $stackPtr, 'InvalidTraitName');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/CommaAfterArrayItemSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/CommaAfterArrayItemSniff.php
deleted file mode 100644
index 93c3998..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/CommaAfterArrayItemSniff.php
+++ /dev/null
@@ -1,73 +0,0 @@
-= 70300;
-
- /**
- * @inheritDoc
- */
- public function register()
- {
- return [
- T_OPEN_SHORT_ARRAY,
- ];
- }
-
- /**
- * @inheritDoc
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $arrayToken = $tokens[$stackPtr];
- $closeParenthesisPointer = $arrayToken['bracket_closer'];
- $openParenthesisToken = $tokens[$arrayToken['bracket_opener']];
- $closeParenthesisToken = $tokens[$closeParenthesisPointer];
- if ($openParenthesisToken['line'] === $closeParenthesisToken['line']) {
- return;
- }
-
- $previousToCloseParenthesisPointer = $phpcsFile->findPrevious(Tokens::$emptyTokens, $closeParenthesisPointer - 1, 0, true);
- $previousToCloseParenthesisToken = $tokens[$previousToCloseParenthesisPointer];
- if (
- $previousToCloseParenthesisPointer === $arrayToken['bracket_opener']
- || $previousToCloseParenthesisToken['code'] === T_COMMA
- || $closeParenthesisToken['line'] === $previousToCloseParenthesisToken['line']
- ) {
- return;
- }
- if (!$this->enableAfterHeredoc && in_array($previousToCloseParenthesisToken['code'], [T_END_HEREDOC, T_END_NOWDOC], true)) {
- return;
- }
- $fix = $phpcsFile->addFixableError(
- 'Multi-line arrays must have a trailing comma after the last element.',
- $previousToCloseParenthesisPointer,
- 'MissingTrailingComma'
- );
- if (!$fix) {
- return;
- }
-
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContent($previousToCloseParenthesisPointer, ',');
- $phpcsFile->fixer->endChangeset();
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php
deleted file mode 100644
index eaf6548..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php
+++ /dev/null
@@ -1,62 +0,0 @@
-getTokens();
- $openTag = $tokens[$stackPtr];
-
- if (trim($openTag['content']) === '') {
- $error = 'Short PHP opening tag used; expected "addError($error, $stackPtr, 'Found', $data);
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/TypeCastingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/TypeCastingSniff.php
deleted file mode 100644
index 0ccae90..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/TypeCastingSniff.php
+++ /dev/null
@@ -1,86 +0,0 @@
-getTokens();
-
- // Process !! casts
- if ($tokens[$stackPtr]['code'] == T_BOOLEAN_NOT) {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if (!$nextToken) {
- return;
- }
- if ($tokens[$nextToken]['code'] != T_BOOLEAN_NOT) {
- return;
- }
- $error = 'Usage of !! cast is not allowed. Please use (bool) to cast.';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
-
- return;
- }
-
- // Only allow short forms if both short and long forms are possible
- $matching = [
- '(boolean)' => '(bool)',
- '(integer)' => '(int)',
- ];
- $content = $tokens[$stackPtr]['content'];
- $key = strtolower($content);
- if (isset($matching[$key])) {
- $error = 'Please use ' . $matching[$key] . ' instead of ' . $content . '.';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
-
- return;
- }
- if ($content !== $key) {
- $error = 'Please use ' . $key . ' instead of ' . $content . '.';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
-
- return;
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Strings/ConcatenationSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Strings/ConcatenationSpacingSniff.php
deleted file mode 100644
index 05b544d..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Strings/ConcatenationSpacingSniff.php
+++ /dev/null
@@ -1,71 +0,0 @@
-getTokens();
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $message = 'Expected 1 space before ., but 0 found';
- $phpcsFile->addError($message, $stackPtr, 'MissingBefore');
- } else {
- $content = str_replace("\r\n", "\n", $tokens[($stackPtr - 1)]['content']);
- $spaces = strlen($content);
- if ($spaces > 1) {
- $message = 'Expected 1 space before ., but %d found';
- $data = [$spaces];
- $phpcsFile->addError($message, $stackPtr, 'TooManyBefore', $data);
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $message = 'Expected 1 space after ., but 0 found';
- $phpcsFile->addError($message, $stackPtr, 'MissingAfter');
- } else {
- $content = str_replace("\r\n", "\n", $tokens[($stackPtr + 1)]['content']);
- $spaces = strlen($content);
- if ($spaces > 1) {
- $message = 'Expected 1 space after ., but %d found';
- $data = [$spaces];
- $phpcsFile->addError($message, $stackPtr, 'TooManyAfter', $data);
- }
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/CommaSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/CommaSpacingSniff.php
deleted file mode 100644
index 7f96cda..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/CommaSpacingSniff.php
+++ /dev/null
@@ -1,72 +0,0 @@
-getTokens();
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
-
- if ($tokens[$next]['code'] !== T_WHITESPACE && ($next !== $stackPtr + 2)) {
- // Skip if immediate char is comma
- if ($tokens[$next]['code'] === T_COMMA) {
- return;
- }
-
- // Last character in a line is ok.
- if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'Missing space after comma';
- $fix = $phpcsFile->addFixableError($error, $next, 'MissingSpaceAfterComma');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
-
- $previous = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
-
- if ($tokens[$previous]['code'] !== T_WHITESPACE && ($previous !== $stackPtr - 1)) {
- $error = 'Space before comma, expected none, though';
- $phpcsFile->addError($error, $next, 'SpaceBeforeComma');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php
deleted file mode 100644
index 667feed..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php
+++ /dev/null
@@ -1,62 +0,0 @@
-getTokens();
- // If the current and next two tokens are newlines
- // We can remove the next token (the first newline)
- if (
- $tokens[$stackPtr]['content'] === $phpcsFile->eolChar
- && isset($tokens[$stackPtr + 1])
- && $tokens[$stackPtr + 1]['content'] === $phpcsFile->eolChar
- && isset($tokens[$stackPtr + 2])
- && $tokens[$stackPtr + 2]['content'] === $phpcsFile->eolChar
- ) {
- $error = 'Found more than a single empty line between content';
- $fix = $phpcsFile->addFixableError($error, $stackPtr + 2, 'EmptyLines');
- if ($fix) {
- $phpcsFile->fixer->replaceToken($stackPtr + 2, '');
- }
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php
deleted file mode 100644
index 0d89cf7..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getTokens();
-
- // Find the next non-empty token.
- $openBracket = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
-
- if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
- // Not a function call.
- return;
- }
-
- // Look for funcName (
- if (($stackPtr + 1) !== $openBracket) {
- $error = 'Space before opening parenthesis of function call not allowed';
- $phpcsFile->addError($error, $stackPtr, 'SpaceBeforeOpenBracket');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php
deleted file mode 100644
index 1a97f5d..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php
+++ /dev/null
@@ -1,74 +0,0 @@
-getTokens();
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- // Probably an interface method.
- return;
- }
-
- $closeBrace = $tokens[$stackPtr]['scope_closer'];
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBrace - 1), null, true);
-
- $braceLine = $tokens[$closeBrace]['line'];
- $prevLine = $tokens[$prevContent]['line'];
-
- $found = ($braceLine - $prevLine - 1);
- if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true || isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- // Nested function.
- if ($found < 0) {
- $error = 'Closing brace of nested function must be on a new line';
- $phpcsFile->addError($error, $closeBrace, 'ContentBeforeClose');
- } elseif ($found > 0) {
- $error = 'Expected 0 blank lines before closing brace of nested function; %s found';
- $data = [$found];
- $phpcsFile->addError($error, $closeBrace, 'SpacingBeforeNestedClose', $data);
- }
- } else {
- if ($found !== 0) {
- $error = 'Expected 0 blank lines before closing function brace; %s found';
- $data = [$found];
- $phpcsFile->addError($error, $closeBrace, 'SpacingBeforeClose', $data);
- }
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php
deleted file mode 100644
index d0d54c0..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- // Probably an interface method.
- return;
- }
-
- $openBrace = $tokens[$stackPtr]['scope_opener'];
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($openBrace + 1), null, true);
-
- if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
- // The next bit of content is the closing brace, so this
- // is an empty function and should have a blank line
- // between the opening and closing braces.
- return;
- }
-
- $braceLine = $tokens[$openBrace]['line'];
- $nextLine = $tokens[$nextContent]['line'];
-
- $found = ($nextLine - $braceLine - 1);
- if ($found > 0) {
- $error = 'Expected 0 blank lines after opening function brace; %s found';
- $data = [$found];
- $phpcsFile->addError($error, $openBrace, 'SpacingAfter', $data);
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionSpacingSniff.php
deleted file mode 100644
index 75498ab..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionSpacingSniff.php
+++ /dev/null
@@ -1,154 +0,0 @@
-getTokens();
-
- $level = $tokens[$stackPointer]['level'];
- if ($level < 1) {
- return;
- }
-
- $openingBraceIndex = $phpCsFile->findNext(T_OPEN_CURLY_BRACKET, $stackPointer + 1);
- // Fix interface methods
- if (!$openingBraceIndex) {
- $openingParenthesisIndex = $phpCsFile->findNext(T_OPEN_PARENTHESIS, $stackPointer + 1);
- $closingParenthesisIndex = $tokens[$openingParenthesisIndex]['parenthesis_closer'];
-
- $semicolonIndex = $phpCsFile->findNext(T_SEMICOLON, $closingParenthesisIndex + 1);
-
- $nextContentIndex = $phpCsFile->findNext(T_WHITESPACE, $semicolonIndex + 1, null, true);
-
- // Do not mess with the end of the class
- if ($tokens[$nextContentIndex]['type'] === 'T_CLOSE_CURLY_BRACKET') {
- return;
- }
-
- if ($tokens[$nextContentIndex]['line'] - $tokens[$semicolonIndex]['line'] <= 1) {
- $fix = $phpCsFile->addFixableError('Every function/method needs a newline afterwards', $closingParenthesisIndex, 'Abstract');
- if ($fix) {
- $phpCsFile->fixer->addNewline($semicolonIndex);
- }
- }
-
- return;
- }
-
- $closingBraceIndex = $tokens[$openingBraceIndex]['scope_closer'];
-
- // Ignore closures
- $nextIndex = $phpCsFile->findNext(Tokens::$emptyTokens, $closingBraceIndex + 1, null, true);
- if (in_array($tokens[$nextIndex]['content'], [';', ',', ')'])) {
- return;
- }
-
- $nextContentIndex = $phpCsFile->findNext(T_WHITESPACE, $closingBraceIndex + 1, null, true);
-
- // Do not mess with the end of the class
- if ($tokens[$nextContentIndex]['type'] === 'T_CLOSE_CURLY_BRACKET') {
- return;
- }
-
- $this->assertNewLineAtTheEnd($phpCsFile, $closingBraceIndex, $nextContentIndex);
- $this->assertNewLineAtTheBeginning($phpCsFile, $stackPointer);
- }
-
- /**
- * @param \PHP_CodeSniffer\Files\File $phpCsFile File
- * @param int $closingBraceIndex Index
- * @param int|null $nextContentIndex Index
- *
- * @return void
- */
- protected function assertNewLineAtTheEnd(File $phpCsFile, $closingBraceIndex, $nextContentIndex)
- {
- $tokens = $phpCsFile->getTokens();
-
- if (!$nextContentIndex || $tokens[$nextContentIndex]['line'] - $tokens[$closingBraceIndex]['line'] <= 1) {
- $fix = $phpCsFile->addFixableError('Every function/method needs a newline afterwards', $closingBraceIndex, 'Concrete');
- if ($fix) {
- $phpCsFile->fixer->addNewline($closingBraceIndex);
- }
- }
- }
-
- /**
- * Asserts newline at the beginning, including the doc block.
- *
- * @param \PHP_CodeSniffer\Files\File $phpCsFile File
- * @param int $stackPointer Stack pointer
- *
- * @return void
- */
- protected function assertNewLineAtTheBeginning(File $phpCsFile, $stackPointer)
- {
- $tokens = $phpCsFile->getTokens();
-
- $line = $tokens[$stackPointer]['line'];
- $firstTokenInLineIndex = $stackPointer;
- while ($tokens[$firstTokenInLineIndex - 1]['line'] === $line) {
- $firstTokenInLineIndex--;
- }
-
- $prevContentIndex = $phpCsFile->findPrevious(T_WHITESPACE, $firstTokenInLineIndex - 1, null, true);
- if ($tokens[$prevContentIndex]['type'] === 'T_DOC_COMMENT_CLOSE_TAG') {
- $firstTokenInLineIndex = $tokens[$prevContentIndex]['comment_opener'];
- while ($tokens[$firstTokenInLineIndex - 1]['line'] === $line) {
- $firstTokenInLineIndex--;
- }
- }
-
- $prevContentIndex = $phpCsFile->findPrevious(T_WHITESPACE, $firstTokenInLineIndex - 1, null, true);
-
- // Do not mess with the start of the class
- if ($tokens[$prevContentIndex]['type'] === 'T_OPEN_CURLY_BRACKET') {
- return;
- }
-
- if ($tokens[$prevContentIndex]['line'] < $tokens[$firstTokenInLineIndex]['line'] - 1) {
- return;
- }
-
- $fix = $phpCsFile->addFixableError('Every function/method needs a newline before', $firstTokenInLineIndex, 'Concrete');
- if ($fix) {
- $phpCsFile->fixer->addNewline($prevContentIndex);
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php
deleted file mode 100644
index c14a163..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php
+++ /dev/null
@@ -1,50 +0,0 @@
-getTokens();
-
- $nextType = $tokens[($stackPtr + 1)]['code'];
- if (in_array($nextType, Tokens::$emptyTokens) === true) {
- $error = 'Space found after object operator';
- $phpcsFile->addError($error, $stackPtr, 'After');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/OperatorSpacingSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/OperatorSpacingSniff.php
deleted file mode 100644
index 8a332c7..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/OperatorSpacingSniff.php
+++ /dev/null
@@ -1,208 +0,0 @@
-getTokens();
-
- // Skip default values in function declarations.
- // and declare statements
- if (
- $tokens[$stackPtr]['code'] === T_EQUAL
- || $tokens[$stackPtr]['code'] === T_MINUS
- ) {
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $parenthesis = array_keys($tokens[$stackPtr]['nested_parenthesis']);
- $bracket = array_pop($parenthesis);
- if (isset($tokens[$bracket]['parenthesis_owner']) === true) {
- $function = $tokens[$bracket]['parenthesis_owner'];
- if (
- $tokens[$function]['code'] === T_FUNCTION ||
- $tokens[$function]['code'] === T_DECLARE
- ) {
- return;
- }
- }
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_EQUAL) {
- // Skip for '=&' case.
- if (isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)]['code'] === T_BITWISE_AND) {
- return;
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_BITWISE_AND) {
- // If its not a reference, then we expect one space either side of the
- // bitwise operator.
- if (!$phpcsFile->isReference($stackPtr) && !$this->_isVariable($stackPtr, $tokens, $phpcsFile)) {
- // Check there is one space before the & operator.
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before "&" operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBeforeAmp');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
- }
-
- // Check there is one space after the & operator.
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after "&" operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterAmp');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
- }
- }
- } else {
- if ($tokens[$stackPtr]['code'] === T_MINUS) {
- // Skip declaration of negative value in new array format; eg. $arr = [-1].
- if ($tokens[($stackPtr - 1)]['code'] === T_OPEN_SHORT_ARRAY) {
- return;
- }
-
- // Check minus spacing, but make sure we aren't just assigning
- // a minus value or returning one.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_RETURN) {
- // Just returning a negative value; eg. return -1.
- return;
- }
-
- if (in_array($tokens[$prev]['code'], Tokens::$operators) === true) {
- // Just trying to operate on a negative value; eg. ($var * -1).
- return;
- }
-
- if (in_array($tokens[$prev]['code'], Tokens::$comparisonTokens) === true) {
- // Just trying to compare a negative value; eg. ($var === -1).
- return;
- }
-
- // A list of tokens that indicate that the token is not
- // part of an arithmetic operation.
- $invalidTokens = [
- T_COMMA,
- T_OPEN_PARENTHESIS,
- T_OPEN_SQUARE_BRACKET,
- T_DOUBLE_ARROW,
- T_COLON,
- T_INLINE_THEN,
- T_INLINE_ELSE,
- T_CASE,
- ];
-
- if (in_array($tokens[$prev]['code'], $invalidTokens) === true) {
- // Just trying to use a negative value; eg. myFunction($var, -2).
- return;
- }
- if (in_array($tokens[$prev]['code'], Tokens::$assignmentTokens) === true) {
- // Just trying to assign a negative value; eg. ($var = -1).
- return;
- }
- }
-
- $operator = $tokens[$stackPtr]['content'];
-
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $error = "Expected 1 space before \"$operator\"; 0 found";
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = "Expected 1 space after \"$operator\"; 0 found";
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfter');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
- }
- }
- }
-
- /**
- * Check if the current token is inside an array.
- *
- * @param int $stackPtr The current token offset.
- * @param array $tokens The current token list.
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @return bool
- */
- protected function _isVariable($stackPtr, $tokens, $phpcsFile)
- {
- $tokenAfter = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($stackPtr + 1),
- null,
- true
- );
- $tokenBefore = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($stackPtr - 1),
- null,
- true
- );
-
- return ($tokens[$tokenAfter]['code'] === T_VARIABLE &&
- (
- $tokens[$tokenBefore]['code'] === T_OPEN_PARENTHESIS ||
- $tokens[$tokenBefore]['code'] === T_COMMA ||
- $tokens[$tokenBefore]['code'] === T_OPEN_SHORT_ARRAY
- )
- );
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php
deleted file mode 100644
index e9d14cb..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php
+++ /dev/null
@@ -1,75 +0,0 @@
-getTokens();
-
- $line = $tokens[$stackPtr]['line'];
- if ($stackPtr > 0 && $tokens[($stackPtr - 1)]['line'] !== $line) {
- return;
- }
-
- if (strpos($tokens[$stackPtr]['content'], ' ') !== false) {
- $error = 'Double space found';
- $phpcsFile->addError($error, $stackPtr, 'DoubleSpace');
- }
- if (strpos($tokens[$stackPtr]['content'], " \t") !== false) {
- $error = 'Space and tab found';
- $phpcsFile->addError($error, $stackPtr, 'SpaceAndTab');
- }
- if (strpos($tokens[$stackPtr]['content'], "\t ") !== false) {
- $error = 'Tab and space found';
- $phpcsFile->addError($error, $stackPtr, 'TabAndSpace');
- }
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/DocBlockAlignmentUnitTest.1.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/DocBlockAlignmentUnitTest.1.inc
deleted file mode 100644
index 38bf963..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/DocBlockAlignmentUnitTest.1.inc
+++ /dev/null
@@ -1,34 +0,0 @@
- 1,
- 7 => 1,
- 14 => 1,
- 21 => 1,
- 30 => 1,
- ];
-
- default:
- return [];
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/FunctionCommentUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/FunctionCommentUnitTest.inc
deleted file mode 100644
index 4225b82..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Commenting/FunctionCommentUnitTest.inc
+++ /dev/null
@@ -1,251 +0,0 @@
- 1,
- 13 => 1,
- 23 => 1,
- 24 => 1,
- 34 => 1,
- 35 => 1,
- 90 => 1,
- 97 => 1,
- 104 => 1,
- 112 => 1,
- 222 => 1,
- 231 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [
- 14 => 1,
- 31 => 2,
- 45 => 1,
- 140 => 1,
- 145 => 1,
- 155 => 1,
- 165 => 1,
- 174 => 1,
- 182 => 1,
- 190 => 1,
- 197 => 1,
- 198 => 1,
- 205 => 1,
- 206 => 1,
- 215 => 1,
- 221 => 1,
- ];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.inc
deleted file mode 100644
index b514577..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.inc
+++ /dev/null
@@ -1,14 +0,0 @@
- 100) {
- echo 'i > 100';
-}
-
-if($abc == true)
- echo 'hello';
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.php
deleted file mode 100644
index 1e1cc02..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ControlStructuresUnitTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
deleted file mode 100644
index aa97c9e..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/WhileStructuresUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/WhileStructuresUnitTest.inc
deleted file mode 100644
index 79b57da..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/ControlStructures/WhileStructuresUnitTest.inc
+++ /dev/null
@@ -1,16 +0,0 @@
- 1,
- 5 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc
deleted file mode 100644
index c5c3725..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc
+++ /dev/null
@@ -1,104 +0,0 @@
- 'bar'
-];
-
-function invalidFunctionReturnOne()
-{
- echo "";
- return null;
-}
-
-function invalidFunctionReturnOne()
-{
- if(true) {
- echo "";
- }
- return null;
-}
-
-/**
- * [validFunctionReturnOne description]
- *
- * @return null
- */
-function validFunctionReturnOne()
-{
- return null;
-}
-
-/**
- * [validFunctionReturnTwo description]
- *
- * @return null|bool
- */
-function validFunctionReturnTwo()
-{
- if ($a) {
- return true;
- }
-
- return null;
-}
-
-/**
- * [validFunctionReturnThree description]
- *
- * @return null
- */
-function validFunctionReturnThree()
-{
- echo "";
-
- return null;
-}
-
-/**
- * [validFunctionReturnFour description]
- *
- * @return null
- */
-function validFunctionReturnFour()
-{
- // comment
- return null;
-}
-
-/**
- * [validFunctionReturnFive description]
- *
- * @return null
- */
-function validFunctionReturnFive()
-{
- /**
- * multi-line
- */
- return null;
-}
-
-/**
- * [validFunctionReturnSix description]
- *
- * @return null|bool
- */
-function validFunctionReturnSix()
-{
- switch ($condition) {
- case 'foo':
- return true;
- default:
- return false;
- }
-}
-
-/**
- * [validFunctionReturnSeven description]
- *
- * @return null
- */
-function validFunctionReturnSeven()
-{
- /** @var Foo $foo */
- return null;
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc.fixed b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc.fixed
deleted file mode 100644
index cb38504..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.inc.fixed
+++ /dev/null
@@ -1,106 +0,0 @@
- 'bar'
-];
-
-function invalidFunctionReturnOne()
-{
- echo "";
-
- return null;
-}
-
-function invalidFunctionReturnOne()
-{
- if(true) {
- echo "";
- }
-
- return null;
-}
-
-/**
- * [validFunctionReturnOne description]
- *
- * @return null
- */
-function validFunctionReturnOne()
-{
- return null;
-}
-
-/**
- * [validFunctionReturnTwo description]
- *
- * @return null|bool
- */
-function validFunctionReturnTwo()
-{
- if ($a) {
- return true;
- }
-
- return null;
-}
-
-/**
- * [validFunctionReturnThree description]
- *
- * @return null
- */
-function validFunctionReturnThree()
-{
- echo "";
-
- return null;
-}
-
-/**
- * [validFunctionReturnFour description]
- *
- * @return null
- */
-function validFunctionReturnFour()
-{
- // comment
- return null;
-}
-
-/**
- * [validFunctionReturnFive description]
- *
- * @return null
- */
-function validFunctionReturnFive()
-{
- /**
- * multi-line
- */
- return null;
-}
-
-/**
- * [validFunctionReturnSix description]
- *
- * @return null|bool
- */
-function validFunctionReturnSix()
-{
- switch ($condition) {
- case 'foo':
- return true;
- default:
- return false;
- }
-}
-
-/**
- * [validFunctionReturnSeven description]
- *
- * @return null
- */
-function validFunctionReturnSeven()
-{
- /** @var Foo $foo */
- return null;
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.php
deleted file mode 100644
index 42a87ed..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/BlankLineBeforeReturnUnitTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
- 1,
- 17 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/UseInAlphabeticalOrderUnitTest.1.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/UseInAlphabeticalOrderUnitTest.1.inc
deleted file mode 100644
index 99780ef..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Formatting/UseInAlphabeticalOrderUnitTest.1.inc
+++ /dev/null
@@ -1,10 +0,0 @@
- 1,
- 4 => 1,
- 8 => 1,
- 9 => 1,
- ];
-
- default:
- return [];
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/ClosureDeclarationUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/ClosureDeclarationUnitTest.inc
deleted file mode 100644
index 013c2f0..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/ClosureDeclarationUnitTest.inc
+++ /dev/null
@@ -1,36 +0,0 @@
- 1,
- 30 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc
deleted file mode 100644
index 82a3e7a..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc
+++ /dev/null
@@ -1,21 +0,0 @@
- 1,
- 4 => 2,
- 5 => 2,
- 6 => 2,
- 7 => 2,
- 8 => 2,
- 9 => 9,
- 10 => 6,
- 11 => 6,
- 12 => 4,
- 13 => 4,
- 14 => 2,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
deleted file mode 100644
index e4bc565..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
+++ /dev/null
@@ -1,177 +0,0 @@
-passingPublic = 'changed';
- $this->underscored = 'has value now';
- $this->doubleUnderscore = 'not recommended';
- }
-
- public static function setStatics()
- {
- self::$publicStatic = true;
- self::$protectedStatic = true;
- self::$privateStatic = true;
- }
-
- protected function _someFunc()
- {
- // code here
- }
-
- protected function noUnderscorePrefix()
- {
- // code here
- $closure = function () {
- // code here
- };
- }
-
- public function __call($name, $arguments)
- {
- }
- public function __construct()
- {
- }
- public function __clone()
- {
- }
- public function __debugInfo()
- {
- }
- public function __destruct()
- {
- }
- public function __get($name)
- {
- }
- public function __invoke()
- {
- }
- public function __isset($name)
- {
- }
- public function __set($name, $value)
- {
- }
- public function __sleep()
- {
- }
- public function __toString()
- {
- return '';
- }
- public function __unset($name)
- {
- }
- public function __wakeup()
- {
- }
-}
-
-interface FunctionNamesInterface
-{
- public function _forbidden();
-
- public function setVariables();
-
- public static function setStatics();
-}
-
-trait FunctionNamesTrait
-{
- public function _forbidden()
- {
- echo "I emit an error";
- }
-
- private function notDiscouraged()
- {
- echo "I don't emit a warning anymore";
- }
-
- public function setVariables()
- {
- $this->passingPublic = 'changed';
- $this->underscored = 'has value now';
- $this->doubleUnderscore = 'not recommended';
- }
-
- public static function setStatics()
- {
- self::$publicStatic = true;
- self::$protectedStatic = true;
- self::$privateStatic = true;
- }
-
- protected function _someFunc()
- {
- // code here
- }
-
- protected function noUnderscorePrefix()
- {
- // code here
- }
-
- function _noScopeSpecified()
- {
- echo 'handled by an other Sniff';
- }
-
- public function __call($name, $arguments)
- {
- }
- public function __construct()
- {
- }
- public function __clone()
- {
- }
- public function __debugInfo()
- {
- }
- public function __destruct()
- {
- }
- public function __get($name)
- {
- }
- public function __invoke()
- {
- }
- public function __isset($name)
- {
- }
- public function __set($name, $value)
- {
- }
- public function __sleep()
- {
- }
- public function __toString()
- {
- return '';
- }
- public function __unset($name)
- {
- }
- public function __wakeup()
- {
- }
-}
-
-public function __passingOutside() {}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.php
deleted file mode 100644
index 5312675..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidFunctionNameUnitTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
- 1,
- 87 => 1,
- 96 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidTraitNameUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidTraitNameUnitTest.inc
deleted file mode 100644
index 57a83ea..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/NamingConventions/ValidTraitNameUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.inc
deleted file mode 100644
index 97995d3..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-echo "this should fail";
\ No newline at end of file
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.php
deleted file mode 100644
index 288e9bb..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/DisallowShortOpenTagUnitTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/TypeCastingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/TypeCastingUnitTest.inc
deleted file mode 100644
index d1c47b3..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/PHP/TypeCastingUnitTest.inc
+++ /dev/null
@@ -1,11 +0,0 @@
- 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Strings/ConcatenationSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Strings/ConcatenationSpacingUnitTest.inc
deleted file mode 100644
index 44cc716..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/Strings/ConcatenationSpacingUnitTest.inc
+++ /dev/null
@@ -1,10 +0,0 @@
- 1,
- 5 => 1,
- 6 => 2,
- 7 => 1,
- 8 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/CommaSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/CommaSpacingUnitTest.inc
deleted file mode 100644
index a4c9adb..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/CommaSpacingUnitTest.inc
+++ /dev/null
@@ -1,5 +0,0 @@
- 1,
- 3 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/EmptyLinesUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/EmptyLinesUnitTest.inc
deleted file mode 100644
index 7fb201f..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/EmptyLinesUnitTest.inc
+++ /dev/null
@@ -1,49 +0,0 @@
- 1,
- 21 => 1,
- 42 => 1,
- 43 => 1,
- 47 => 1,
- 48 => 1,
- 49 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.inc
deleted file mode 100644
index 57070a3..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-something ('testing');
-fail_whale ();
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.php
deleted file mode 100644
index d98f76d..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionCallSpacingUnitTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
- 1,
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc
deleted file mode 100644
index fc76fc8..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 1,
- 6 => 1,
- 10 => 1,
- 25 => 1,
- 28 => 1,
- 30 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc
deleted file mode 100644
index 6e81d9f..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc
+++ /dev/null
@@ -1,10 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc
deleted file mode 100644
index 0dc8f6a..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc
+++ /dev/null
@@ -1,4 +0,0 @@
- failling() ;
-$test->passing() ;
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php
deleted file mode 100644
index 513bbbc..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
- 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingUnitTest.inc b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingUnitTest.inc
deleted file mode 100644
index d04d62a..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingUnitTest.inc
+++ /dev/null
@@ -1,34 +0,0 @@
- 1,
- 4 => 1,
- 5 => 2,
- 6 => 1,
- 7 => 1,
- 8 => 2,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingunitTest.inc.fixed b/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingunitTest.inc.fixed
deleted file mode 100644
index 26c5612..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/Tests/WhiteSpace/OperatorSpacingunitTest.inc.fixed
+++ /dev/null
@@ -1,34 +0,0 @@
- 1,
- 3 => 1,
- ];
- }
-
- /**
- * {@inheritDoc}
- */
- public function getWarningList()
- {
- return [];
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml b/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml
deleted file mode 100644
index 02573fc..0000000
--- a/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
- CakePHP coding standard
-
- \.git
- */Config/*.ini.php
- /*/tmp/
-
-
-
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
-
- 0
-
-
- 0
-
-
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- */config/*
- */tests/*
-
-
- */tests/*
-
-
- */tests/*
-
-
- */CakePHP/*
- */tests/*
-
-
- */tests/*
-
-
- */tests/*
-
-
- */src/*
- */tests/*
-
-
- */src/*
- */tests/*
-
-
- */src/*
- */tests/*
-
-
-
-
diff --git a/vendor/cakephp/cakephp-codesniffer/LICENSE.txt b/vendor/cakephp/cakephp-codesniffer/LICENSE.txt
deleted file mode 100644
index 0a0a98c..0000000
--- a/vendor/cakephp/cakephp-codesniffer/LICENSE.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-The MIT License
-
-CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org)
-Copyright (c) 2005-present, Cake Software Foundation, Inc.
-
-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.
-
-Cake Software Foundation, Inc.
-1785 E. Sahara Avenue,
-Suite 490-204
-Las Vegas, Nevada 89104,
-United States of America.
diff --git a/vendor/cakephp/cakephp-codesniffer/README.md b/vendor/cakephp/cakephp-codesniffer/README.md
deleted file mode 100644
index 5ef1738..0000000
--- a/vendor/cakephp/cakephp-codesniffer/README.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# CakePHP Code Sniffer
-
-[](https://travis-ci.org/cakephp/cakephp-codesniffer)
-[](https://codecov.io/github/cakephp/cakephp-codesniffer)
-[](https://packagist.org/packages/cakephp/cakephp-codesniffer)
-[](https://packagist.org/packages/cakephp/cakephp-codesniffer)
-
-This code works with [phpcs](http://pear.php.net/manual/en/package.php.php-codesniffer.php)
-and checks code against the coding standards used in CakePHP.
-
-:warning: The `master` branch contains codesniffer rules that are based on the
-PSR2 standard. If you want to check against the historical CakePHP coding
-standard use any of the `1.x` releases.
-
-## Which version should I use?
-
-| Sniffer version | CakePHP version | PHP min |
-| -------- | ------- | ------- |
-| 1.x | 2.x | PHP 5.4 |
-| 2.x | 3.x | PHP 5.5 |
-| 3.x | 3.x | PHP 5.6 |
-| 4.x | 4.x | PHP 7.1 |
-
-## Installation
-
-You should install this codesniffer with composer:
-
- composer require --dev "cakephp/cakephp-codesniffer"
- vendor/bin/phpcs --config-set installed_paths /path/to/your/app/vendor/cakephp/cakephp-codesniffer
-
-The second command lets `phpcs` know where to find your new sniffs. Ensure that
-you do not overwrite any existing `installed_paths` value.
-
-## Usage
-
-:warning: Warning when these sniffs are installed with composer, ensure that
-you have configured the CodeSniffer `installed_paths` setting.
-
-Depending on how you installed the code sniffer changes how you run it. If you have
-installed phpcs, and this package with PEAR, you can do the following:
-
- vendor/bin/phpcs --colors -p -s --standard=CakePHP /path/to/code
-
-You can also copy the `phpcs.xml.dist` file to your project's root folder as `phpcs.xml`.
-This file will import the CakePHP Coding Standard. From there you can edit it to
-include/exclude as needed. With this file in place, you can run:
-
- vendor/bin/phpcs --colors -p -s /path/to/code
-
-If you are using Composer to manage your CakePHP project, you can also add the below to your composer.json file:
-
-```json
-{
- "scripts": {
- "cs-check": "vendor/bin/phpcs --colors -p -s --extensions=ctp,php ./src ./tests"
- }
-}
-```
-
-## Running Tests
-
-You can run tests with composer. Because of how PHPCS test suites work, there is
-additional configuration state in `phpcs` that is required.
-
-```bash
-composer test
-```
-
-Once this has been done once, you can use `phpunit --filter CakePHP` to run the
-tests for the rules in this repository.
-
-## Contributing
-
-If you'd like to contribute to the Code Sniffer, you can fork the project add
-features and send pull requests.
-
-## Releasing CakePHP Code Sniffer
-
-* Create a signed tag
-* Write the changelog in the tag commit
diff --git a/vendor/cakephp/cakephp-codesniffer/composer.json b/vendor/cakephp/cakephp-codesniffer/composer.json
deleted file mode 100644
index 551c0c6..0000000
--- a/vendor/cakephp/cakephp-codesniffer/composer.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "cakephp/cakephp-codesniffer",
- "description": "CakePHP CodeSniffer Standards",
- "type": "phpcodesniffer-standard",
- "keywords": ["framework", "codesniffer"],
- "homepage": "https://cakephp.org",
- "license": "MIT",
- "authors": [
- {
- "name": "CakePHP Community",
- "homepage": "https://github.com/cakephp/cakephp-codesniffer/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/cakephp/cakephp-codesniffer/issues",
- "forum": "https://stackoverflow.com/tags/cakephp",
- "irc": "irc://irc.freenode.org/cakephp",
- "source": "https://github.com/cakephp/cakephp-codesniffer"
- },
- "require": {
- "php": ">=5.6",
- "squizlabs/php_codesniffer": "^3.0.0"
- },
- "require-dev": {
- "phpunit/phpunit": "<6.0"
- },
- "autoload": {
- "psr-4": {
- "CakePHP\\": "CakePHP/"
- }
- },
- "scripts": {
- "increase-severity": "sed -i.bak 's/0<\\/severity>//' CakePHP/ruleset.xml",
- "reset-ruleset": [
- "sed -i.bak 's//0<\\/severity>/' CakePHP/ruleset.xml",
- "rm -f CakePHP/ruleset.xml.bak"
- ],
- "add-standard" : "phpcs --config-set installed_paths $(pwd)",
- "test": [
- "@add-standard",
- "@increase-severity",
- "phpunit",
- "@reset-ruleset"
- ],
- "test-coverage": [
- "@add-standard",
- "@increase-severity",
- "phpunit --coverage-clover=clover.xml",
- "@reset-ruleset"
- ],
- "cs-check": "vendor/bin/phpcs --colors -p -s --extensions=php CakePHP/",
- "cs-fix": "vendor/bin/phpcbf --colors -p --extensions=php CakePHP/",
- "explain": "vendor/bin/phpcs -e"
- }
-}
diff --git a/vendor/cakephp/cakephp-codesniffer/phpcs.xml b/vendor/cakephp/cakephp-codesniffer/phpcs.xml
deleted file mode 100644
index ae84391..0000000
--- a/vendor/cakephp/cakephp-codesniffer/phpcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- CakePHP coding standard
-
-
-
diff --git a/vendor/cakephp/cakephp-codesniffer/phpcs.xml.dist b/vendor/cakephp/cakephp-codesniffer/phpcs.xml.dist
deleted file mode 100644
index f3b4f08..0000000
--- a/vendor/cakephp/cakephp-codesniffer/phpcs.xml.dist
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- App Coding Standard
-
-
-
diff --git a/vendor/cakephp/cakephp-codesniffer/phpunit.xml b/vendor/cakephp/cakephp-codesniffer/phpunit.xml
deleted file mode 100644
index de25c26..0000000
--- a/vendor/cakephp/cakephp-codesniffer/phpunit.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- vendor/squizlabs/php_codesniffer/tests/AllTests.php
-
-
-
-
-
-
- ./CakePHP/Sniffs
-
-
-
diff --git a/vendor/cakephp/chronos/.appveyor.yml b/vendor/cakephp/chronos/.appveyor.yml
deleted file mode 100644
index 827713b..0000000
--- a/vendor/cakephp/chronos/.appveyor.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-build: false
-shallow_clone: false
-platform: 'x86'
-clone_folder: c:\projects\chronos
-
-branches:
- only:
- - master
-
-environment:
- global:
- PHP: "C:/PHP"
-
-init:
- - SET PATH=C:\php\;%PATH%
-
-install:
- - cd c:\
- - curl -fsS https://windows.php.net/downloads/releases/archives/php-5.6.40-nts-Win32-VC11-x86.zip -o php.zip
- - 7z x php.zip -oc:\php
- - cd c:\php
- - copy php.ini-production php.ini
- - echo date.timezone="UTC" >> php.ini
- - echo extension_dir=ext >> php.ini
- - echo extension=php_openssl.dll >> php.ini
- - cd C:\projects\chronos
- - appveyor DownloadFile https://getcomposer.org/composer.phar
- # phpstan requires php 7.0. While here used php 5.5 we can't install it
- - php composer.phar remove --dev phpstan/phpstan
- - php composer.phar install --prefer-dist --no-interaction --ansi --no-progress
-
-test_script:
- - cd C:\projects\chronos
- - vendor\bin\phpunit.bat
diff --git a/vendor/cakephp/chronos/Dockerfile b/vendor/cakephp/chronos/Dockerfile
deleted file mode 100644
index 0d8356e..0000000
--- a/vendor/cakephp/chronos/Dockerfile
+++ /dev/null
@@ -1,10 +0,0 @@
-# Basic docker based environment
-# Necessary to trick dokku into building the documentation
-# using dockerfile instead of herokuish
-FROM php:7.3
-
-WORKDIR /code
-
-VOLUME ["/code"]
-
-CMD [ '/bin/bash' ]
diff --git a/vendor/cakephp/chronos/LICENSE b/vendor/cakephp/chronos/LICENSE
deleted file mode 100644
index 97f3ee6..0000000
--- a/vendor/cakephp/chronos/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (C) Brian Nesbitt
-Copyright (C) Cake Software Foundation, Inc. (http://cakefoundation.org)
-
-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.
diff --git a/vendor/cakephp/chronos/README.md b/vendor/cakephp/chronos/README.md
deleted file mode 100644
index 5049973..0000000
--- a/vendor/cakephp/chronos/README.md
+++ /dev/null
@@ -1,150 +0,0 @@
-# CakePHP Chronos
-
-[](LICENSE)
-[](https://travis-ci.org/cakephp/chronos)
-[](https://coveralls.io/r/cakephp/chronos?branch=master)
-[](https://packagist.org/packages/cakephp/chronos)
-
-Chronos aims to be a drop-in replacement for `nesbot/carbon`. It focuses on providing
-immutable date/datetime objects. Immutable objects help ensure that datetime objects
-aren't accidentally modified keeping data more predictable.
-
-# Installation
-
-Installing with composer:
-
-```
-$ composer require cakephp/chronos
-```
-
-You can then use Chronos:
-
-```php
-modify('+2 hours');
-
-// This will keep modifications
-$date = new Chronos('2015-10-21 16:29:00');
-$date = $date->modify('+2 hours');
-```
-
-## Getting Mutable Objects
-
-In the case that you need a mutable instance you can get one:
-
-```php
-$time = new Chronos('2015-10-21 16:29:00');
-$mutable = $time->toMutable();
-
-$date = new Date('2015-10-21');
-$mutable = $date->toMutable();
-```
-
-## Converting Mutable Objects into Immutable ones.
-
-If you have a mutable object and want an immutable variant you can do the following:
-
-```php
-$time = new MutableDateTime('2015-10-21 16:29:00');
-$fixed = $time->toImmutable();
-
-$date = new MutableDate('2015-10-21');
-$fixed = $date->toImmutable();
-```
-
-# Calendar Dates
-
-PHP only offers datetime objects as part of the native extensions. Chronos
-adds a number of conveniences to the traditional DateTime object and introduces
-a `Date` object. `Date` instances offer compatibility with the `ChronosInterface`, but
-have their time & timezone frozen to `00:00:00 UTC`. This makes them ideal when working with
-calendar dates as the time components will always match.
-
-```php
-use Cake\Chronos\Date;
-
-$today = new Date();
-echo $today;
-// Outputs '2015-10-21'
-
-echo $today->modify('+3 hours');
-// Outputs '2015-10-21'
-```
-
-Like instances of `Chronos`, `Date` objects are also *immutable*. The `MutableDate` class provides
-a mutable variant of `Date`.
-
-# Documentation
-
-A more descriptive documentation can be found at [book.cakephp.org/chronos/1.x/en/](https://book.cakephp.org/chronos/1.x/en/).
-
-# API Documentation
-
-API documentation can be found on [api.cakephp.org/chronos](https://api.cakephp.org/chronos).
diff --git a/vendor/cakephp/chronos/composer.json b/vendor/cakephp/chronos/composer.json
deleted file mode 100644
index d63b284..0000000
--- a/vendor/cakephp/chronos/composer.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "cakephp/chronos",
- "type": "library",
- "description": "A simple API extension for DateTime.",
- "keywords": [
- "date",
- "time",
- "DateTime"
- ],
- "homepage": "http://cakephp.org",
- "license": "MIT",
- "authors": [
- {
- "name": "Brian Nesbitt",
- "email": "brian@nesbot.com",
- "homepage": "http://nesbot.com"
- },
- {
- "name": "The CakePHP Team",
- "homepage": "http://cakephp.org"
- }
- ],
- "support": {
- "issues": "https://github.com/cakephp/chronos/issues",
- "irc": "irc://irc.freenode.org/cakephp",
- "source": "https://github.com/cakephp/chronos"
- },
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "phpunit/phpunit": "<6.0 || ^7.0",
- "athletic/athletic": "~0.1",
- "cakephp/cakephp-codesniffer": "^3.0",
- "phpbench/phpbench": "@dev"
- },
- "autoload": {
- "psr-4": {
- "Cake\\Chronos\\": "src/"
- },
- "files": ["src/carbon_compat.php"]
- },
- "autoload-dev": {
- "psr-4": {
- "Cake\\Chronos\\Test\\": "tests/"
- },
- "files": ["tests/TestCase.php"]
- },
- "scripts": {
- "check": [
- "@test",
- "@cs-check",
- "@phpstan"
- ],
- "test": "phpunit",
- "cs-check": "phpcs",
- "cs-fix": "phpcbf",
- "bench": "phpbench run",
- "phpstan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 && mv composer.backup composer.json",
- "phpstan": "phpstan analyze -c phpstan.neon -l 3 src/"
- }
-}
diff --git a/vendor/cakephp/chronos/docs.Dockerfile b/vendor/cakephp/chronos/docs.Dockerfile
deleted file mode 100644
index 3c6a7f5..0000000
--- a/vendor/cakephp/chronos/docs.Dockerfile
+++ /dev/null
@@ -1,20 +0,0 @@
-# Generate the HTML output.
-FROM markstory/cakephp-docs-builder as builder
-
-RUN pip install git+https://github.com/sphinx-contrib/video.git@master
-
-COPY docs /data/docs
-
-# build docs with sphinx
-RUN cd /data/docs-builder && \
- make website LANGS="en fr ja pt" SOURCE=/data/docs DEST=/data/website
-
-# Build a small nginx container with just the static site in it.
-FROM nginx:1.15-alpine
-
-COPY --from=builder /data/website /data/website
-COPY --from=builder /data/docs-builder/nginx.conf /etc/nginx/conf.d/default.conf
-
-# Move docs into place.
-RUN cp -R /data/website/html/* /usr/share/nginx/html \
- && rm -rf /data/website
diff --git a/vendor/cakephp/chronos/docs/config/__init__.py b/vendor/cakephp/chronos/docs/config/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/vendor/cakephp/chronos/docs/config/all.py b/vendor/cakephp/chronos/docs/config/all.py
deleted file mode 100644
index c310307..0000000
--- a/vendor/cakephp/chronos/docs/config/all.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# Global configuration information used across all the
-# translations of documentation.
-#
-# Import the base theme configuration
-from cakephpsphinx.config.all import *
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-
-# The full version, including alpha/beta/rc tags.
-release = '1.x'
-
-# The search index version.
-search_version = 'chronos-1'
-
-# The marketing display name for the book.
-version_name = ''
-
-# Project name shown in the black header bar
-project = 'Chronos'
-
-# Other versions that display in the version picker menu.
-version_list = [
- {'name': '1.x', 'number': '/chronos/1.x', 'title': '1.x', 'current': True},
-]
-
-# Languages available.
-languages = ['en', 'fr', 'ja', 'pt']
-
-# The GitHub branch name for this version of the docs
-# for edit links to point at.
-branch = 'master'
-
-# Current version being built
-version = '1.x'
-
-# Language in use for this directory.
-language = 'en'
-
-show_root_link = True
-
-repository = 'cakephp/chronos'
-
-source_path = 'docs/'
-
-hide_page_contents = ('search', '404', 'contents')
diff --git a/vendor/cakephp/chronos/docs/en/conf.py b/vendor/cakephp/chronos/docs/en/conf.py
deleted file mode 100644
index f638bda..0000000
--- a/vendor/cakephp/chronos/docs/en/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'en'
diff --git a/vendor/cakephp/chronos/docs/en/contents.rst b/vendor/cakephp/chronos/docs/en/contents.rst
deleted file mode 100644
index 10625a2..0000000
--- a/vendor/cakephp/chronos/docs/en/contents.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP Chronos
-
- /index
-
- API
\ No newline at end of file
diff --git a/vendor/cakephp/chronos/docs/en/index.rst b/vendor/cakephp/chronos/docs/en/index.rst
deleted file mode 100644
index 3cffdd9..0000000
--- a/vendor/cakephp/chronos/docs/en/index.rst
+++ /dev/null
@@ -1,313 +0,0 @@
-Chronos
-#######
-
-Chronos provides a zero-dependency collection of extensions to the ``DateTime``
-object. In addition to convenience methods, Chronos provides:
-
-* ``Date`` objects for representing calendar dates.
-* Immutable date and datetime objects.
-* A pluggable translation system. Only English translations are included in the
- library. However, ``cakephp/i18n`` can be used for full language support.
-
-Installation
-------------
-
-To install Chronos, you should use ``composer``. From your
-application's ROOT directory (where composer.json file is located) run the
-following::
-
- php composer.phar require cakephp/chronos "@stable"
-
-Overview
---------
-
-Chronos provides a number of extensions to the DateTime objects provided by PHP.
-Chronos provides 5 classes that cover mutable and immutable date/time variants
-and extensions to ``DateInterval``.
-
-* ``Cake\Chronos\Chronos`` is an immutable *date and time* object.
-* ``Cake\Chronos\Date`` is a immutable *date* object.
-* ``Cake\Chronos\MutableDateTime`` is a mutable *date and time* object.
-* ``Cake\Chronos\MutableDate`` is a mutable *date* object.
-* ``Cake\Chronos\ChronosInterval`` is an extension to the ``DateInterval``
- object.
-
-Lastly, if you want to typehint against Chronos-provided date/time objects you
-should use ``Cake\Chronos\ChronosInterface``. All of the date and time objects
-implement this interface.
-
-Creating Instances
-------------------
-
-There are many ways to get an instance of Chronos or Date. There are a number of
-factory methods that work with different argument sets::
-
- use Cake\Chronos\Chronos;
-
- $now = Chronos::now();
- $today = Chronos::today();
- $yesterday = Chronos::yesterday();
- $tomorrow = Chronos::tomorrow();
-
- // Parse relative expressions
- $date = Chronos::parse('+2 days, +3 hours');
-
- // Date and time integer values.
- $date = Chronos::create(2015, 12, 25, 4, 32, 58);
-
- // Date or time integer values.
- $date = Chronos::createFromDate(2015, 12, 25);
- $date = Chronos::createFromTime(11, 45, 10);
-
- // Parse formatted values.
- $date = Chronos::createFromFormat('m/d/Y', '06/15/2015');
-
-Working with Immutable Objects
-------------------------------
-
-If you've used PHP's ``DateTime`` objects, you're comfortable with *mutable*
-objects. Chronos offers mutable objects, but it also provides *immutable*
-objects. Immutable objects create copies of objects each time an object is
-modified. Because modifier methods around datetimes are not always transparent,
-data can be modified accidentally or without the developer knowing.
-Immutable objects prevent accidental changes to
-data, and make code free of order-based dependency issues. Immutability
-does mean that you will need to remember to replace variables when using
-modifiers::
-
- // This code doesn't work with immutable objects
- $time->addDay(1);
- doSomething($time);
- return $time;
-
- // This works like you'd expect
- $time = $time->addDay(1);
- $time = doSomething($time);
- return $time;
-
-By capturing the return value of each modification your code will work as
-expected. If you ever have an immutable object, and want to create a mutable
-one, you can use ``toMutable()``::
-
- $inplace = $time->toMutable();
-
-Date Objects
-------------
-
-PHP only provides a single DateTime object. Representing calendar dates can be
-a bit awkward with this class as it includes timezones, and time components that
-don't really belong in the concept of a 'day'. Chronos provides a ``Date``
-object that allows you to represent dates. The time and timezone for these
-objects is always fixed to ``00:00:00 UTC`` and all formatting/difference
-methods operate at the day resolution::
-
- use Cake\Chronos\Date;
-
- $today = Date::today();
-
- // Changes to the time/timezone are ignored.
- $today->modify('+1 hours');
-
- // Outputs '2015-12-20'
- echo $today;
-
-Modifier Methods
-----------------
-
-Chronos objects provide modifier methods that let you modify the value in
-a granular way::
-
- // Set components of the datetime value.
- $halloween = Chronos::create()
- ->year(2015)
- ->month(10)
- ->day(31)
- ->hour(20)
- ->minute(30);
-
-You can also modify parts of the datetime relatively::
-
- $future = Chronos::create()
- ->addYear(1)
- ->subMonth(2)
- ->addDays(15)
- ->addHours(20)
- ->subMinutes(2);
-
-It is also possible to make big jumps to defined points in time::
-
- $time = Chronos::create();
- $time->startOfDay();
- $time->endOfDay();
- $time->startOfMonth();
- $time->endOfMonth();
- $time->startOfYear();
- $time->endOfYear();
- $time->startOfWeek();
- $time->endOfWeek();
-
-Or jump to specific days of the week::
-
- $time->next(ChronosInterface::TUESDAY);
- $time->previous(ChronosInterface::MONDAY);
-
-When modifying dates/times across :abbr:`DST (Daylight Savings Time)` transitions
-your operations may gain/lose an additional hours resulting in hour values that
-don't add up. You can avoid these issues by first changing your timezone to
-``UTC``, modifying the time::
-
- // Additional hour gained.
- $time = new Chronos('2014-03-30 00:00:00', 'Europe/London');
- debug($time->modify('+24 hours')); // 2014-03-31 01:00:00
-
- // First switch to UTC, and modify
- $time = $time->setTimezone('UTC')
- ->modify('+24 hours');
-
-Once you are done modifying the time you can add the original timezone to get
-the localized time.
-
-Comparison Methods
-------------------
-
-Once you have 2 instances of Chronos date/time objects you can compare them in
-a variety of ways::
-
- // Full suite of comparators exist
- // ne, gt, lt, lte.
- $first->eq($second);
- $first->gte($second);
-
- // See if the current object is between two others.
- $now->between($start, $end);
-
- // Find which argument is closest or farthest.
- $now->closest($june, $november);
- $now->farthest($june, $november);
-
-You can also inquire about where a given value falls on the calendar::
-
- $now->isToday();
- $now->isYesterday();
- $now->isFuture();
- $now->isPast();
-
- // Check the day of the week
- $now->isWeekend();
-
- // All other weekday methods exist too.
- $now->isMonday();
-
-You can also find out if a value was within a relative time period::
-
- $time->wasWithinLast('3 days');
- $time->isWithinNext('3 hours');
-
-Generating Differences
-----------------------
-
-In addition to comparing datetimes, calculating differences or deltas between
-two values is a common task::
-
- // Get a DateInterval representing the difference
- $first->diff($second);
-
- // Get difference as a count of specific units.
- $first->diffInHours($second);
- $first->diffInDays($second);
- $first->diffInWeeks($second);
- $first->diffInYears($second);
-
-You can generate human readable differences suitable for use in a feed or
-timeline::
-
- // Difference from now.
- echo $date->diffForHumans();
-
- // Difference from another point in time.
- echo $date->diffForHumans($other); // 1 hour ago;
-
-Formatting Strings
-------------------
-
-Chronos provides a number of methods for displaying our outputting datetime
-objects::
-
- // Uses the format controlled by setToStringFormat()
- echo $date;
-
- // Different standard formats
- echo $time->toAtomString(); // 1975-12-25T14:15:16-05:00
- echo $time->toCookieString(); // Thursday, 25-Dec-1975 14:15:16 EST
- echo $time->toIso8601String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRfc822String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc850String(); // Thursday, 25-Dec-75 14:15:16 EST
- echo $time->toRfc1036String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc1123String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc2822String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc3339String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRssString(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toW3cString(); // 1975-12-25T14:15:16-05:00
-
- // Get the quarter/week
- echo $time->toQuarter(); // 4
- echo $time->toWeek(); // 52
-
- // Generic formatting
- echo $time->toTimeString(); // 14:15:16
- echo $time->toDateString(); // 1975-12-25
- echo $time->toDateTimeString(); // 1975-12-25 14:15:16
- echo $time->toFormattedDateString(); // Dec 25, 1975
- echo $time->toDayDateTimeString(); // Thu, Dec 25, 1975 2:15 PM
-
-Extracting Date Components
---------------------------
-
-Getting parts of a date object can be done by directly accessing properties::
-
- $time = new Chronos('2015-12-31 23:59:58');
- $time->year; // 2015
- $time->month; // 12
- $time->day; // 31
- $time->hour // 23
- $time->minute // 59
- $time->second // 58
-
-Other properties that can be accessed are:
-
-- timezone
-- timezoneName
-- micro
-- dayOfWeek
-- dayOfMonth
-- dayOfYear
-- daysInMonth
-- timestamp
-- quarter
-
-Testing Aids
-------------
-
-When writing unit tests, it is helpful to fixate the current time. Chronos lets
-you fix the current time for each class. As part of your test suite's bootstrap
-process you can include the following::
-
- Chronos::setTestNow(Chronos::now());
- MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
- MutableDate::setTestNow(MutableDate::now());
-
-This will fix the current time of all objects to be the point at which the test
-suite started.
-
-For example, if you fixate the ``Chronos`` to some moment in the past, any new
-instance of ``Chronos`` created with ``now`` or a relative time string, will be
-returned relative to the fixated time::
-
- Chronos::setTestNow(new Chronos('1975-12-25 00:00:00'));
-
- $time = new Chronos(); // 1975-12-25 00:00:00
- $time = new Chronos('1 hour ago'); // 1975-12-24 23:00:00
-
-To reset the fixation, simply call ``setTestNow()`` again with no parameter or
-with ``null`` as a parameter.
diff --git a/vendor/cakephp/chronos/docs/fr/conf.py b/vendor/cakephp/chronos/docs/fr/conf.py
deleted file mode 100644
index b02032e..0000000
--- a/vendor/cakephp/chronos/docs/fr/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'fr'
diff --git a/vendor/cakephp/chronos/docs/fr/contents.rst b/vendor/cakephp/chronos/docs/fr/contents.rst
deleted file mode 100644
index 10625a2..0000000
--- a/vendor/cakephp/chronos/docs/fr/contents.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP Chronos
-
- /index
-
- API
\ No newline at end of file
diff --git a/vendor/cakephp/chronos/docs/fr/index.rst b/vendor/cakephp/chronos/docs/fr/index.rst
deleted file mode 100644
index f313d8b..0000000
--- a/vendor/cakephp/chronos/docs/fr/index.rst
+++ /dev/null
@@ -1,306 +0,0 @@
-Chronos
-#######
-
-Chronos fournit une collection d'extensions sans aucune dépendance pour l'objet
-``DateTime``. En plus de méthodes pratiques, Chronos fournit:
-
-* Des objets ``Date`` pour représenter les dates du calendrier.
-* Des objets immutables pour les dates et les datetimes.
-* Un système de traduction intégrable. Seules les traductions anglaises sont
- inclues dans la librairie. Cependant, ``cakephp/i18n`` peut être utilisé
- pour un support complet d'autres langues.
-
-Installation
-------------
-
-Pour installer Chronos, vous devez utiliser ``composer``. A partir du répertoire
-ROOT de votre application (où le fichier composer.json se trouve) exécutez ce
-qui suit::
-
- php composer.phar require cakephp/chronos "@stable"
-
-Vue d'Ensemble
---------------
-
-Chronos fournit un certain nombre d'extensions pour les objets DateTime fournis
-par PHP. Chronos fournit 5 classes qui gèrent les variantes mutables et
-immutables de date/time et les extensions de ``DateInterval``.
-
-* ``Cake\Chronos\Chronos`` est un objet de *date et time* immutable.
-* ``Cake\Chronos\Date`` est un objet de *date* immutable.
-* ``Cake\Chronos\MutableDateTime`` est un objet de *date et time* mutable.
-* ``Cake\Chronos\MutableDate`` est un objet de *date* mutable.
-* ``Cake\Chronos\ChronosInterval`` est une extension pour l'objet
- ``DateInterval``.
-
-Enfin si vous voulez typer selon les objets date/time fournis par Chronos,
-vous devez utiliser ``Cake\Chronos\ChronosInterface``. Tous les objets date et
-time implémentent cette interface.
-
-Créer des Instances
--------------------
-
-Il y a plusieurs façons d'obtenir une instance de Chronos ou de Date. Il y a
-un certain nombre de méthodes factory qui fonctionnent avec des ensembles
-ayant des arguments différents::
-
- use Cake\Chronos\Chronos;
-
- $now = Chronos::now();
- $today = Chronos::today();
- $yesterday = Chronos::yesterday();
- $tomorrow = Chronos::tomorrow();
-
- // Parse les expressions relatives
- $date = Chronos::parse('+2 days, +3 hours');
-
- // Les valeurs d'entier de Date et time.
- $date = Chronos::create(2015, 12, 25, 4, 32, 58);
-
- // Les valeurs d'entier pour Date ou time.
- $date = Chronos::createFromDate(2015, 12, 25);
- $date = Chronos::createFromTime(11, 45, 10);
-
- // Parse les valeurs formatées.
- $date = Chronos::createFromFormat('m/d/Y', '06/15/2015');
-
-Travailler avec les Objets Immutables
--------------------------------------
-
-Si vous avez utilisé les objets ``DateTime`` de PHP, vous êtes à l'aise avec
-les objets *mutable*. Chronos offre des objets mutables, mais elle fournit
-également des objets *immutables*. Les objets Immutables créent des copies des
-objets à chaque fois qu'un objet est modifié. Puisque les méthodes de
-modification autour des datetimes ne sont pas toujours transparentes, les
-données peuvent être modifiées accidentellement ou sans que le développeur ne
-le sache. Les objets immutables évitent les changements accidentels des
-données et permettent de s'affranchir de tout problème lié à l'ordre d'appel
-des fonctions ou des dépendances. L'immutabilité signifie que vous devez vous
-souvenir de remplacer les variables quand vous utilisez les modificateurs::
-
- // Ce code ne fonctionne pas avec les objets immutables
- $time->addDay(1);
- doSomething($time);
- return $time;
-
- // Ceci fonctionne comme vous le souhaitez
- $time = $time->addDay(1);
- $time = doSomething($time);
- return $time;
-
-En capturant la valeur de retour pour chaque modification, votre code
-fonctionnera comme souhaité. Si vous avez déjà créé un objet immutable, et que
-vous souhaitez un objet mutable, vous pouvez utiliser ``toMutable()``::
-
- $inplace = $time->toMutable();
-
-Objets Date
------------
-
-PHP fournit seulement un unique objet DateTime. Représenter les dates de
-calendrier peut être un peu gênant avec cette classe puisqu'elle inclut les
-timezones, et les composants de time qui n'appartiennent pas vraiment
-dans le concept d'un 'jour'. Chronos fournit un objet ``Date`` qui vous permet
-de représenter les dates. Les time et timezone pour ces objets sont toujours
-fixés à ``00:00:00 UTC`` et toutes les méthodes de formatage/différence
-fonctionnent au niveau du jour::
-
- use Cake\Chronos\Date;
-
- $today = Date::today();
-
- // Changements selon le time/timezone sont ignorés.
- $today->modify('+1 hours');
-
- // Affiche '2015-12-20'
- echo $today;
-
-Méthodes de Modification
-------------------------
-
-Les objets Chronos fournissent des méthodes de modification qui vous laissent
-modifier la valeur d'une façon assez précise::
-
- // Définit les composants de la valeur du datetime.
- $halloween = Chronos::create()
- ->year(2015)
- ->month(10)
- ->day(31)
- ->hour(20)
- ->minute(30);
-
-Vous pouvez aussi modifier les parties de la date de façon relative::
-
- $future = Chronos::create()
- ->addYear(1)
- ->subMonth(2)
- ->addDays(15)
- ->addHours(20)
- ->subMinutes(2);
-
-Il est également possible de faire des sauts vers des points définis dans le
-temps::
-
- $time = Chronos::create();
- $time->startOfDay();
- $time->endOfDay();
- $time->startOfMonth();
- $time->endOfMonth();
- $time->startOfYear();
- $time->endOfYear();
- $time->startOfWeek();
- $time->endOfWeek();
-
-Ou de sauter à un jour spécifique de la semaine::
-
- $time->next(ChronosInterface::TUESDAY);
- $time->previous(ChronosInterface::MONDAY);
-
-Méthodes de Comparaison
------------------------
-
-Une fois que vous avez 2 instances d'objets date/time de Chronos, vous pouvez
-les comparer de plusieurs façons::
-
- // Suite complète de comparateurs existante
- // ne, gt, lt, lte.
- $first->eq($second);
- $first->gte($second);
-
- // Regardez si l'objet courant est entre deux autres.
- $now->between($start, $end);
-
- // Trouver l'argument le plus proche ou le plus éloigné.
- $now->closest($june, $november);
- $now->farthest($june, $november);
-
-Vous pouvez aussi vous renseigner sur le moment où une valeur donnée tombe dans
-le calendrier::
-
- $now->isToday();
- $now->isYesterday();
- $now->isFuture();
- $now->isPast();
-
- // Vérifie le jour de la semaine
- $now->isWeekend();
-
- // Toutes les autres méthodes des jours de la semaine existent aussi.
- $now->isMonday();
-
-Vous pouvez aussi trouver si une valeur était dans une période de temps relative::
-
- $time->wasWithinLast('3 days');
- $time->isWithinNext('3 hours');
-
-Générer des Différences
------------------------
-
-En plus de comparer les datetimes, calculer les différences ou les deltas entre
-des valeurs est une tâche courante::
-
- // Récupère un DateInterval représentant la différence
- $first->diff($second);
-
- // Récupère la différence en tant que nombre d'unités spécifiques.
- $first->diffInHours($second);
- $first->diffInDays($second);
- $first->diffInWeeks($second);
- $first->diffInYears($second);
-
-Vous pouvez générer des différences lisibles qui peuvent vous servir pour
-l'utilisation d'un feed ou d'une timeline::
-
- // Différence à partir de maintenant.
- echo $date->diffForHumans();
-
- // Différence à partir d'un autre point du temps.
- echo $date->diffForHumans($other); // 1 hour ago;
-
-Formater les Chaînes
---------------------
-
-Chronos fournit un certain nombre de méthodes pour afficher nos sorties d'objets
-datetime::
-
- // Utilise le format contrôlé par setToStringFormat()
- echo $date;
-
- // Différents formats standards
- echo $time->toAtomString(); // 1975-12-25T14:15:16-05:00
- echo $time->toCookieString(); // Thursday, 25-Dec-1975 14:15:16 EST
- echo $time->toIso8601String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRfc822String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc850String(); // Thursday, 25-Dec-75 14:15:16 EST
- echo $time->toRfc1036String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc1123String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc2822String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc3339String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRssString(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toW3cString(); // 1975-12-25T14:15:16-05:00
-
- // Récupère le trimestre
- echo $time->toQuarter(); // 4;
- // Récupère la semaine
- echo $time->toWeek(); // 52;
-
- // Formatage générique
- echo $time->toTimeString(); // 14:15:16
- echo $time->toDateString(); // 1975-12-25
- echo $time->toDateTimeString(); // 1975-12-25 14:15:16
- echo $time->toFormattedDateString(); // Dec 25, 1975
- echo $time->toDayDateTimeString(); // Thu, Dec 25, 1975 2:15 PM
-
-Extraire des Fragments de Date
-------------------------------
-
-Il est possible de récupérer des parties d'un objet date en accédant directement
-à ses propriétés::
-
- $time = new Chronos('2015-12-31 23:59:58');
- $time->year; // 2015
- $time->month; // 12
- $time->day; // 31
- $time->hour // 23
- $time->minute // 59
- $time->second // 58
-
-Les autres propriétés accessibles sont:
-
-- timezone
-- timezoneName
-- micro
-- dayOfWeek
-- dayOfMonth
-- dayOfYear
-- daysInMonth
-- timestamp
-- quarter
-
-Aides aux Tests
----------------
-
-Quand vous écrivez des tests unitaires, il peut être utile de fixer le *time*
-courant. Chronos vous permet de fixer le time courant pour chaque classe.
-Pour l'intégrer dans votre processus de démarrage (bootstrap) de suite de tests,
-vous pouvez inclure ce qui suit::
-
- Chronos::setTestNow(Chronos::now());
- MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
- MutableDate::setTestNow(MutableDate::now());
-
-Ceci va fixer le time courant de tous les objets selon le moment où la suite de
-tests a démarré.
-
-Par exemple, si vous fixez le ``Chronos`` à un moment du passé, chaque nouvelle
-instance de ``Chronos`` créée avec ``now`` ou une chaine de temps relative, sera
-retournée relativement à la date fixée::
-
- Chronos::setTestNow(new Chronos('1975-12-25 00:00:00'));
-
- $time = new Chronos(); // 1975-12-25 00:00:00
- $time = new Chronos('1 hour ago'); // 1975-12-24 23:00:00
-
-Pour réinitialiser la "fixation" du temps, appelez simplement ``setTestNow()``
-sans paramètre ou avec ``null`` comme paramètre.
diff --git a/vendor/cakephp/chronos/docs/ja/conf.py b/vendor/cakephp/chronos/docs/ja/conf.py
deleted file mode 100644
index 5871da6..0000000
--- a/vendor/cakephp/chronos/docs/ja/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'ja'
diff --git a/vendor/cakephp/chronos/docs/ja/contents.rst b/vendor/cakephp/chronos/docs/ja/contents.rst
deleted file mode 100644
index 10625a2..0000000
--- a/vendor/cakephp/chronos/docs/ja/contents.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP Chronos
-
- /index
-
- API
\ No newline at end of file
diff --git a/vendor/cakephp/chronos/docs/ja/index.rst b/vendor/cakephp/chronos/docs/ja/index.rst
deleted file mode 100644
index 9e1db71..0000000
--- a/vendor/cakephp/chronos/docs/ja/index.rst
+++ /dev/null
@@ -1,304 +0,0 @@
-Chronos
-#######
-
-Chronos (クロノス) は、 ``DateTime`` オブジェクトへの拡張の依存関係の無いコレクションを提供します。
-便利なメソッドに加えて、Chronos は以下を提供します。
-
-* カレンダー日付のための ``Date`` オブジェクト
-* イミュータブルな日付と日時オブジェクト
-* プラグインのような翻訳システム。ライブラリーは英語のみの翻訳を含んでいます。
- しかし、全ての言語サポートのために、 ``cakephp/i18n`` を使うことができます。
-
-インストール
-------------
-
-Chronos をインストールするためには、 ``composer`` を利用することができます。
-アプリケーションの ROOT ディレクトリー(composer.json ファイルのある場所)
-で以下のように実行します。 ::
-
- php composer.phar require cakephp/chronos "@stable"
-
-概要
-----
-
-Chronos は PHP が提供する DateTime オブジェクトのいくつかの拡張を提供します。
-Chronos は ``DateInterval`` の拡張機能および、ミュータブル(変更可能)と
-イミュータブル(変更不可)な 日付/時刻 の派生系をカバーする5つのクラスを提供します。
-
-* ``Cake\Chronos\Chronos`` はイミュータブルな *日付と時刻* オブジェクト。
-* ``Cake\Chronos\Date`` はイミュータブルな *日付* オブジェクト。
-* ``Cake\Chronos\MutableDateTime`` はミュータブルな *日付と時刻* オブジェクト。
-* ``Cake\Chronos\MutableDate`` はミュータブルな *日付* オブジェクト。
-* ``Cake\Chronos\ChronosInterval`` は ``DateInterval`` の拡張機能。
-
-最後に、もしあなたが Chronos が提供する 日付/時刻 のオブジェクトに対して型宣言を行ないたい場合、
-``Cake\Chronos\ChronosInterface`` を使用することができます。
-全ての日付と時間のオブジェクトはこのインターフェイスを実装しています。
-
-インスタンスの作成
-------------------
-
-Chronos または Date のインスタンスを取得するためには、多くの方法があります。
-異なる引数セットで動作する多くのファクトリーメソッドがあります。 ::
-
- use Cake\Chronos\Chronos;
-
- $now = Chronos::now();
- $today = Chronos::today();
- $yesterday = Chronos::yesterday();
- $tomorrow = Chronos::tomorrow();
-
- // 相対式のパース
- $date = Chronos::parse('+2 days, +3 hours');
-
- // 日付と時間の整数値
- $date = Chronos::create(2015, 12, 25, 4, 32, 58);
-
- // 日付または時間の整数値
- $date = Chronos::createFromDate(2015, 12, 25);
- $date = Chronos::createFromTime(11, 45, 10);
-
- // 整形した値にパース
- $date = Chronos::createFromFormat('m/d/Y', '06/15/2015');
-
-イミュータブルオブジェクトの動作
---------------------------------
-
-もしあなたが、PHP の ``DateTime`` オブジェクトを使用したことがあるなら、
-*ミュータブル* オブジェクトは簡単に使用できます。
-Chronos はミュータブルオブジェクトを提供しますが、これは *イミュータブル* オブジェクトにもなります。
-イミュータブルオブジェクトはオブジェクトが変更されるたびにオブジェクトのコピーを作ります。
-なぜなら、日時周りの変更メソッドは必ずしも透明でないため、データが誤って、
-または開発者が知らない内に変更してしまうからです。
-イミュータブルオブジェクトはデータが誤って変更されることを防止し、
-順序ベースの依存関係の問題の無いコードを作ります。
-不変性は、変更時に忘れずに変数を置き換える必要があることを意味しています。 ::
-
- // このコードはイミュータブルオブジェクトでは動作しません
- $time->addDay(1);
- doSomething($time);
- return $time
-
- // このコードは期待通りに動作します
- $time = $time->addDay(1);
- $time = doSomething($time);
- return $time
-
-各修正の戻り値をキャプチャーすることによって、コードは期待通りに動作します。
-イミュータブルオブジェクトを持っていて、ミュータブルオブジェクトを作りたい場合、
-``toMutable()`` が使用できます。 ::
-
- $inplace = $time->toMutable();
-
-日付オブジェクト
-------------------
-
-PHP は単純な DateTime オブジェクトだけを提供します。このクラスのカレンダー日付の表現で、
-タイムゾーンおよび、本当に「日」の概念に属していないタイムコンポーネントを含むと、
-少し厄介な可能性があります。
-Chronos は日時表現のための ``Date`` オブジェクトを提供します。
-これらのオブジェクトの時間とタイムゾーンは常に ``00:00:00 UTC`` に固定されており、
-全ての書式/差分のメソッドは一日単位で動作します。 ::
-
- use Cake\Chronos\Date;
-
- $today = Date::today();
-
- // 時間/タイムゾーンの変更は無視されます
- $today->modify('+1 hours');
-
- // 出力 '2015-12-20'
- echo $today;
-
-変更メソッド
-------------
-
-Chronos オブジェクトは細やかに値を変更できるメソッドを提供します。 ::
-
- // 日時の値のコンポーネントを設定
- $halloween = Chronos::create()
- ->year(2015)
- ->month(10)
- ->day(31)
- ->hour(20)
- ->minute(30);
-
-また、日時の部分を相対的に変更することもできます。 ::
-
- $future = Chronos::create()
- ->addYear(1)
- ->subMonth(2)
- ->addDays(15)
- ->addHours(20)
- ->subMinutes(2);
-
-また、ある時間の中で、定義された時点に飛ぶことも可能です。 ::
-
- $time = Chronos::create();
- $time->startOfDay();
- $time->endOfDay();
- $time->startOfMonth();
- $time->endOfMonth();
- $time->startOfYear();
- $time->endOfYear();
- $time->startOfWeek();
- $time->endOfWeek();
-
-また、1週間中の特定の日にも飛べます。 ::
-
- $time->next(ChronosInterface::TUESDAY);
- $time->previous(ChronosInterface::MONDAY);
-
-:abbr:`DST (夏時間)` の遷移の前後で日付/時間を変更すると、
-あなたの操作で時間が増減するかもしれませんが、その結果、意図しない時間の値になります。
-これらの問題を回避するには、最初にタイムゾーンを ``UTC`` に変更し、時間を変更します。 ::
-
- // 余分な時間が追加されました
- $time = new Chronos('2014-03-30 00:00:00', 'Europe/London');
- debug($time->modify('+24 hours')); // 2014-03-31 01:00:00
-
- // 最初に UTC に切り替え、そして更新
- $time = $time->setTimezone('UTC')
- ->modify('+24 hours');
-
-時間を変更すると、元のタイムゾーンを追加してローカライズされた時間を取得することができます。
-
-比較メソッド
-------------
-
-Chronos の日付/時間オブジェクトの2つのインスタンスを様々な方法で比較することができます。 ::
-
- // 比較のフルセットが存在します
- // ne, gt, lt, lte.
- $first->eq($second);
- $first->gte($second);
-
- // カレントオブジェクトが2つのオブジェクトの間にあるかどうかを確認します。
- $now->between($start, $end);
-
- // どちらの引数が最も近い (closest) か、または最も遠い (farthest) かを見つけます。
- $now->closest($june, $november);
- $now->farthest($june, $november);
-
-また、与えられた値のカレンダーに当たる場所について問い合わせできます。 ::
-
- $now->isToday();
- $now->isYesterday();
- $now->isFuture();
- $now->isPast();
-
- // 曜日をチェック
- $now->isWeekend();
-
- // 他の曜日のメソッドも全て存在します。
- $now->isMonday();
-
-また、値が相対的な期間内にあったかどうかを見つけることができます。 ::
-
- $time->wasWithinLast('3 days');
- $time->isWithinNext('3 hours');
-
-差の生成
---------
-
-日時比較に加えて、2つの値の差や変化の計算は一般的なタスクです。 ::
-
- // 差をあらわす DateInterval を取得
- $first->diff($second);
-
- // 特定の単位での差を取得
- $first->diffInHours($second);
- $first->diffInDays($second);
- $first->diffInWeeks($second);
- $first->diffInYears($second);
-
-フィードやタイムラインで使用するのに適した、人が読める形式の差を生成することができます。 ::
-
- // 現在からの差
- echo $date->diffForHumans();
-
- // 別の時点からの差
- echo $date->diffForHumans($other); // 1時間前;
-
-フォーマットの設定
-------------------
-
-Chronos は、出力した日時オブジェクトを表示するための多くのメソッドを提供します。 ::
-
- // setToStringFormat() が制御するフォーマットを使用します
- echo $date;
-
- // 別の標準フォーマット
- echo $time->toAtomString(); // 1975-12-25T14:15:16-05:00
- echo $time->toCookieString(); // Thursday, 25-Dec-1975 14:15:16 EST
- echo $time->toIso8601String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRfc822String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc850String(); // Thursday, 25-Dec-75 14:15:16 EST
- echo $time->toRfc1036String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc1123String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc2822String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc3339String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRssString(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toW3cString(); // 1975-12-25T14:15:16-05:00
-
- // クォーター/週数を取得
- echo $time->toQuarter(); // 4;
- echo $time->toWeek(); // 52
-
- // 一般的なフォーマット
- echo $time->toTimeString(); // 14:15:16
- echo $time->toDateString(); // 1975-12-25
- echo $time->toDateTimeString(); // 1975-12-25 14:15:16
- echo $time->toFormattedDateString(); // Dec 25, 1975
- echo $time->toDayDateTimeString(); // Thu, Dec 25, 1975 2:15 PM
-
-日付要素の抽出
---------------
-
-日付オブジェクトのプロパティーに直接アクセスして要素を取得することができます。 ::
-
- $time = new Chronos('2015-12-31 23:59:58');
- $time->year; // 2015
- $time->month; // 12
- $time->day; // 31
- $time->hour // 23
- $time->minute // 59
- $time->second // 58
-
-以下のプロパティーにもアクセスできます。 :
-
-- timezone
-- timezoneName
-- micro
-- dayOfWeek
-- dayOfMonth
-- dayOfYear
-- daysInMonth
-- timestamp
-- quarter
-
-テストの支援
-------------
-
-単体テストを書いている時、現在時刻を固定すると便利です。Chronos は、
-各クラスの現在時刻を修正することができます。
-テストスイートの bootstrap 処理に以下を含めることができます。 ::
-
- Chronos::setTestNow(Chronos::now());
- MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
- MutableDate::setTestNow(MutableDate::now());
-
-これでテストスイートが開始された時点で全てのオブジェクトの現在時刻を修正します。
-
-例えば、 ``Chronos`` を過去のある瞬間に固定した場合、新たな ``Chronos``
-のインスタンスが生成する ``now`` または相対時刻の文字列は、
-固定された時刻の相対を返却します。 ::
-
- Chronos::setTestNow(new Chronos('1975-12-25 00:00:00'));
-
- $time = new Chronos(); // 1975-12-25 00:00:00
- $time = new Chronos('1 hour ago'); // 1975-12-24 23:00:00
-
-固定をリセットするには、 ``setTestNow()`` をパラメーター無し、または ``null`` を設定して
-再び呼び出してください。
diff --git a/vendor/cakephp/chronos/docs/pt/conf.py b/vendor/cakephp/chronos/docs/pt/conf.py
deleted file mode 100644
index 9e22cb0..0000000
--- a/vendor/cakephp/chronos/docs/pt/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'pt'
diff --git a/vendor/cakephp/chronos/docs/pt/contents.rst b/vendor/cakephp/chronos/docs/pt/contents.rst
deleted file mode 100644
index 10625a2..0000000
--- a/vendor/cakephp/chronos/docs/pt/contents.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP Chronos
-
- /index
-
- API
\ No newline at end of file
diff --git a/vendor/cakephp/chronos/docs/pt/index.rst b/vendor/cakephp/chronos/docs/pt/index.rst
deleted file mode 100644
index d4a90af..0000000
--- a/vendor/cakephp/chronos/docs/pt/index.rst
+++ /dev/null
@@ -1,285 +0,0 @@
-Chronos
-#######
-
-O Chronos oferece uma coleção independente de extensões para lidar com o objeto
-``DateTime``. Além de métodos de conveniência, o Chronos oferece:
-
-* Objetos ``Date`` para representar datas de calendário.
-* Objetos *date* e *datetime* imutáveis.
-* Um sistema de tradução acoplável. Apenas traduções em inglês estão incluídas
- na biblioteca. Todavia, ``cakephp/i18n`` pode ser usado para suporte completo
- a idiomas.
-
-Instalação
-----------
-
-Para instalar o Chronos, você deve usar o ``composer``. A partir do diretório
-*ROOT* de sua aplicação (local onde o arquivo composer.json está localizado)
-execute o seguinte comando::
-
- php composer.phar require cakephp/chronos "@stable"
-
-Visão geral
------------
-
-Chronos oferece extensões para lidar com objetos *DateTime* do PHP. 5 classes
-cobrem variantes de data/hora mutáveis e imutáveis e uma extensão do objeto
-``DateInterval``.
-
-* ``Cake\Chronos\Chronos`` é um objeto *date & time* imutável.
-* ``Cake\Chronos\Date`` é um objeto *date* imutável.
-* ``Cake\Chronos\MutableDateTime`` é um objeto *date and time* mutável.
-* ``Cake\Chronos\MutableDate`` é um objeto *date* mutável.
-* ``Cake\Chronos\ChronosInterval`` é uma extensão do objeto ``DateInterval``.
-
-Por último, se você quiser usar o *typehint* em objetos do Chronos, será preciso
-usar a interface ``Cake\Chronos\ChronosInterface``. Todos os objetos de data e
-hora implementam essa interface.
-
-Criando instâncias
-------------------
-
-Existem várias maneiras de criar instâncias do Chronos ou mesmo, do objeto Date.
-Um número considerável de métodos padrão que funcionam com conjuntos diferentes
-de argumentos::
-
- use Cake\Chronos\Chronos;
-
- $now = Chronos::now();
- $today = Chronos::today();
- $yesterday = Chronos::yesterday();
- $tomorrow = Chronos::tomorrow();
-
- // Interpreta expressões relativas.
- $date = Chronos::parse('+2 days, +3 hours');
-
- // Valores inteiros de Date e Time.
- $date = Chronos::create(2015, 12, 25, 4, 32, 58);
-
- // Valores inteiros de Date ou Time.
- $date = Chronos::createFromDate(2015, 12, 25);
- $date = Chronos::createFromTime(11, 45, 10);
-
- // Interpreta valores formatados.
- $date = Chronos::createFromFormat('m/d/Y', '06/15/2015');
-
-Trabalhando com objetos imutáveis
----------------------------------
-
-Se você é familiarizado com os objetos ``DateTime`` do PHP, você se sentirá
-confortável com objetos *mutáveis*. Além de objetos mutáveis o Chronos também
-oferece objetos imutáveis que por sua vez criam cópias de objetos toda vez que
-um objeto é modificado. Devido ao fato de que metodos modificadores relativos
-a data e hora nem sempre serem transparentes, informações podem ser modificadas
-acidentalmente ou sem que o desenvolvedor saiba. Objetos imutáveis previnem
-essas alterações acidentais nos dados. Imutabilidade significa que você deverá
-lembrar de substituir variáveis usando modificadores::
-
- // Esse código não funciona com objetos imutáveis
- $time->addDay(1);
- doSomething($time);
- return $time;
-
- // Esse funciona como o esperado
- $time = $time->addDay(1);
- $time = doSomething($time);
- return $time;
-
-Ao capturar o valor de retorno de cada modificação, seu código funcionará como o
-esperado. Se você tem um objeto imutável e quer criar um mutável a partir do
-mesmo, use ``toMutable()``::
-
- $inplace = $time->toMutable();
-
-Objetos Date
-------------
-
-O PHP disponibiliza um único objeto DateTime. Representar datas de calendário
-pode ser um pouco desconfortável por essa classe, uma vez que ela inclui
-*timezones* e componentes de hora que realmente não se encaixam no conceito de
-'dia'. O Chronos oferece um objeto ``Date`` para representar datas. A hora e a
-zona desse objeto é sempre fixado em ``00:00:00 UTC`` e todos os métodos de
-formatação/diferença operam sob a resolução de dia::
-
- use Cake\Chronos\Date;
-
- $today = Date::today();
-
- // Mudanças na hora/timezone são ignoradas
- $today->modify('+1 hours');
-
- // Exibe '2016-08-15'
- echo $today;
-
-Métodos modificadores
----------------------
-
-Objetos Chronos disponibilizam métodos que permitem a modificação de valores de
-forma granular::
-
- // Define componentes do valor datetime
- $halloween = Chronos::create()
- ->year(2015)
- ->month(10)
- ->day(31)
- ->hour(20)
- ->minute(30);
-
-Você também pode modificar partes da data relativamente::
-
- $future = Chronos::create()
- ->addYear(1)
- ->subMonth(2)
- ->addDays(15)
- ->addHours(20)
- ->subMinutes(2);
-
-Também é possível realizar grandes saltos para períodos definidos no tempo::
-
- $time = Chronos::create();
- $time->startOfDay();
- $time->startOfMonth();
- $time->endOfMonth();
- $time->endOfYear();
- $time->startOfWeek();
- $time->endOfWeek();
-
-Ou ainda para dias específicos da semana::
-
- $time->next(ChronosInterface::TUESDAY);
- $time->previous(ChronosInterface::MONDAY);
-
-Métodos de comparação
----------------------
-
-Uma vez que você possui 2 instâncias de objetos data/hora do Chronos, é possível
-compará-los de várias maneiras::
-
- // Coleção completa de comparadores
- // ne, gt, lt, lte.
- $first->eq($second);
- $first->gte($second);
-
- // Veja se o objeto atual está entre outros
- $now->between($start, $end);
-
- // Encontre qual argumento está mais perto ou mais longe
- $now->closest($june, $november);
- $now->farthest($june, $november);
-
-Você também pode arguir sobre quando um determinado valor cai no calendário::
-
- $now->isToday();
- $now->isYesterday();
- $now->isFuture();
- $now->isPast();
-
- // Verifica se o dia é no final de semana
- $now->isWeekend();
-
- // Todos os métodos para outros dias da semana existem também
- $now->isMonday();
-
-Você também pode verificar se um determinado valor está dentro de um período de
-tempo relativo::
-
- $time->wasWithinLast('3 days');
- $time->isWithinNext('3 hours');
-
-Gerando diferenças
-------------------
-
-Em adição à comparação de *datetimes*, calcular diferenças ou deltas entre
-valores é uma tarefa simples::
-
- // Recebe um DateInterval representando a diferença
- $first->diff($second);
-
- // Recebe a diferença como um contador de unidades específicas
- $first->diffInHours($second);
- $first->diffInDays($second);
- $first->diffInWeeks($second);
- $first->diffInYears($second);
-
-Você pode gerar diferenças de fácil leitura para humanos para usar em um *feed*
-ou *timeline*::
-
- // Diferença em relação ao momento atual
- echo $date->diffForHumans();
-
- // Diferença em relação a outro período no tempo
- echo $date->diffForHumans($other); // 1 hora atrás;
-
-Formatando strings
-------------------
-
-O Chronos disponibiliza métodos para exibir nossos objetos *datetime*::
-
- // Usa o formato controlado por setToStringFormat()
- echo $date;
-
- // Diferentes padrões de formato
- echo $time->toAtomString(); // 1975-12-25T14:15:16-05:00
- echo $time->toCookieString(); // Thursday, 25-Dec-1975 14:15:16 EST
- echo $time->toIso8601String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRfc822String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc850String(); // Thursday, 25-Dec-75 14:15:16 EST
- echo $time->toRfc1036String(); // Thu, 25 Dec 75 14:15:16 -0500
- echo $time->toRfc1123String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc2822String(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toRfc3339String(); // 1975-12-25T14:15:16-05:00
- echo $time->toRssString(); // Thu, 25 Dec 1975 14:15:16 -0500
- echo $time->toW3cString(); // 1975-12-25T14:15:16-05:00
-
- // Recebe o trimestre
- echo $time->toQuarter(); // 4;
-
-Extraindo componentes de data
------------------------------
-
-Podemos receber partes de um objeto *date* acessando propriedades::
-
- $time = new Chronos('2015-12-31 23:59:58');
- $time->year; // 2015
- $time->month; // 12
- $time->day; // 31
- $time->hour // 23
- $time->minute // 59
- $time->second // 58
-
-Outras propriedades que podem ser acessadas são:
-
-- timezone
-- timezoneName
-- micro
-- dayOfWeek
-- dayOfMonth
-- dayOfYear
-- daysInMonth
-- timestamp
-- quarter
-
-Auxílio para testes
--------------------
-
-Ao escrever testes unitários, fixar a hora atual é bastante útil. O Chronos
-lhe permite fixar a hora atual para cada classe. Como parte das suas ferramentas
-de testes, você pode incluir o seguinte::
-
- Chronos::setTestNow(Chronos::now());
- MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
- MutableDate::setTestNow(MutableDate::now());
-
-Isso irá corrigir a hora atual de todos os objetos para o momento em que o
-processo de testes foi iniciado.
-
-Por exemplo, se você fixar o ``Chronos`` em algum momento no passado, qualquer
-nova instância do ``Chronos`` criada com ``now`` ou uma *string* de tempo
-relativa, teremos um retorno referente ao tempo fixado::
-
- Chronos::setTestNow(new Chronos('1975-12-25 00:00:00'));
-
- $time = new Chronos(); // 1975-12-25 00:00:00
- $time = new Chronos('1 hour ago'); // 1975-12-24 23:00:00
-
diff --git a/vendor/cakephp/chronos/src/Chronos.php b/vendor/cakephp/chronos/src/Chronos.php
deleted file mode 100644
index d395563..0000000
--- a/vendor/cakephp/chronos/src/Chronos.php
+++ /dev/null
@@ -1,202 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos;
-
-use DateTimeImmutable;
-use DateTimeZone;
-
-/**
- * An Immutable extension on the native DateTime object.
- *
- * Adds a number of convenience APIs methods and the ability
- * to easily convert into a mutable object.
- *
- * @property-read int $year
- * @property-read int $yearIso
- * @property-read int $month
- * @property-read int $day
- * @property-read int $hour
- * @property-read int $minute
- * @property-read int $second
- * @property-read int $timestamp seconds since the Unix Epoch
- * @property-read DateTimeZone $timezone the current timezone
- * @property-read DateTimeZone $tz alias of timezone
- * @property-read int $micro
- * @property-read int $dayOfWeek 1 (for Monday) through 7 (for Sunday)
- * @property-read int $dayOfYear 0 through 365
- * @property-read int $weekOfMonth 1 through 5
- * @property-read int $weekOfYear ISO-8601 week number of year, weeks starting on Monday
- * @property-read int $daysInMonth number of days in the given month
- * @property-read int $age does a diffInYears() with default parameters
- * @property-read int $quarter the quarter of this instance, 1 - 4
- * @property-read int $offset the timezone offset in seconds from UTC
- * @property-read int $offsetHours the timezone offset in hours from UTC
- * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise
- * @property-read bool $local checks if the timezone is local, true if local, false otherwise
- * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
- * @property-read string $timezoneName
- * @property-read string $tzName
- */
-class Chronos extends DateTimeImmutable implements ChronosInterface
-{
- use Traits\ComparisonTrait;
- use Traits\DifferenceTrait;
- use Traits\FactoryTrait;
- use Traits\FormattingTrait;
- use Traits\MagicPropertyTrait;
- use Traits\ModifierTrait;
- use Traits\RelativeKeywordTrait;
- use Traits\TimezoneTrait;
-
- /**
- * A test ChronosInterface instance to be returned when now instances are created
- *
- * There is a single test now for all date/time classes provided by Chronos.
- * This aims to emulate stubbing out 'now' which is a single global fact.
- *
- * @var \Cake\Chronos\ChronosInterface
- */
- protected static $testNow;
-
- /**
- * Format to use for __toString method when type juggling occurs.
- *
- * @var string
- */
- protected static $toStringFormat = ChronosInterface::DEFAULT_TO_STRING_FORMAT;
-
- /**
- * Create a new Chronos instance.
- *
- * Please see the testing aids section (specifically static::setTestNow())
- * for more on the possibility of this constructor returning a test instance.
- *
- * @param string|null $time Fixed or relative time
- * @param \DateTimeZone|string|null $tz The timezone for the instance
- */
- public function __construct($time = 'now', $tz = null)
- {
- if ($tz !== null) {
- $tz = $tz instanceof DateTimeZone ? $tz : new DateTimeZone($tz);
- }
-
- static::$_lastErrors = [];
- $testNow = static::getTestNow();
- if ($testNow === null) {
- parent::__construct($time === null ? 'now' : $time, $tz);
-
- return;
- }
-
- $relative = static::hasRelativeKeywords($time);
- if (!empty($time) && $time !== 'now' && !$relative) {
- parent::__construct($time, $tz);
-
- return;
- }
-
- $testNow = clone $testNow;
- if ($relative) {
- $testNow = $testNow->modify($time);
- }
-
- $relativeTime = static::isTimeExpression($time);
- if (!$relativeTime && $tz !== $testNow->getTimezone()) {
- $testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
- }
-
- $time = $testNow->format('Y-m-d H:i:s.u');
- parent::__construct($time, $tz);
- }
-
- /**
- * Create a new mutable instance from current immutable instance.
- *
- * @return \Cake\Chronos\MutableDateTime
- */
- public function toMutable()
- {
- return MutableDateTime::instance($this);
- }
-
- /**
- * Get a copy of the instance
- *
- * @return $this
- */
- public function copy()
- {
- return $this;
- }
-
- /**
- * Set a ChronosInterface instance (real or mock) to be returned when a "now"
- * instance is created. The provided instance will be returned
- * specifically under the following conditions:
- * - A call to the static now() method, ex. ChronosInterface::now()
- * - When a null (or blank string) is passed to the constructor or parse(), ex. new Chronos(null)
- * - When the string "now" is passed to the constructor or parse(), ex. new Chronos('now')
- * - When a string containing the desired time is passed to ChronosInterface::parse()
- *
- * Note the timezone parameter was left out of the examples above and
- * has no affect as the mock value will be returned regardless of its value.
- *
- * To clear the test instance call this method using the default
- * parameter of null.
- *
- * @param \Cake\Chronos\ChronosInterface|string|null $testNow The instance to use for all future instances.
- * @return void
- */
- public static function setTestNow($testNow = null)
- {
- static::$testNow = is_string($testNow) ? static::parse($testNow) : $testNow;
- }
-
- /**
- * Get the ChronosInterface instance (real or mock) to be returned when a "now"
- * instance is created.
- *
- * @return \Cake\Chronos\ChronosInterface The current instance used for testing
- */
- public static function getTestNow()
- {
- return static::$testNow;
- }
-
- /**
- * Determine if there is a valid test instance set. A valid test instance
- * is anything that is not null.
- *
- * @return bool True if there is a test instance, otherwise false
- */
- public static function hasTestNow()
- {
- return static::$testNow !== null;
- }
-
- /**
- * Return properties for debugging.
- *
- * @return array
- */
- public function __debugInfo()
- {
- $properties = [
- 'hasFixedNow' => static::hasTestNow(),
- 'time' => $this->format('Y-m-d H:i:s.u'),
- 'timezone' => $this->getTimezone()->getName(),
- ];
-
- return $properties;
- }
-}
diff --git a/vendor/cakephp/chronos/src/ChronosInterface.php b/vendor/cakephp/chronos/src/ChronosInterface.php
deleted file mode 100644
index d73c7a1..0000000
--- a/vendor/cakephp/chronos/src/ChronosInterface.php
+++ /dev/null
@@ -1,1308 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos;
-
-use DateTimeInterface;
-use DateTimeZone;
-
-/**
- * An extension to the DateTimeInterface for a friendlier API
- *
- * @method static modify(string $relative)
- */
-interface ChronosInterface extends DateTimeInterface
-{
- /**
- * The day constants
- */
- const MONDAY = 1;
- const TUESDAY = 2;
- const WEDNESDAY = 3;
- const THURSDAY = 4;
- const FRIDAY = 5;
- const SATURDAY = 6;
- const SUNDAY = 7;
-
- /**
- * Number of X in Y
- */
- const YEARS_PER_CENTURY = 100;
- const YEARS_PER_DECADE = 10;
- const MONTHS_PER_YEAR = 12;
- const MONTHS_PER_QUARTER = 3;
- const WEEKS_PER_YEAR = 52;
- const DAYS_PER_WEEK = 7;
- const HOURS_PER_DAY = 24;
- const MINUTES_PER_HOUR = 60;
- const SECONDS_PER_MINUTE = 60;
-
- /**
- * Default format to use for __toString method when type juggling occurs.
- *
- * @var string
- */
- const DEFAULT_TO_STRING_FORMAT = 'Y-m-d H:i:s';
-
- /**
- * Get a ChronosInterface instance for the current date and time
- *
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name.
- * @return static
- */
- public static function now($tz);
-
- /**
- * Get a copy of the instance
- *
- * @return static
- */
- public function copy();
-
- /**
- * Set the instance's year
- *
- * @param int $value The year value.
- * @return static
- */
- public function year($value);
-
- /**
- * Set the instance's month
- *
- * @param int $value The month value.
- * @return static
- */
- public function month($value);
-
- /**
- * Set the instance's day
- *
- * @param int $value The day value.
- * @return static
- */
- public function day($value);
-
- /**
- * Set the instance's hour
- *
- * @param int $value The hour value.
- * @return static
- */
- public function hour($value);
-
- /**
- * Set the instance's minute
- *
- * @param int $value The minute value.
- * @return static
- */
- public function minute($value);
-
- /**
- * Set the instance's second
- *
- * @param int $value The seconds value.
- * @return static
- */
- public function second($value);
-
- /**
- * Set the date and time all together
- *
- * @param int $year The year to set.
- * @param int $month The month to set.
- * @param int $day The day to set.
- * @param int $hour The hour to set.
- * @param int $minute The minute to set.
- * @param int $second The second to set.
- * @return static
- */
- public function setDateTime($year, $month, $day, $hour, $minute, $second = 0);
-
- /**
- * Set the time by time string
- *
- * @param string $time Time as string.
- * @return static
- */
- public function setTimeFromTimeString($time);
-
- /**
- * Set the instance's timestamp
- *
- * @param int $value The timestamp value to set.
- * @return static
- */
- public function timestamp($value);
-
- /**
- * Alias for setTimezone()
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function timezone($value);
-
- /**
- * Alias for setTimezone()
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function tz($value);
-
- /**
- * Set the instance's timezone from a string or object
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function setTimezone($value);
-
- /**
- * Format the instance as date
- *
- * @return string
- */
- public function toDateString();
-
- /**
- * Format the instance as a readable date
- *
- * @return string
- */
- public function toFormattedDateString();
-
- /**
- * Format the instance as time
- *
- * @return string
- */
- public function toTimeString();
-
- /**
- * Format the instance as date and time
- *
- * @return string
- */
- public function toDateTimeString();
-
- /**
- * Format the instance with day, date and time
- *
- * @return string
- */
- public function toDayDateTimeString();
-
- /**
- * Format the instance as ATOM
- *
- * @return string
- */
- public function toAtomString();
-
- /**
- * Format the instance as COOKIE
- *
- * @return string
- */
- public function toCookieString();
-
- /**
- * Format the instance as ISO8601
- *
- * @return string
- */
- public function toIso8601String();
-
- /**
- * Format the instance as RFC822
- *
- * @return string
- */
- public function toRfc822String();
-
- /**
- * Format the instance as RFC850
- *
- * @return string
- */
- public function toRfc850String();
-
- /**
- * Format the instance as RFC1036
- *
- * @return string
- */
- public function toRfc1036String();
-
- /**
- * Format the instance as RFC1123
- *
- * @return string
- */
- public function toRfc1123String();
-
- /**
- * Format the instance as RFC2822
- *
- * @return string
- */
- public function toRfc2822String();
-
- /**
- * Format the instance as RFC3339
- *
- * @return string
- */
- public function toRfc3339String();
-
- /**
- * Format the instance as RSS
- *
- * @return string
- */
- public function toRssString();
-
- /**
- * Format the instance as W3C
- *
- * @return string
- */
- public function toW3cString();
-
- /**
- * Determines if the instance is equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see equals
- */
- public function eq(ChronosInterface $dt);
-
- /**
- * Determines if the instance is equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function equals(ChronosInterface $dt);
-
- /**
- * Determines if the instance is not equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see notEquals
- */
- public function ne(ChronosInterface $dt);
-
- /**
- * Determines if the instance is not equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function notEquals(ChronosInterface $dt);
-
- /**
- * Determines if the instance is greater (after) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see greaterThan
- */
- public function gt(ChronosInterface $dt);
-
- /**
- * Determines if the instance is greater (after) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function greaterThan(ChronosInterface $dt);
-
- /**
- * Determines if the instance is greater (after) than or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see greaterThanOrEquals
- */
- public function gte(ChronosInterface $dt);
-
- /**
- * Determines if the instance is greater (after) than or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function greaterThanOrEquals(ChronosInterface $dt);
-
- /**
- * Determines if the instance is less (before) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see lessThan
- */
- public function lt(ChronosInterface $dt);
-
- /**
- * Determines if the instance is less (before) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lessThan(ChronosInterface $dt);
-
- /**
- * Determines if the instance is less (before) or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- * @see lessThanOrEquals
- */
- public function lte(ChronosInterface $dt);
-
- /**
- * Determines if the instance is less (before) or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lessThanOrEquals(ChronosInterface $dt);
-
- /**
- * Determines if the instance is between two others
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @param bool $equal Indicates if a > and < comparison should be used or <= or >=
- * @return bool
- */
- public function between(ChronosInterface $dt1, ChronosInterface $dt2, $equal = true);
-
- /**
- * Get the closest date from the instance.
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @return static
- */
- public function closest(ChronosInterface $dt1, ChronosInterface $dt2);
-
- /**
- * Get the farthest date from the instance.
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @return static
- */
- public function farthest(ChronosInterface $dt1, ChronosInterface $dt2);
-
- /**
- * Get the minimum instance between a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with.
- * @return static
- */
- public function min(ChronosInterface $dt = null);
-
- /**
- * Get the maximum instance between a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with.
- * @return static
- */
- public function max(ChronosInterface $dt = null);
-
- /**
- * Determines if the instance is a weekday
- *
- * @return bool
- */
- public function isWeekday();
-
- /**
- * Determines if the instance is a weekend day
- *
- * @return bool
- */
- public function isWeekend();
-
- /**
- * Determines if the instance is yesterday
- *
- * @return bool
- */
- public function isYesterday();
-
- /**
- * Determines if the instance is today
- *
- * @return bool
- */
- public function isToday();
-
- /**
- * Determines if the instance is tomorrow
- *
- * @return bool
- */
- public function isTomorrow();
-
- /**
- * Determines if the instance is in the future, ie. greater (after) than now
- *
- * @return bool
- */
- public function isFuture();
-
- /**
- * Determines if the instance is in the past, ie. less (before) than now
- *
- * @return bool
- */
- public function isPast();
-
- /**
- * Determines if the instance is a leap year
- *
- * @return bool
- */
- public function isLeapYear();
-
- /**
- * Checks if the passed in date is the same day as the instance current day.
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to check against.
- * @return bool
- */
- public function isSameDay(ChronosInterface $dt);
-
- /**
- * Checks if this day is a Sunday.
- *
- * @return bool
- */
- public function isSunday();
-
- /**
- * Checks if this day is a Monday.
- *
- * @return bool
- */
- public function isMonday();
-
- /**
- * Checks if this day is a Tuesday.
- *
- * @return bool
- */
- public function isTuesday();
-
- /**
- * Checks if this day is a Wednesday.
- *
- * @return bool
- */
- public function isWednesday();
-
- /**
- * Checks if this day is a Thursday.
- *
- * @return bool
- */
- public function isThursday();
-
- /**
- * Checks if this day is a Friday.
- *
- * @return bool
- */
- public function isFriday();
-
- /**
- * Checks if this day is a Saturday.
- *
- * @return bool
- */
- public function isSaturday();
-
- /**
- * Returns true if this object represents a date within the current week
- *
- * @return bool
- */
- public function isThisWeek();
-
- /**
- * Returns true if this object represents a date within the current month
- *
- * @return bool
- */
- public function isThisMonth();
-
- /**
- * Returns true if this object represents a date within the current year
- *
- * @return bool
- */
- public function isThisYear();
-
- /**
- * Add years to the instance. Positive $value travel forward while
- * negative $value travel into the past.
- *
- * @param int $value The number of years to add.
- * @return static
- */
- public function addYears($value);
-
- /**
- * Add a year to the instance
- *
- * @param int $value The number of years to add.
- * @return static
- */
- public function addYear($value = 1);
-
- /**
- * Remove a year from the instance
- *
- * @param int $value The number of years to remove.
- * @return static
- */
- public function subYear($value = 1);
-
- /**
- * Remove years from the instance.
- *
- * @param int $value The number of years to remove.
- * @return static
- */
- public function subYears($value);
-
- /**
- * Add months to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-01-03'))->addMonths(1); // Results in 2015-02-03
- *
- * (new Chronos('2015-01-31'))->addMonths(1); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonths($value);
-
- /**
- * Add a month to the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-01-03'))->addMonth(); // Results in 2015-02-03
- *
- * (new Chronos('2015-01-31'))->addMonth(); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonth($value = 1);
-
- /**
- * Remove a month from the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-03-01'))->subMonth(); // Results in 2015-02-01
- *
- * (new Chronos('2015-03-31'))->subMonth(); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonth($value = 1);
-
- /**
- * Remove months from the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-03-01'))->subMonths(1); // Results in 2015-02-01
- *
- * (new Chronos('2015-03-31'))->subMonths(1); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonths($value);
-
- /**
- * Add months with overflowing to the instance. Positive $value
- * travels forward while negative $value travels into the past.
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonthsWithOverflow($value);
-
- /**
- * Add a month with overflow to the instance
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonthWithOverflow($value = 1);
-
- /**
- * Remove a month with overflow from the instance
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonthWithOverflow($value = 1);
-
- /**
- * Remove months with overflow from the instance
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonthsWithOverflow($value);
-
- /**
- * Add days to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of days to add.
- * @return static
- */
- public function addDays($value);
-
- /**
- * Add a day to the instance
- *
- * @param int $value The number of days to add.
- * @return static
- */
- public function addDay($value = 1);
-
- /**
- * Remove a day from the instance
- *
- * @param int $value The number of days to remove.
- * @return static
- */
- public function subDay($value = 1);
-
- /**
- * Remove days from the instance
- *
- * @param int $value The number of days to remove.
- * @return static
- */
- public function subDays($value);
-
- /**
- * Add weekdays to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of weekdays to add.
- * @return static
- */
- public function addWeekdays($value);
-
- /**
- * Add a weekday to the instance
- *
- * @param int $value The number of weekdays to add.
- * @return static
- */
- public function addWeekday($value = 1);
-
- /**
- * Remove a weekday from the instance
- *
- * @param int $value The number of weekdays to remove.
- * @return static
- */
- public function subWeekday($value = 1);
-
- /**
- * Remove weekdays from the instance
- *
- * @param int $value The number of weekdays to remove.
- * @return static
- */
- public function subWeekdays($value);
-
- /**
- * Add weeks to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of weeks to add.
- * @return static
- */
- public function addWeeks($value);
-
- /**
- * Add a week to the instance
- *
- * @param int $value The number of weeks to add.
- * @return static
- */
- public function addWeek($value = 1);
-
- /**
- * Remove a week from the instance
- *
- * @param int $value The number of weeks to remove.
- * @return static
- */
- public function subWeek($value = 1);
-
- /**
- * Remove weeks to the instance
- *
- * @param int $value The number of weeks to remove.
- * @return static
- */
- public function subWeeks($value);
-
- /**
- * Add hours to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of hours to add.
- * @return static
- */
- public function addHours($value);
-
- /**
- * Add an hour to the instance
- *
- * @param int $value The number of hours to add.
- * @return static
- */
- public function addHour($value = 1);
-
- /**
- * Remove an hour from the instance
- *
- * @param int $value The number of hours to remove.
- * @return static
- */
- public function subHour($value = 1);
-
- /**
- * Remove hours from the instance
- *
- * @param int $value The number of hours to remove.
- * @return static
- */
- public function subHours($value);
-
- /**
- * Add minutes to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of minutes to add.
- * @return static
- */
- public function addMinutes($value);
-
- /**
- * Add a minute to the instance
- *
- * @param int $value The number of minutes to add.
- * @return static
- */
- public function addMinute($value = 1);
-
- /**
- * Remove a minute from the instance
- *
- * @param int $value The number of minutes to remove.
- * @return static
- */
- public function subMinute($value = 1);
-
- /**
- * Remove minutes from the instance
- *
- * @param int $value The number of minutes to remove.
- * @return static
- */
- public function subMinutes($value);
-
- /**
- * Add seconds to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of seconds to add.
- * @return static
- */
- public function addSeconds($value);
-
- /**
- * Add a second to the instance
- *
- * @param int $value The number of seconds to add.
- * @return static
- */
- public function addSecond($value = 1);
-
- /**
- * Remove a second from the instance
- *
- * @param int $value The number of seconds to remove.
- * @return static
- */
- public function subSecond($value = 1);
-
- /**
- * Remove seconds from the instance
- *
- * @param int $value The number of seconds to remove.
- * @return static
- */
- public function subSeconds($value);
-
- /**
- * Get the difference in a human readable format in the current locale.
- *
- * When comparing a value in the past to default now:
- * 1 hour ago
- * 5 months ago
- *
- * When comparing a value in the future to default now:
- * 1 hour from now
- * 5 months from now
- *
- * When comparing a value in the past to another value:
- * 1 hour before
- * 5 months before
- *
- * When comparing a value in the future to another value:
- * 1 hour after
- * 5 months after
- *
- * @param \Cake\Chronos\ChronosInterface|null $other The datetime to compare with.
- * @param bool $absolute Removes time difference modifiers ago, after, etc
- * @return string
- */
- public function diffForHumans(ChronosInterface $other = null, $absolute = false);
-
- /**
- * Get the difference in years
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInYears(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in months
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInMonths(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in weeks
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeeks(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in days
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInDays(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in days using a filter callable
- *
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInDaysFiltered(callable $callback, ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in hours using a filter callable
- *
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInHoursFiltered(callable $callback, ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference by the given interval using a filter callable
- *
- * @param \Cake\Chronos\ChronosInterval $ci An interval to traverse by
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffFiltered(ChronosInterval $ci, callable $callback, ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in weekdays
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeekdays(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in weekend days using a filter
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeekendDays(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in hours
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInHours(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in minutes
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInMinutes(ChronosInterface $dt = null, $abs = true);
-
- /**
- * Get the difference in seconds
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInSeconds(ChronosInterface $dt = null, $abs = true);
-
- /**
- * The number of seconds since midnight.
- *
- * @return int
- */
- public function secondsSinceMidnight();
-
- /**
- * The number of seconds until 23:59:59.
- *
- * @return int
- */
- public function secondsUntilEndOfDay();
-
- /**
- * Resets the time to 00:00:00
- *
- * @return static
- */
- public function startOfDay();
-
- /**
- * Resets the time to 23:59:59
- *
- * @return static
- */
- public function endOfDay();
-
- /**
- * Resets the date to the first day of the month and the time to 00:00:00
- *
- * @return static
- */
- public function startOfMonth();
-
- /**
- * Resets the date to end of the month and time to 23:59:59
- *
- * @return static
- */
- public function endOfMonth();
-
- /**
- * Resets the date to the first day of the year and the time to 00:00:00
- *
- * @return static
- */
- public function startOfYear();
-
- /**
- * Resets the date to end of the year and time to 23:59:59
- *
- * @return static
- */
- public function endOfYear();
-
- /**
- * Resets the date to the first day of the decade and the time to 00:00:00
- *
- * @return static
- */
- public function startOfDecade();
-
- /**
- * Resets the date to end of the decade and time to 23:59:59
- *
- * @return static
- */
- public function endOfDecade();
-
- /**
- * Resets the date to the first day of the century and the time to 00:00:00
- *
- * @return static
- */
- public function startOfCentury();
-
- /**
- * Resets the date to end of the century and time to 23:59:59
- *
- * @return static
- */
- public function endOfCentury();
-
- /**
- * Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
- *
- * @return static
- */
- public function startOfWeek();
-
- /**
- * Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59
- *
- * @return static
- */
- public function endOfWeek();
-
- /**
- * Modify to the next occurrence of a given day of the week.
- * If no dayOfWeek is provided, modify to the next occurrence
- * of the current day of the week. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function next($dayOfWeek = null);
-
- /**
- * Modify to the previous occurrence of a given day of the week.
- * If no dayOfWeek is provided, modify to the previous occurrence
- * of the current day of the week. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function previous($dayOfWeek = null);
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current month. If no dayOfWeek is provided, modify to the
- * first day of the current month. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfMonth($dayOfWeek = null);
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current month. If no dayOfWeek is provided, modify to the
- * last day of the current month. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfMonth($dayOfWeek = null);
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current month. If the calculated occurrence is outside the scope
- * of the current month, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfMonth($nth, $dayOfWeek);
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current quarter. If no dayOfWeek is provided, modify to the
- * first day of the current quarter. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfQuarter($dayOfWeek = null);
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current quarter. If no dayOfWeek is provided, modify to the
- * last day of the current quarter. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfQuarter($dayOfWeek = null);
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current quarter. If the calculated occurrence is outside the scope
- * of the current quarter, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfQuarter($nth, $dayOfWeek);
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current year. If no dayOfWeek is provided, modify to the
- * first day of the current year. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfYear($dayOfWeek = null);
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current year. If no dayOfWeek is provided, modify to the
- * last day of the current year. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfYear($dayOfWeek = null);
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current year. If the calculated occurrence is outside the scope
- * of the current year, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. static::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfYear($nth, $dayOfWeek);
-
- /**
- * Modify the current instance to the average of a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return static
- */
- public function average(ChronosInterface $dt = null);
-
- /**
- * Check if its the birthday. Compares the date/month values of the two dates.
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function isBirthday(ChronosInterface $dt);
-
- /**
- * Returns true this instance happened within the specified interval
- *
- * @param string|int $timeInterval the numeric value with space then time type.
- * Example of valid types: 6 hours, 2 days, 1 minute.
- * @return bool
- */
- public function wasWithinLast($timeInterval);
-
- /**
- * Returns true this instance will happen within the specified interval
- *
- * @param string|int $timeInterval the numeric value with space then time type.
- * Example of valid types: 6 hours, 2 days, 1 minute.
- * @return bool
- */
- public function isWithinNext($timeInterval);
-
- /**
- * Check if instance of ChronosInterface is mutable.
- *
- * @return bool
- */
- public function isMutable();
-}
diff --git a/vendor/cakephp/chronos/src/ChronosInterval.php b/vendor/cakephp/chronos/src/ChronosInterval.php
deleted file mode 100644
index a10d934..0000000
--- a/vendor/cakephp/chronos/src/ChronosInterval.php
+++ /dev/null
@@ -1,514 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos;
-
-use DateInterval;
-use InvalidArgumentException;
-
-/**
- * A simple API extension for DateInterval.
- * The implementation provides helpers to handle weeks but only days are saved.
- * Weeks are calculated based on the total days of the current instance.
- *
- * @property int $years Total years of the current interval.
- * @property int $months Total months of the current interval.
- * @property int $weeks Total weeks of the current interval calculated from the days.
- * @property int $dayz Total days of the current interval (weeks * 7 + days).
- * @property int $hours Total hours of the current interval.
- * @property int $minutes Total minutes of the current interval.
- * @property int $seconds Total seconds of the current interval.
- *
- * @property-read int $dayzExcludeWeeks Total days remaining in the final week of the current instance (days % 7).
- * @property-read int $daysExcludeWeeks alias of dayzExcludeWeeks
- *
- * @method static ChronosInterval years($years = 1) Create instance specifying a number of years.
- * @method static ChronosInterval year($years = 1) Alias for years
- * @method static ChronosInterval months($months = 1) Create instance specifying a number of months.
- * @method static ChronosInterval month($months = 1) Alias for months
- * @method static ChronosInterval weeks($weeks = 1) Create instance specifying a number of weeks.
- * @method static ChronosInterval week($weeks = 1) Alias for weeks
- * @method static ChronosInterval days($days = 1) Create instance specifying a number of days.
- * @method static ChronosInterval dayz($days = 1) Alias for days
- * @method static ChronosInterval day($days = 1) Alias for days
- * @method static ChronosInterval hours($hours = 1) Create instance specifying a number of hours.
- * @method static ChronosInterval hour($hours = 1) Alias for hours
- * @method static ChronosInterval minutes($minutes = 1) Create instance specifying a number of minutes.
- * @method static ChronosInterval minute($minutes = 1) Alias for minutes
- * @method static ChronosInterval seconds($seconds = 1) Create instance specifying a number of seconds.
- * @method static ChronosInterval second($seconds = 1) Alias for seconds
- *
- * @method ChronosInterval years() years($years = 1) Set the years portion of the current interval.
- * @method ChronosInterval year() year($years = 1) Alias for years.
- * @method ChronosInterval months() months($months = 1) Set the months portion of the current interval.
- * @method ChronosInterval month() month($months = 1) Alias for months.
- * @method ChronosInterval weeks() weeks($weeks = 1) Set the weeks portion of the current interval. Will overwrite dayz value.
- * @method ChronosInterval week() week($weeks = 1) Alias for weeks.
- * @method ChronosInterval days() days($days = 1) Set the days portion of the current interval.
- * @method ChronosInterval dayz() dayz($days = 1) Alias for days.
- * @method ChronosInterval day() day($days = 1) Alias for days.
- * @method ChronosInterval hours() hours($hours = 1) Set the hours portion of the current interval.
- * @method ChronosInterval hour() hour($hours = 1) Alias for hours.
- * @method ChronosInterval minutes() minutes($minutes = 1) Set the minutes portion of the current interval.
- * @method ChronosInterval minute() minute($minutes = 1) Alias for minutes.
- * @method ChronosInterval seconds() seconds($seconds = 1) Set the seconds portion of the current interval.
- * @method ChronosInterval second() second($seconds = 1) Alias for seconds.
- */
-class ChronosInterval extends DateInterval
-{
- /**
- * Interval spec period designators
- */
- const PERIOD_PREFIX = 'P';
- const PERIOD_YEARS = 'Y';
- const PERIOD_MONTHS = 'M';
- const PERIOD_DAYS = 'D';
- const PERIOD_TIME_PREFIX = 'T';
- const PERIOD_HOURS = 'H';
- const PERIOD_MINUTES = 'M';
- const PERIOD_SECONDS = 'S';
-
- /**
- * Before PHP 5.4.20/5.5.4 instead of `false` days will be set to -99999 when the interval instance
- * was created by DateTime:diff().
- */
- const PHP_DAYS_FALSE = -99999;
-
- /**
- * Determine if the interval was created via DateTime:diff() or not.
- *
- * @param \DateInterval $interval The interval to check.
- * @return bool
- */
- protected static function wasCreatedFromDiff(DateInterval $interval)
- {
- return ($interval->days !== false && $interval->days !== static::PHP_DAYS_FALSE);
- }
-
- /**
- * Create a new ChronosInterval instance.
- *
- * @param int|null $years The year to use.
- * @param int|null $months The month to use.
- * @param int|null $weeks The week to use.
- * @param int|null $days The day to use.
- * @param int|null $hours The hours to use.
- * @param int|null $minutes The minutes to use.
- * @param int|null $seconds The seconds to use.
- */
- public function __construct($years = 1, $months = null, $weeks = null, $days = null, $hours = null, $minutes = null, $seconds = null)
- {
- $spec = static::PERIOD_PREFIX;
-
- $spec .= $years > 0 ? $years . static::PERIOD_YEARS : '';
- $spec .= $months > 0 ? $months . static::PERIOD_MONTHS : '';
-
- $specDays = 0;
- $specDays += $weeks > 0 ? $weeks * ChronosInterface::DAYS_PER_WEEK : 0;
- $specDays += $days > 0 ? $days : 0;
-
- $spec .= ($specDays > 0) ? $specDays . static::PERIOD_DAYS : '';
-
- if ($spec === static::PERIOD_PREFIX) {
- $spec .= '0' . static::PERIOD_YEARS;
- }
-
- if ($hours > 0 || $minutes > 0 || $seconds > 0) {
- $spec .= static::PERIOD_TIME_PREFIX;
- $spec .= $hours > 0 ? $hours . static::PERIOD_HOURS : '';
- $spec .= $minutes > 0 ? $minutes . static::PERIOD_MINUTES : '';
- $spec .= $seconds > 0 ? $seconds . static::PERIOD_SECONDS : '';
- }
-
- parent::__construct($spec);
- }
-
- /**
- * Create a new ChronosInterval instance from specific values.
- * This is an alias for the constructor that allows better fluent
- * syntax as it allows you to do ChronosInterval::create(1)->fn() rather than
- * (new ChronosInterval(1))->fn().
- *
- * @param int|null $years The year to use.
- * @param int|null $months The month to use.
- * @param int|null $weeks The week to use.
- * @param int|null $days The day to use.
- * @param int|null $hours The hours to use.
- * @param int|null $minutes The minutes to use.
- * @param int|null $seconds The seconds to use.
- * @return static
- */
- public static function create($years = 1, $months = null, $weeks = null, $days = null, $hours = null, $minutes = null, $seconds = null)
- {
- return new static($years, $months, $weeks, $days, $hours, $minutes, $seconds);
- }
-
- /**
- * Provide static helpers to create instances. Allows:
- *
- * ```
- * ChronosInterval::years(3)
- * // or
- * ChronosInterval::month(1);
- * ```
- *
- * Note: This is done using the magic method to allow static and instance methods to
- * have the same names.
- *
- * @param string $name The property to configure. Accepts singular and plural forms.
- * @param array $args Contains the value to use.
- * @return static
- */
- public static function __callStatic($name, $args)
- {
- $arg = count($args) === 0 ? 1 : $args[0];
-
- switch ($name) {
- case 'years':
- case 'year':
- return new static($arg);
-
- case 'months':
- case 'month':
- return new static(null, $arg);
-
- case 'weeks':
- case 'week':
- return new static(null, null, $arg);
-
- case 'days':
- case 'dayz':
- case 'day':
- return new static(null, null, null, $arg);
-
- case 'hours':
- case 'hour':
- return new static(null, null, null, null, $arg);
-
- case 'minutes':
- case 'minute':
- return new static(null, null, null, null, null, $arg);
-
- case 'seconds':
- case 'second':
- return new static(null, null, null, null, null, null, $arg);
- }
- }
-
- /**
- * Create a ChronosInterval instance from a DateInterval one. Can not instance
- * DateInterval objects created from DateTime::diff() as you can't externally
- * set the $days field.
- *
- * @param \DateInterval $di The DateInterval instance to copy.
- * @throws \InvalidArgumentException
- * @return static
- */
- public static function instance(DateInterval $di)
- {
- if (static::wasCreatedFromDiff($di)) {
- throw new InvalidArgumentException(
- "Can not instance a DateInterval object created from DateTime::diff()."
- );
- }
-
- $instance = new static($di->y, $di->m, 0, $di->d, $di->h, $di->i, $di->s);
- $instance->invert = $di->invert;
- $instance->days = $di->days;
-
- return $instance;
- }
-
- /**
- * Get a part of the ChronosInterval object
- *
- * @param string $name The property to read.
- * @throws \InvalidArgumentException
- * @return int
- */
- public function __get($name)
- {
- switch ($name) {
- case 'years':
- return $this->y;
-
- case 'months':
- return $this->m;
-
- case 'dayz':
- return $this->d;
-
- case 'hours':
- return $this->h;
-
- case 'minutes':
- return $this->i;
-
- case 'seconds':
- return $this->s;
-
- case 'weeks':
- return (int)floor($this->d / ChronosInterface::DAYS_PER_WEEK);
-
- case 'daysExcludeWeeks':
- case 'dayzExcludeWeeks':
- return $this->dayz % ChronosInterface::DAYS_PER_WEEK;
- case 'days':
- return $this->days;
- case 'y':
- case 'm':
- case 'd':
- case 'h':
- case 'i':
- case 's':
- case 'invert':
- return parent::__get($name);
- default:
- throw new InvalidArgumentException(sprintf("Unknown getter '%s'", $name));
- }
- }
-
- /**
- * Set a part of the ChronosInterval object
- *
- * @param string $name The property to augment.
- * @param int $val The value to change.
- * @return void
- * @throws \InvalidArgumentException
- */
- public function __set($name, $val)
- {
- switch ($name) {
- case 'years':
- $this->y = $val;
- break;
-
- case 'months':
- $this->m = $val;
- break;
-
- case 'weeks':
- $val = $val * ChronosInterface::DAYS_PER_WEEK;
- $this->d = $val;
- break;
-
- case 'dayz':
- $this->d = $val;
- break;
-
- case 'hours':
- $this->h = $val;
- break;
-
- case 'minutes':
- $this->i = $val;
- break;
-
- case 'seconds':
- $this->s = $val;
- break;
-
- case 'invert':
- $this->invert = $val;
- break;
- }
- }
-
- /**
- * Allow setting of weeks and days to be cumulative.
- *
- * @param int $weeks Number of weeks to set
- * @param int $days Number of days to set
- * @return static
- */
- public function weeksAndDays($weeks, $days)
- {
- $this->dayz = ($weeks * ChronosInterface::DAYS_PER_WEEK) + $days;
-
- return $this;
- }
-
- /**
- * Allow fluent calls on the setters... ChronosInterval::years(3)->months(5)->day().
- *
- * Note: This is done using the magic method to allow static and instance methods to
- * have the same names.
- *
- * @param string $name The property name to augment. Accepts plural forms in addition
- * to singular ones.
- * @param array $args The value to set.
- * @return static
- */
- public function __call($name, $args)
- {
- $arg = count($args) === 0 ? 1 : $args[0];
-
- switch ($name) {
- case 'years':
- case 'year':
- $this->years = $arg;
- break;
-
- case 'months':
- case 'month':
- $this->months = $arg;
- break;
-
- case 'weeks':
- case 'week':
- $this->dayz = $arg * ChronosInterface::DAYS_PER_WEEK;
- break;
-
- case 'days':
- case 'dayz':
- case 'day':
- $this->dayz = $arg;
- break;
-
- case 'hours':
- case 'hour':
- $this->hours = $arg;
- break;
-
- case 'minutes':
- case 'minute':
- $this->minutes = $arg;
- break;
-
- case 'seconds':
- case 'second':
- $this->seconds = $arg;
- break;
- }
-
- return $this;
- }
-
- /**
- * Add the passed interval to the current instance
- *
- * @param \DateInterval $interval The interval to add.
- * @return static
- */
- public function add(DateInterval $interval)
- {
- $sign = ($interval->invert === 1) ? -1 : 1;
-
- if (static::wasCreatedFromDiff($interval)) {
- $this->dayz = $this->dayz + ($interval->days * $sign);
- } else {
- $this->years = $this->years + ($interval->y * $sign);
- $this->months = $this->months + ($interval->m * $sign);
- $this->dayz = $this->dayz + ($interval->d * $sign);
- $this->hours = $this->hours + ($interval->h * $sign);
- $this->minutes = $this->minutes + ($interval->i * $sign);
- $this->seconds = $this->seconds + ($interval->s * $sign);
- }
-
- return $this;
- }
-
- /**
- * Returns the ISO 8601 interval string.
- *
- * @return string Interval as string representation
- */
- public function __toString()
- {
- // equivalence
- $oneMinuteInSeconds = 60;
- $oneHourInSeconds = $oneMinuteInSeconds * 60;
- $oneDayInSeconds = $oneHourInSeconds * 24;
- $oneMonthInDays = 365 / 12;
- $oneMonthInSeconds = $oneDayInSeconds * $oneMonthInDays;
- $oneYearInSeconds = 12 * $oneMonthInSeconds;
-
- // convert
- $ySecs = $this->y * $oneYearInSeconds;
- $mSecs = $this->m * $oneMonthInSeconds;
- $dSecs = $this->d * $oneDayInSeconds;
- $hSecs = $this->h * $oneHourInSeconds;
- $iSecs = $this->i * $oneMinuteInSeconds;
- $sSecs = $this->s;
-
- $totalSecs = $ySecs + $mSecs + $dSecs + $hSecs + $iSecs + $sSecs;
-
- $y = null;
- $m = null;
- $d = null;
- $h = null;
- $i = null;
-
- // years
- if ($totalSecs >= $oneYearInSeconds) {
- $y = floor($totalSecs / $oneYearInSeconds);
- $totalSecs = $totalSecs - $y * $oneYearInSeconds;
- }
-
- // months
- if ($totalSecs >= $oneMonthInSeconds) {
- $m = floor($totalSecs / $oneMonthInSeconds);
- $totalSecs = $totalSecs - $m * $oneMonthInSeconds;
- }
-
- // days
- if ($totalSecs >= $oneDayInSeconds) {
- $d = floor($totalSecs / $oneDayInSeconds);
- $totalSecs = $totalSecs - $d * $oneDayInSeconds;
- }
-
- // hours
- if ($totalSecs >= $oneHourInSeconds) {
- $h = floor($totalSecs / $oneHourInSeconds);
- $totalSecs = $totalSecs - $h * $oneHourInSeconds;
- }
-
- // minutes
- if ($totalSecs >= $oneMinuteInSeconds) {
- $i = floor($totalSecs / $oneMinuteInSeconds);
- $totalSecs = $totalSecs - $i * $oneMinuteInSeconds;
- }
-
- $s = $totalSecs;
-
- $date = array_filter([
- static::PERIOD_YEARS => $y,
- static::PERIOD_MONTHS => $m,
- static::PERIOD_DAYS => $d,
- ]);
-
- $time = array_filter([
- static::PERIOD_HOURS => $h,
- static::PERIOD_MINUTES => $i,
- static::PERIOD_SECONDS => $s,
- ]);
-
- $specString = static::PERIOD_PREFIX;
-
- foreach ($date as $key => $value) {
- $specString .= $value . $key;
- }
-
- if (count($time) > 0) {
- $specString .= static::PERIOD_TIME_PREFIX;
- foreach ($time as $key => $value) {
- $specString .= $value . $key;
- }
- }
-
- if ($specString === static::PERIOD_PREFIX) {
- return 'PT0S';
- }
-
- return $this->invert === 1 ? '-' . $specString : $specString;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Date.php b/vendor/cakephp/chronos/src/Date.php
deleted file mode 100644
index 711d452..0000000
--- a/vendor/cakephp/chronos/src/Date.php
+++ /dev/null
@@ -1,143 +0,0 @@
-stripTime($time);
-
- parent::__construct($time, $tz);
-
- return;
- }
-
- $relative = static::hasRelativeKeywords($time);
- if (!empty($time) && $time !== 'now' && !$relative) {
- $time = $this->stripTime($time);
-
- parent::__construct($time, $tz);
-
- return;
- }
-
- $testNow = clone $testNow;
- if ($relative) {
- $time = $this->stripRelativeTime($time);
- if (strlen($time) > 0) {
- $testNow = $testNow->modify($time);
- }
- }
-
- if ($tz !== $testNow->getTimezone()) {
- $testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
- }
-
- $time = $testNow->format('Y-m-d 00:00:00');
- parent::__construct($time, $tz);
- }
-
- /**
- * Create a new mutable instance from current immutable instance.
- *
- * @return \Cake\Chronos\MutableDate
- */
- public function toMutable()
- {
- return MutableDate::instance($this);
- }
-
- /**
- * Return properties for debugging.
- *
- * @return array
- */
- public function __debugInfo()
- {
- $properties = [
- 'hasFixedNow' => static::hasTestNow(),
- 'date' => $this->format('Y-m-d'),
- ];
-
- return $properties;
- }
-}
diff --git a/vendor/cakephp/chronos/src/DifferenceFormatter.php b/vendor/cakephp/chronos/src/DifferenceFormatter.php
deleted file mode 100644
index d64db63..0000000
--- a/vendor/cakephp/chronos/src/DifferenceFormatter.php
+++ /dev/null
@@ -1,103 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos;
-
-/**
- * Handles formatting differences in text.
- *
- * Provides a swappable component for other libraries to leverage.
- * when localizing or customizing the difference output.
- */
-class DifferenceFormatter
-{
-
- /**
- * The text translator object
- *
- * @var \Cake\Chronos\Translator
- */
- protected $translate;
-
- /**
- * Constructor.
- *
- * @param \Cake\Chronos\Translator|null $translate The text translator object.
- */
- public function __construct($translate = null)
- {
- $this->translate = $translate ?: new Translator();
- }
-
- /**
- * Get the difference in a human readable format.
- *
- * @param \Cake\Chronos\ChronosInterface $date The datetime to start with.
- * @param \Cake\Chronos\ChronosInterface|null $other The datetime to compare against.
- * @param bool $absolute removes time difference modifiers ago, after, etc
- * @return string The difference between the two days in a human readable format
- * @see \Cake\Chronos\ChronosInterface::diffForHumans
- */
- public function diffForHumans(ChronosInterface $date, ChronosInterface $other = null, $absolute = false)
- {
- $isNow = $other === null;
- if ($isNow) {
- $other = $date->now($date->tz);
- }
- $diffInterval = $date->diff($other);
-
- switch (true) {
- case ($diffInterval->y > 0):
- $unit = 'year';
- $count = $diffInterval->y;
- break;
- case ($diffInterval->m > 0):
- $unit = 'month';
- $count = $diffInterval->m;
- break;
- case ($diffInterval->d > 0):
- $unit = 'day';
- $count = $diffInterval->d;
- if ($count >= ChronosInterface::DAYS_PER_WEEK) {
- $unit = 'week';
- $count = (int)($count / ChronosInterface::DAYS_PER_WEEK);
- }
- break;
- case ($diffInterval->h > 0):
- $unit = 'hour';
- $count = $diffInterval->h;
- break;
- case ($diffInterval->i > 0):
- $unit = 'minute';
- $count = $diffInterval->i;
- break;
- default:
- $count = $diffInterval->s;
- $unit = 'second';
- break;
- }
- $time = $this->translate->plural($unit, $count, ['count' => $count]);
- if ($absolute) {
- return $time;
- }
- $isFuture = $diffInterval->invert === 1;
- $transId = $isNow ? ($isFuture ? 'from_now' : 'ago') : ($isFuture ? 'after' : 'before');
-
- // Some langs have special pluralization for past and future tense.
- $tryKeyExists = $unit . '_' . $transId;
- if ($this->translate->exists($tryKeyExists)) {
- $time = $this->translate->plural($tryKeyExists, $count, ['count' => $count]);
- }
-
- return $this->translate->singular($transId, ['time' => $time]);
- }
-}
diff --git a/vendor/cakephp/chronos/src/MutableDate.php b/vendor/cakephp/chronos/src/MutableDate.php
deleted file mode 100644
index 3efaf73..0000000
--- a/vendor/cakephp/chronos/src/MutableDate.php
+++ /dev/null
@@ -1,142 +0,0 @@
-stripTime($time);
- parent::__construct($time, $tz);
-
- return;
- }
-
- $relative = static::hasRelativeKeywords($time);
- if (!empty($time) && $time !== 'now' && !$relative) {
- $time = $this->stripTime($time);
-
- parent::__construct($time, $tz);
-
- return;
- }
-
- $testNow = clone $testNow;
- if ($relative) {
- $time = $this->stripRelativeTime($time);
- if (strlen($time) > 0) {
- $testNow = $testNow->modify($time);
- }
- }
-
- if ($tz !== $testNow->getTimezone()) {
- $testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
- }
-
- $time = $testNow->format('Y-m-d 00:00:00');
- parent::__construct($time, $tz);
- }
-
- /**
- * Create a new immutable instance from current mutable instance.
- *
- * @return \Cake\Chronos\Date
- */
- public function toImmutable()
- {
- return Date::instance($this);
- }
-
- /**
- * Return properties for debugging.
- *
- * @return array
- */
- public function __debugInfo()
- {
- $properties = [
- 'hasFixedNow' => static::hasTestNow(),
- 'date' => $this->format('Y-m-d'),
- ];
-
- return $properties;
- }
-}
diff --git a/vendor/cakephp/chronos/src/MutableDateTime.php b/vendor/cakephp/chronos/src/MutableDateTime.php
deleted file mode 100644
index 4afa460..0000000
--- a/vendor/cakephp/chronos/src/MutableDateTime.php
+++ /dev/null
@@ -1,186 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos;
-
-use DateTime;
-use DateTimeZone;
-use InvalidArgumentException;
-
-/**
- * A mutable datetime instance that implements the ChronosInterface.
- *
- * This object can be mutated in place using any setter method,
- * or __set().
- *
- * @property int $year
- * @property int $yearIso
- * @property int $month
- * @property int $day
- * @property int $hour
- * @property int $minute
- * @property int $second
- * @property int $timestamp seconds since the Unix Epoch
- * @property DateTimeZone|string $timezone the current timezone
- * @property DateTimeZone|string $tz alias of timezone
- * @property int $micro
- * @property-read int $dayOfWeek 1 (for Monday) through 7 (for Sunday)
- * @property-read int $dayOfYear 0 through 365
- * @property-read int $weekOfMonth 1 through 5
- * @property-read int $weekOfYear ISO-8601 week number of year, weeks starting on Monday
- * @property-read int $daysInMonth number of days in the given month
- * @property-read int $age does a diffInYears() with default parameters
- * @property-read int $quarter the quarter of this instance, 1 - 4
- * @property-read int $offset the timezone offset in seconds from UTC
- * @property-read int $offsetHours the timezone offset in hours from UTC
- * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise
- * @property-read bool $local checks if the timezone is local, true if local, false otherwise
- * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
- * @property-read string $timezoneName
- * @property-read string $tzName
- */
-class MutableDateTime extends DateTime implements ChronosInterface
-{
- use Traits\ComparisonTrait;
- use Traits\DifferenceTrait;
- use Traits\FactoryTrait;
- use Traits\FormattingTrait;
- use Traits\MagicPropertyTrait;
- use Traits\ModifierTrait;
- use Traits\RelativeKeywordTrait;
- use Traits\TestingAidTrait;
- use Traits\TimezoneTrait;
-
- /**
- * Format to use for __toString method when type juggling occurs.
- *
- * @var string
- */
- protected static $toStringFormat = ChronosInterface::DEFAULT_TO_STRING_FORMAT;
-
- /**
- * Create a new MutableDateTime instance.
- *
- * Please see the testing aids section (specifically static::setTestNow())
- * for more on the possibility of this constructor returning a test instance.
- *
- * @param string|null $time Fixed or relative time
- * @param \DateTimeZone|string|null $tz The timezone for the instance
- */
- public function __construct($time = 'now', $tz = null)
- {
- if ($tz !== null) {
- $tz = $tz instanceof DateTimeZone ? $tz : new DateTimeZone($tz);
- }
-
- $testNow = Chronos::getTestNow();
- if ($testNow === null) {
- parent::__construct($time === null ? 'now' : $time, $tz);
-
- return;
- }
-
- $relative = static::hasRelativeKeywords($time);
- if (!empty($time) && $time !== 'now' && !$relative) {
- parent::__construct($time, $tz);
-
- return;
- }
-
- $testNow = clone $testNow;
- if ($relative) {
- $testNow = $testNow->modify($time);
- }
-
- $relativetime = static::isTimeExpression($time);
- if (!$relativetime && $tz !== $testNow->getTimezone()) {
- $testNow = $testNow->setTimezone($tz === null ? date_default_timezone_get() : $tz);
- }
- $time = $testNow->format('Y-m-d H:i:s.u');
- parent::__construct($time, $tz);
- }
-
- /**
- * Create a new immutable instance from current mutable instance.
- *
- * @return Chronos
- */
- public function toImmutable()
- {
- return Chronos::instance($this);
- }
-
- /**
- * Set a part of the ChronosInterface object
- *
- * @param string $name The property to set.
- * @param string|int|\DateTimeZone $value The value to set.
- * @throws \InvalidArgumentException
- * @return void
- */
- public function __set($name, $value)
- {
- switch ($name) {
- case 'year':
- $this->year($value);
- break;
-
- case 'month':
- $this->month($value);
- break;
-
- case 'day':
- $this->day($value);
- break;
-
- case 'hour':
- $this->hour($value);
- break;
-
- case 'minute':
- $this->minute($value);
- break;
-
- case 'second':
- $this->second($value);
- break;
-
- case 'timestamp':
- $this->timestamp($value);
- break;
-
- case 'timezone':
- case 'tz':
- $this->timezone($value);
- break;
-
- default:
- throw new InvalidArgumentException(sprintf("Unknown setter '%s'", $name));
- }
- }
-
- /**
- * Return properties for debugging.
- *
- * @return array
- */
- public function __debugInfo()
- {
- $properties = [
- 'hasFixedNow' => static::hasTestNow(),
- 'time' => $this->format('Y-m-d H:i:s.u'),
- 'timezone' => $this->getTimezone()->getName(),
- ];
-
- return $properties;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php b/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
deleted file mode 100644
index eeeb98b..0000000
--- a/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
+++ /dev/null
@@ -1,565 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\ChronosInterface;
-use DateTime;
-
-/**
- * Provides various comparison operator methods for datetime objects.
- */
-trait ComparisonTrait
-{
- use CopyTrait;
-
- /**
- * Days of weekend
- *
- * @var array
- */
- protected static $weekendDays = [ChronosInterface::SATURDAY, ChronosInterface::SUNDAY];
-
- /**
- * Get weekend days
- *
- * @return array
- */
- public static function getWeekendDays()
- {
- return static::$weekendDays;
- }
-
- /**
- * Set weekend days
- *
- * @param array $days Which days are 'weekends'.
- * @return void
- */
- public static function setWeekendDays($days)
- {
- static::$weekendDays = $days;
- }
-
- /**
- * Determines if the instance is equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function eq(ChronosInterface $dt)
- {
- return $this == $dt;
- }
-
- /**
- * Determines if the instance is equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function equals(ChronosInterface $dt)
- {
- return $this->eq($dt);
- }
-
- /**
- * Determines if the instance is not equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function ne(ChronosInterface $dt)
- {
- return !$this->eq($dt);
- }
-
- /**
- * Determines if the instance is not equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function notEquals(ChronosInterface $dt)
- {
- return $this->ne($dt);
- }
-
- /**
- * Determines if the instance is greater (after) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function gt(ChronosInterface $dt)
- {
- return $this > $dt;
- }
-
- /**
- * Determines if the instance is greater (after) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function greaterThan(ChronosInterface $dt)
- {
- return $this->gt($dt);
- }
-
- /**
- * Determines if the instance is greater (after) than or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function gte(ChronosInterface $dt)
- {
- return $this >= $dt;
- }
-
- /**
- * Determines if the instance is greater (after) than or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function greaterThanOrEquals(ChronosInterface $dt)
- {
- return $this->gte($dt);
- }
-
- /**
- * Determines if the instance is less (before) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lt(ChronosInterface $dt)
- {
- return $this < $dt;
- }
-
- /**
- * Determines if the instance is less (before) than another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lessThan(ChronosInterface $dt)
- {
- return $this->lt($dt);
- }
-
- /**
- * Determines if the instance is less (before) or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lte(ChronosInterface $dt)
- {
- return $this <= $dt;
- }
-
- /**
- * Determines if the instance is less (before) or equal to another
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
- * @return bool
- */
- public function lessThanOrEquals(ChronosInterface $dt)
- {
- return $this->lte($dt);
- }
-
- /**
- * Determines if the instance is between two others
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @param bool $equal Indicates if a > and < comparison should be used or <= or >=
- * @return bool
- */
- public function between(ChronosInterface $dt1, ChronosInterface $dt2, $equal = true)
- {
- if ($dt1->gt($dt2)) {
- $temp = $dt1;
- $dt1 = $dt2;
- $dt2 = $temp;
- }
-
- if ($equal) {
- return $this->gte($dt1) && $this->lte($dt2);
- }
-
- return $this->gt($dt1) && $this->lt($dt2);
- }
-
- /**
- * Get the closest date from the instance.
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @return \Cake\Chronos\ChronosInterface
- */
- public function closest(ChronosInterface $dt1, ChronosInterface $dt2)
- {
- return $this->diffInSeconds($dt1) < $this->diffInSeconds($dt2) ? $dt1 : $dt2;
- }
-
- /**
- * Get the farthest date from the instance.
- *
- * @param \Cake\Chronos\ChronosInterface $dt1 The instance to compare with.
- * @param \Cake\Chronos\ChronosInterface $dt2 The instance to compare with.
- * @return \Cake\Chronos\ChronosInterface
- */
- public function farthest(ChronosInterface $dt1, ChronosInterface $dt2)
- {
- return $this->diffInSeconds($dt1) > $this->diffInSeconds($dt2) ? $dt1 : $dt2;
- }
-
- /**
- * Get the minimum instance between a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with.
- * @return \Cake\Chronos\ChronosInterface
- */
- public function min(ChronosInterface $dt = null)
- {
- $dt = ($dt === null) ? static::now($this->tz) : $dt;
-
- return $this->lt($dt) ? $this : $dt;
- }
-
- /**
- * Get the maximum instance between a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with.
- * @return \Cake\Chronos\ChronosInterface
- */
- public function max(ChronosInterface $dt = null)
- {
- $dt = ($dt === null) ? static::now($this->tz) : $dt;
-
- return $this->gt($dt) ? $this : $dt;
- }
-
- /**
- * Determines if the instance is a weekday
- *
- * @return bool
- */
- public function isWeekday()
- {
- return !$this->isWeekend();
- }
-
- /**
- * Determines if the instance is a weekend day
- *
- * @return bool
- */
- public function isWeekend()
- {
- return in_array($this->dayOfWeek, self::$weekendDays, true);
- }
-
- /**
- * Determines if the instance is yesterday
- *
- * @return bool
- */
- public function isYesterday()
- {
- return $this->toDateString() === static::yesterday($this->tz)->toDateString();
- }
-
- /**
- * Determines if the instance is today
- *
- * @return bool
- */
- public function isToday()
- {
- return $this->toDateString() === static::now($this->tz)->toDateString();
- }
-
- /**
- * Determines if the instance is tomorrow
- *
- * @return bool
- */
- public function isTomorrow()
- {
- return $this->toDateString() === static::tomorrow($this->tz)->toDateString();
- }
-
- /**
- * Determines if the instance is within the next week
- *
- * @return bool
- */
- public function isNextWeek()
- {
- return $this->format('W o') === static::now($this->tz)->addWeek()->format('W o');
- }
-
- /**
- * Determines if the instance is within the last week
- *
- * @return bool
- */
- public function isLastWeek()
- {
- return $this->format('W o') === static::now($this->tz)->subWeek()->format('W o');
- }
-
- /**
- * Determines if the instance is within the next month
- *
- * @return bool
- */
- public function isNextMonth()
- {
- return $this->format('m Y') === static::now($this->tz)->addMonth()->format('m Y');
- }
-
- /**
- * Determines if the instance is within the last month
- *
- * @return bool
- */
- public function isLastMonth()
- {
- return $this->format('m Y') === static::now($this->tz)->subMonth()->format('m Y');
- }
-
- /**
- * Determines if the instance is within the next year
- *
- * @return bool
- */
- public function isNextYear()
- {
- return $this->year === static::now($this->tz)->addYear()->year;
- }
-
- /**
- * Determines if the instance is within the last year
- *
- * @return bool
- */
- public function isLastYear()
- {
- return $this->year === static::now($this->tz)->subYear()->year;
- }
-
- /**
- * Determines if the instance is in the future, ie. greater (after) than now
- *
- * @return bool
- */
- public function isFuture()
- {
- return $this->gt(static::now($this->tz));
- }
-
- /**
- * Determines if the instance is in the past, ie. less (before) than now
- *
- * @return bool
- */
- public function isPast()
- {
- return $this->lt(static::now($this->tz));
- }
-
- /**
- * Determines if the instance is a leap year
- *
- * @return bool
- */
- public function isLeapYear()
- {
- return $this->format('L') === '1';
- }
-
- /**
- * Checks if the passed in date is the same day as the instance current day.
- *
- * @param \Cake\Chronos\ChronosInterface $dt The instance to check against.
- * @return bool
- */
- public function isSameDay(ChronosInterface $dt)
- {
- return $this->toDateString() === $dt->toDateString();
- }
-
- /**
- * Checks if this day is a Sunday.
- *
- * @return bool
- */
- public function isSunday()
- {
- return $this->dayOfWeek === ChronosInterface::SUNDAY;
- }
-
- /**
- * Checks if this day is a Monday.
- *
- * @return bool
- */
- public function isMonday()
- {
- return $this->dayOfWeek === ChronosInterface::MONDAY;
- }
-
- /**
- * Checks if this day is a Tuesday.
- *
- * @return bool
- */
- public function isTuesday()
- {
- return $this->dayOfWeek === ChronosInterface::TUESDAY;
- }
-
- /**
- * Checks if this day is a Wednesday.
- *
- * @return bool
- */
- public function isWednesday()
- {
- return $this->dayOfWeek === ChronosInterface::WEDNESDAY;
- }
-
- /**
- * Checks if this day is a Thursday.
- *
- * @return bool
- */
- public function isThursday()
- {
- return $this->dayOfWeek === ChronosInterface::THURSDAY;
- }
-
- /**
- * Checks if this day is a Friday.
- *
- * @return bool
- */
- public function isFriday()
- {
- return $this->dayOfWeek === ChronosInterface::FRIDAY;
- }
-
- /**
- * Checks if this day is a Saturday.
- *
- * @return bool
- */
- public function isSaturday()
- {
- return $this->dayOfWeek === ChronosInterface::SATURDAY;
- }
-
- /**
- * Returns true if this object represents a date within the current week
- *
- * @return bool
- */
- public function isThisWeek()
- {
- return static::now($this->getTimezone())->format('W o') === $this->format('W o');
- }
-
- /**
- * Returns true if this object represents a date within the current month
- *
- * @return bool
- */
- public function isThisMonth()
- {
- return static::now($this->getTimezone())->format('m Y') === $this->format('m Y');
- }
-
- /**
- * Returns true if this object represents a date within the current year
- *
- * @return bool
- */
- public function isThisYear()
- {
- return static::now($this->getTimezone())->format('Y') === $this->format('Y');
- }
-
- /**
- * Check if its the birthday. Compares the date/month values of the two dates.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with or null to use current day.
- * @return bool
- */
- public function isBirthday(ChronosInterface $dt = null)
- {
- if ($dt === null) {
- $dt = static::now($this->tz);
- }
-
- return $this->format('md') === $dt->format('md');
- }
-
- /**
- * Returns true this instance happened within the specified interval
- *
- * @param string|int $timeInterval the numeric value with space then time type.
- * Example of valid types: 6 hours, 2 days, 1 minute.
- * @return bool
- */
- public function wasWithinLast($timeInterval)
- {
- $now = new static();
- $interval = $now->copy()->modify('-' . $timeInterval);
- $thisTime = $this->format('U');
-
- return $thisTime >= $interval->format('U') && $thisTime <= $now->format('U');
- }
-
- /**
- * Returns true this instance will happen within the specified interval
- *
- * @param string|int $timeInterval the numeric value with space then time type.
- * Example of valid types: 6 hours, 2 days, 1 minute.
- * @return bool
- */
- public function isWithinNext($timeInterval)
- {
- $now = new static();
- $interval = $now->copy()->modify('+' . $timeInterval);
- $thisTime = $this->format('U');
-
- return $thisTime <= $interval->format('U') && $thisTime >= $now->format('U');
- }
-
- /**
- * Check if instance of ChronosInterface is mutable.
- *
- * @return bool
- */
- public function isMutable()
- {
- return $this instanceof DateTime;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/CopyTrait.php b/vendor/cakephp/chronos/src/Traits/CopyTrait.php
deleted file mode 100644
index bed0daa..0000000
--- a/vendor/cakephp/chronos/src/Traits/CopyTrait.php
+++ /dev/null
@@ -1,31 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-/**
- * Provides methods for copying datetime objects.
- *
- * Expects that implementing classes provide a static `instance()` method.
- */
-trait CopyTrait
-{
- /**
- * Get a copy of the instance
- *
- * @return static
- */
- public function copy()
- {
- return static::instance($this);
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php b/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php
deleted file mode 100644
index f25fdcb..0000000
--- a/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php
+++ /dev/null
@@ -1,302 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\ChronosInterface;
-use Cake\Chronos\ChronosInterval;
-use Cake\Chronos\DifferenceFormatter;
-use DatePeriod;
-use DateTimeImmutable;
-use DateTimeInterface;
-
-/**
- * Provides methods for getting differences between datetime objects.
- *
- * Expects that the implementing class implements:
- *
- * - static::now()
- * - static::instance()
- * - copy()
- */
-trait DifferenceTrait
-{
- /**
- * Instance of the diff formatting object.
- *
- * @var \Cake\Chronos\DifferenceFormatter
- */
- protected static $diffFormatter;
-
- /**
- * Get the difference in years
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInYears(ChronosInterface $dt = null, $abs = true)
- {
- $dt = $dt === null ? static::now($this->tz) : $dt;
-
- return (int)$this->diff($dt, $abs)->format('%r%y');
- }
-
- /**
- * Get the difference in months
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInMonths(ChronosInterface $dt = null, $abs = true)
- {
- $dt = $dt === null ? static::now($this->tz) : $dt;
-
- return $this->diffInYears($dt, $abs) * ChronosInterface::MONTHS_PER_YEAR + (int)$this->diff($dt, $abs)->format('%r%m');
- }
-
- /**
- * Get the difference in weeks
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeeks(ChronosInterface $dt = null, $abs = true)
- {
- return (int)($this->diffInDays($dt, $abs) / ChronosInterface::DAYS_PER_WEEK);
- }
-
- /**
- * Get the difference in days
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInDays(ChronosInterface $dt = null, $abs = true)
- {
- $dt = $dt === null ? static::now($this->tz) : $dt;
-
- return (int)$this->diff($dt, $abs)->format('%r%a');
- }
-
- /**
- * Get the difference in days using a filter callable
- *
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInDaysFiltered(callable $callback, ChronosInterface $dt = null, $abs = true)
- {
- return $this->diffFiltered(ChronosInterval::day(), $callback, $dt, $abs);
- }
-
- /**
- * Get the difference in hours using a filter callable
- *
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInHoursFiltered(callable $callback, ChronosInterface $dt = null, $abs = true)
- {
- return $this->diffFiltered(ChronosInterval::hour(), $callback, $dt, $abs);
- }
-
- /**
- * Get the difference by the given interval using a filter callable
- *
- * @param \Cake\Chronos\ChronosInterval $ci An interval to traverse by
- * @param callable $callback The callback to use for filtering.
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffFiltered(ChronosInterval $ci, callable $callback, ChronosInterface $dt = null, $abs = true)
- {
- $start = $this;
- $end = $dt === null ? static::now($this->tz) : $dt;
- $inverse = false;
-
- if (defined('HHVM_VERSION')) {
- $start = new DateTimeImmutable($this->toIso8601String());
- $end = new DateTimeImmutable($end->toIso8601String());
- }
-
- if ($end < $start) {
- $start = $end;
- $end = $this;
- $inverse = true;
- }
-
- $period = new DatePeriod($start, $ci, $end);
- $vals = array_filter(iterator_to_array($period), function (DateTimeInterface $date) use ($callback) {
- return $callback(static::instance($date));
- });
-
- $diff = count($vals);
-
- return $inverse && !$abs ? -$diff : $diff;
- }
-
- /**
- * Get the difference in weekdays
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeekdays(ChronosInterface $dt = null, $abs = true)
- {
- return $this->diffInDaysFiltered(function (ChronosInterface $date) {
- return $date->isWeekday();
- }, $dt, $abs);
- }
-
- /**
- * Get the difference in weekend days using a filter
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInWeekendDays(ChronosInterface $dt = null, $abs = true)
- {
- return $this->diffInDaysFiltered(function (ChronosInterface $date) {
- return $date->isWeekend();
- }, $dt, $abs);
- }
-
- /**
- * Get the difference in hours
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInHours(ChronosInterface $dt = null, $abs = true)
- {
- return (int)($this->diffInSeconds($dt, $abs) / ChronosInterface::SECONDS_PER_MINUTE / ChronosInterface::MINUTES_PER_HOUR);
- }
-
- /**
- * Get the difference in minutes
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInMinutes(ChronosInterface $dt = null, $abs = true)
- {
- return (int)($this->diffInSeconds($dt, $abs) / ChronosInterface::SECONDS_PER_MINUTE);
- }
-
- /**
- * Get the difference in seconds
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
- * @param bool $abs Get the absolute of the difference
- * @return int
- */
- public function diffInSeconds(ChronosInterface $dt = null, $abs = true)
- {
- $dt = ($dt === null) ? static::now($this->tz) : $dt;
- $value = $dt->getTimestamp() - $this->getTimestamp();
-
- return $abs ? abs($value) : $value;
- }
-
- /**
- * The number of seconds since midnight.
- *
- * @return int
- */
- public function secondsSinceMidnight()
- {
- return $this->diffInSeconds($this->copy()->startOfDay());
- }
-
- /**
- * The number of seconds until 23:59:59.
- *
- * @return int
- */
- public function secondsUntilEndOfDay()
- {
- return $this->diffInSeconds($this->copy()->endOfDay());
- }
-
- /**
- * Convenience method for getting the remaining time from a given time.
- *
- * @param \DateTime|\DateTimeImmutable $datetime The date to get the remaining time from.
- * @return \DateInterval|bool The DateInterval object representing the difference between the two dates or FALSE on failure.
- */
- public static function fromNow($datetime)
- {
- $timeNow = new static();
-
- return $timeNow->diff($datetime);
- }
-
- /**
- * Get the difference in a human readable format.
- *
- * When comparing a value in the past to default now:
- * 1 hour ago
- * 5 months ago
- *
- * When comparing a value in the future to default now:
- * 1 hour from now
- * 5 months from now
- *
- * When comparing a value in the past to another value:
- * 1 hour before
- * 5 months before
- *
- * When comparing a value in the future to another value:
- * 1 hour after
- * 5 months after
- *
- * @param \Cake\Chronos\ChronosInterface|null $other The datetime to compare with.
- * @param bool $absolute removes time difference modifiers ago, after, etc
- * @return string
- */
- public function diffForHumans(ChronosInterface $other = null, $absolute = false)
- {
- return static::diffFormatter()->diffForHumans($this, $other, $absolute);
- }
-
- /**
- * Get the difference formatter instance or overwrite the current one.
- *
- * @param \Cake\Chronos\DifferenceFormatter|null $formatter The formatter instance when setting.
- * @return \Cake\Chronos\DifferenceFormatter The formatter instance.
- */
- public static function diffFormatter($formatter = null)
- {
- if ($formatter === null) {
- if (static::$diffFormatter === null) {
- static::$diffFormatter = new DifferenceFormatter();
- }
-
- return static::$diffFormatter;
- }
-
- return static::$diffFormatter = $formatter;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/FactoryTrait.php b/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
deleted file mode 100644
index c9b1c33..0000000
--- a/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
+++ /dev/null
@@ -1,335 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use DateTimeInterface;
-use DateTimeZone;
-use InvalidArgumentException;
-
-/**
- * Provides a number of datetime related factory methods.
- */
-trait FactoryTrait
-{
- /**
- * Holds the last error generated by createFromFormat
- *
- * @var array
- */
- protected static $_lastErrors = [];
-
- /**
- * Create a ChronosInterface instance from a DateTimeInterface one
- *
- * @param \DateTimeInterface $dt The datetime instance to convert.
- * @return static
- */
- public static function instance(DateTimeInterface $dt)
- {
- if ($dt instanceof static) {
- return clone $dt;
- }
-
- return new static($dt->format('Y-m-d H:i:s.u'), $dt->getTimezone());
- }
-
- /**
- * Create a ChronosInterface instance from a string. This is an alias for the
- * constructor that allows better fluent syntax as it allows you to do
- * ChronosInterface::parse('Monday next week')->fn() rather than
- * (new Chronos('Monday next week'))->fn()
- *
- * @param \DateTimeInterface|string $time The strtotime compatible string to parse
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name.
- * @return static
- */
- public static function parse($time = 'now', $tz = null)
- {
- return new static($time, $tz);
- }
-
- /**
- * Get a ChronosInterface instance for the current date and time
- *
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name.
- * @return static
- */
- public static function now($tz = null)
- {
- return new static('now', $tz);
- }
-
- /**
- * Create a ChronosInterface instance for today
- *
- * @param \DateTimeZone|string|null $tz The timezone to use.
- * @return static
- */
- public static function today($tz = null)
- {
- return new static('midnight', $tz);
- }
-
- /**
- * Create a ChronosInterface instance for tomorrow
- *
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function tomorrow($tz = null)
- {
- return new static('tomorrow, midnight', $tz);
- }
-
- /**
- * Create a ChronosInterface instance for yesterday
- *
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function yesterday($tz = null)
- {
- return new static('yesterday, midnight', $tz);
- }
-
- /**
- * Create a ChronosInterface instance for the greatest supported date.
- *
- * @return \Cake\Chronos\ChronosInterface
- */
- public static function maxValue()
- {
- return static::createFromTimestampUTC(PHP_INT_MAX);
- }
-
- /**
- * Create a ChronosInterface instance for the lowest supported date.
- *
- * @return \Cake\Chronos\ChronosInterface
- */
- public static function minValue()
- {
- $max = PHP_INT_SIZE === 4 ? PHP_INT_MAX : PHP_INT_MAX / 10;
-
- return static::createFromTimestampUTC(~$max);
- }
-
- /**
- * Create a new ChronosInterface instance from a specific date and time.
- *
- * If any of $year, $month or $day are set to null their now() values
- * will be used.
- *
- * If $hour is null it will be set to its now() value and the default values
- * for $minute and $second will be their now() values.
- * If $hour is not null then the default values for $minute and $second
- * will be 0.
- *
- * @param int|null $year The year to create an instance with.
- * @param int|null $month The month to create an instance with.
- * @param int|null $day The day to create an instance with.
- * @param int|null $hour The hour to create an instance with.
- * @param int|null $minute The minute to create an instance with.
- * @param int|null $second The second to create an instance with.
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function create($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)
- {
- $year = ($year === null) ? date('Y') : $year;
- $month = ($month === null) ? date('n') : $month;
- $day = ($day === null) ? date('j') : $day;
-
- if ($hour === null) {
- $hour = date('G');
- $minute = ($minute === null) ? date('i') : $minute;
- $second = ($second === null) ? date('s') : $second;
- } else {
- $minute = ($minute === null) ? 0 : $minute;
- $second = ($second === null) ? 0 : $second;
- }
-
- $instance = static::createFromFormat('Y-n-j G:i:s', sprintf('%s-%s-%s %s:%02s:%02s', 0, $month, $day, $hour, $minute, $second), $tz);
-
- return $instance->addYears($year);
- }
-
- /**
- * Create a ChronosInterface instance from just a date. The time portion is set to now.
- *
- * @param int $year The year to create an instance with.
- * @param int $month The month to create an instance with.
- * @param int $day The day to create an instance with.
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function createFromDate($year = null, $month = null, $day = null, $tz = null)
- {
- return static::create($year, $month, $day, null, null, null, $tz);
- }
-
- /**
- * Create a ChronosInterface instance from just a time. The date portion is set to today.
- *
- * @param int|null $hour The hour to create an instance with.
- * @param int|null $minute The minute to create an instance with.
- * @param int|null $second The second to create an instance with.
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function createFromTime($hour = null, $minute = null, $second = null, $tz = null)
- {
- return static::create(null, null, null, $hour, $minute, $second, $tz);
- }
-
- /**
- * Create a ChronosInterface instance from a specific format
- *
- * @param string $format The date() compatible format string.
- * @param string $time The formatted date string to interpret.
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- * @throws \InvalidArgumentException
- */
- public static function createFromFormat($format, $time, $tz = null)
- {
- if ($tz !== null) {
- $dt = parent::createFromFormat($format, $time, static::safeCreateDateTimeZone($tz));
- } else {
- $dt = parent::createFromFormat($format, $time);
- }
-
- $errors = parent::getLastErrors();
- if ($dt == false) {
- throw new InvalidArgumentException(implode(PHP_EOL, $errors['errors']));
- }
-
- $dt = static::instance($dt);
- static::$_lastErrors = $errors;
-
- return $dt;
- }
-
- /**
- * Creates a ChronosInterface instance from an array of date and time values.
- *
- * The 'year', 'month' and 'day' values must all be set for a date. The time
- * values all default to 0.
- *
- * The 'timezone' value can be any format supported by `\DateTimeZone`.
- *
- * Allowed values:
- * - year
- * - month
- * - day
- * - hour
- * - minute
- * - second
- * - microsecond
- * - meridian ('am' or 'pm')
- * - timezone
- *
- * @param (int|string)[] $values Array of date and time values.
- * @return static
- */
- public static function createFromArray($values)
- {
- $values += ['hour' => 0, 'minute' => 0, 'second' => 0, 'microsecond' => 0, 'timezone' => null];
-
- $formatted = '';
- if (
- isset($values['year'], $values['month'], $values['day']) &&
- (
- is_numeric($values['year']) &&
- is_numeric($values['month']) &&
- is_numeric($values['day'])
- )
- ) {
- $formatted .= sprintf('%04d-%02d-%02d ', $values['year'], $values['month'], $values['day']);
- }
-
- if (isset($values['meridian']) && (int)$values['hour'] === 12) {
- $values['hour'] = 0;
- }
- if (isset($values['meridian'])) {
- $values['hour'] = strtolower($values['meridian']) === 'am' ? $values['hour'] : $values['hour'] + 12;
- }
- $formatted .= sprintf(
- '%02d:%02d:%02d.%06d',
- $values['hour'],
- $values['minute'],
- $values['second'],
- $values['microsecond']
- );
-
- return static::parse($formatted, $values['timezone']);
- }
-
- /**
- * Create a ChronosInterface instance from a timestamp
- *
- * @param int $timestamp The timestamp to create an instance from.
- * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
- * @return static
- */
- public static function createFromTimestamp($timestamp, $tz = null)
- {
- return static::now($tz)->setTimestamp($timestamp);
- }
-
- /**
- * Create a ChronosInterface instance from an UTC timestamp
- *
- * @param int $timestamp The UTC timestamp to create an instance from.
- * @return static
- */
- public static function createFromTimestampUTC($timestamp)
- {
- return new static('@' . $timestamp);
- }
-
- /**
- * Creates a DateTimeZone from a string or a DateTimeZone
- *
- * @param \DateTimeZone|string|null $object The value to convert.
- * @return \DateTimeZone
- * @throws \InvalidArgumentException
- */
- protected static function safeCreateDateTimeZone($object)
- {
- if ($object === null) {
- return new DateTimeZone(date_default_timezone_get());
- }
-
- if ($object instanceof DateTimeZone) {
- return $object;
- }
-
- return new DateTimeZone($object);
- }
-
- /**
- * Returns any errors or warnings that were found during the parsing
- * of the last object created by this class.
- *
- * @return array
- */
- public static function getLastErrors()
- {
- if (empty(static::$_lastErrors)) {
- return parent::getLastErrors();
- }
-
- return static::$_lastErrors;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/FormattingTrait.php b/vendor/cakephp/chronos/src/Traits/FormattingTrait.php
deleted file mode 100644
index 1af15c5..0000000
--- a/vendor/cakephp/chronos/src/Traits/FormattingTrait.php
+++ /dev/null
@@ -1,259 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\ChronosInterface;
-use DateTime;
-
-/**
- * Provides string formatting methods for datetime instances.
- *
- * Expects implementing classes to define static::$toStringFormat
- */
-trait FormattingTrait
-{
- /**
- * Reset the format used to the default when type juggling a ChronosInterface instance to a string
- *
- * @return void
- */
- public static function resetToStringFormat()
- {
- static::setToStringFormat(ChronosInterface::DEFAULT_TO_STRING_FORMAT);
- }
-
- /**
- * Set the default format used when type juggling a ChronosInterface instance to a string
- *
- * @param string $format The format to use in future __toString() calls.
- * @return void
- */
- public static function setToStringFormat($format)
- {
- static::$toStringFormat = $format;
- }
-
- /**
- * Format the instance as a string using the set format
- *
- * @return string
- */
- public function __toString()
- {
- return $this->format(static::$toStringFormat);
- }
-
- /**
- * Format the instance as date
- *
- * @return string
- */
- public function toDateString()
- {
- return $this->format('Y-m-d');
- }
-
- /**
- * Format the instance as a readable date
- *
- * @return string
- */
- public function toFormattedDateString()
- {
- return $this->format('M j, Y');
- }
-
- /**
- * Format the instance as time
- *
- * @return string
- */
- public function toTimeString()
- {
- return $this->format('H:i:s');
- }
-
- /**
- * Format the instance as date and time
- *
- * @return string
- */
- public function toDateTimeString()
- {
- return $this->format('Y-m-d H:i:s');
- }
-
- /**
- * Format the instance with day, date and time
- *
- * @return string
- */
- public function toDayDateTimeString()
- {
- return $this->format('D, M j, Y g:i A');
- }
-
- /**
- * Format the instance as ATOM
- *
- * @return string
- */
- public function toAtomString()
- {
- return $this->format(DateTime::ATOM);
- }
-
- /**
- * Format the instance as COOKIE
- *
- * @return string
- */
- public function toCookieString()
- {
- return $this->format(DateTime::COOKIE);
- }
-
- /**
- * Format the instance as ISO8601
- *
- * @return string
- */
- public function toIso8601String()
- {
- return $this->format(DateTime::ATOM);
- }
-
- /**
- * Format the instance as RFC822
- *
- * @return string
- */
- public function toRfc822String()
- {
- return $this->format(DateTime::RFC822);
- }
-
- /**
- * Format the instance as RFC850
- *
- * @return string
- */
- public function toRfc850String()
- {
- return $this->format(DateTime::RFC850);
- }
-
- /**
- * Format the instance as RFC1036
- *
- * @return string
- */
- public function toRfc1036String()
- {
- return $this->format(DateTime::RFC1036);
- }
-
- /**
- * Format the instance as RFC1123
- *
- * @return string
- */
- public function toRfc1123String()
- {
- return $this->format(DateTime::RFC1123);
- }
-
- /**
- * Format the instance as RFC2822
- *
- * @return string
- */
- public function toRfc2822String()
- {
- return $this->format(DateTime::RFC2822);
- }
-
- /**
- * Format the instance as RFC3339
- *
- * @return string
- */
- public function toRfc3339String()
- {
- return $this->format(DateTime::RFC3339);
- }
-
- /**
- * Format the instance as RSS
- *
- * @return string
- */
- public function toRssString()
- {
- return $this->format(DateTime::RSS);
- }
-
- /**
- * Format the instance as W3C
- *
- * @return string
- */
- public function toW3cString()
- {
- return $this->format(DateTime::W3C);
- }
-
- /**
- * Returns a UNIX timestamp.
- *
- * @return string UNIX timestamp
- */
- public function toUnixString()
- {
- return $this->format('U');
- }
-
- /**
- * Returns the quarter
- *
- * @param bool $range Range.
- * @return int|array 1, 2, 3, or 4 quarter of year or array if $range true
- */
- public function toQuarter($range = false)
- {
- $quarter = ceil($this->format('m') / 3);
- if ($range === false) {
- return $quarter;
- }
-
- $year = $this->format('Y');
- switch ($quarter) {
- case 1:
- return [$year . '-01-01', $year . '-03-31'];
- case 2:
- return [$year . '-04-01', $year . '-06-30'];
- case 3:
- return [$year . '-07-01', $year . '-09-30'];
- case 4:
- return [$year . '-10-01', $year . '-12-31'];
- }
- }
-
- /**
- * @return int
- */
- public function toWeek()
- {
- return (int)$this->format('W');
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php b/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php
deleted file mode 100644
index eaa611b..0000000
--- a/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php
+++ /dev/null
@@ -1,186 +0,0 @@
-format('Y-m-d 00:00:00');
- }
- if (substr($time, 0, 1) === '@') {
- return gmdate('Y-m-d 00:00:00', substr($time, 1));
- }
- if ($time === null || $time === 'now' || $time === '') {
- return date('Y-m-d 00:00:00');
- }
- if ($this->hasRelativeKeywords($time)) {
- return date('Y-m-d 00:00:00', strtotime($time));
- }
-
- return preg_replace('/\d{1,2}:\d{1,2}:\d{1,2}(?:\.\d+)?/', '00:00:00', $time);
- }
-
- /**
- * Remove time components from strtotime relative strings.
- *
- * @param string $time The input expression
- * @return string The output expression with no time modifiers.
- */
- protected function stripRelativeTime($time)
- {
- return preg_replace('/([-+]\s*\d+\s(?:minutes|seconds|hours|microseconds))/', '', $time);
- }
-
- /**
- * Modify the time on the Date.
- *
- * This method ignores all inputs and forces all inputs to 0.
- *
- * @param int $hours The hours to set (ignored)
- * @param int $minutes The minutes to set (ignored)
- * @param int $seconds The seconds to set (ignored)
- * @param int $microseconds The microseconds to set (ignored)
- * @return static A modified Date instance.
- */
- public function setTime($hours, $minutes, $seconds = null, $microseconds = null)
- {
- if (CHRONOS_SUPPORTS_MICROSECONDS) {
- return parent::setTime(0, 0, 0, 0);
- }
-
- return parent::setTime(0, 0, 0);
- }
-
- /**
- * Add an Interval to a Date
- *
- * Any changes to the time will be ignored and reset to 00:00:00
- *
- * @param \DateInterval $interval The interval to modify this date by.
- * @return static A modified Date instance
- */
- public function add($interval)
- {
- return parent::add($interval)->setTime(0, 0, 0);
- }
-
- /**
- * Subtract an Interval from a Date.
- *
- * Any changes to the time will be ignored and reset to 00:00:00
- *
- * @param \DateInterval $interval The interval to modify this date by.
- * @return static A modified Date instance
- */
- public function sub($interval)
- {
- return parent::sub($interval)->setTime(0, 0, 0);
- }
-
- /**
- * No-op method.
- *
- * Timezones have no effect on calendar dates.
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return $this
- */
- public function timezone($value)
- {
- return $this;
- }
-
- /**
- * No-op method.
- *
- * Timezones have no effect on calendar dates.
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return $this
- */
- public function tz($value)
- {
- return $this;
- }
-
- /**
- * No-op method.
- *
- * Timezones have no effect on calendar dates.
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return $this
- */
- public function setTimezone($value)
- {
- return $this;
- }
-
- /**
- * Set the timestamp value and get a new object back.
- *
- * This method will discard the time aspects of the timestamp
- * and only apply the date portions
- *
- * @param int $value The timestamp value to set.
- * @return static
- */
- public function setTimestamp($value)
- {
- return parent::setTimestamp($value)->setTime(0, 0, 0);
- }
-
- /**
- * Overloaded to ignore time changes.
- *
- * Changing any aspect of the time will be ignored, and the resulting object
- * will have its time frozen to 00:00:00.
- *
- * @param string $relative The relative change to make.
- * @return static A new date with the applied date changes.
- */
- public function modify($relative)
- {
- if (preg_match('/hour|minute|second/', $relative)) {
- return $this;
- }
- $new = parent::modify($relative);
- if ($new->format('H:i:s') !== '00:00:00') {
- return $new->setTime(0, 0, 0);
- }
-
- return $new;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php b/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php
deleted file mode 100644
index 5556880..0000000
--- a/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php
+++ /dev/null
@@ -1,132 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\ChronosInterface;
-use InvalidArgumentException;
-
-/**
- * Provides the magic methods that allow read access
- * to magic properties.
- *
- * @property-read int $year
- * @property-read int $yearIso
- * @property-read int $month
- * @property-read int $day
- * @property-read int $hour
- * @property-read int $minute
- * @property-read int $second
- * @property-read int $micro
- * @property-read int $dayOfWeek
- * @property-read int $dayOfYear
- * @property-read int $weekOfYear
- * @property-read int $daysInMonth
- * @property-read int $timestamp
- * @property-read int $weekOfMonth
- * @property-read int $age
- * @property-read int $quarter
- * @property-read int $offset
- * @property-read int $offsetHours
- * @property-read boolean $dst
- * @property-read boolean $local
- * @property-read boolean $utc
- * @property-read \DateTimeZone $timezone
- * @property-read \DateTimeZone $tz
- * @property-read string $timezoneName
- * @property-read string $tzName
- */
-trait MagicPropertyTrait
-{
- /**
- * Get a part of the ChronosInterface object
- *
- * @param string $name The property name to read.
- * @return mixed The property value.
- * @throws \InvalidArgumentException
- */
- public function __get($name)
- {
- static $formats = [
- 'year' => 'Y',
- 'yearIso' => 'o',
- 'month' => 'n',
- 'day' => 'j',
- 'hour' => 'G',
- 'minute' => 'i',
- 'second' => 's',
- 'micro' => 'u',
- 'microsecond' => 'u',
- 'dayOfWeek' => 'N',
- 'dayOfYear' => 'z',
- 'weekOfYear' => 'W',
- 'daysInMonth' => 't',
- 'timestamp' => 'U',
- ];
-
- switch (true) {
- case isset($formats[$name]):
- return (int)$this->format($formats[$name]);
-
- case $name === 'weekOfMonth':
- return (int)ceil($this->day / ChronosInterface::DAYS_PER_WEEK);
-
- case $name === 'age':
- return $this->diffInYears();
-
- case $name === 'quarter':
- return (int)ceil($this->month / 3);
-
- case $name === 'offset':
- return $this->getOffset();
-
- case $name === 'offsetHours':
- return $this->getOffset() / ChronosInterface::SECONDS_PER_MINUTE / ChronosInterface::MINUTES_PER_HOUR;
-
- case $name === 'dst':
- return $this->format('I') === '1';
-
- case $name === 'local':
- return $this->offset === $this->copy()->setTimezone(date_default_timezone_get())->offset;
-
- case $name === 'utc':
- return $this->offset === 0;
-
- case $name === 'timezone' || $name === 'tz':
- return $this->getTimezone();
-
- case $name === 'timezoneName' || $name === 'tzName':
- return $this->getTimezone()->getName();
-
- default:
- throw new InvalidArgumentException(sprintf("Unknown getter '%s'", $name));
- }
- }
-
- /**
- * Check if an attribute exists on the object
- *
- * @param string $name The property name to check.
- * @return bool Whether or not the property exists.
- */
- public function __isset($name)
- {
- try {
- $this->__get($name);
- } catch (InvalidArgumentException $e) {
- return false;
- }
-
- return true;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/ModifierTrait.php b/vendor/cakephp/chronos/src/Traits/ModifierTrait.php
deleted file mode 100644
index 95bda30..0000000
--- a/vendor/cakephp/chronos/src/Traits/ModifierTrait.php
+++ /dev/null
@@ -1,1082 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\ChronosInterface;
-use DateTime;
-use DateTimeImmutable;
-
-/**
- * Provides a suite of modifier methods.
- *
- * These methods let you modify the various aspects
- * of a DateTime with a series of fluent methods.
- *
- * This trait expects that the implementing class
- * also implements a copy() method. This method can be obtained
- * using the CopyTrait.
- */
-trait ModifierTrait
-{
-
- /**
- * Names of days of the week.
- *
- * @var array
- */
- protected static $days = [
- ChronosInterface::MONDAY => 'Monday',
- ChronosInterface::TUESDAY => 'Tuesday',
- ChronosInterface::WEDNESDAY => 'Wednesday',
- ChronosInterface::THURSDAY => 'Thursday',
- ChronosInterface::FRIDAY => 'Friday',
- ChronosInterface::SATURDAY => 'Saturday',
- ChronosInterface::SUNDAY => 'Sunday',
- ];
-
- /**
- * First day of week
- *
- * @var int
- */
- protected static $weekStartsAt = ChronosInterface::MONDAY;
-
- /**
- * Last day of week
- *
- * @var int
- */
- protected static $weekEndsAt = ChronosInterface::SUNDAY;
-
- /**
- * Get the first day of week
- *
- * @return int
- */
- public static function getWeekStartsAt()
- {
- return static::$weekStartsAt;
- }
-
- /**
- * Set the first day of week
- *
- * @param int $day The day the week starts with.
- * @return void
- */
- public static function setWeekStartsAt($day)
- {
- static::$weekStartsAt = $day;
- }
-
- /**
- * Get the last day of week
- *
- * @return int
- */
- public static function getWeekEndsAt()
- {
- return static::$weekEndsAt;
- }
-
- /**
- * Set the last day of week
- *
- * @param int $day The day the week ends with.
- * @return void
- */
- public static function setWeekEndsAt($day)
- {
- static::$weekEndsAt = $day;
- }
-
- /**
- * Set the date to a different date.
- *
- * Workaround for a PHP bug related to the first day of a month
- *
- * @param int $year The year to set.
- * @param int $month The month to set.
- * @param int $day The day to set.
- * @return static
- * @see https://bugs.php.net/bug.php?id=63863
- */
- public function setDate($year, $month, $day)
- {
- return $this->modify('+0 day')->setDateParent($year, $month, $day);
- }
-
- /**
- * Just calling to parent setDate
- * It used in overwritten setDate
- *
- * @param int $year The year to set.
- * @param int $month The month to set.
- * @param int $day The day to set.
- * @return static
- */
- private function setDateParent($year, $month, $day)
- {
- return parent::setDate($year, $month, $day);
- }
-
- /**
- * Set the date and time all together
- *
- * @param int $year The year to set.
- * @param int $month The month to set.
- * @param int $day The day to set.
- * @param int $hour The hour to set.
- * @param int $minute The minute to set.
- * @param int $second The second to set.
- * @return static
- */
- public function setDateTime($year, $month, $day, $hour, $minute, $second = 0)
- {
- return $this->setDate($year, $month, $day)->setTime($hour, $minute, $second);
- }
-
- /**
- * Set the time by time string
- *
- * @param string $time Time as string.
- * @return static
- */
- public function setTimeFromTimeString($time)
- {
- $time = explode(":", $time);
- $hour = (int)$time[0];
- $minute = isset($time[1]) ? (int)$time[1] : 0;
- $second = isset($time[2]) ? (int)$time[2] : 0;
-
- return $this->setTime($hour, $minute, $second);
- }
-
- /**
- * Set the instance's timestamp
- *
- * @param int $value The timestamp value to set.
- * @return static
- */
- public function timestamp($value)
- {
- return $this->setTimestamp($value);
- }
-
- /**
- * Set the instance's year
- *
- * @param int $value The year value.
- * @return static
- */
- public function year($value)
- {
- return $this->setDate($value, $this->month, $this->day);
- }
-
- /**
- * Set the instance's month
- *
- * @param int $value The month value.
- * @return static
- */
- public function month($value)
- {
- return $this->setDate($this->year, $value, $this->day);
- }
-
- /**
- * Set the instance's day
- *
- * @param int $value The day value.
- * @return static
- */
- public function day($value)
- {
- return $this->setDate($this->year, $this->month, $value);
- }
-
- /**
- * Set the instance's hour
- *
- * @param int $value The hour value.
- * @return static
- */
- public function hour($value)
- {
- return $this->setTime($value, $this->minute, $this->second);
- }
-
- /**
- * Set the instance's minute
- *
- * @param int $value The minute value.
- * @return static
- */
- public function minute($value)
- {
- return $this->setTime($this->hour, $value, $this->second);
- }
-
- /**
- * Set the instance's second
- *
- * @param int $value The seconds value.
- * @return static
- */
- public function second($value)
- {
- return $this->setTime($this->hour, $this->minute, $value);
- }
-
- /**
- * Add years to the instance. Positive $value travel forward while
- * negative $value travel into the past.
- *
- * @param int $value The number of years to add.
- * @return static
- */
- public function addYears($value)
- {
- return $this->modify((int)$value . ' year');
- }
-
- /**
- * Add a year to the instance
- *
- * @param int $value The number of years to add.
- * @return static
- */
- public function addYear($value = 1)
- {
- return $this->addYears($value);
- }
-
- /**
- * Remove a year from the instance
- *
- * @param int $value The number of years to remove.
- * @return static
- */
- public function subYear($value = 1)
- {
- return $this->subYears($value);
- }
-
- /**
- * Remove years from the instance.
- *
- * @param int $value The number of years to remove.
- * @return static
- */
- public function subYears($value)
- {
- return $this->addYears(-1 * $value);
- }
-
- /**
- * Add months to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-01-03'))->addMonths(1); // Results in 2015-02-03
- *
- * (new Chronos('2015-01-31'))->addMonths(1); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonths($value)
- {
- $day = $this->day;
- $date = $this->modify((int)$value . ' month');
-
- if ($date->day !== $day) {
- return $date->modify('last day of previous month');
- }
-
- return $date;
- }
-
- /**
- * Add a month to the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-01-03'))->addMonth(); // Results in 2015-02-03
- *
- * (new Chronos('2015-01-31'))->addMonth(); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonth($value = 1)
- {
- return $this->addMonths($value);
- }
-
- /**
- * Remove a month from the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-03-01'))->subMonth(); // Results in 2015-02-01
- *
- * (new Chronos('2015-03-31'))->subMonth(); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonth($value = 1)
- {
- return $this->subMonths($value);
- }
-
- /**
- * Remove months from the instance
- *
- * When adding or subtracting months, if the resulting time is a date
- * that does not exist, the result of this operation will always be the
- * last day of the intended month.
- *
- * ### Example:
- *
- * ```
- * (new Chronos('2015-03-01'))->subMonths(1); // Results in 2015-02-01
- *
- * (new Chronos('2015-03-31'))->subMonths(1); // Results in 2015-02-28
- * ```
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonths($value)
- {
- return $this->addMonths(-1 * $value);
- }
-
- /**
- * Add months with overflowing to the instance. Positive $value
- * travels forward while negative $value travels into the past.
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonthsWithOverflow($value)
- {
- return $this->modify((int)$value . ' month');
- }
-
- /**
- * Add a month with overflow to the instance
- *
- * @param int $value The number of months to add.
- * @return static
- */
- public function addMonthWithOverflow($value = 1)
- {
- return $this->modify((int)$value . ' month');
- }
-
- /**
- * Remove a month with overflow from the instance
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonthWithOverflow($value = 1)
- {
- return $this->subMonthsWithOverflow($value);
- }
-
- /**
- * Remove months with overflow from the instance
- *
- * @param int $value The number of months to remove.
- * @return static
- */
- public function subMonthsWithOverflow($value)
- {
- return $this->addMonthsWithOverflow(-1 * $value);
- }
-
- /**
- * Add days to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of days to add.
- * @return static
- */
- public function addDays($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value day");
- }
-
- /**
- * Add a day to the instance
- *
- * @param int $value The number of days to add.
- * @return static
- */
- public function addDay($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("$value day");
- }
-
- /**
- * Remove a day from the instance
- *
- * @param int $value The number of days to remove.
- * @return static
- */
- public function subDay($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("-$value day");
- }
-
- /**
- * Remove days from the instance
- *
- * @param int $value The number of days to remove.
- * @return static
- */
- public function subDays($value)
- {
- $value = (int)$value;
-
- return $this->modify("-$value day");
- }
-
- /**
- * Add weekdays to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of weekdays to add.
- * @return static
- */
- public function addWeekdays($value)
- {
- return $this->modify((int)$value . ' weekdays ' . $this->format('H:i:s'));
- }
-
- /**
- * Add a weekday to the instance
- *
- * @param int $value The number of weekdays to add.
- * @return static
- */
- public function addWeekday($value = 1)
- {
- return $this->addWeekdays($value);
- }
-
- /**
- * Remove weekdays from the instance
- *
- * @param int $value The number of weekdays to remove.
- * @return static
- */
- public function subWeekdays($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value weekdays ago, " . $this->format('H:i:s'));
- }
-
- /**
- * Remove a weekday from the instance
- *
- * @param int $value The number of weekdays to remove.
- * @return static
- */
- public function subWeekday($value = 1)
- {
- return $this->subWeekdays($value);
- }
-
- /**
- * Add weeks to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of weeks to add.
- * @return static
- */
- public function addWeeks($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value week");
- }
-
- /**
- * Add a week to the instance
- *
- * @param int $value The number of weeks to add.
- * @return static
- */
- public function addWeek($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("$value week");
- }
-
- /**
- * Remove a week from the instance
- *
- * @param int $value The number of weeks to remove.
- * @return static
- */
- public function subWeek($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("-$value week");
- }
-
- /**
- * Remove weeks to the instance
- *
- * @param int $value The number of weeks to remove.
- * @return static
- */
- public function subWeeks($value)
- {
- $value = (int)$value;
-
- return $this->modify("-$value week");
- }
-
- /**
- * Add hours to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of hours to add.
- * @return static
- */
- public function addHours($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value hour");
- }
-
- /**
- * Add an hour to the instance
- *
- * @param int $value The number of hours to add.
- * @return static
- */
- public function addHour($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("$value hour");
- }
-
- /**
- * Remove an hour from the instance
- *
- * @param int $value The number of hours to remove.
- * @return static
- */
- public function subHour($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("-$value hour");
- }
-
- /**
- * Remove hours from the instance
- *
- * @param int $value The number of hours to remove.
- * @return static
- */
- public function subHours($value)
- {
- $value = (int)$value;
-
- return $this->modify("-$value hour");
- }
-
- /**
- * Add minutes to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of minutes to add.
- * @return static
- */
- public function addMinutes($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value minute");
- }
-
- /**
- * Add a minute to the instance
- *
- * @param int $value The number of minutes to add.
- * @return static
- */
- public function addMinute($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("$value minute");
- }
-
- /**
- * Remove a minute from the instance
- *
- * @param int $value The number of minutes to remove.
- * @return static
- */
- public function subMinute($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("-$value minute");
- }
-
- /**
- * Remove minutes from the instance
- *
- * @param int $value The number of minutes to remove.
- * @return static
- */
- public function subMinutes($value)
- {
- $value = (int)$value;
-
- return $this->modify("-$value minute");
- }
-
- /**
- * Add seconds to the instance. Positive $value travels forward while
- * negative $value travels into the past.
- *
- * @param int $value The number of seconds to add.
- * @return static
- */
- public function addSeconds($value)
- {
- $value = (int)$value;
-
- return $this->modify("$value second");
- }
-
- /**
- * Add a second to the instance
- *
- * @param int $value The number of seconds to add.
- * @return static
- */
- public function addSecond($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("$value second");
- }
-
- /**
- * Remove a second from the instance
- *
- * @param int $value The number of seconds to remove.
- * @return static
- */
- public function subSecond($value = 1)
- {
- $value = (int)$value;
-
- return $this->modify("-$value second");
- }
-
- /**
- * Remove seconds from the instance
- *
- * @param int $value The number of seconds to remove.
- * @return static
- */
- public function subSeconds($value)
- {
- $value = (int)$value;
-
- return $this->modify("-$value second");
- }
-
- /**
- * Resets the time to 00:00:00
- *
- * @return static
- */
- public function startOfDay()
- {
- return $this->modify('midnight');
- }
-
- /**
- * Resets the time to 23:59:59
- *
- * @return static
- */
- public function endOfDay()
- {
- return $this->modify('23:59:59');
- }
-
- /**
- * Resets the date to the first day of the month and the time to 00:00:00
- *
- * @return static
- */
- public function startOfMonth()
- {
- return $this->modify('first day of this month midnight');
- }
-
- /**
- * Resets the date to end of the month and time to 23:59:59
- *
- * @return static
- */
- public function endOfMonth()
- {
- return $this->modify('last day of this month, 23:59:59');
- }
-
- /**
- * Resets the date to the first day of the year and the time to 00:00:00
- *
- * @return static
- */
- public function startOfYear()
- {
- return $this->modify('first day of january midnight');
- }
-
- /**
- * Resets the date to end of the year and time to 23:59:59
- *
- * @return static
- */
- public function endOfYear()
- {
- return $this->modify('last day of december, 23:59:59');
- }
-
- /**
- * Resets the date to the first day of the decade and the time to 00:00:00
- *
- * @return static
- */
- public function startOfDecade()
- {
- $year = $this->year - $this->year % ChronosInterface::YEARS_PER_DECADE;
-
- return $this->modify("first day of january $year, midnight");
- }
-
- /**
- * Resets the date to end of the decade and time to 23:59:59
- *
- * @return static
- */
- public function endOfDecade()
- {
- $year = $this->year - $this->year % ChronosInterface::YEARS_PER_DECADE + ChronosInterface::YEARS_PER_DECADE - 1;
-
- return $this->modify("last day of december $year, 23:59:59");
- }
-
- /**
- * Resets the date to the first day of the century and the time to 00:00:00
- *
- * @return static
- */
- public function startOfCentury()
- {
- $year = $this->startOfYear()->year(($this->year - 1) - ($this->year - 1) % ChronosInterface::YEARS_PER_CENTURY + 1)->year;
-
- return $this->modify("first day of january $year, midnight");
- }
-
- /**
- * Resets the date to end of the century and time to 23:59:59
- *
- * @return static
- */
- public function endOfCentury()
- {
- $year = $this->endOfYear()->year(($this->year - 1) - ($this->year - 1) % ChronosInterface::YEARS_PER_CENTURY + ChronosInterface::YEARS_PER_CENTURY)->year;
-
- return $this->modify("last day of december $year, 23:59:59");
- }
-
- /**
- * Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
- *
- * @return static
- */
- public function startOfWeek()
- {
- $dt = $this;
- if ($dt->dayOfWeek !== static::$weekStartsAt) {
- $dt = $dt->previous(static::$weekStartsAt);
- }
-
- return $dt->startOfDay();
- }
-
- /**
- * Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59
- *
- * @return static
- */
- public function endOfWeek()
- {
- $dt = $this;
- if ($dt->dayOfWeek !== static::$weekEndsAt) {
- $dt = $dt->next(static::$weekEndsAt);
- }
-
- return $dt->endOfDay();
- }
-
- /**
- * Modify to the next occurrence of a given day of the week.
- * If no dayOfWeek is provided, modify to the next occurrence
- * of the current day of the week. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function next($dayOfWeek = null)
- {
- if ($dayOfWeek === null) {
- $dayOfWeek = $this->dayOfWeek;
- }
-
- $day = static::$days[$dayOfWeek];
-
- return $this->modify("next $day, midnight");
- }
-
- /**
- * Modify to the previous occurrence of a given day of the week.
- * If no dayOfWeek is provided, modify to the previous occurrence
- * of the current day of the week. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function previous($dayOfWeek = null)
- {
- if ($dayOfWeek === null) {
- $dayOfWeek = $this->dayOfWeek;
- }
-
- $day = static::$days[$dayOfWeek];
-
- return $this->modify("last $day, midnight");
- }
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current month. If no dayOfWeek is provided, modify to the
- * first day of the current month. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfMonth($dayOfWeek = null)
- {
- $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek];
-
- return $this->modify("first $day of this month, midnight");
- }
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current month. If no dayOfWeek is provided, modify to the
- * last day of the current month. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfMonth($dayOfWeek = null)
- {
- $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek];
-
- return $this->modify("last $day of this month, midnight");
- }
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current month. If the calculated occurrence is outside the scope
- * of the current month, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfMonth($nth, $dayOfWeek)
- {
- $dt = $this->copy()->firstOfMonth();
- $check = $dt->format('Y-m');
- $dt = $dt->modify("+$nth " . static::$days[$dayOfWeek]);
-
- return ($dt->format('Y-m') === $check) ? $dt : false;
- }
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current quarter. If no dayOfWeek is provided, modify to the
- * first day of the current quarter. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfQuarter($dayOfWeek = null)
- {
- return $this->day(1)->month($this->quarter * ChronosInterface::MONTHS_PER_QUARTER - 2)->firstOfMonth($dayOfWeek);
- }
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current quarter. If no dayOfWeek is provided, modify to the
- * last day of the current quarter. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfQuarter($dayOfWeek = null)
- {
- return $this->day(1)->month($this->quarter * ChronosInterface::MONTHS_PER_QUARTER)->lastOfMonth($dayOfWeek);
- }
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current quarter. If the calculated occurrence is outside the scope
- * of the current quarter, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfQuarter($nth, $dayOfWeek)
- {
- $dt = $this->copy()->day(1)->month($this->quarter * ChronosInterface::MONTHS_PER_QUARTER);
- $lastMonth = $dt->month;
- $year = $dt->year;
- $dt = $dt->firstOfQuarter()->modify("+$nth" . static::$days[$dayOfWeek]);
-
- return ($lastMonth < $dt->month || $year !== $dt->year) ? false : $dt;
- }
-
- /**
- * Modify to the first occurrence of a given day of the week
- * in the current year. If no dayOfWeek is provided, modify to the
- * first day of the current year. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function firstOfYear($dayOfWeek = null)
- {
- $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek];
-
- return $this->modify("first $day of january, midnight");
- }
-
- /**
- * Modify to the last occurrence of a given day of the week
- * in the current year. If no dayOfWeek is provided, modify to the
- * last day of the current year. Use the supplied consts
- * to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int|null $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function lastOfYear($dayOfWeek = null)
- {
- $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek];
-
- return $this->modify("last $day of december, midnight");
- }
-
- /**
- * Modify to the given occurrence of a given day of the week
- * in the current year. If the calculated occurrence is outside the scope
- * of the current year, then return false and no modifications are made.
- * Use the supplied consts to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
- *
- * @param int $nth The offset to use.
- * @param int $dayOfWeek The day of the week to move to.
- * @return mixed
- */
- public function nthOfYear($nth, $dayOfWeek)
- {
- $dt = $this->copy()->firstOfYear()->modify("+$nth " . static::$days[$dayOfWeek]);
-
- return $this->year === $dt->year ? $dt : false;
- }
-
- /**
- * Modify the current instance to the average of a given instance (default now) and the current instance.
- *
- * @param \Cake\Chronos\ChronosInterface|null $dt The instance to compare with.
- * @return static
- */
- public function average(ChronosInterface $dt = null)
- {
- $dt = ($dt === null) ? static::now($this->tz) : $dt;
-
- return $this->addSeconds((int)($this->diffInSeconds($dt, false) / 2));
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php b/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php
deleted file mode 100644
index 69c6cd6..0000000
--- a/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php
+++ /dev/null
@@ -1,58 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-/**
- * Provides methods for testing if strings contain relative keywords.
- */
-trait RelativeKeywordTrait
-{
- protected static $relativePattern = '/this|next|last|tomorrow|yesterday|midnight|today|[+-]|first|last|ago/i';
-
- /**
- * Determine if there is just a time in the time string
- *
- * @param string $time The time string to check.
- * @return bool true if there is a keyword, otherwise false
- */
- private static function isTimeExpression($time)
- {
- // Just a time
- if (preg_match('/^[0-2]?[0-9]:[0-5][0-9](?::[0-5][0-9])?$/', $time)) {
- return true;
- }
-
- return false;
- }
-
- /**
- * Determine if there is a relative keyword in the time string, this is to
- * create dates relative to now for test instances. e.g.: next tuesday
- *
- * @param string $time The time string to check.
- * @return bool true if there is a keyword, otherwise false
- */
- public static function hasRelativeKeywords($time)
- {
- if (self::isTimeExpression($time)) {
- return true;
- }
- // skip common format with a '-' in it
- if (preg_match('/[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}/', $time) !== 1) {
- return preg_match(static::$relativePattern, $time) > 0;
- }
-
- return false;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php b/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php
deleted file mode 100644
index 19f8732..0000000
--- a/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-use Cake\Chronos\Chronos;
-use Cake\Chronos\ChronosInterface;
-
-/**
- * Provides methods for setting a 'test' now. This lets you
- * retrieve pre-determined times with now().
- */
-trait TestingAidTrait
-{
-
- /**
- * Set the test now used by Date and Time classes provided by Chronos
- *
- * @see \Cake\Chronos\Chronos::setTestNow()
- * @param \Cake\Chronos\ChronosInterface|string|null $testNow The instance to use for all future instances.
- * @return void
- */
- public static function setTestNow($testNow = null)
- {
- Chronos::setTestNow($testNow);
- }
-
- /**
- * Get the test instance stored in Chronos
- *
- * @see \Cake\Chronos\Chronos::getTestNow()
- * @return \Cake\Chronos\ChronosInterface|null the current instance used for testing or null.
- */
- public static function getTestNow()
- {
- return Chronos::getTestNow();
- }
-
- /**
- * Get whether or not Chronos has a test instance set.
- *
- * @see \Cake\Chronos\Chronos::hasTestNow()
- * @return bool True if there is a test instance, otherwise false
- */
- public static function hasTestNow()
- {
- return Chronos::hasTestNow();
- }
-}
diff --git a/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php b/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php
deleted file mode 100644
index 97816ba..0000000
--- a/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php
+++ /dev/null
@@ -1,60 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Chronos\Traits;
-
-/**
- * Methods for modifying/reading timezone data.
- */
-trait TimezoneTrait
-{
- /**
- * Alias for setTimezone()
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function timezone($value)
- {
- return $this->setTimezone($value);
- }
-
- /**
- * Alias for setTimezone()
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function tz($value)
- {
- return $this->setTimezone($value);
- }
-
- /**
- * Set the instance's timezone from a string or object
- *
- * @param \DateTimeZone|string $value The DateTimeZone object or timezone name to use.
- * @return static
- */
- public function setTimezone($value)
- {
- $date = parent::setTimezone(static::safeCreateDateTimeZone($value));
-
- // https://bugs.php.net/bug.php?id=72338
- // this is workaround for this bug
- // Needed for PHP below 7.0 version
- $date->getTimestamp();
-
- return $date;
- }
-}
diff --git a/vendor/cakephp/chronos/src/Translator.php b/vendor/cakephp/chronos/src/Translator.php
deleted file mode 100644
index e5f9788..0000000
--- a/vendor/cakephp/chronos/src/Translator.php
+++ /dev/null
@@ -1,93 +0,0 @@
- '1 year',
- 'year_plural' => '{count} years',
- 'month' => '1 month',
- 'month_plural' => '{count} months',
- 'week' => '1 week',
- 'week_plural' => '{count} weeks',
- 'day' => '1 day',
- 'day_plural' => '{count} days',
- 'hour' => '1 hour',
- 'hour_plural' => '{count} hours',
- 'minute' => '1 minute',
- 'minute_plural' => '{count} minutes',
- 'second' => '1 second',
- 'second_plural' => '{count} seconds',
- 'ago' => '{time} ago',
- 'from_now' => '{time} from now',
- 'after' => '{time} after',
- 'before' => '{time} before',
- ];
-
- /**
- * Check if a translation key exists.
- *
- * @param string $key The key to check.
- * @return bool Whether or not the key exists.
- */
- public function exists($key)
- {
- return isset(static::$strings[$key]);
- }
-
- /**
- * Get a plural message.
- *
- * @param string $key The key to use.
- * @param int $count The number of items in the translation.
- * @param array $vars Additional context variables.
- * @return string The translated message or ''.
- */
- public function plural($key, $count, array $vars = [])
- {
- if ($count === 1) {
- return $this->singular($key, $vars);
- }
-
- return $this->singular($key . '_plural', ['count' => $count] + $vars);
- }
-
- /**
- * Get a singular message.
- *
- * @param string $key The key to use.
- * @param array $vars Additional context variables.
- * @return string The translated message or ''.
- */
- public function singular($key, array $vars = [])
- {
- if (isset(static::$strings[$key])) {
- $varKeys = array_keys($vars);
- foreach ($varKeys as $i => $k) {
- $varKeys[$i] = '{' . $k . '}';
- }
-
- return str_replace($varKeys, $vars, static::$strings[$key]);
- }
-
- return '';
- }
-}
diff --git a/vendor/cakephp/chronos/src/carbon_compat.php b/vendor/cakephp/chronos/src/carbon_compat.php
deleted file mode 100644
index f947cb7..0000000
--- a/vendor/cakephp/chronos/src/carbon_compat.php
+++ /dev/null
@@ -1,20 +0,0 @@
-
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
-define('CHRONOS_SUPPORTS_MICROSECONDS', version_compare(PHP_VERSION, '7.1.0', '>='));
-
-if (!class_exists('Carbon\Carbon')) {
- // Create class aliases for Carbon so applications
- // can upgrade more easily.
- class_alias('Cake\Chronos\Chronos', 'Carbon\MutableDateTime');
- class_alias('Cake\Chronos\ChronosInterface', 'Carbon\CarbonInterface');
-}
diff --git a/vendor/cakephp/debug_kit/Dockerfile b/vendor/cakephp/debug_kit/Dockerfile
deleted file mode 100644
index 2966139..0000000
--- a/vendor/cakephp/debug_kit/Dockerfile
+++ /dev/null
@@ -1,24 +0,0 @@
-# Basic docker based environment
-# Necessary to trick dokku into building the documentation
-# using dockerfile instead of herokuish
-FROM ubuntu:17.04
-
-# Add basic tools
-RUN apt-get update && \
- apt-get install -y build-essential \
- software-properties-common \
- curl \
- git \
- libxml2 \
- libffi-dev \
- libssl-dev
-
-RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && \
- apt-get update && \
- apt-get install -y php7.2-cli php7.2-mbstring php7.2-xml php7.2-zip php7.2-intl php7.2-opcache php7.2-sqlite
-
-WORKDIR /code
-
-VOLUME ["/code"]
-
-CMD [ '/bin/bash' ]
diff --git a/vendor/cakephp/debug_kit/LICENSE.txt b/vendor/cakephp/debug_kit/LICENSE.txt
deleted file mode 100644
index 0a0a98c..0000000
--- a/vendor/cakephp/debug_kit/LICENSE.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-The MIT License
-
-CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org)
-Copyright (c) 2005-present, Cake Software Foundation, Inc.
-
-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.
-
-Cake Software Foundation, Inc.
-1785 E. Sahara Avenue,
-Suite 490-204
-Las Vegas, Nevada 89104,
-United States of America.
diff --git a/vendor/cakephp/debug_kit/README.md b/vendor/cakephp/debug_kit/README.md
deleted file mode 100644
index 5cb12fc..0000000
--- a/vendor/cakephp/debug_kit/README.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# CakePHP DebugKit
-[](http://travis-ci.org/cakephp/debug_kit)
-[](https://codecov.io/github/cakephp/debug_kit)
-[](LICENSE.txt)
-[](https://packagist.org/packages/cakephp/debug_kit)
-
-DebugKit provides a debugging toolbar and enhanced debugging tools for CakePHP
-applications. It lets you quickly see configuration data, log messages, SQL
-queries, and timing data for your application.
-
-:warning: DebugKit is only intended for use in single-user local development
-environments. You should avoid using DebugKit in shared development
-environments, staging environments, or any environment where you need to keep
-configuration data and environment variables hidden. :warning:
-
-## Requirements
-
-The `master` branch has the following requirements:
-
-* SQLite (pdo_sqlite) or another database driver that CakePHP can talk to. By
- default DebugKit will use SQLite, if you need to use a different database see
- the Database Configuration section below.
-
-## DebugKit for CakePHP 2.x
-
-If you want DebugKit for your 2.x application, you can use the latest `2.2.y` tag or the [2.2 branch](https://github.com/cakephp/debug_kit/tree/2.2).
-
-## Installation
-
-* Install the plugin with [Composer](https://getcomposer.org/) from your CakePHP Project's ROOT directory (where the **composer.json** file is located)
-```sh
-php composer.phar require --dev cakephp/debug_kit:"~3.0"
-```
-
-* [Load the plugin](http://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin)
-```php
-// src/Application.php
-$this->addPlugin('DebugKit');
-```
-Prior to 3.6.0
-```php
-Plugin::load('DebugKit', ['bootstrap' => true, 'routes' => true]);
-```
-* Set `'debug' => true,` in `config/app.php`.
-
-## Reporting Issues
-
-If you have a problem with DebugKit please open an issue on [GitHub](https://github.com/cakephp/debug_kit/issues).
-
-## Contributing
-
-If you'd like to contribute to DebugKit, check out the
-[roadmap](https://github.com/cakephp/debug_kit/wiki/roadmap) for any
-planned features. You can [fork](https://help.github.com/articles/fork-a-repo)
-the project, add features, and send [pull
-requests](https://help.github.com/articles/using-pull-requests) or open
-[issues](https://github.com/cakephp/debug_kit/issues).
-
-## Versions
-
-DebugKit has several releases, each compatible with different releases of
-CakePHP. Use the appropriate version by downloading a tag, or checking out the
-correct branch.
-
-* `1.0, 1.1, 1.2` are compatible with CakePHP 1.2.x. These releases of DebugKit
- will not work with CakePHP 1.3. You can also use the `1.2-branch` for the mos
- recent updates and bugfixes.
-* `1.3.0` is compatible with CakePHP 1.3.x only. It will not work with CakePHP
- 1.2. You can also use the `1.3` branch to get the most recent updates and
- bugfixes.
-* `2.2.x` are compatible with CakePHP 2.2.0 and greater. It is a necessary
- upgrade for people using CakePHP 2.4 as the naming conventions around loggers
- changed in that release. 2.2.x is not actively being developed.
-* `3.x` is compatible with CakePHP 3.x and is still under active development.
-
-# Documentation
-
-Documentation for DebugKit can be found in the
-[CakePHP documentation](https://book.cakephp.org/debugkit/3.x/en/index.html).
diff --git a/vendor/cakephp/debug_kit/composer.json b/vendor/cakephp/debug_kit/composer.json
deleted file mode 100644
index 0e75b69..0000000
--- a/vendor/cakephp/debug_kit/composer.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "name": "cakephp/debug_kit",
- "description": "CakePHP Debug Kit",
- "type": "cakephp-plugin",
- "keywords": ["cakephp", "debug", "kit"],
- "homepage": "https://github.com/cakephp/debug_kit",
- "license": "MIT",
- "authors": [
- {
- "name": "Mark Story",
- "homepage": "https://mark-story.com",
- "role": "Author"
- },
- {
- "name": "CakePHP Community",
- "homepage": "https://github.com/cakephp/debug_kit/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/cakephp/debug_kit/issues",
- "forum": "http://stackoverflow.com/tags/cakephp",
- "irc": "irc://irc.freenode.org/cakephp",
- "source": "https://github.com/cakephp/debug_kit"
- },
- "require": {
- "php": ">=5.6.0",
- "cakephp/cakephp": "^3.7.0",
- "cakephp/chronos": "^1.0.0",
- "cakephp/plugin-installer": "^1.0.0",
- "composer/composer": "^1.3.0",
- "jdorn/sql-formatter": "^1.2.0"
- },
- "require-dev": {
- "cakephp/authorization": "^1.3.2",
- "cakephp/cakephp-codesniffer": "^3.0",
- "phpunit/phpunit": "^5.7.14|^6.0"
- },
- "autoload": {
- "psr-4": {
- "DebugKit\\": "src/",
- "DebugKit\\Test\\Fixture\\": "tests/Fixture/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
- "DebugKit\\Test\\": "tests/",
- "DebugKit\\TestApp\\": "tests/test_app/",
- "DebugkitTestPlugin\\": "tests/test_app/Plugin/DebugkitTestPlugin/src/"
- }
- },
- "suggest": {
- "ext-pdo_sqlite": "DebugKit needs to store panel data in a database. SQLite is simple and easy to use."
- },
- "scripts": {
- "check": [
- "@cs-check",
- "@test"
- ],
- "cs-check": "phpcs --colors -p src/ tests/",
- "cs-fix": "phpcbf --colors -p src/ tests/"
- }
-}
diff --git a/vendor/cakephp/debug_kit/config/bootstrap.php b/vendor/cakephp/debug_kit/config/bootstrap.php
deleted file mode 100644
index 5b36808..0000000
--- a/vendor/cakephp/debug_kit/config/bootstrap.php
+++ /dev/null
@@ -1,123 +0,0 @@
-isEnabled() || php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg') {
- return;
-}
-
-if (!empty($service->getConfig('panels')['DebugKit.Deprecations'])) {
- $errorLevel = Configure::read('Error.errorLevel', E_ALL | E_STRICT);
- $previousHandler = set_error_handler(
- function ($code, $message, $file, $line, $context = null) use (&$previousHandler) {
- if ($code == E_USER_DEPRECATED || $code == E_DEPRECATED) {
- DeprecationsPanel::addDeprecatedError(compact('code', 'message', 'file', 'line', 'context'));
-
- return;
- }
- if ($previousHandler) {
- $context['_trace_frame_offset'] = 1;
- return $previousHandler($code, $message, $file, $line, $context);
- }
- },
- $errorLevel | E_USER_DEPRECATED | E_DEPRECATED
- );
-}
-
-$hasDebugKitConfig = ConnectionManager::getConfig('debug_kit');
-if (!$hasDebugKitConfig && !in_array('sqlite', PDO::getAvailableDrivers())) {
- $msg = 'DebugKit not enabled. You need to either install pdo_sqlite, ' .
- 'or define the "debug_kit" connection name.';
- Log::warning($msg);
-
- return;
-}
-
-if (!$hasDebugKitConfig) {
- ConnectionManager::setConfig('debug_kit', [
- 'className' => 'Cake\Database\Connection',
- 'driver' => 'Cake\Database\Driver\Sqlite',
- 'database' => TMP . 'debug_kit.sqlite',
- 'encoding' => 'utf8',
- 'cacheMetadata' => true,
- 'quoteIdentifiers' => false,
- ]);
-}
-
-if (!CorePlugin::getCollection()->get('DebugKit')->isEnabled('routes')) {
- include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'routes.php';
-}
-
-$appClass = Configure::read('App.namespace') . '\Application';
-if (class_exists($appClass)) {
- EventManager::instance()->on('Server.buildMiddleware', function ($event, $queue) use ($service) {
- $middleware = new DebugKitMiddleware($service);
- $queue->insertAt(0, $middleware);
- });
-} else {
- // Setup dispatch filter
- $debugBar = new DebugBarFilter(EventManager::instance(), (array)Configure::read('DebugKit'));
- $debugBar->setup();
- DispatcherFactory::add($debugBar);
-}
-
-if (!function_exists('sql')) {
- /**
- * Prints out the SQL statements generated by a Query object.
- *
- * This function returns the same variable that was passed.
- * Only runs if debug mode is enabled.
- *
- * @param Query $query Query to show SQL statements for.
- * @param bool $showValues Renders the SQL statement with bound variables.
- * @param bool|null $showHtml If set to true, the method prints the debug
- * data in a browser-friendly way.
- * @return Query
- */
- function sql(Query $query, $showValues = true, $showHtml = null)
- {
- return DebugSql::sql($query, $showValues, $showHtml, 1);
- }
-}
-
-if (!function_exists('sqld')) {
- /**
- * Prints out the SQL statements generated by a Query object and dies.
- *
- * Only runs if debug mode is enabled.
- * It will otherwise just continue code execution and ignore this function.
- *
- * @param Query $query Query to show SQL statements for.
- * @param bool $showValues Renders the SQL statement with bound variables.
- * @param bool|null $showHtml If set to true, the method prints the debug
- * data in a browser-friendly way.
- * @return void
- */
- function sqld(Query $query, $showValues = true, $showHtml = null)
- {
- DebugSql::sqld($query, $showValues, $showHtml, 2);
- }
-}
diff --git a/vendor/cakephp/debug_kit/config/routes.php b/vendor/cakephp/debug_kit/config/routes.php
deleted file mode 100644
index 4645f19..0000000
--- a/vendor/cakephp/debug_kit/config/routes.php
+++ /dev/null
@@ -1,46 +0,0 @@
- '/debug-kit'], function (RouteBuilder $routes) {
- $routes->setExtensions('json');
- $routes->setRouteClass(DashedRoute::class);
-
- $routes->connect(
- '/toolbar/clear-cache',
- ['controller' => 'Toolbar', 'action' => 'clearCache']
- );
- $routes->connect(
- '/toolbar/*',
- ['controller' => 'Requests', 'action' => 'view']
- );
- $routes->connect(
- '/panels/view/*',
- ['controller' => 'Panels', 'action' => 'view']
- );
- $routes->connect(
- '/panels/*',
- ['controller' => 'Panels', 'action' => 'index']
- );
-
- $routes->connect(
- '/composer/check-dependencies',
- ['controller' => 'Composer', 'action' => 'checkDependencies']
- );
-
- $routes->scope(
- '/mail-preview',
- ['controller' => 'MailPreview'],
- function (RouteBuilder $routes) {
- $routes->connect('/', ['action' => 'index']);
- $routes->connect('/preview', ['action' => 'email']);
- $routes->connect('/preview/*', ['action' => 'email']);
- $routes->connect('/sent/:panel/:id', ['action' => 'sent'], ['pass' => ['panel', 'id']]);
- }
- );
-
- $routes->get('/', ['controller' => 'Dashboard', 'action' => 'index']);
- $routes->get('/dashboard', ['controller' => 'Dashboard', 'action' => 'index']);
- $routes->post('/dashboard/reset', ['controller' => 'Dashboard', 'action' => 'reset']);
-});
diff --git a/vendor/cakephp/debug_kit/docs.Dockerfile b/vendor/cakephp/debug_kit/docs.Dockerfile
deleted file mode 100644
index 88f2c02..0000000
--- a/vendor/cakephp/debug_kit/docs.Dockerfile
+++ /dev/null
@@ -1,24 +0,0 @@
-# Generate the HTML output.
-FROM markstory/cakephp-docs-builder as builder
-
-RUN pip install git+https://github.com/sphinx-contrib/video.git@master
-
-# Copy entire repo in with .git so we can build all versions in one image.
-COPY docs /data/src
-
-# Make docs
-RUN cd /data/docs-builder \
- && make website LANGS="en fr ja pt" SOURCE=/data/src DEST=/data/website \
- # Move media files into the output directory so video elements work.
- && mkdir -p /data/website/html/_static \
- && cp /data/src/static/* /data/website/html/_static/
-
-# Build a small nginx container with just the static site in it.
-FROM nginx:1.15-alpine
-
-COPY --from=builder /data/website /data/website
-COPY --from=builder /data/docs-builder/nginx.conf /etc/nginx/conf.d/default.conf
-
-# Move files into final location
-RUN cp -R /data/website/html/* /usr/share/nginx/html \
- && rm -rf /data/website/
diff --git a/vendor/cakephp/debug_kit/docs/config/__init__.py b/vendor/cakephp/debug_kit/docs/config/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/vendor/cakephp/debug_kit/docs/config/all.py b/vendor/cakephp/debug_kit/docs/config/all.py
deleted file mode 100644
index fcc02a3..0000000
--- a/vendor/cakephp/debug_kit/docs/config/all.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# Global configuration information used across all the
-# translations of documentation.
-#
-# Import the base theme configuration
-from cakephpsphinx.config.all import *
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-
-# The full version, including alpha/beta/rc tags.
-release = '3.x'
-
-# The search index version.
-search_version = 'debugkit-3'
-
-# The marketing display name for the book.
-version_name = ''
-
-# Project name shown in the black header bar
-project = 'CakePHP DebugKit'
-
-# Other versions that display in the version picker menu.
-version_list = [
- {'name': '3.x', 'number': '/debugkit/3', 'title': '3.x', 'current': True},
- {'name': '4.x', 'number': '/debugkit/4', 'title': '4.x'},
-]
-
-# Languages available.
-languages = ['en', 'fr', 'ja', 'pt']
-
-# The GitHub branch name for this version of the docs
-# for edit links to point at.
-branch = '3.x'
-
-# Current version being built
-version = '3.x'
-
-# Language in use for this directory.
-language = 'en'
-
-show_root_link = True
-
-repository = 'cakephp/debug_kit'
-
-source_path = 'docs/'
-
-hide_page_contents = ('search', '404', 'contents')
-
-# DebugKit docs use mp4 videos to show the UI
-extensions.append('sphinxcontrib.video')
diff --git a/vendor/cakephp/debug_kit/docs/en/conf.py b/vendor/cakephp/debug_kit/docs/en/conf.py
deleted file mode 100644
index f638bda..0000000
--- a/vendor/cakephp/debug_kit/docs/en/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'en'
diff --git a/vendor/cakephp/debug_kit/docs/en/contents.rst b/vendor/cakephp/debug_kit/docs/en/contents.rst
deleted file mode 100644
index 423e20a..0000000
--- a/vendor/cakephp/debug_kit/docs/en/contents.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP DebugKit
-
- /index
diff --git a/vendor/cakephp/debug_kit/docs/en/index.rst b/vendor/cakephp/debug_kit/docs/en/index.rst
deleted file mode 100644
index d7b8677..0000000
--- a/vendor/cakephp/debug_kit/docs/en/index.rst
+++ /dev/null
@@ -1,286 +0,0 @@
-Debug Kit
-#########
-
-DebugKit provides a debugging toolbar and enhanced debugging tools for CakePHP
-applications. It lets you quickly see configuration data, log messages, SQL
-queries, and timing data for your application.
-
-.. warning::
-
- DebugKit is only intended for use in single-user local development
- environments. You should avoid using DebugKit in shared development
- environments, staging environments, or any environment where you need to
- keep configuration data and environment variables hidden.
-
-Installation
-============
-
-By default DebugKit is installed with the default application skeleton. If
-you've removed it and want to re-install it, you can do so by running the
-following from your application's ROOT directory (where composer.json file is
-located)::
-
- php composer.phar require --dev cakephp/debug_kit "~3.0"
-
-Then, you need to enable the plugin by executing the following line::
-
- bin/cake plugin load DebugKit
-
-Configuration
-=============
-
-* ``DebugKit.panels`` - Enable or disable panels for DebugKit. You can disable any of the
- standard panels by::
-
- // Before loading DebugKit
- Configure::write('DebugKit.panels', ['DebugKit.Packages' => false]);
-
-* ``DebugKit.includeSchemaReflection`` - Set to true to enable logging of schema
- reflection queries. Disabled by default.
-
-* ``DebugKit.safeTld`` - Set an array of whitelisted TLDs for local development.
- This can be used to make sure DebugKit displays on hosts it otherwise determines unsafe. ::
-
- // Allow e.g. http://foo.bar.dev or http://my-shop.local domains locally
- Configure::write('DebugKit.safeTld', ['dev', 'local', 'example']);
-
-* ``DebugKit.forceEnable`` - Force DebugKit to display. Careful with this, it is usually
- safer to simply whitelist your local TLDs. Example usage::
-
- // Before loading DebugKit
- Configure::write('DebugKit.forceEnable', true);
-
-* ``DebugKit.ignoreAuthorization`` - Set to true to ignore Cake Authorization plugin for DebugKit requests. Disabled by default.
-
-Database Configuration
-----------------------
-
-By default DebugKit will store panel data into a SQLite database in your
-application's ``tmp`` directory. If you cannot install pdo_sqlite, you can
-configure DebugKit to use a different database by defining a ``debug_kit``
-connection in your **config/app.php** file. For example::
-
- /**
- * The debug_kit connection stores DebugKit meta-data.
- */
- 'debug_kit' => [
- 'className' => 'Cake\Database\Connection',
- 'driver' => 'Cake\Database\Driver\Mysql',
- 'persistent' => false,
- 'host' => 'localhost',
- //'port' => 'nonstandard_port_number',
- 'username' => 'dbusername', // Your DB username here
- 'password' => 'dbpassword', // Your DB password here
- 'database' => 'debug_kit',
- 'encoding' => 'utf8',
- 'timezone' => 'UTC',
- 'cacheMetadata' => true,
- 'quoteIdentifiers' => false,
- //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
- ],
-
-You can safely remove the **tmp/debug_kit.sqlite** file at any point.
-DebugKit will regenerate it when necessary.
-
-Toolbar Usage
-=============
-
-The DebugKit Toolbar is comprised of several panels, which are shown by clicking
-the CakePHP icon in the bottom right-hand corner of your browser after DebugKit
-has been installed and loaded. Each panel is comprised of a panel class and view
-element. Typically, a panel handles the collection and display of a single type
-of information such as Logs or Request information. You can choose to view panels
-from the toolbar or add your own custom panels.
-
-Each panel lets you look at a different aspect of your application:
-
-* **Cache** See cache usage during a request and clear caches.
-* **Environment** Display environment variables related to PHP + CakePHP.
-* **History** Displays a list of previous requests, and allows you to load
- and view toolbar data from previous requests.
-* **Include** View the included files grouped by type.
-* **Log** Display any entries made to the log files this request.
-* **Packages** Display the list of packages dependencies with their actual
- version and allow you to check for outdated packages.
-* **Mail** Display all emails sent during the request and allow to preview
- emails during development without sending them.
-* **Request** Displays information about the current request, GET, POST, Cake
- Parameters, Current Route information and Cookies.
-* **Session** Display the information currently in the Session.
-* **Sql Logs** Displays SQL logs for each database connection.
-* **Timer** Display any timers that were set during the request with
- ``DebugKit\DebugTimer``, and memory usage collected with
- ``DebugKit\DebugMemory``.
-* **Variables** Display View variables set in controller.
-* **Deprecations** Display deprecation warnings in a more readable and less
- disruptive format.
-
-Using the History Panel
-=======================
-
-The history panel is one of the most frequently misunderstood features of
-DebugKit. It provides a way to view toolbar data from previous requests,
-including errors and redirects.
-
-.. figure:: ../_static/history-panel.png
- :alt: Screenshot of the history panel in debug kit.
-
-As you can see, the panel contains a list of requests. On the left you can see
-a dot marking the active request. Clicking any request data will load the panel
-data for that request. When historical data is loaded the panel titles will
-transition to indicate that alternative data has been loaded.
-
-.. only:: html or epub
-
- .. video:: ../_static/history-panel-use.mp4
- :alt: Video of history panel in action.
-
-Using The Mail Panel
-====================
-
-The mail panel allow you to track all emails sent during a request.
-
-.. only:: html or epub
-
- .. video:: ../_static/mail-panel.mp4
- :alt: Video of Mail panel in action.
-
-The mailer preview allows you to easily check emails during development.
-
-.. only:: html or epub
-
- .. video:: ../_static/mail-previewer.mp4
- :alt: Video of Mail panel in action.
-
-Creating Preview Classes
-------------------------
-
-In order to preview emails before sending them, you need to create a preview
-class that defines the receipient and required template variables for your
-mailer methods::
-
- // in src/Mailer/MailPreview/WelcomePreview.php
- namespace App\Mailer\Preview;
-
- use DebugKit\Mailer\MailPreview;
-
- class WelcomePreview extends MailPreview
- {
- public function welcome()
- {
- $mailer = $this->getMailer('Welcome');
- // set any template variables receipients for the mailer.
-
- return $mailer;
- }
- }
-
-MailPreview classes should live in the ``Mailer\Preview`` namespace of your
-application or plugin, and use the ``Preview`` class suffix.
-
-Developing Your Own Panels
-==========================
-
-You can create your own custom panels for DebugKit to help in debugging your
-applications.
-
-Creating a Panel Class
-----------------------
-
-Panel Classes simply need to be placed in the **src/Panel** directory. The
-filename should match the classname, so the class ``MyCustomPanel`` would be
-expected to have a filename of **src/Panel/MyCustomPanel.php**::
-
- namespace App\Panel;
-
- use DebugKit\DebugPanel;
-
- /**
- * My Custom Panel
- */
- class MyCustomPanel extends DebugPanel
- {
- ...
- }
-
-Notice that custom panels are required to extend the ``DebugPanel`` class.
-
-Callbacks
----------
-
-By default Panel objects have two callbacks, allowing them to hook into the
-current request. Panels subscribe to the ``Controller.initialize`` and
-``Controller.shutdown`` events. If your panel needs to subscribe to additional
-events, you can use the ``implementedEvents()`` method to define all of the events
-your panel is interested in.
-
-You should refer to the built-in panels for some examples on how you can build
-panels.
-
-Panel Elements
---------------
-
-Each Panel is expected to have a view element that renders the content from the
-panel. The element name must be the underscored inflection of the class name.
-For example ``SessionPanel`` has an element named **session_panel.ctp**, and
-SqllogPanel has an element named **sqllog_panel.ctp**. These elements should be
-located in the root of your **src/Template/Element** directory.
-
-Custom Titles and Elements
---------------------------
-
-Panels should pick up their title and element name by convention. However, if
-you need to choose a custom element name or title, you can define methods to
-customize your panel's behavior:
-
-- ``title()`` - Configure the title that is displayed in the toolbar.
-- ``elementName()`` - Configure which element should be used for a given panel.
-
-Panel Hook Methods
-------------------
-
-You can also implement the following hook methods to customize how your panel
-behaves and appears:
-
-* ``shutdown(Event $event)`` This method typically collects and prepares the
- data for the panel. Data is generally stored in ``$this->_data``.
-* ``summary()`` Can return a string of summary data to be displayed in the
- toolbar even when a panel is collapsed. Often this is a counter, or short
- summary information.
-* ``data()`` Returns the panel's data to be used as element context. This hook
- method lets you further manipulate the data collected in the ``shutdown()``
- method. This method **must** return data that can be serialized.
-
-Panels in Other Plugins
------------------------
-
-Panels provided by `plugins `_ work
-almost entirely the same as other plugins, with one minor difference: You must
-set ``public $plugin`` to be the name of the plugin directory, so that the
-panel's Elements can be located at render time::
-
- namespace MyPlugin\Panel;
-
- use DebugKit\DebugPanel;
-
- class MyCustomPanel extends DebugPanel
- {
- public $plugin = 'MyPlugin';
- ...
- }
-
-To use a plugin or app panel, update your application's DebugKit configuration
-to include the panel::
-
- // in src/Application.php bootstrap() method add
- Configure::write('DebugKit.panels', ['App', 'MyPlugin.MyCustom']);
- $this->addPlugin('DebugKit', ['bootstrap' => true]);
-
-The above would load all the default panels as well as the ``AppPanel``, and
-``MyCustomPanel`` panel from ``MyPlugin``.
-
-Helper Functions
-================
-
-* ``sql()`` Dumps out the SQL from an ORM query.
-* ``sqld()`` Dumps out the SQL from an ORM query, and exits.
diff --git a/vendor/cakephp/debug_kit/docs/fr/conf.py b/vendor/cakephp/debug_kit/docs/fr/conf.py
deleted file mode 100644
index b02032e..0000000
--- a/vendor/cakephp/debug_kit/docs/fr/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'fr'
diff --git a/vendor/cakephp/debug_kit/docs/fr/contents.rst b/vendor/cakephp/debug_kit/docs/fr/contents.rst
deleted file mode 100644
index 423e20a..0000000
--- a/vendor/cakephp/debug_kit/docs/fr/contents.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP DebugKit
-
- /index
diff --git a/vendor/cakephp/debug_kit/docs/fr/index.rst b/vendor/cakephp/debug_kit/docs/fr/index.rst
deleted file mode 100644
index 209477f..0000000
--- a/vendor/cakephp/debug_kit/docs/fr/index.rst
+++ /dev/null
@@ -1,239 +0,0 @@
-Debug Kit
-#########
-
-DebugKit est un plugin supporté par la core team qui fournit une toolbar pour
-vous aider à debugger les applications CakePHP plus facilement.
-DebugKit fournit une barre d'outils de débuggage et des outils de débuggage
-améliorés pour les applications CakePHP. Il vous permet de voir rapidement les
-données de configuration, les messages de logs, les requêtes SQL et des données
-de temps d'exécution pour votre application.
-
-.. warning::
-
- DebugKit est uniquement destiné à être utilisé dans des environnements de
- développement local à un seul utilisateur. Vous devez éviter d'utiliser
- DebugKit dans les environnements de développement partagés, les
- environnements de stagging où vous devez garder les données de configuration
- et les variables d'environnement cachées.
-
-Installation
-============
-
-Par défaut DebugKit est installé avec le squelette d'application. Si vous
-le retirez et voulez le réinstaller, vous pouvez le faire en lançant ce qui
-suit à partir du répertoire ROOT de votre application (où le fichier
-composer.json est localisé)::
-
- php composer.phar require --dev cakephp/debug_kit "~3.0"
-
-Ensuite, vous devez activer le plugin en exécutant la ligne suivante::
-
- bin/cake plugin load DebugKit
-
-Configuration
-=============
-
-* ``DebugKit.ignoreAuthorization`` - Définie à true pour ignorer le plugin Cake Authorization uniquement pour les requêtes DebugKit. Par défaut à false.
-
-Stockage de DebugKit
-====================
-
-Par défaut, DebugKit utilise une petite base de données SQLite dans le
-répertoire ``/tmp`` de votre application pour stocker les données du panneau.
-Si vous voulez que DebugKit stocke ses données ailleurs, vous pouvez définir
-une connexion ``debug_kit``.
-
-Configuration de Base de Données
---------------------------------
-
-Par défaut DebugKit va stocker les données du panneau dans une base de données
-SQLite dans le répertoire ``tmp`` de votre application. Si vous ne pouvez pas
-installer pdo_sqlite, vous pouvez configurer DebugKit pour utiliser une base
-de données différente en définissant une connexion ``debug_kit`` dans votre
-fichier **config/app.php**.
-
-Utilisation de la Toolbar
-=========================
-
-La Toolbar de DebugKit comprend plusieurs panneaux, qui apparaissent en
-cliquant sur l'icone CakePHP dans le coin en bas à droite de la fenêtre de
-votre navigateur. Une fois que la toolbar est ouverte, vous devriez voir une
-série de boutons. Chacun de ces boutons s'agrandit en un panneau avec des
-informations liées.
-
-Chaque panneau vous permet d'inspecter plusieurs aspects de votre application:
-
-* **Cache** Voir l'utilisation du cache pendant une requête et nettoyer les
- caches.
-* **Environment** Affiche les variables d'environnement liées à PHP + CakePHP.
-* **History** Affiche une liste des requêtes précédentes, et vous permet de
- charger et de voir les données de la toolbar des requêtes précédentes.
-* **Include** Voir les fichiers inclus groupés par type.
-* **Log** Affiche toute entrée faite dans les fichiers de log par cette requête.
-* **Packages** Affiche la liste des dépendances avec leur version courante et
- vous permet de vérifier les packages qui ne sont pas à jour.
-* **Mail** Affiche tous les emails envoyés pendant la requête et permet de
- prévisualiser les emails pendant le développement sans les envoyer.
-* **Request** Affiche les informations sur la requête courante, GET, POST, les
- paramètre de Cake, sur la Route Courante et les Cookies.
-* **Session** Affiche les informations actuellement dans la Session.
-* **Sql Logs** Affiche les logs SQL pour chaque connexion à la base de données.
-* **Timer** Affiche tout timers qui a été défini pendant la requête avec
- ``DebugKit\DebugTimer``, et l'utilisation de la mémoire collectée avec
- ``DebugKit\DebugMemory``.
-* **Variables** Affiche les variables de View définies dans le controller.
-
-Typiquement, un panneau gère la collection et affiche un type unique
-d'information comme les Logs ou les informations de la Requête. Vous pouvez
-choisir de voir les panneaux de la toolbar ou ajouter vos panneaux
-personnalisés.
-
-Utiliser le Panneau d'Historique
-================================
-
-Le panneau d'historique est l'une des fonctionnalités les plus souvent mal
-comprise de DebugKit. Elle est un moyen de voir les données de la toolbar des
-requêtes précédentes, d'inclure les erreurs et les redirects.
-
-.. figure:: ../_static/history-panel.png
- :alt: Capture d'écran du panneau historique dans debug kit.
-
-Comme vous pouvez le voir, le panneau contient une liste des requêtes. Sur la
-gauche, vous pouvez voir un point marquant la requête actuelle. Cliquer
-sur n'importe quelles données de requête va charger les données du panneau
-pour cette requête. Quand les données historiques sont chargées, les titres
-du panneau seront colorés pour indiquer que des données alternatives ont été
-chargées.
-
-.. only:: html or epub
-
- .. video:: ../_static/history-panel-use.mp4
- :alt: Video du panneau historique en action.
-
-Utiliser le Panneau Mail
-========================
-
-Le panneau de mail vous permet de pister tous les emails envoyés pendant une
-requête.
-
-.. only:: html or epub
-
- .. video:: ../_static//mail-panel.mp4
- :alt: Video du panneau Mail en action.
-
-La prévisualisation de mail vous permet de facilement vérifier les emails
-pendant le développement.
-
-.. only:: html or epub
-
- .. video:: ../_static/img/mail-previewer.gif
- :alt: Video du panneau Mail en action.
-
-Développer vos Propres Panneaux
-===============================
-
-Vous pouvez créer vos propres panneaux personnalisés pour DebugKit pour
-améliorer le debug de vos applications.
-
-Créer une Classe Panel
-----------------------
-
-Les Classes Panel doivent simplement être placées dans le répertoire
-**src/Panel**. Le nom de fichier doit correspondre au nom de la classe, pour
-que la classe ``MyCustomPanel`` s'attende à avoir un fichier au nom
-**src/Panel/MyCustomPanel.php**::
-
- namespace App\Panel;
-
- use DebugKit\DebugPanel;
-
- /**
- * Mon panneau Personnalisé
- */
- class MyCustomPanel extends DebugPanel
- {
- ...
- }
-
-Remarquez que les panneaux personnalisés doivent étendre la classe
-``DebugPanel``.
-
-Callbacks
----------
-
-Par défaut, les objets Panel ont deux callbacks, leur permettant de s'insérer
-dans la requête actuelle. Les panneaux s'inscrivent aux events
-``Controller.initialize`` et ``Controller.shutdown``. Si votre panneau doit
-s'inscrire à des events supplémentaires, vous pouvez utiliser la méthode
-``implementedEvents()`` pour définir tous les events auxquels votre panneau
-doit s'intéresser.
-
-Vous devez vous référer aux panneaux intégrés pour avoir quelques exemples sur
-la façon de construire des panneaux.
-
-Elements de Panneau
--------------------
-
-Chaque panneau s'attend à avoir un element de view qui rend le contenu du
-panneau. Le nom de l'element doit être avec une inflection en underscore du
-nom de la classe.
-Par exemple ``SessionPanel`` a un element nommé **session_panel.ctp**, et
-SqllogPanel a un element nommé **sqllog_panel.ctp**. Ces elements doivent être
-localisés à la racine de votre répertoire **src/Template/Element**.
-
-Titres Personnalisés et Elements
---------------------------------
-
-Les panneaux doivent choisir leur titre et leur nom d'element par convention.
-Cependant, si vous avez besoin de choisir un nom ou un titre d'element
-personnalisé, vous pouvez définir des méthodes pour personnaliser le
-comportement de votre panneau:
-
-- ``title()`` - Configure le titre qui est affiché dans la toolbar.
-- ``elementName()`` Configure l'element qui doit être utilisé pour un panneau
- donné.
-
-Méthodes de Hook pour Panneaux
-------------------------------
-
-Vous pouvez également implémenter les méthodes suivantes pour personnaliser
-la manière dont votre panneau se comporte et s'affiche:
-
-* ``shutdown(Event $event)`` Cette méthode collecte et prépare les données pour
- panneau. Les données sont généralement stockées dans ``$this->_data``.
-* ``summary()`` Peut retourner une chaine de caractères contenu un résumé de
- données qui sera affiché dans la barre lorsque le panneau est replié. C'est
- souvent un compteur ou un court résumé.
-* ``data()`` Retourne les données du panneau pour être utilisées dans un
- element. Cette méthode vous laisse manipuler les données collectées dans
- la méthode ``shutdown()``. cette méthode **doit** retourner des données
- sérializables.
-
-Panneaux dans d'autres Plugins
-------------------------------
-
-Les panneaux fournis par les `plugins
-`_ fonctionnent presque entièrement de
-la même façon que les autres plugins, avec quelques différences mineures: Vous
-devez définir ``public $plugin`` comme nom de répertoire de plugin, pour
-que les elements du panneau puissent être localisés au moment de les afficher::
-
- namespace MyPlugin\Panel;
-
- use DebugKit\DebugPanel;
-
- class MyCustomPanel extends DebugPanel
- {
- public $plugin = 'MyPlugin';
- ...
- }
-
-Pour utiliser un panneau de plugin ou de l'application, mettez à jour
-la configuration du DebugKit de votre application pour ajouter le panneau::
-
- // dans config/bootstrap.php
- Configure::write('DebugKit.panels', ['App', 'MyPlugin.MyCustom']);
- Plugin::load('DebugKit', ['bootstrap' => true]);
-
-Ce qui est au-dessus charge tous les panneaux par défaut ainsi que le panneau
-``AppPanel``et le panneau ``MyCustomPanel`` depuis ``MyPlugin``.
diff --git a/vendor/cakephp/debug_kit/docs/ja/conf.py b/vendor/cakephp/debug_kit/docs/ja/conf.py
deleted file mode 100644
index 5871da6..0000000
--- a/vendor/cakephp/debug_kit/docs/ja/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'ja'
diff --git a/vendor/cakephp/debug_kit/docs/ja/contents.rst b/vendor/cakephp/debug_kit/docs/ja/contents.rst
deleted file mode 100644
index 423e20a..0000000
--- a/vendor/cakephp/debug_kit/docs/ja/contents.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP DebugKit
-
- /index
diff --git a/vendor/cakephp/debug_kit/docs/ja/index.rst b/vendor/cakephp/debug_kit/docs/ja/index.rst
deleted file mode 100644
index a6f0277..0000000
--- a/vendor/cakephp/debug_kit/docs/ja/index.rst
+++ /dev/null
@@ -1,267 +0,0 @@
-Debug Kit
-#########
-
-DebugKit は、CakePHP アプリケーション用のデバッグツールバーと拡張デバッグツールを提供します。
-アプリケーションの設定データ、ログメッセージ、SQL クエリー、およびタイミングデータをすばやく
-確認できます。
-
-.. warning::
-
- DebugKit は、シングルユーザーのローカル開発環境での使用を目的としています。
- 共有開発環境、ステージング環境、または設定データと環境変数を隠しておく必要がある環境では、
- DebugKit を使用しないでください。
-
-インストール
-============
-
-デフォルトで、DebugKit はデフォルトのアプリケーションスケルトンにインストールされています。
-もし削除してしまって再インストールしたい場合は、以下のコマンドをアプリケーションの
-ルートディレクトリー (composer.json ファイルのある場所) で実行してください。 ::
-
- php composer.phar require --dev cakephp/debug_kit "~3.0"
-
-そして以下のコマンドでプラグインを有効化する必要があります。 ::
-
- bin/cake plugin load DebugKit
-
-設定
-====
-
-* ``DebugKit.panels`` - DebugKit のパネルを有効化または無効化します。
- 次のようにして、任意の標準パネルを無効にすることができます。 ::
-
- // DebugKit をロードする前に
- Configure::write('DebugKit.panels', ['DebugKit.Packages' => false]);
-
-* ``DebugKit.includeSchemaReflection`` - スキーマリフレクションクエリーの
- ロギングを有効にするには、true に設定します。デフォルトは無効になっています。
-
-* ``DebugKit.safeTld`` - ローカル開発用のトップレベルドメインのホワイトリストを設定します。
- これにより安全でないと判断したホスト上で DebugKit を表示できるようになります。 ::
-
- // 例: http://foo.bar.dev または http://my-shop.local のドメインはローカルとして許可する
- Configure::write('DebugKit.safeTld', ['dev', 'local', 'example']);
-
-* ``DebugKit.forceEnable`` - DebugKit を強制的に表示します。これを使うときは注意してください。
- 通常は単純にローカルのトップレベルドメインをホワイトリストに追加したほうが安全です。 使用例::
-
- // DebugKit をロードする前に
- Configure::write('DebugKit.forceEnable', true);
-
-データベース設定
-----------------
-
-デフォルトでは DebugKit はアプリケーションの ``/tmp`` 内の SQLite データベースに
-パネルデータを保持します。もし pdo_sqlite をインストールできない場合は、
-**config/app.php** ファイル に ``debug_kit`` コネクションを定義すると
-DebugKit が異なるデータベースを使用するように設定できます。例::
-
- /**
- * debug_kit コネクションは DebugKit のメタデータを格納します。
- */
- 'debug_kit' => [
- 'className' => 'Cake\Database\Connection',
- 'driver' => 'Cake\Database\Driver\Mysql',
- 'persistent' => false,
- 'host' => 'localhost',
- //'port' => 'nonstandard_port_number',
- 'username' => 'dbusername', // Your DB username here
- 'password' => 'dbpassword', // Your DB password here
- 'database' => 'debug_kit',
- 'encoding' => 'utf8',
- 'timezone' => 'UTC',
- 'cacheMetadata' => true,
- 'quoteIdentifiers' => false,
- //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
- ],
-
-**tmp/debug_kit.sqlite** ファイルは、いつでも削除することができます。
-DebugKit は、必要に応じて、それを再生成します。
-
-ツールバーの使い方
-==================
-
-DebugKit ツールバーは、いくつかのパネルで構成されています。これらのパネルは、
-DebugKit をインストールしてロードした後、ブラウザーの右下隅にある CakePHP
-アイコンをクリックすると表示されます。各パネルは、パネルクラスとビューエレメントで構成されています。
-一般的に、パネルは単一の種類の情報のコレクションの処理やログやリクエスト情報の表示を行います。
-ツールバーからパネルを表示したり、独自のカスタムパネルを追加することを選択できます。
-
-各パネルはアプリケーションの様々な側面を見せてくれます。
-
-* **Cache** リクエスト中のキャッシュの使用状況の確認とキャッシュのクリアー。
-* **Environment** PHP 及び CakePHP に関連する環境変数の表示。
-* **History** 以前のリクエストの一覧の表示と、以前のリクエストのツールバーデータの読み込みと表示。
-* **Include** タイプごとにグループ化されたインクルードファイルを表示。
-* **Log** このリクエスト中にログファイルに加えられたすべてのエントリーを表示。
-* **Packages** 現在のバージョンのパッケージの依存関係の一覧を表示し、
- 古いパッケージをチェックすることができます。
-* **Mail** このリクエスト中の全てのメール送信を表示し、
- 送信せずに開発中のメールのプレビューができます。
-* **Request** 現在のリクエスト、GET、POST、Cake パラメーター、現在のルート情報、クッキー情報の表示。
-* **Session** 現在のセッション情報の表示。
-* **Sql Logs** 各データベースコネクションの SQL ログの表示。
-* **Timer** リクエスト中に ``DebugKit\DebugTimer`` で設定されたすべてのタイマーと、
- ``DebugKit\DebugMemory`` で収集されたメモリー使用状況の表示。
-* **Variables** コントローラーでセットされたビュー変数の表示。
-
-履歴パネルを使用する
-====================
-
-履歴パネルは DebugKit で最も勘違いされやすい機能の一つです。
-エラーやリダイレクトを含む以前のリクエストのツールバーのデータを表示することができます。
-
-.. figure:: ../_static/history-panel.png
- :alt: Screenshot of the history panel in debug kit.
-
-ご覧のようにパネルにはリクエストの一覧が含まれます。左側にドットがついているのがアクティブな
-リクエストです。どれかのリクエストをクリックするとそのリクエストのデータが読み込まれます。
-履歴データがロードされると代替のデータが読み込まれたことを示すようにパネルのタイトルが遷移します。
-
-.. only:: html or epub
-
- .. video:: ../_static/history-panel-use.mp4
- :alt: Video of history panel in action.
-
-メールパネルを使用
-==================
-
-メールパネルは、リクエストの間に送信された全てのメールを追跡することができます。
-
-.. only:: html or epub
-
- .. video:: ../_static/mail-panel.mp4
- :alt: Video of mail panel in action
-
-メーラープレビューは、開発中のメールを簡単にプレビューすることができます。
-
-.. only:: html or epub
-
- .. video:: ../_static/mail-previewer.mp4
- :alt: Video of mail panel in action
-
-プレビュークラスの作成
-------------------------
-
-メールを送信する前にプレビューするには、受信者と mailer メソッドに必要なテンプレート変数を
-定義するプレビュークラスを作成する必要があります。 ::
-
- // src/Mailer/MailPreview/WelcomePreview.php の中で
- namespace App\Mailer\Preview;
-
- use DebugKit\Mailer\MailPreview;
-
- class WelcomePreview extends MailPreview
- {
- public function welcome()
- {
- $mailer = $this->getMailer('Welcome');
- // メーラーのテンプレート変数受信者を設定します。
-
- return $mailer;
- }
- }
-
-MailPreview クラスは、 アプリケーションまたはプラグインの ``Mailer\Preview``
-名前空間に存在し、 ``Preview`` を使用する必要があります。
-
-独自のパネルを開発する
-======================
-
-アプリケーションのデバッグを補助するための DebugKit の独自のカスタムパネルを
-作成することができます。
-
-パネルクラスを作成する
-----------------------
-
-パネルクラスは単に **src/Panel** ディレクトリーに設置してください。ファイル名はクラス名と
-一致する必要があります。 つまり ``MyCustomPanel`` クラスは
-**src/Panel/MyCustomPanel.php** というファイル名であることを想定しています。 ::
-
- namespace App\Panel;
-
- use DebugKit\DebugPanel;
-
- /**
- * My Custom Panel
- */
- class MyCustomPanel extends DebugPanel
- {
- ...
- }
-
-カスタムパネルは ``DebugPanel`` クラスを拡張する必要があることに注意してください。
-
-コールバック
-------------
-
-デフォルトではパネルオブジェクトには、現在のリクエストをフックすることができる
-2つのコールバックがあります。パネルは ``Controller.initialize`` と
-``Controller.shutdown`` のイベントを取得します。もしパネルが追加のイベントを
-取得したい場合は、 ``implementedEvents()`` メソッドを使用し、
-パネルが必要とするすべてのイベントを定義できます。
-
-どのようにパネルを構築するかについてのいくつかの例として、ビルトインのパネルを参照してください。
-
-パネルの構成要素
-----------------
-
-各パネルはパネルのコンテンツを描画するためのビューエレメントがあることを想定しています。
-エレメント名はアンダースコアー区切りのクラス名である必要があります。
-たとえば、 ``SessionPanel`` は **session_panel.ctp** という名前のエレメントを持ちます。
-また、SqllogPanelは **sqllog_panel.ctp** という名前のエレメントを持ちます。
-これらのエレメントは **src/Template/Element** ディレクトリーのルートに設置する必要があります。
-
-カスタムのタイトルとエレメント
-------------------------------
-
-パネルは慣例を元にそのタイトルとエレメント名を補足します。もしカスタムのタイトルやエレメント名を
-付けたい場合は、パネルの振る舞いをカスタムするメソッドを定義することができます。
-
-- ``title()`` - ツールバー上に表示されるタイトルを設定します
-- ``elementName()`` - 与えられたパネルがどのエレメントを使用するかを設定します
-
-パネルフックメソッド
---------------------
-
-また、パネルの動作や表示方法をカスタムするために以下のフックメソッドを実装することができます。
-
-* ``shutdown(Event $event)`` このメソッドは通常はパネルのデータの収集と準備を行います。
-* ``summary()`` パネルが折りたたまれている時に表示されるサマリーデータの文字列を
- 返すことができます。多くの場合、これは件数や短いサマリー情報です。
-* ``data()`` エレメントのコンテキストで使用されるパネルのデータを返します。
- このフックメソッドは ``shutdown()`` で収集されるデータを更に操作することができます。
- このメソッドはシリアライズ化可能なデータを **必ず** 返す必要があります。
-
-他のプラグインのパネル
-----------------------
-
-パネルはひとつの小さな違いを除き、`plugins `_
-とほぼ同じ動作を提供します。レンダリング時にパネルのエレメントを配置できるように、
-``public $plugin`` にプラグインディレクトリーの名前を必ずセットする必要があります。 ::
-
- namespace MyPlugin\Panel;
-
- use DebugKit\DebugPanel;
-
- class MyCustomPanel extends DebugPanel
- {
- public $plugin = 'MyPlugin';
- ...
- }
-
-プラグインやアプリケーションパネルを使用するには、アプリケーションの DebugKit の設定を
-更新します。 ::
-
- // src/Application.php の bootstrap() メソッドの中に追加
- Configure::write('DebugKit.panels', ['App', 'MyPlugin.MyCustom']);
- $this->addPlugin('DebugKit', ['bootstrap' => true]);
-
-上記は、すべてのデフォルトのパネルと同じように ``AppPanel`` と ``MyPlugin`` の
-``MyCustomPanel`` パネルを読みこみます。
-
-ヘルパー関数
-================
-
-* ``sql()`` ORM クエリーから SQL をダンプします。
-* ``sqld()`` ORM クエリーから SQL をダンプして終了します。
diff --git a/vendor/cakephp/debug_kit/docs/pt/conf.py b/vendor/cakephp/debug_kit/docs/pt/conf.py
deleted file mode 100644
index 9e22cb0..0000000
--- a/vendor/cakephp/debug_kit/docs/pt/conf.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys, os
-
-# Append the top level directory of the docs, so we can import from the config dir.
-sys.path.insert(0, os.path.abspath('..'))
-
-# Pull in all the configuration options defined in the global config file..
-from config.all import *
-
-language = 'pt'
diff --git a/vendor/cakephp/debug_kit/docs/pt/contents.rst b/vendor/cakephp/debug_kit/docs/pt/contents.rst
deleted file mode 100644
index 423e20a..0000000
--- a/vendor/cakephp/debug_kit/docs/pt/contents.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-.. toctree::
- :maxdepth: 2
- :caption: CakePHP DebugKit
-
- /index
diff --git a/vendor/cakephp/debug_kit/docs/pt/index.rst b/vendor/cakephp/debug_kit/docs/pt/index.rst
deleted file mode 100644
index d73d860..0000000
--- a/vendor/cakephp/debug_kit/docs/pt/index.rst
+++ /dev/null
@@ -1,216 +0,0 @@
-Debug Kit
-#########
-
-DebugKit é um plugin suportado pelo time principal do CakePHP que oferece uma
-barra de ferramentas para auxiliar na depuração de aplicações do CakePHP.
-
-Instalação
-==========
-
-Por padrão o DebugKit é instalado com o esqueleto padrão da aplicação. Se
-você o removeu e gostaria de reinstalá-lo, você pode executar o seguinte comando
-a partir do diretório raiz da aplicação
-(onde o arquivo composer.json está localizado)::
-
- php composer.phar require --dev cakephp/debug_kit "~3.0"
-
-Então, você precisará habilitar o plugin ao executar o seguinte comando::
-
- bin/cake plugin load DebugKit
-
-Armazenamento do DebugKit
-=========================
-
-Por padrão, o DebugKit usa um pequeno banco de dados SQLite no diretório
-``/tmp`` de sua aplicação para armazenar os dados referentes ao painel
-de informações. Se você quiser que o DebugKit armazene seus dados em outro
-lugar, é necessário configurar uma nova conexão com o nome ``debug_kit`` .
-
-Configuração do banco de dados
-------------------------------
-
-Como informado anteriormente, por padrão, o DebugKit armazenará os dados do
-painel em um banco de dados SQLite no diretório ``/tmp`` de sua aplicação. Se
-você não puder instalar a extensão pdo_sqlite do PHP, você pode configurar o
-DebugKit para usar um banco de dados diferente ao definir uma conexão
-``debug_kit`` em seu arquivo **config/app.php**. Por exemplo::
-
- /**
- * A conexão debug_kit armazena meta-dados do DebugKit.
- */
- 'debug_kit' => [
- 'className' => 'Cake\Database\Connection',
- 'driver' => 'Cake\Database\Driver\Mysql',
- 'persistent' => false,
- 'host' => 'localhost',
- //'port' => 'nonstandard_port_number',
- 'username' => 'dbusername', // Your DB username here
- 'password' => 'dbpassword', // Your DB password here
- 'database' => 'debug_kit',
- 'encoding' => 'utf8',
- 'timezone' => 'UTC',
- 'cacheMetadata' => true,
- 'quoteIdentifiers' => false,
- //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
- ],
-
-Uso da barra de ferramentas
-===========================
-
-A barra de ferramentas do DebugKit é composta por vários painéis, que são
-exibidos ao clicar no ícone do CakePHP no canto inferior direito da janela do
-seu navegador. Uma vez que a barra de ferramentas é aberta, você deverá ver uma
-série de botões. Cada um desses botões se expande em um painel de informações
-relacionadas.
-
-Cada painel permite a você observar aspectos diferentes da sua aplicação:
-
-* **Cache** Exibe o uso de cache durante uma solicitação e limpa caches.
-* **Environment** Exibe variáveis de ambiente relacionadas com PHP + CakePHP.
-* **History** Exibe uma lista de requisições anteriores, e permite que você
- carregue e veja dados da barra de ferramentas a partir de solicitações
- anteriores.
-* **Include** Exibe os arquivos inclusos divididos por grupo.
-* **Log** Exibe todas as entradas feitas nos arquivos de log este pedido.
-* **Request** Exibe informações sobre a requisição atual, GET, POST, informações
- sobre a rota atual do Cake e Cookies.
-* **Session** Exibe a informação atual da sessão.
-* **Sql Logs** Exibe logs SQL para cada conexão com o banco de dados.
-* **Timer** Exibe qualquer temporizador que fora definido durante a requisição
- com ``DebugKit\DebugTimer``, e memória utilizada coletada com
- ``DebugKit\DebugMemory``.
-* **Variables** Exibe variáveis de View definidas em um Controller.
-
-Tipicamente, um painel manipula a recolha e apresentação de um único tipo
-de informações como logs ou informações de requisições. Você pode optar por
-visualizar os painéis padrões da barra de ferramentas ou adicionar seus próprios
-painéis personalizados.
-
-Usando o painel History
-=======================
-
-O painel History é uma das características mais frequentemente confundidas do
-DebugKit. Ele oferece uma forma de visualizar os dados de requisições
-anteriores na barra de ferramentas, incluindo erros e redirecionamentos.
-
-.. figure:: /_static/img/history-panel.png
- :alt: Screenshot do painel History no DebugKit.
-
-Como você pode ver, o painel contém uma lista de requisições. Na esquerda você
-pode ver um ponto marcando a requisição ativa. Clicar em qualquer requisição vai
-carregar os dados referentes a mesma no painel. Quando os dados são carregados,
-os títulos do painel vão sofrer uma transição para indicar que informações
-alternativos foram carregados.
-
-.. only:: html or epub
-
- .. figure:: /_static/img/history-panel-use.gif
- :alt: Video do painel History em ação.
-
-Desenvolvendo seus próprios painéis
-===================================
-
-Você pode criar seus próprios painéis customizados do DebugKit para ajudar
-na depuração de suas aplicações.
-
-Criando uma Panel Class
------------------------
-
-Panel Classes precisam ser colocadas no diretório **src/Panel**. O
-nome do arquivo deve combinar com o nome da classe, então a classe
-``MyCustomPanel`` deveria remeter ao nome de arquivo
-**src/Panel/MyCustomPanel.php**::
-
- namespace App\Panel;
-
- use DebugKit\DebugPanel;
-
- /**
- * My Custom Panel
- */
- class MyCustomPanel extends DebugPanel
- {
- ...
- }
-
-Perceba que painéis customizados são necessários para extender a classe
-``DebugPanel``.
-
-Callbacks
----------
-
-Por padrão objetos do painel possuem dois callbacks, permitindo-lhes acoplar-se
-na requisição atual. Painéis inscrevem-se aos eventos ``Controller.initialize``
-e ``Controller.shutdown``. Se o seu painel precisa inscrever-se a eventos
-adicionais, você pode usar o método ``implementedEvents`` para definir todos os
-eventos aos quais o seu painel possa precisar estar inscrito.
-
-Você deveria estudar os painéis nativos para absorver alguns exemplos de como
-construir painéis.
-
-Elementos do painel
--------------------
-
-Cada painel deve ter um elemento view que renderiza o conteúdo do mesmo.
-O nome do elemento deve ser sublinhado e flexionado a partir do nome da classe.
-Por exemplo ``SessionPanel`` deve possuir um elemento nomeado
-**session_panel.ctp**, e SqllogPanel deve possuir um elemento nomeado
-**sqllog_panel.ctp**. Estes elementos devem estar localizados na raiz do seu
-diretório **src/Template/Element**.
-
-Títulos personalizados e Elementos
-----------------------------------
-
-Os painéis devem relacionar o seu título e o nome do elemento por convenção. No
-entanto, se você precisa escolher um nome de elemento personalizado ou título,
-você pode definir métodos para customizar o comportamento do seu painel:
-
-- ``title()`` - Configure o título que é exibido na barra de ferramentas.
-- ``elementName()`` - Configure qual elemento deve ser utilizada para um
- determinado painel.
-
-Métodos de captura
-------------------
-
-Você também pode implementar os seguintes métodos para customizar como o seu
-painel se comporta e se aparenta:
-
-* ``shutdown(Event $event)`` Esse método coleta e prepara os dados para o
- painel. Os dados são geralmente armazenados em ``$this->_data``.
-* ``summary()`` Este método retorna uma *string* de dados resumidos para serem
- exibidos na *toolbar*, mesmo quando um painel está minimizado. Frequentemente,
- é um contador ou um pequeno resumo de informações.
-* ``data()`` Este método retorna os dados do painel que serão usados como
- contexto para o elemento. Você pode manipular os dados coletados no método
- ``shutdown()``. Esse método **deve** retornar dados que podem ser
- serializados.
-
-Painéis em outros plugins
--------------------------
-
-Painéis disponibilizados por `plugins
-`_ funcionam quase que totalmente
-como outros plugins, com uma pequena diferença: Você deve definir ``public
-$plugin`` como o nome do diretório do plugin, com isso os elementos do painel
-poderão ser encontrados no momento de renderização::
-
- namespace MyPlugin\Panel;
-
- use DebugKit\DebugPanel;
-
- class MyCustomPanel extends DebugPanel
- {
- public $plugin = 'MyPlugin';
- ...
- }
-
-Para usar um plugin ou painel da aplicação, atualize a configuração do DebugKit
-de sua aplicação para incluir o painel::
-
- Configure::write(
- 'DebugKit.panels',
- array_merge(Configure::read('DebugKit.panels'), ['MyCustomPanel'])
- );
-
-O código acima deve carregar todos os painéis padrão tanto como os outros
-painéis customizados do ``MyPlugin``.
diff --git a/vendor/cakephp/debug_kit/src/Cache/Engine/DebugEngine.php b/vendor/cakephp/debug_kit/src/Cache/Engine/DebugEngine.php
deleted file mode 100644
index 3634e55..0000000
--- a/vendor/cakephp/debug_kit/src/Cache/Engine/DebugEngine.php
+++ /dev/null
@@ -1,317 +0,0 @@
- 0,
- 'delete' => 0,
- 'read' => 0,
- 'hit' => 0,
- 'miss' => 0,
- ];
-
- /**
- * Constructor
- *
- * @param mixed $config Config data or the proxied adapter.
- */
- public function __construct($config)
- {
- $this->_config = $config;
- }
-
- /**
- * Initialize the proxied Cache Engine
- *
- * @param array $config Array of setting for the engine.
- * @return bool True, this engine cannot fail to initialize.
- */
- public function init(array $config = [])
- {
- if (is_object($this->_config)) {
- $this->_engine = $this->_config;
-
- return true;
- }
- $registry = new CacheRegistry();
- $this->_engine = $registry->load('spies', $this->_config);
- unset($registry);
-
- return true;
- }
-
- /**
- * Get the internal engine
- *
- * @return \Cake\Cache\CacheEngine
- */
- public function engine()
- {
- return $this->_engine;
- }
-
- /**
- * Get the metrics for this object.
- *
- * @return array
- */
- public function metrics()
- {
- return $this->_metrics;
- }
-
- /**
- * Track a metric.
- *
- * @param string $metric The metric to increment.
- * @return void
- */
- protected function _track($metric)
- {
- $this->_metrics[$metric]++;
- }
-
- /**
- * {@inheritDoc}
- */
- public function write($key, $value)
- {
- $this->_track('write');
- DebugTimer::start('Cache.write ' . $key);
- $result = $this->_engine->write($key, $value);
- DebugTimer::stop('Cache.write ' . $key);
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function writeMany($data)
- {
- $this->_track('write');
- DebugTimer::start('Cache.writeMany');
- $result = $this->_engine->writeMany($data);
- DebugTimer::stop('Cache.writeMany');
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function read($key)
- {
- $this->_track('read');
- DebugTimer::start('Cache.read ' . $key);
- $result = $this->_engine->read($key);
- DebugTimer::stop('Cache.read ' . $key);
- $metric = 'hit';
- if ($result === false) {
- $metric = 'miss';
- }
- $this->_track($metric);
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function readMany($data)
- {
- $this->_track('read');
- DebugTimer::start('Cache.readMany');
- $result = $this->_engine->readMany($data);
- DebugTimer::stop('Cache.readMany');
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function increment($key, $offset = 1)
- {
- $this->_track('write');
- DebugTimer::start('Cache.increment ' . $key);
- $result = $this->_engine->increment($key, $offset);
- DebugTimer::stop('Cache.increment ' . $key);
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function decrement($key, $offset = 1)
- {
- $this->_track('write');
- DebugTimer::start('Cache.decrement ' . $key);
- $result = $this->_engine->decrement($key, $offset);
- DebugTimer::stop('Cache.decrement ' . $key);
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function delete($key)
- {
- $this->_track('delete');
- DebugTimer::start('Cache.delete ' . $key);
- $result = $this->_engine->delete($key);
- DebugTimer::stop('Cache.delete ' . $key);
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function deleteMany($data)
- {
- $this->_track('delete');
- DebugTimer::start('Cache.deleteMany');
- $result = $this->_engine->deleteMany($data);
- DebugTimer::stop('Cache.deleteMany');
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function clear($check)
- {
- $this->_track('delete');
- DebugTimer::start('Cache.clear');
- $result = $this->_engine->clear($check);
- DebugTimer::stop('Cache.clear');
-
- return $result;
- }
-
- /**
- * {@inheritDoc}
- */
- public function groups()
- {
- return $this->_engine->groups();
- }
-
- /**
- * Return the proxied configuration data.
- *
- * This method uses func_get_args() as not doing so confuses the
- * proxied class.
- *
- * @deprecated 3.6.0 use setConfig()/getConfig() instead.
- * @param string $key The key to set/read.
- * @param mixed $value The value to set.
- * @param bool $merge Whether or not configuration should be merged.
- * @return mixed
- */
- public function config($key = null, $value = null, $merge = true)
- {
- return call_user_func_array([$this->_engine, 'config'], func_get_args());
- }
-
- /**
- * Returns the config.
- *
- * @param string|null $key The key to get or null for the whole config.
- * @param mixed $default The return value when the key does not exist.
- * @return mixed Config value being read.
- */
- public function getConfig($key = null, $default = null)
- {
- return $this->_engine->getConfig($key, $default);
- }
-
- /**
- * Sets the config.
- *
- * @param string|array $key The key to set, or a complete array of configs.
- * @param mixed|null $value The value to set.
- * @param bool $merge Whether to recursively merge or overwrite existing config, defaults to true.
- * @return $this
- * @throws \Cake\Core\Exception\Exception When trying to set a key that is invalid.
- */
- public function setConfig($key, $value = null, $merge = true)
- {
- return $this->_engine->setConfig($key, $value, $merge);
- }
-
- /**
- * {@inheritDoc}
- */
- public function clearGroup($group)
- {
- $this->_track('delete');
- DebugTimer::start('Cache.clearGroup ' . $group);
- $result = $this->_engine->clearGroup($group);
- DebugTimer::stop('Cache.clearGroup ' . $group);
-
- return $result;
- }
-
- /**
- * Magic __toString() method to get the CacheEngine's name
- *
- * @return string Returns the CacheEngine's name
- */
- public function __toString()
- {
- if (!empty($this->_engine)) {
- list($ns, $class) = namespaceSplit(get_class($this->_engine));
-
- return str_replace('Engine', '', $class);
- }
-
- return $this->_config['className'];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/Component/ToolbarComponent.php b/vendor/cakephp/debug_kit/src/Controller/Component/ToolbarComponent.php
deleted file mode 100644
index 259066f..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/Component/ToolbarComponent.php
+++ /dev/null
@@ -1,45 +0,0 @@
- true, "routes" => true]);`', 'bootstrap.php');
- throw new \RuntimeException($msg);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/ComposerController.php b/vendor/cakephp/debug_kit/src/Controller/ComposerController.php
deleted file mode 100644
index 4817474..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/ComposerController.php
+++ /dev/null
@@ -1,107 +0,0 @@
-loadComponent('RequestHandler');
- $this->viewBuilder()->setClassName(JsonView::class);
- }
-
- /**
- * Check outdated composer dependencies
- *
- * @return void
- * @throws \RuntimeException
- */
- public function checkDependencies()
- {
- $this->request->allowMethod('post');
-
- $input = new ArrayInput([
- 'command' => 'outdated',
- '--no-interaction' => true,
- '--direct' => filter_var($this->request->getData('direct'), FILTER_VALIDATE_BOOLEAN),
- ]);
-
- $output = $this->executeComposerCommand($input);
- $dependencies = array_filter(explode("\n", $output->fetch()));
- $packages = [];
- foreach ($dependencies as $dependency) {
- if (strpos($dependency, 'php_network_getaddresses') !== false) {
- throw new \RuntimeException(__d('debug_kit', 'You have to be connected to the internet'));
- }
- if (strpos($dependency, '') !== false) {
- $packages['semverCompatible'][] = $dependency;
- continue;
- }
- $packages['bcBreaks'][] = $dependency;
- }
- if (!empty($packages['semverCompatible'])) {
- $packages['semverCompatible'] = trim(implode("\n", $packages['semverCompatible']));
- }
- if (!empty($packages['bcBreaks'])) {
- $packages['bcBreaks'] = trim(implode("\n", $packages['bcBreaks']));
- }
-
- $this->set([
- '_serialize' => ['packages'],
- 'packages' => $packages,
- ]);
- }
-
- /**
- * @param ArrayInput $input An array describing the command input
- * @return BufferedOutput Aa Console command buffered result
- */
- private function executeComposerCommand(ArrayInput $input)
- {
- $bin = implode(DIRECTORY_SEPARATOR, [ROOT, 'vendor', 'bin', 'composer']);
- putenv('COMPOSER_HOME=' . $bin);
- putenv('COMPOSER_CACHE_DIR=' . CACHE);
-
- $dir = getcwd();
- chdir(ROOT);
- $timeLimit = ini_get('max_execution_time');
- set_time_limit(300);
- $memoryLimit = ini_get('memory_limit');
- ini_set('memory_limit', '512M');
-
- $output = new BufferedOutput();
- $application = new Application();
- $application->setAutoExit(false);
- $application->run($input, $output);
-
- // Restore environment
- chdir($dir);
- set_time_limit($timeLimit);
- ini_set('memory_limit', $memoryLimit);
-
- return $output;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/DashboardController.php b/vendor/cakephp/debug_kit/src/Controller/DashboardController.php
deleted file mode 100644
index 079db5b..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/DashboardController.php
+++ /dev/null
@@ -1,68 +0,0 @@
-viewBuilder()->setLayout('dashboard');
- }
-
- /**
- * Dashboard.
- *
- * @return void
- * @throws \Cake\Network\Exception\NotFoundException
- */
- public function index()
- {
- $this->loadModel('DebugKit.Requests');
-
- $data = [
- 'driver' => get_class($this->Requests->getConnection()->getDriver()),
- 'rows' => $this->Requests->find()->count(),
- ];
-
- $this->set('connection', $data);
- }
-
- /**
- * Reset SQLite DB.
- *
- * @return \Cake\Http\Response
- */
- public function reset()
- {
- $this->request->allowMethod('post');
- $this->loadModel('DebugKit.Requests');
-
- $this->Requests->Panels->deleteAll('1=1');
- $this->Requests->deleteAll('1=1');
-
- return $this->redirect(['action' => 'index']);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/DebugKitController.php b/vendor/cakephp/debug_kit/src/Controller/DebugKitController.php
deleted file mode 100644
index fa70db7..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/DebugKitController.php
+++ /dev/null
@@ -1,54 +0,0 @@
-getRequest()->getAttribute('authorization');
- if ($authorizationService instanceof \Authorization\AuthorizationService) {
- if (Configure::read('DebugKit.ignoreAuthorization')) {
- $authorizationService->skipAuthorization();
- } else {
- Log::info(
- "Cake Authorization plugin is enabled. If you would like " .
- "to force DebugKit to ignore it, set `DebugKit.ignoreAuthorization` " .
- " Configure option to true."
- );
- }
- }
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/MailPreviewController.php b/vendor/cakephp/debug_kit/src/Controller/MailPreviewController.php
deleted file mode 100644
index 31b22dc..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/MailPreviewController.php
+++ /dev/null
@@ -1,265 +0,0 @@
-viewBuilder()->setLayout('DebugKit.mailer');
- }
-
- /**
- * Handles mail-preview/index
- *
- * @return void
- */
- public function index()
- {
- $this->set('mailPreviews', $this->getMailPreviews()->toArray());
- }
-
- /**
- * Handles the viewing of an already sent email that was logged in the Mail panel
- * for DebugKit
- *
- * @param string $panelId The Mail panel id where the email data is stored.
- * @param string $number The email number as stored in the logs.
- * @return \Psr\Http\Message\ResponseInterface|null.
- */
- public function sent($panelId, $number)
- {
- $this->loadModel('DebugKit.Panels');
- $panel = $this->Panels->get($panelId);
-
- // @codingStandardsIgnoreStart
- $content = @unserialize($panel->content);
- // @codingStandardsIgnoreEnd
-
- if (empty($content['emails'][$number])) {
- throw new NotFoundException(__d('debug_kit', 'No emails found in this request'));
- }
-
- $email = $content['emails'][$number];
- $email = new SentMailResult(array_filter($email['headers']), $email['message']);
-
- $partType = $this->request->getQuery('part');
- if ($partType) {
- return $this->respondWithPart($email, $partType);
- }
-
- $this->set('noHeader', true);
- $this->set('email', $email);
- $this->set('plugin', '');
- $this->set('part', $this->findPreferredPart($email, $this->request->getQuery('part')));
- $this->viewBuilder()->setTemplate('email');
- }
-
- /**
- * Handles mail-preview/email
- *
- * @param string $name The Mailer name
- * @param string $method The mailer preview method
- * @return \Psr\Http\Message\ResponseInterface|null
- */
- public function email($name, $method)
- {
- // Clear the plugin attribute from the request instance
- // Router is holding onto so that we can render mail previews
- // in a plugin less request context.
- Router::pushRequest($this->request->withParam('plugin', null));
-
- $plugin = $this->request->getQuery('plugin');
- $email = $this->findPreview($name, $method, $plugin);
- $partType = $this->request->getQuery('part');
-
- $this->viewBuilder()->setLayout(false);
-
- if ($partType) {
- return $this->respondWithPart($email, $partType);
- }
-
- $humanName = Inflector::humanize(Inflector::underscore($name) . "_$method");
- $this->set('title', $humanName);
- $this->set('email', $email);
- $this->set('plugin', $plugin);
- $this->set('part', $this->findPreferredPart($email, $this->request->getQuery('part')));
- }
-
- /**
- * Returns a response object with the requested part type for the
- * email or throws an exception, if no such part exists.
- *
- * @param \Debugkit\Mailer\AbstractResult $email the email to preview
- * @param string $partType The email part to retrieve
- * @return \Psr\Http\Message\ResponseInterface
- */
- protected function respondWithPart($email, $partType)
- {
- $part = $this->findPart($email, $partType);
-
- if ($part === false) {
- throw new NotFoundException(__d('debug_kit', "Email part ''{0}'' not found in email", $partType));
- }
-
- $response = $this->response->withType($partType);
- if ($part === 'text') {
- $part = '
' . $part . "
";
- }
- $response = $response->withStringBody($part);
-
- return $response;
- }
-
- /**
- * Retrieves an array of MailPreview objects
- *
- * @return \Cake\Core\CollectionInterface
- */
- protected function getMailPreviews()
- {
- return $this->getMailPreviewClasses()->groupBy('plugin');
- }
-
- /**
- * Returns an array of MailPreview class names for the app and plugins
- *
- * @return \Cake\Core\CollectionInterface
- */
- protected function getMailPreviewClasses()
- {
- $pluginPaths = collection(CorePlugin::loaded())
- ->reject(function ($plugin) {
- return $plugin === 'DebugKit';
- })
- ->map(function ($plugin) {
- return [App::path('Mailer/Preview', $plugin), "$plugin."];
- });
-
- $appPaths = [App::path('Mailer/Preview'), ''];
-
- return collection([$appPaths])
- ->append($pluginPaths)
- ->unfold(function ($pairs) {
- list($paths, $plugin) = $pairs;
- foreach ($paths as $path) {
- yield $plugin => $path;
- }
- })
- ->unfold(function ($path, $plugin) {
- foreach (glob($path . "*Preview.php") as $file) {
- $base = str_replace(".php", "", basename($file));
- $class = App::className($plugin . $base, 'Mailer/Preview');
- if ($class) {
- yield ['plugin' => trim($plugin, '.'), 'class' => new $class()];
- }
- }
- });
- }
-
- /**
- * Finds a specified email part
- *
- * @param \DebugKit\Mailer\AbstractResult $email The result of the email preview
- * @param string $partType The name of a part
- * @return null|string
- */
- protected function findPart(AbstractResult $email, $partType)
- {
- foreach ($email->getParts() as $part => $content) {
- if ($part === $partType) {
- return $content;
- }
- }
-
- return null;
- }
-
- /**
- * Finds a specified email part or the first part available
- *
- * @param \DebugKit\Mailer\AbstractResult $email The result of the email preview
- * @param string $partType The name of a part
- * @return null|string
- */
- protected function findPreferredPart(AbstractResult $email, $partType)
- {
- $parts = $email->getParts();
-
- if (empty($partType) && !empty($parts['html'])) {
- return 'html';
- }
-
- if (empty($partType)) {
- foreach ($email->getParts() as $part => $content) {
- return $part;
- }
- }
-
- return $this->findPart($email, $partType) ?: null;
- }
-
- /**
- * Returns a matching MailPreview object with name
- *
- * @param string $previewName The Mailer name
- * @param string $emailName The mailer preview method
- * @param string|null $plugin The plugin where the mailer preview should be found
- * @return \DebugKit\Mailer\PreviewResult The result of the email preview
- * @throws \Cake\Http\Exception\NotFoundException
- */
- protected function findPreview($previewName, $emailName, $plugin = null)
- {
- if ($plugin) {
- $plugin = "$plugin.";
- }
-
- $realClass = App::className($plugin . $previewName, "Mailer/Preview");
- if (!$realClass) {
- throw new NotFoundException("Mailer preview ${previewName} not found");
- }
- $mailPreview = new $realClass();
-
- $email = $mailPreview->find($emailName);
- if (!$email) {
- throw new NotFoundException(__d('debug_kit', "Mailer preview {0}::{1} not found", $previewName, $emailName));
- }
-
- return new PreviewResult($mailPreview->$email(), $email);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/PanelsController.php b/vendor/cakephp/debug_kit/src/Controller/PanelsController.php
deleted file mode 100644
index 4cbe1b3..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/PanelsController.php
+++ /dev/null
@@ -1,89 +0,0 @@
-viewBuilder()
- ->setHelpers([
- 'Form', 'Html', 'Number', 'Url', 'DebugKit.Toolbar',
- 'DebugKit.Credentials', 'DebugKit.SimpleGraph',
- ])
- ->setLayout('DebugKit.toolbar');
-
- if (!$this->request->is('json')) {
- $this->viewBuilder()->setClassName('DebugKit.Ajax');
- }
- }
-
- /**
- * Index method that lets you get requests by panelid.
- *
- * @param string $requestId Request id
- * @return void
- * @throws \Cake\Http\Exception\NotFoundException
- */
- public function index($requestId = null)
- {
- $query = $this->Panels->find('byRequest', ['requestId' => $requestId]);
- $panels = $query->toArray();
- if (empty($panels)) {
- throw new NotFoundException();
- }
- $this->set([
- '_serialize' => ['panels'],
- 'panels' => $panels,
- ]);
- }
-
- /**
- * View a panel's data.
- *
- * @param string $id The id.
- * @return void
- */
- public function view($id = null)
- {
- $this->Cookie->configKey('debugKit_sort', 'encryption', false);
- $this->set('sort', $this->Cookie->read('debugKit_sort'));
- $panel = $this->Panels->get($id);
-
- $this->set('panel', $panel);
- // @codingStandardsIgnoreStart
- $this->set(@unserialize($panel->content));
- // @codingStandardsIgnoreEnd
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/RequestsController.php b/vendor/cakephp/debug_kit/src/Controller/RequestsController.php
deleted file mode 100644
index df2d21f..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/RequestsController.php
+++ /dev/null
@@ -1,61 +0,0 @@
-response = $this->response->withHeader('Content-Security-Policy', '');
- }
-
- /**
- * Before render handler.
- *
- * @param \Cake\Event\Event $event The event.
- * @return void
- */
- public function beforeRender(Event $event)
- {
- $this->viewBuilder()
- ->setLayout('DebugKit.toolbar')
- ->setClassName('DebugKit.Ajax');
- }
-
- /**
- * View a request's data.
- *
- * @param string $id The id.
- * @return void
- */
- public function view($id = null)
- {
- $toolbar = $this->Requests->get($id, ['contain' => 'Panels']);
- $this->set('toolbar', $toolbar);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Controller/ToolbarController.php b/vendor/cakephp/debug_kit/src/Controller/ToolbarController.php
deleted file mode 100644
index aad2b1a..0000000
--- a/vendor/cakephp/debug_kit/src/Controller/ToolbarController.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request->allowMethod('post');
- if (!$this->request->getData('name')) {
- throw new NotFoundException(__d('debug_kit', 'Invalid cache engine name.'));
- }
- $result = Cache::clear(false, $this->request->getData('name'));
- $this->set([
- '_serialize' => ['success'],
- 'success' => $result,
- ]);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Database/Log/DebugLog.php b/vendor/cakephp/debug_kit/src/Database/Log/DebugLog.php
deleted file mode 100644
index 15fc9d8..0000000
--- a/vendor/cakephp/debug_kit/src/Database/Log/DebugLog.php
+++ /dev/null
@@ -1,200 +0,0 @@
-_logger = $logger;
- $this->_connectionName = $name;
- $this->_includeSchema = $includeSchema;
- }
-
- /**
- * Set the schema include flag.
- *
- * @param bool $value Set
- * @return $this
- */
- public function setIncludeSchema($value)
- {
- $this->_includeSchema = $value;
-
- return $this;
- }
-
- /**
- * Get the connection name.
- *
- * @return array
- */
- public function name()
- {
- return $this->_connectionName;
- }
-
- /**
- * Get the stored logs.
- *
- * @return array
- */
- public function queries()
- {
- return $this->_queries;
- }
-
- /**
- * Get the total time
- *
- * @return int
- */
- public function totalTime()
- {
- return $this->_totalTime;
- }
-
- /**
- * Get the total rows
- *
- * @return int
- */
- public function totalRows()
- {
- return $this->_totalRows;
- }
-
- /**
- * Log queries
- *
- * @param \Cake\Database\Log\LoggedQuery $query The query being logged.
- * @return void
- */
- public function log(LoggedQuery $query)
- {
- if ($this->_logger) {
- if ($this->_logger instanceof PsrAbstractLogger) {
- $this->_logger->log($query, $query->error);
- } else {
- $this->_logger->log($query);
- }
- }
-
- if ($this->_includeSchema === false && $this->isSchemaQuery($query)) {
- return;
- }
-
- if (!empty($query->params)) {
- $query->query = $this->_interpolate($query);
- }
- $this->_totalTime += $query->took;
- $this->_totalRows += $query->numRows;
-
- $this->_queries[] = [
- 'query' => $query->query,
- 'took' => $query->took,
- 'rows' => $query->numRows,
- ];
- }
-
- /**
- * Sniff SQL statements for things only found in schema reflection.
- *
- * @param \Cake\Database\Log\LoggedQuery $query The query to check.
- * @return bool
- */
- protected function isSchemaQuery(LoggedQuery $query)
- {
- $querystring = $query->query;
-
- return (
- // Multiple engines
- strpos($querystring, 'FROM information_schema') !== false ||
- // Postgres
- strpos($querystring, 'FROM pg_catalog') !== false ||
- // MySQL
- strpos($querystring, 'SHOW TABLE') === 0 ||
- strpos($querystring, 'SHOW FULL COLUMNS') === 0 ||
- strpos($querystring, 'SHOW INDEXES') === 0 ||
- // Sqlite
- strpos($querystring, 'FROM sqlite_master') !== false ||
- strpos($querystring, 'PRAGMA') === 0 ||
- // Sqlserver
- strpos($querystring, 'FROM INFORMATION_SCHEMA') !== false ||
- strpos($querystring, 'FROM sys.') !== false
- );
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/DebugInclude.php b/vendor/cakephp/debug_kit/src/DebugInclude.php
deleted file mode 100644
index 6096486..0000000
--- a/vendor/cakephp/debug_kit/src/DebugInclude.php
+++ /dev/null
@@ -1,195 +0,0 @@
-_pluginPaths[$plugin] = str_replace('/', DIRECTORY_SEPARATOR, CorePlugin::path($plugin));
- }
-
- $lockFile = new JsonFile(ROOT . DIRECTORY_SEPARATOR . 'composer.lock');
- if ($lockFile->exists()) {
- $lockContent = $lockFile->read();
-
- $vendorDir = ROOT . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR;
- $packages = array_merge($lockContent['packages'], $lockContent['packages-dev']);
-
- foreach ($packages as $package) {
- $this->_composerPaths[$package['name']] = $vendorDir . str_replace('/', DIRECTORY_SEPARATOR, $package['name']) . DIRECTORY_SEPARATOR;
- }
- }
- }
-
- /**
- * Get the possible include paths
- *
- * @return array
- */
- public function includePaths()
- {
- $paths = explode(PATH_SEPARATOR, get_include_path());
- $paths = array_filter($paths, function ($path) {
- if ($path === '.' || strlen($path) === 0) {
- return false;
- }
-
- return true;
- });
-
- return array_values($paths);
- }
-
- /**
- * Check if a path is part of CakePHP
- *
- * @param string $file File to check
- * @return bool
- */
- public function isCakeFile($file)
- {
- return strpos($file, CAKE) === 0;
- }
-
- /**
- * Check if a path is from APP but not a plugin
- *
- * @param string $file File to check
- * @return bool
- */
- public function isAppFile($file)
- {
- return strpos($file, APP) === 0;
- }
-
- /**
- * Detect plugin the file belongs to
- *
- * @param string $file File to check
- * @return string|bool plugin name, or false if not plugin
- */
- public function getPluginName($file)
- {
- foreach ($this->_pluginPaths as $plugin => $path) {
- if (strpos($file, $path) === 0) {
- return $plugin;
- }
- }
-
- return false;
- }
-
- /**
- * Detect Composer package the file belongs to
- *
- * @param string $file File to check
- * @return string|bool package name, or false if not Composer package
- */
- public function getComposerPackageName($file)
- {
- foreach ($this->_composerPaths as $package => $path) {
- if (strpos($file, $path) === 0) {
- return $package;
- }
- }
-
- return false;
- }
-
- /**
- * Replace the path with APP, CAKE, ROOT or the plugin name
- *
- * @param string $file File to check
- * @param string $type The file type
- * @param string|null $name plugin name or composer package
- * @return string Path with replaced prefix
- */
- public function niceFileName($file, $type, $name = null)
- {
- switch ($type) {
- case 'app':
- return str_replace(APP, 'APP' . DIRECTORY_SEPARATOR, $file);
-
- case 'cake':
- return str_replace(CAKE, 'CAKE' . DIRECTORY_SEPARATOR, $file);
-
- case 'root':
- return str_replace(ROOT, 'ROOT', $file);
-
- case 'plugin':
- return str_replace($this->_pluginPaths[$name], $name . DIRECTORY_SEPARATOR, $file);
-
- case 'vendor':
- return str_replace($this->_composerPaths[$name], '', $file);
- }
- }
-
- /**
- * Get the type of file (model, controller etc)
- *
- * @param string $file File to check.
- * @return string
- */
- public function getFileType($file)
- {
- foreach ($this->_fileTypes as $type) {
- if (stripos($file, DIRECTORY_SEPARATOR . $type . DIRECTORY_SEPARATOR) !== false) {
- return $type;
- }
- }
-
- return 'other';
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/DebugMemory.php b/vendor/cakephp/debug_kit/src/DebugMemory.php
deleted file mode 100644
index 36d4e5e..0000000
--- a/vendor/cakephp/debug_kit/src/DebugMemory.php
+++ /dev/null
@@ -1,105 +0,0 @@
-plugin) {
- return $this->plugin . '.' . Inflector::underscore($name);
- }
-
- return Inflector::underscore($name);
- }
-
- /**
- * Get the data a panel has collected.
- *
- * @return array
- */
- public function data()
- {
- return $this->_data;
- }
-
- /**
- * Get the summary data for a panel.
- *
- * This data is displayed in the toolbar even when the panel is collapsed.
- *
- * @return string
- */
- public function summary()
- {
- return '';
- }
-
- /**
- * Initialize hook method.
- *
- * @return void
- */
- public function initialize()
- {
- }
-
- /**
- * Shutdown callback
- *
- * @param \Cake\Event\Event $event The event.
- * @return void
- */
- public function shutdown(Event $event)
- {
- }
-
- /**
- * Get the events this panels supports.
- *
- * @return array
- */
- public function implementedEvents()
- {
- return [
- 'Controller.shutdown' => 'shutdown',
- ];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/DebugSql.php b/vendor/cakephp/debug_kit/src/DebugSql.php
deleted file mode 100644
index 3bd0b26..0000000
--- a/vendor/cakephp/debug_kit/src/DebugSql.php
+++ /dev/null
@@ -1,188 +0,0 @@
-
-%s
-
-%s
-
-
-HTML;
-
- /**
- * Template used for CLI and text output.
- *
- * @var string
- */
- private static $templateText = <<getValueBinder()->bindings())
- : static::interpolate($sql, $query->valueBinder()->bindings());
- }
-
- $trace = Debugger::trace(['start' => 1, 'depth' => $stackDepth + 2, 'format' => 'array']);
- $file = isset($trace[$stackDepth]) ? $trace[$stackDepth]['file'] : 'n/a';
- $line = isset($trace[$stackDepth]) ? $trace[$stackDepth]['line'] : 0;
- $lineInfo = '';
- if ($file) {
- $search = [];
- if (defined('ROOT')) {
- $search = [ROOT];
- }
- if (defined('CAKE_CORE_INCLUDE_PATH')) {
- array_unshift($search, CAKE_CORE_INCLUDE_PATH);
- }
- $file = str_replace($search, '', $file);
- }
-
- $template = static::$templateHtml;
- $sqlHighlight = true;
- if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') || $showHtml === false) {
- $template = static::$templateText;
- $sqlHighlight = false;
- if ($file && $line) {
- $lineInfo = sprintf('%s (line %s)', $file, $line);
- }
- }
- if ($showHtml === null && $template !== static::$templateText) {
- $showHtml = true;
- }
-
- $var = $showHtml ? SqlFormatter::format($sql, $sqlHighlight) : $sql;
- $var = str_replace(
- ':',
- ':',
- $var
- );
-
- if ($showHtml) {
- $template = static::$templateHtml;
- if ($file && $line) {
- $lineInfo = sprintf('%s (line %s)', $file, $line);
- }
- }
-
- printf($template, $lineInfo, $var);
-
- return $query;
- }
-
- /**
- * Prints out the SQL statements generated by a Query object and dies.
- *
- * Only runs if debug mode is enabled.
- * It will otherwise just continue code execution and ignore this function.
- *
- * @param Query $query Query to show SQL statements for.
- * @param bool $showValues Renders the SQL statement with bound variables.
- * @param bool|null $showHtml If set to true, the method prints the debug
- * data in a browser-friendly way.
- * @param int $stackDepth Provides a hint as to which file in the call stack to reference.
- * @return void
- */
- public static function sqld(Query $query, $showValues = true, $showHtml = null, $stackDepth = 1)
- {
- static::sql($query, $showValues, $showHtml, $stackDepth);
- die(1);
- }
-
- /**
- * Helper function used to replace query placeholders by the real
- * params used to execute the query.
- *
- * @param string $sql The SQL statement
- * @param array $bindings The Query bindings
- * @return string
- */
- private static function interpolate($sql, array $bindings)
- {
- $params = array_map(function ($binding) {
- $p = $binding['value'];
-
- if ($p === null) {
- return 'NULL';
- }
- if (is_bool($p)) {
- return $p ? '1' : '0';
- }
-
- if (is_string($p)) {
- $replacements = [
- '$' => '\\$',
- '\\' => '\\\\\\\\',
- "'" => "''",
- ];
-
- $p = strtr($p, $replacements);
-
- return "'$p'";
- }
-
- return $p;
- }, $bindings);
-
- $keys = [];
- $limit = is_int(key($params)) ? 1 : -1;
- foreach ($params as $key => $param) {
- $keys[] = is_string($key) ? "/$key\b/" : '/[?]/';
- }
-
- return preg_replace($keys, $params, $sql, $limit);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/DebugTimer.php b/vendor/cakephp/debug_kit/src/DebugTimer.php
deleted file mode 100644
index 673a09c..0000000
--- a/vendor/cakephp/debug_kit/src/DebugTimer.php
+++ /dev/null
@@ -1,216 +0,0 @@
- 1) {
- $message .= ' #' . $i;
- }
-
- self::$_timers[$name] = [
- 'start' => $start,
- 'message' => $message,
- 'named' => $named,
- ];
-
- return true;
- }
-
- /**
- * Stop a benchmarking timer.
- *
- * $name should be the same as the $name used in startTimer().
- *
- * @param string $name The name of the timer to end.
- * @return bool true if timer was ended, false if timer was not started.
- */
- public static function stop($name = null)
- {
- $end = microtime(true);
- if (!$name) {
- $names = array_reverse(array_keys(self::$_timers));
- foreach ($names as $name) {
- if (!empty(self::$_timers[$name]['end'])) {
- continue;
- }
- if (empty(self::$_timers[$name]['named'])) {
- break;
- }
- }
- } else {
- $i = 1;
- $_name = $name;
- while (isset(self::$_timers[$name])) {
- if (empty(self::$_timers[$name]['end'])) {
- break;
- }
- $i++;
- $name = $_name . ' #' . $i;
- }
- }
- if (!isset(self::$_timers[$name])) {
- return false;
- }
- self::$_timers[$name]['end'] = $end;
-
- return true;
- }
-
- /**
- * Get all timers that have been started and stopped.
- * Calculates elapsed time for each timer. If clear is true, will delete existing timers
- *
- * @param bool $clear false
- * @return array
- */
- public static function getAll($clear = false)
- {
- $start = self::requestStartTime();
- $now = microtime(true);
-
- $times = [];
- if (!empty(self::$_timers)) {
- $firstTimer = reset(self::$_timers);
- $_end = $firstTimer['start'];
- } else {
- $_end = $now;
- }
- $times['Core Processing (Derived from $_SERVER["REQUEST_TIME"])'] = [
- 'message' => __d('debug_kit', 'Core Processing (Derived from $_SERVER["REQUEST_TIME"])'),
- 'start' => 0,
- 'end' => $_end - $start,
- 'time' => round($_end - $start, 6),
- 'named' => null,
- ];
- foreach (self::$_timers as $name => $timer) {
- if (!isset($timer['end'])) {
- $timer['end'] = $now;
- }
- $times[$name] = array_merge($timer, [
- 'start' => $timer['start'] - $start,
- 'end' => $timer['end'] - $start,
- 'time' => self::elapsedTime($name),
- ]);
- }
- if ($clear) {
- self::$_timers = [];
- }
-
- return $times;
- }
-
- /**
- * Clear all existing timers
- *
- * @return bool true
- */
- public static function clear()
- {
- self::$_timers = [];
-
- return true;
- }
-
- /**
- * Get the difference in time between the timer start and timer end.
- *
- * @param string $name the name of the timer you want elapsed time for.
- * @param int $precision the number of decimal places to return, defaults to 5.
- * @return float number of seconds elapsed for timer name, 0 on missing key
- */
- public static function elapsedTime($name = 'default', $precision = 5)
- {
- if (!isset(self::$_timers[$name]['start']) || !isset(self::$_timers[$name]['end'])) {
- return 0;
- }
-
- return round(self::$_timers[$name]['end'] - self::$_timers[$name]['start'], $precision);
- }
-
- /**
- * Get the total execution time until this point
- *
- * @return float elapsed time in seconds since script start.
- */
- public static function requestTime()
- {
- $start = self::requestStartTime();
- $now = microtime(true);
-
- return ($now - $start);
- }
-
- /**
- * get the time the current request started.
- *
- * @return float time of request start
- */
- public static function requestStartTime()
- {
- if (defined('TIME_START')) {
- $startTime = TIME_START;
- } elseif (isset($GLOBALS['TIME_START'])) {
- $startTime = $GLOBALS['TIME_START'];
- } else {
- $startTime = env('REQUEST_TIME');
- }
-
- return $startTime;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Locale/debug_kit.pot b/vendor/cakephp/debug_kit/src/Locale/debug_kit.pot
deleted file mode 100644
index df4988d..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/debug_kit.pot
+++ /dev/null
@@ -1,138 +0,0 @@
-# LANGUAGE translation of Debug Kit Application
-# Copyright 2008 Andy Dawson
-# No version information was available in the source files.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: debug_kit-\n"
-"POT-Creation-Date: 2009-05-27 09:47+0200\n"
-"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
-"Last-Translator: Andy Dawson \n"
-"Language-Team:\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Basepath: ../../../\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr ""
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr ""
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr ""
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr ""
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr ""
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr ""
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr ""
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28
-#: views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr ""
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr ""
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr ""
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr ""
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr ""
-
diff --git a/vendor/cakephp/debug_kit/src/Locale/eng/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/eng/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index 9aec832..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/eng/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,135 +0,0 @@
-# LANGUAGE translation of CakePHP Application
-# Copyright YEAR NAME
-# No version information was available in the source files.
-#
-#, fuzzy
-msgid ""
-msgstr "Project-Id-Version: PROJECT VERSION\n"
- "POT-Creation-Date: 2009-05-27 09:47+0200\n"
- "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
- "Last-Translator: NAME \n"
- "Language-Team: LANGUAGE \n"
- "MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=UTF-8\n"
- "Content-Transfer-Encoding: 8bit\n"
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr ""
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr ""
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr ""
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr ""
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr ""
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr ""
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr ""
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28 views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr ""
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr ""
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr ""
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr ""
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr ""
diff --git a/vendor/cakephp/debug_kit/src/Locale/fra/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/fra/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index 515574d..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/fra/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,135 +0,0 @@
-# LANGUAGE translation of CakePHP Application
-# Copyright YEAR NAME
-# No version information was available in the source files.
-#
-#, fuzzy
-msgid ""
-msgstr "Project-Id-Version: PROJECT VERSION\n"
- "POT-Creation-Date: 2013-06-04 12:00+0200\n"
- "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
- "Last-Translator: cake17 \n"
- "Language-Team: \n"
- "MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=UTF-8\n"
- "Content-Transfer-Encoding: 8bit\n"
- "Plural-Forms: nplurals=2; plural=n>1;\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr "Initialisation du component et démarrage"
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr "Action du Controller"
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr "Rendu de l'Action du Controller"
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr "Ne peut charger le panel %s de DebugToolbar"
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr "Il n'y a pas de panels actifs. Vous devez activer le panel pour voir sa sortie."
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr "Historique des Requêtes"
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr "Pas de demandes antérieures enregistrées."
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr "Des requêtes antérieures sont disponibles"
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr "Restaure la requête actuelle"
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr "Logs"
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr "Date"
-
-#: views/elements/log_panel.ctp:28 views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr "Message"
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr "Il n'y avait pas d'entrées de log faîtes pour cette requête"
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr "Requête"
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr "Route actuelle"
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr "Session"
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr "Logs Sql"
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr "bascule (%s) requêtes expliquées pour %s"
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr "Pas de requêtes lentes!, ou votre base de données ne supporte pas EXPLAIN"
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr "Pas de connections actives de la base de données"
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr "Mémoire"
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr "Utilisation de la Mémoire Actuelle"
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr "Utilisation de la Mémoire au niveau maximum"
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr "Timers"
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr "%s (ms)"
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr "Total du Temps de Requête"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr "Temps en ms"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr "Graph"
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr "Variables du View"
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr "Début en %sms de la requête, et prend %sms"
diff --git a/vendor/cakephp/debug_kit/src/Locale/lim/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/lim/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index bf3894a..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/lim/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,136 +0,0 @@
-# LANGUAGE translation of Debug Kit Application
-# Copyright 2008 Andy Dawson
-# No version information was available in the source files.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: debug_kit-\n"
-"POT-Creation-Date: 2009-05-27 09:47+0200\n"
-"PO-Revision-Date: 2009-05-27 09:47+0200\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team:none\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Basepath: ../../../\n"
-"Language: lim\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr ""
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr ""
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr ""
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr ""
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr ""
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr ""
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr ""
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28 views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr ""
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr ""
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr ""
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr ""
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr ""
diff --git a/vendor/cakephp/debug_kit/src/Locale/nld/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/nld/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index b6b754f..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/nld/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,141 +0,0 @@
-# LANGUAGE translation of Debug Kit Application
-# Copyright 2008 Andy Dawson
-# No version information was available in the source files.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: debug_kit-\n"
-"POT-Creation-Date: 2009-05-27 09:47+0200\n"
-"PO-Revision-Date: 2014-07-17 17:04+0200\n"
-"Last-Translator: Marlin Cremers \n"
-"Language-Team: \n"
-"Language: nld\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 1.9\n"
-"X-Poedit-Basepath: ../../../\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr "Component initializatie en opstarten"
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr "Controller Actie"
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr "Produceer Controller Actie"
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr "Kon DebugToolbar paneel %s niet laden"
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr ""
-"Er zijn geen actieve panelen. Je moet een paneel aanzetten om de uitvoer te "
-"zien."
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr "Aanvraag Geschiedenis"
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr "Geen vorige aanvragen gelogged."
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr "vorige aanvraag beschikbaar"
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr "Herstel naar actuele aanvraag"
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr "Logs"
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr "Tijd"
-
-#: views/elements/log_panel.ctp:28
-#: views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr "Bericht"
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr "Er zijn geen log vermeldingen gemaakt in deze aanvraag"
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr "Aanvraag"
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr "Huide Route"
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr "Sessie"
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr "Sql Logs"
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr "schakel (%s) aanvraag uitleg voor %s"
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr "Geen langzame vragen!, of je database ondersteund geen EXPLAIN"
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr "Geen actieve database verbindingen"
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr "Geheugen"
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr "Actueel Geheugen Gebruik"
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr "Hoogste Geheugen Gebruik"
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr "Timers"
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr "%s (ms)"
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr "Totale Aanvraag Tijd:"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr "Tijd in ms"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr "Diagram"
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr "View Variabelen"
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr "Starten %sms in de aanvraag, neemt %sms"
diff --git a/vendor/cakephp/debug_kit/src/Locale/pt_BR/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/pt_BR/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index e1e4c45..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/pt_BR/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,135 +0,0 @@
-# LANGUAGE translation of CakePHP Application
-# Copyright YEAR NAME
-# No version information was available in the source files.
-#
-#, fuzzy
-msgid ""
-msgstr "Project-Id-Version: PROJECT VERSION\n"
- "POT-Creation-Date: 2014-01-23 08:29+0200\n"
- "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
- "Last-Translator: Lincoln Brito \n"
- "Language-Team: LANGUAGE \n"
- "MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=UTF-8\n"
- "Content-Transfer-Encoding: 8bit\n"
- "Plural-Forms: nplurals=2; plural=n>1;\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr "Inicialização de componente"
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr "Action do Controller"
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr "Renderizar Action do Controller"
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr "Não foi possível carregar o painel %s do DebugToolbar"
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr "Não existem painéis ativos. Você deve habilitar um painel para visualizar sua saída."
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr "Histórico de requisições"
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr "Sem requisições anteriores logadas."
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr "requisições anteriores disponíveis"
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr "Restaurar para requisição atual"
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr "Logs"
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr "Tempo"
-
-#: views/elements/log_panel.ctp:28 views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr "Mensagem"
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr "Não houveram entradas no log para essa requisição "
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr "Requisição"
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr "Rota Atual"
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr "Sessão"
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr "Logs Sql"
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr "alternar (%s) query explains por %s"
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr "Sem consultas lentas!, ou o seu banco de dados não suporta EXPLAIN"
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr "Sem conexões ativas de banco de dados"
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr "Memória"
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr "Uso atual de memória"
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr "Pico de uso de memória"
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr "Tempos"
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr "%s (ms)"
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr "Tempo Total de Requisição"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr "Tempo em ms"
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr "Gráfico"
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr "Visualizar Variáveis"
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr "Começando %sms na requisição, levando %sms"
diff --git a/vendor/cakephp/debug_kit/src/Locale/spa/LC_MESSAGES/debug_kit.po b/vendor/cakephp/debug_kit/src/Locale/spa/LC_MESSAGES/debug_kit.po
deleted file mode 100644
index 0833a49..0000000
--- a/vendor/cakephp/debug_kit/src/Locale/spa/LC_MESSAGES/debug_kit.po
+++ /dev/null
@@ -1,135 +0,0 @@
-# LANGUAGE translation of CakePHP Application
-# Copyright YEAR NAME
-# No version information was available in the source files.
-#
-#, fuzzy
-msgid ""
-msgstr "Project-Id-Version: PROJECT VERSION\n"
- "POT-Creation-Date: 2009-05-27 09:47+0200\n"
- "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
- "Last-Translator: NAME \n"
- "Language-Team: LANGUAGE \n"
- "MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=UTF-8\n"
- "Content-Transfer-Encoding: 8bit\n"
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: controllers/components/toolbar.php:91
-msgid "Component initialization and startup"
-msgstr ""
-
-#: controllers/components/toolbar.php:140
-msgid "Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:167
-msgid "Render Controller Action"
-msgstr ""
-
-#: controllers/components/toolbar.php:231
-msgid "Could not load DebugToolbar panel %s"
-msgstr ""
-
-#: views/elements/debug_toolbar.ctp:25
-msgid "There are no active panels. You must enable a panel to see its output."
-msgstr ""
-
-#: views/elements/history_panel.ctp:21
-msgid "Request History"
-msgstr ""
-
-#: views/elements/history_panel.ctp:23
-msgid "No previous requests logged."
-msgstr ""
-
-#: views/elements/history_panel.ctp:25
-msgid "previous requests available"
-msgstr ""
-
-#: views/elements/history_panel.ctp:27
-msgid "Restore to current request"
-msgstr ""
-
-#: views/elements/log_panel.ctp:21
-msgid "Logs"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28
-msgid "Time"
-msgstr ""
-
-#: views/elements/log_panel.ctp:28 views/elements/timer_panel.ctp:54
-msgid "Message"
-msgstr ""
-
-#: views/elements/log_panel.ctp:37
-msgid "There were no log entries made this request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:21
-msgid "Request"
-msgstr ""
-
-#: views/elements/request_panel.ctp:35
-msgid "Current Route"
-msgstr ""
-
-#: views/elements/session_panel.ctp:21
-msgid "Session"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:21
-msgid "Sql Logs"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:31
-msgid "toggle (%s) query explains for %s"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:39
-msgid "No slow queries!, or your database does not support EXPLAIN"
-msgstr ""
-
-#: views/elements/sql_log_panel.ctp:44
-msgid "No active database connections"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:33
-msgid "Memory"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:35
-msgid "Current Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:39
-msgid "Peak Memory Use"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:43
-msgid "Timers"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:45
-msgid "%s (ms)"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:46
-msgid "Total Request Time:"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Time in ms"
-msgstr ""
-
-#: views/elements/timer_panel.ctp:54
-msgid "Graph"
-msgstr ""
-
-#: views/elements/variables_panel.ctp:21
-msgid "View Variables"
-msgstr ""
-
-#: views/helpers/simple_graph.php:79
-msgid "Starting %sms into the request, taking %sms"
-msgstr ""
\ No newline at end of file
diff --git a/vendor/cakephp/debug_kit/src/Log/Engine/DebugKitLog.php b/vendor/cakephp/debug_kit/src/Log/Engine/DebugKitLog.php
deleted file mode 100644
index fc96681..0000000
--- a/vendor/cakephp/debug_kit/src/Log/Engine/DebugKitLog.php
+++ /dev/null
@@ -1,78 +0,0 @@
-_logs[$type])) {
- $this->_logs[$type] = [];
- }
- $this->_logs[$type][] = [date('Y-m-d H:i:s'), $this->_format($message)];
- }
-
- /**
- * Get the logs.
- *
- * @return array
- */
- public function all()
- {
- return $this->_logs;
- }
-
- /**
- * Get the number of log entries.
- *
- * @return int
- */
- public function count()
- {
- return array_reduce($this->_logs, function ($sum, $v) {
- return $sum + count($v);
- }, 0);
- }
-
- /**
- * Check if there are no logs.
- *
- * @return bool
- */
- public function noLogs()
- {
- return empty($this->_logs);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Mailer/AbstractResult.php b/vendor/cakephp/debug_kit/src/Mailer/AbstractResult.php
deleted file mode 100644
index 4c4e443..0000000
--- a/vendor/cakephp/debug_kit/src/Mailer/AbstractResult.php
+++ /dev/null
@@ -1,54 +0,0 @@
-headers;
- }
-
- /**
- * Returns the rendered parts in th email
- *
- * @return array
- */
- public function getParts()
- {
- return $this->parts;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Mailer/MailPreview.php b/vendor/cakephp/debug_kit/src/Mailer/MailPreview.php
deleted file mode 100644
index c720876..0000000
--- a/vendor/cakephp/debug_kit/src/Mailer/MailPreview.php
+++ /dev/null
@@ -1,102 +0,0 @@
-validEmail($email)) {
- return $email;
- }
-
- return null;
- }
-
- /**
- * Returns a list of valid emails
- *
- * @return array
- */
- public function getEmails()
- {
- $emails = [];
- foreach (get_class_methods($this) as $methodName) {
- if (!$this->validEmail($methodName)) {
- continue;
- }
-
- $emails[] = $methodName;
- }
-
- return $emails;
- }
-
- /**
- * Returns the name of this preview
- *
- * @return string
- */
- public function name()
- {
- $classname = get_class($this);
- $pos = strrpos($classname, '\\');
-
- return substr($classname, $pos + 1);
- }
-
- /**
- * Returns whether or not a specified email is valid
- * for this MailPreview instance
- *
- * @param string $email Name of email
- * @return bool
- */
- protected function validEmail($email)
- {
- if (empty($email)) {
- return false;
- }
-
- $baseClass = new ReflectionClass(get_class());
- if ($baseClass->hasMethod($email)) {
- return false;
- }
-
- try {
- $method = new ReflectionMethod($this, $email);
- } catch (ReflectionException $e) {
- return false;
- }
-
- return $method->isPublic();
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Mailer/PreviewResult.php b/vendor/cakephp/debug_kit/src/Mailer/PreviewResult.php
deleted file mode 100644
index 5866c35..0000000
--- a/vendor/cakephp/debug_kit/src/Mailer/PreviewResult.php
+++ /dev/null
@@ -1,63 +0,0 @@
-processMailer(clone $mailer, $method);
- $mailer->reset();
- }
-
- /**
- * Executes the mailer and extracts the relevant information from the generated email
- *
- * @param Mailer $mailer The mailer instance to execute and extract the email data from
- * @param string $method The method to execute in the mailer
- * @return void
- */
- protected function processMailer(Mailer $mailer, $method)
- {
- $reflection = new ReflectionClass($mailer);
- $prop = $reflection->getProperty('_email');
- $prop->setAccessible(true);
- $email = $prop->getValue($mailer);
-
- if (!$email->viewBuilder()->getTemplate()) {
- $email->viewBuilder()->setTemplate($method);
- }
-
- $render = (new ReflectionClass($email))
- ->getMethod('_renderTemplates')
- ->getClosure($email);
-
- $this->parts = $render('');
-
- $extra = ['from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'subject'];
- $this->headers = array_filter($email->getHeaders($extra));
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Mailer/SentMailResult.php b/vendor/cakephp/debug_kit/src/Mailer/SentMailResult.php
deleted file mode 100644
index 60f3fc5..0000000
--- a/vendor/cakephp/debug_kit/src/Mailer/SentMailResult.php
+++ /dev/null
@@ -1,36 +0,0 @@
-headers = $headers;
- $this->parts = $parts;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Mailer/Transport/DebugKitTransport.php b/vendor/cakephp/debug_kit/src/Mailer/Transport/DebugKitTransport.php
deleted file mode 100644
index 5e84e24..0000000
--- a/vendor/cakephp/debug_kit/src/Mailer/Transport/DebugKitTransport.php
+++ /dev/null
@@ -1,141 +0,0 @@
-emailLog = $config['debugKitLog'];
-
- if ($originalTransport !== null) {
- $this->originalTransport = $originalTransport;
-
- return;
- }
-
- $className = false;
- if (!empty($config['originalClassName'])) {
- $className = App::className(
- $config['originalClassName'],
- 'Mailer/Transport',
- 'Transport'
- );
- }
-
- if ($className) {
- unset($config['originalClassName'], $config['debugKitLog']);
- $this->originalTransport = new $className($config);
- }
- }
-
- /**
- * Send mail
- *
- * @param \Cake\Mailer\Email $email Cake Email
- * @return array
- */
- public function send(Email $email)
- {
- $headers = $email->getHeaders(['from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc']);
- $parts = [
- 'text' => $email->message(Email::MESSAGE_TEXT),
- 'html' => $email->message(Email::MESSAGE_HTML),
- ];
-
- $headers['Subject'] = $email->getOriginalSubject();
- $result = ['headers' => $headers, 'message' => $parts];
- $this->emailLog[] = $result;
-
- if ($this->originalTransport !== null) {
- return $this->originalTransport->send($email);
- }
-
- return $result;
- }
-
- /**
- * Proxy unknown methods to the wrapped object
- *
- * @param string $method The method to call
- * @param array $args The args to call $method with.
- * @return mixed
- */
- public function __call($method, array $args)
- {
- return call_user_func_array([$this->originalTransport, $method], $args);
- }
-
- /**
- * Proxy property reads to the wrapped object
- *
- * @param string $name The property to read.
- * @return mixed
- */
- public function __get($name)
- {
- return $this->originalTransport->{$name};
- }
-
- /**
- * Proxy property changes to the wrapped object
- *
- * @param string $name The property to read.
- * @param mixed $value The property value.
- * @return mixed
- */
- public function __set($name, $value)
- {
- return $this->originalTransport->{$name} = $value;
- }
-
- /**
- * Proxy property changes to the wrapped object
- *
- * @param string $name The property to read.
- * @return bool
- */
- public function __isset($name)
- {
- return isset($this->originalTransport->{$name});
- }
-
- /**
- * Proxy property changes to the wrapped object
- *
- * @param string $name The property to delete.
- * @return void
- */
- public function __unset($name)
- {
- unset($this->originalTransport->{$name});
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php b/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
deleted file mode 100644
index 99f7f55..0000000
--- a/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
+++ /dev/null
@@ -1,61 +0,0 @@
-service = $service;
- }
-
- /**
- * Invoke the middleware.
- *
- * DebugKit will augment the response and add the toolbar if possible.
- *
- * @param \Psr\Http\Message\ServerRequestInterface $request The request.
- * @param \Psr\Http\Message\ResponseInterface $response The response.
- * @param callable $next Callback to invoke the next middleware.
- * @return \Psr\Http\Message\ResponseInterface A response
- */
- public function __invoke($request, $response, $next)
- {
- $this->service->loadPanels();
- $this->service->initializePanels();
- $response = $next($request, $response);
- $row = $this->service->saveData($request, $response);
- if (!$row) {
- return $response;
- }
-
- return $this->service->injectScripts($row, $response);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Model/Behavior/TimedBehavior.php b/vendor/cakephp/debug_kit/src/Model/Behavior/TimedBehavior.php
deleted file mode 100644
index ec4bfac..0000000
--- a/vendor/cakephp/debug_kit/src/Model/Behavior/TimedBehavior.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getSubject()->getAlias();
- DebugTimer::start($alias . '_find', $alias . '->find()');
-
- return $query->formatResults(function ($results) use ($alias) {
- DebugTimer::stop($alias . '_find');
-
- return $results;
- });
- }
-
- /**
- * beforeSave, starts a time before a save is initiated.
- *
- * @param \Cake\Event\Event $event The beforeSave event
- * @return void
- */
- public function beforeSave(Event $event)
- {
- $alias = $event->getSubject()->getAlias();
- DebugTimer::start($alias . '_save', $alias . '->save()');
- }
-
- /**
- * afterSave, stop the timer started from a save.
- *
- * @param \Cake\Event\Event $event The afterSave event
- * @return void
- */
- public function afterSave(Event $event)
- {
- $alias = $event->getSubject()->getAlias();
- DebugTimer::stop($alias . '_save');
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Model/Entity/Panel.php b/vendor/cakephp/debug_kit/src/Model/Entity/Panel.php
deleted file mode 100644
index 5e92c3a..0000000
--- a/vendor/cakephp/debug_kit/src/Model/Entity/Panel.php
+++ /dev/null
@@ -1,52 +0,0 @@
-getConnection();
- $schema = $connection->getSchemaCollection();
-
- try {
- $existing = $schema->listTables();
- } catch (PDOException $e) {
- // Handle errors when SQLite blows up if the schema has changed.
- if (strpos($e->getMessage(), 'schema has changed') !== false) {
- $existing = $schema->listTables();
- } else {
- throw $e;
- }
- }
-
- try {
- foreach ($fixtures as $name) {
- $class = App::className($name, 'Test/Fixture', 'Fixture');
- if ($class === false) {
- throw new \RuntimeException("Unknown fixture '$name'.");
- }
- /** @var \Cake\Datasource\FixtureInterface $fixture */
- $fixture = new $class($connection->configName());
- if (in_array($fixture->table, $existing)) {
- continue;
- }
- $fixture->create($connection);
- }
- } catch (PDOException $e) {
- if (strpos($e->getMessage(), 'unable to open')) {
- throw new RuntimeException(
- 'Could not create a SQLite database. ' .
- 'Ensure that your webserver has write access to the database file and folder it is in.'
- );
- }
- throw $e;
- }
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Model/Table/PanelsTable.php b/vendor/cakephp/debug_kit/src/Model/Table/PanelsTable.php
deleted file mode 100644
index 11b36bf..0000000
--- a/vendor/cakephp/debug_kit/src/Model/Table/PanelsTable.php
+++ /dev/null
@@ -1,74 +0,0 @@
-belongsTo('DebugKit.Requests');
- $this->ensureTables(['DebugKit.Requests', 'DebugKit.Panels']);
- }
-
- /**
- * Find panels by requestid
- *
- * @param \Cake\ORM\Query $query The query
- * @param array $options The options to use.
- * @return \Cake\ORM\Query The query.
- * @throws \RuntimeException
- */
- public function findByRequest(Query $query, array $options)
- {
- if (empty($options['requestId'])) {
- throw new \RuntimeException(__d('debug_kit', 'Missing request id in {0}.', 'findByRequest()'));
- }
-
- return $query->where(['Panels.request_id' => $options['requestId']])
- ->order(['Panels.title' => 'ASC']);
- }
-
- /**
- * DebugKit tables are special.
- *
- * @return string
- */
- public static function defaultConnectionName()
- {
- return 'debug_kit';
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Model/Table/RequestsTable.php b/vendor/cakephp/debug_kit/src/Model/Table/RequestsTable.php
deleted file mode 100644
index 5557774..0000000
--- a/vendor/cakephp/debug_kit/src/Model/Table/RequestsTable.php
+++ /dev/null
@@ -1,128 +0,0 @@
-hasMany('DebugKit.Panels', [
- 'sort' => ['Panels.title' => 'ASC'],
- ]);
- $this->addBehavior('Timestamp', [
- 'events' => [
- 'Model.beforeSave' => ['requested_at' => 'new'],
- ],
- ]);
- $this->ensureTables(['DebugKit.Requests', 'DebugKit.Panels']);
- }
-
- /**
- * DebugKit tables are special.
- *
- * @return string
- */
- public static function defaultConnectionName()
- {
- return 'debug_kit';
- }
-
- /**
- * Finder method to get recent requests as a simple array
- *
- * @param \Cake\ORM\Query $query The query
- * @param array $options The options
- * @return Query The query.
- */
- public function findRecent(Query $query, array $options)
- {
- return $query->order(['Requests.requested_at' => 'DESC'])
- ->limit(10);
- }
-
- /**
- * Check if garbage collection should be run
- *
- * @return bool
- */
- protected function shouldGc()
- {
- return time() % 100 === 0;
- }
-
- /**
- * Garbage collect old request data.
- *
- * Delete request data that is older than latest 20 requests.
- * You can use the `DebugKit.requestCount` config to change this limit.
- * This method will only trigger periodically.
- *
- * @return void
- */
- public function gc()
- {
- if (!$this->shouldGc()) {
- return;
- }
- $noPurge = $this->find()
- ->select(['id'])
- ->enableHydration(false)
- ->order(['requested_at' => 'desc'])
- ->limit(Configure::read('DebugKit.requestCount') ?: 20)
- ->extract('id')
- ->toArray();
-
- $query = $this->Panels->query()
- ->delete()
- ->where(['request_id NOT IN' => $noPurge]);
- $statement = $query->execute();
- $statement->closeCursor();
-
- $query = $this->query()
- ->delete()
- ->where(['id NOT IN' => $noPurge]);
-
- $statement = $query->execute();
- $statement->closeCursor();
-
- $conn = $this->getConnection();
- if ($conn->getDriver() instanceof Sqlite) {
- $conn->execute('VACUUM;');
- }
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/CachePanel.php b/vendor/cakephp/debug_kit/src/Panel/CachePanel.php
deleted file mode 100644
index ad4248a..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/CachePanel.php
+++ /dev/null
@@ -1,71 +0,0 @@
-_instances[$name] = $instance;
- }
- }
- }
-
- /**
- * Get the data for this panel
- *
- * @return array
- */
- public function data()
- {
- $metrics = [];
- foreach ($this->_instances as $name => $instance) {
- $metrics[$name] = $instance->metrics();
- }
-
- return [
- 'metrics' => $metrics,
- ];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/DeprecationsPanel.php b/vendor/cakephp/debug_kit/src/Panel/DeprecationsPanel.php
deleted file mode 100644
index 8edf3ee..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/DeprecationsPanel.php
+++ /dev/null
@@ -1,170 +0,0 @@
-_debug = new DebugInclude();
- }
-
- /**
- * Get a list of files that were deprecated and split them out into the various parts of the app
- *
- * @return array
- */
- protected function _prepare()
- {
- $errors = static::$deprecatedErrors;
- $return = ['cake' => [], 'app' => [], 'plugins' => [], 'vendor' => [], 'other' => []];
-
- foreach ($errors as $error) {
- $file = $error['file'];
- $line = $error['line'];
- if (isset($error['context']['frame'])) {
- $file = $error['context']['frame']['file'];
- $line = $error['context']['frame']['line'];
- }
-
- $errorData = [
- 'file' => $file,
- 'line' => $line,
- 'message' => $error['message'],
- ];
-
- $pluginName = $this->_debug->getPluginName($file);
- if ($pluginName) {
- $errorData['niceFile'] = $this->_debug->niceFileName($file, 'plugin', $pluginName);
- $return['plugins'][$pluginName][] = $errorData;
- } elseif ($this->_debug->isAppFile($file)) {
- $errorData['niceFile'] = $this->_debug->niceFileName($file, 'app');
- $return['app'][] = $errorData;
- } elseif ($this->_debug->isCakeFile($file)) {
- $errorData['niceFile'] = $this->_debug->niceFileName($file, 'cake');
- $return['cake'][] = $errorData;
- } else {
- $vendorName = $this->_debug->getComposerPackageName($file);
-
- if ($vendorName) {
- $errorData['niceFile'] = $this->_debug->niceFileName($file, 'vendor', $vendorName);
- $return['vendor'][$vendorName][] = $errorData;
- } else {
- $errorData['niceFile'] = $this->_debug->niceFileName($file, 'root');
- $return['other'][] = $errorData;
- }
- }
- }
-
- ksort($return['app']);
- ksort($return['cake']);
- ksort($return['plugins']);
- ksort($return['vendor']);
-
- foreach ($return['plugins'] as &$plugin) {
- ksort($plugin);
- }
-
- return $return;
- }
-
- /**
- * Add a error
- *
- * @param array $error The deprecated error
- * @return void
- */
- public static function addDeprecatedError($error)
- {
- static::$deprecatedErrors[] = $error;
- }
-
- /**
- * Reset the tracked errors.
- *
- * @return void
- */
- public static function clearDeprecatedErrors()
- {
- static::$deprecatedErrors = [];
- }
-
- /**
- * Get the number of files deprecated in this request.
- *
- * @return string
- */
- public function summary()
- {
- $data = $this->_data;
- if (empty($data)) {
- $data = $this->_prepare();
- }
-
- return array_reduce($data, function ($carry, $item) {
- if (empty($item)) {
- return $carry;
- }
- // app, cake, or other groups
- if (Hash::dimensions($item) == 2) {
- return $carry + count($item);
- }
-
- // plugin and vendor groups
- foreach ($item as $group) {
- $carry += count($group);
- }
-
- return $carry;
- }, 0);
- }
-
- /**
- * Shutdown callback
- *
- * @param \Cake\Event\Event $event Event
- * @return void
- */
- public function shutdown(Event $event)
- {
- $this->_data = $this->_prepare();
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/EnvironmentPanel.php b/vendor/cakephp/debug_kit/src/Panel/EnvironmentPanel.php
deleted file mode 100644
index 3765d76..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/EnvironmentPanel.php
+++ /dev/null
@@ -1,97 +0,0 @@
- $phpVer],
- $_SERVER
- );
- unset($return['php']['argv']);
-
- // ini Data
- $return['ini'] = [
- 'intl.default_locale' => ini_get('intl.default_locale'),
- 'memory_limit' => ini_get('memory_limit'),
- 'error_reporting' => ini_get('error_reporting'),
- 'upload_max_filesize' => ini_get('upload_max_filesize'),
- 'post_max_size' => ini_get('post_max_size'),
- ];
-
- // CakePHP Data
- $return['cake'] = [
- 'APP' => APP,
- 'APP_DIR' => APP_DIR,
- 'CACHE' => CACHE,
- 'CAKE' => CAKE,
- 'CAKE_CORE_INCLUDE_PATH' => CAKE_CORE_INCLUDE_PATH,
- 'CONFIG' => CONFIG,
- 'CORE_PATH' => CORE_PATH,
- 'CAKE_VERSION' => Configure::version(),
- 'DS' => DS,
- 'LOGS' => LOGS,
- 'ROOT' => ROOT,
- 'TESTS' => TESTS,
- 'TMP' => TMP,
- 'WWW_ROOT' => WWW_ROOT,
- ];
-
- $hiddenCakeConstants = array_fill_keys(
- [
- 'TIME_START', 'SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR',
- ],
- ''
- );
- $var = get_defined_constants(true);
- $return['app'] = array_diff_key($var['user'], $return['cake'], $hiddenCakeConstants);
-
- if (isset($var['hidef'])) {
- $return['hidef'] = $var['hidef'];
- }
-
- return $return;
- }
-
- /**
- * Shutdown callback
- *
- * @param \Cake\Event\Event $event Event
- * @return void
- */
- public function shutdown(Event $event)
- {
- $this->_data = $this->_prepare();
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/HistoryPanel.php b/vendor/cakephp/debug_kit/src/Panel/HistoryPanel.php
deleted file mode 100644
index f2ece23..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/HistoryPanel.php
+++ /dev/null
@@ -1,49 +0,0 @@
-find('recent');
-
- return [
- 'requests' => $recent->toArray(),
- ];
- }
-
- /**
- * Gets the initial text for the history summary
- *
- * @return string
- */
- public function summary()
- {
- return '0 xhr';
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/IncludePanel.php b/vendor/cakephp/debug_kit/src/Panel/IncludePanel.php
deleted file mode 100644
index 6494050..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/IncludePanel.php
+++ /dev/null
@@ -1,116 +0,0 @@
-_debug = new DebugInclude();
- }
-
- /**
- * Get a list of files that were included and split them out into the various parts of the app
- *
- * @return array
- */
- protected function _prepare()
- {
- $return = ['cake' => [], 'app' => [], 'plugins' => [], 'vendor' => [], 'other' => []];
-
- foreach (get_included_files() as $file) {
- $pluginName = $this->_debug->getPluginName($file);
-
- if ($pluginName) {
- $return['plugins'][$pluginName][$this->_debug->getFileType($file)][] = $this->_debug->niceFileName($file, 'plugin', $pluginName);
- } elseif ($this->_debug->isAppFile($file)) {
- $return['app'][$this->_debug->getFileType($file)][] = $this->_debug->niceFileName($file, 'app');
- } elseif ($this->_debug->isCakeFile($file)) {
- $return['cake'][$this->_debug->getFileType($file)][] = $this->_debug->niceFileName($file, 'cake');
- } else {
- $vendorName = $this->_debug->getComposerPackageName($file);
-
- if ($vendorName) {
- $return['vendor'][$vendorName][] = $this->_debug->niceFileName($file, 'vendor', $vendorName);
- } else {
- $return['other'][] = $this->_debug->niceFileName($file, 'root');
- }
- }
- }
-
- $return['paths'] = $this->_debug->includePaths();
-
- ksort($return['app']);
- ksort($return['cake']);
- ksort($return['plugins']);
- ksort($return['vendor']);
-
- foreach ($return['plugins'] as &$plugin) {
- ksort($plugin);
- }
-
- return $return;
- }
-
- /**
- * Get the number of files included in this request.
- *
- * @return string
- */
- public function summary()
- {
- $data = $this->_data;
- if (empty($data)) {
- $data = $this->_prepare();
- }
-
- unset($data['paths']);
- $data = array_filter($data, function ($v, $k) {
- return !empty($v);
- }, ARRAY_FILTER_USE_BOTH);
-
- return count(Hash::flatten($data));
- }
-
- /**
- * Shutdown callback
- *
- * @param \Cake\Event\Event $event Event
- * @return void
- */
- public function shutdown(Event $event)
- {
- $this->_data = $this->_prepare();
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/LogPanel.php b/vendor/cakephp/debug_kit/src/Panel/LogPanel.php
deleted file mode 100644
index 8297448..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/LogPanel.php
+++ /dev/null
@@ -1,66 +0,0 @@
- 'DebugKit.DebugKit',
- ]);
- }
-
- /**
- * Get the panel data
- *
- * @return array
- */
- public function data()
- {
- return [
- 'logger' => Log::engine('debug_kit_log_panel'),
- ];
- }
-
- /**
- * Get the summary data.
- *
- * @return string
- */
- public function summary()
- {
- $logger = Log::engine('debug_kit_log_panel');
- if (!$logger) {
- return '0';
- }
-
- return (string)$logger->count();
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/MailPanel.php b/vendor/cakephp/debug_kit/src/Panel/MailPanel.php
deleted file mode 100644
index 7aeb87c..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/MailPanel.php
+++ /dev/null
@@ -1,93 +0,0 @@
-getProperty('_config');
- $property->setAccessible(true);
- $configs = $property->getValue();
-
- $log = $this->emailLog = new ArrayObject();
-
- foreach ($configs as $name => &$transport) {
- if (is_object($transport)) {
- $configs[$name] = new DebugKitTransport(['debugKitLog' => $log], $transport);
- continue;
- }
-
- $className = App::className($transport['className'], 'Mailer/Transport', 'Transport');
-
- if (!$className) {
- continue;
- }
-
- $transport['originalClassName'] = $transport['className'];
- $transport['className'] = 'DebugKit.DebugKit';
- $transport['debugKitLog'] = $log;
- }
- $property->setValue($configs);
- }
-
- /**
- * Get the data this panel wants to store.
- *
- * @return array
- */
- public function data()
- {
- return [
- 'emails' => isset($this->emailLog) ? $this->emailLog->getArrayCopy() : [],
- ];
- }
-
- /**
- * Get summary data from the queries run.
- *
- * @return string
- */
- public function summary()
- {
- if (empty($this->emailLog)) {
- return '';
- }
-
- return (string)count($this->emailLog);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/PackagesPanel.php b/vendor/cakephp/debug_kit/src/Panel/PackagesPanel.php
deleted file mode 100644
index 5c2c888..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/PackagesPanel.php
+++ /dev/null
@@ -1,46 +0,0 @@
-exists()) {
- $lockContent = $lockFile->read();
- $packages = $lockContent['packages'];
- $devPackages = $lockContent['packages-dev'];
- }
-
- return [
- 'packages' => $packages,
- 'devPackages' => $devPackages,
- ];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/PanelRegistry.php b/vendor/cakephp/debug_kit/src/Panel/PanelRegistry.php
deleted file mode 100644
index 8f8183b..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/PanelRegistry.php
+++ /dev/null
@@ -1,83 +0,0 @@
-setEventManager($events);
- }
-
- /**
- * Resolve a panel class name.
- *
- * Part of the template method for Cake\Utility\ObjectRegistry::load()
- *
- * @param string $class Partial class name to resolve.
- * @return string|false Either the correct class name or false.
- */
- protected function _resolveClassName($class)
- {
- return App::className($class, 'Panel', 'Panel');
- }
-
- /**
- * Throws an exception when a component is missing.
- *
- * Part of the template method for Cake\Utility\ObjectRegistry::load()
- *
- * @param string $class The classname that is missing.
- * @param string $plugin The plugin the component is missing in.
- * @return void
- * @throws \RuntimeException
- */
- protected function _throwMissingClassError($class, $plugin)
- {
- throw new \RuntimeException(__d('debug_kit', "Unable to find ''{0}'' panel.", $class));
- }
-
- /**
- * Create the panels instance.
- *
- * Part of the template method for Cake\Utility\ObjectRegistry::load()
- *
- * @param string $class The classname to create.
- * @param string $alias The alias of the panel.
- * @param array $config An array of config to use for the panel.
- * @return \DebugKit\DebugPanel The constructed panel class.
- */
- protected function _create($class, $alias, $config)
- {
- $instance = new $class($this, $config);
- $this->getEventManager()->on($instance);
-
- return $instance;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/RequestPanel.php b/vendor/cakephp/debug_kit/src/Panel/RequestPanel.php
deleted file mode 100644
index 9d15dd5..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/RequestPanel.php
+++ /dev/null
@@ -1,46 +0,0 @@
-getSubject();
- $request = $controller->request;
- $this->_data = [
- 'params' => $request->getAttribute("params"),
- 'query' => $request->getQueryParams(),
- 'data' => $request->getData(),
- 'cookie' => $request->getCookieParams(),
- 'get' => $_GET,
- 'matchedRoute' => $request->getParam('_matchedRoute'),
- 'headers' => ['response' => headers_sent($file, $line), 'file' => $file, 'line' => $line],
- ];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/RoutesPanel.php b/vendor/cakephp/debug_kit/src/Panel/RoutesPanel.php
deleted file mode 100644
index 9ddc8a7..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/RoutesPanel.php
+++ /dev/null
@@ -1,61 +0,0 @@
-defaults['plugin'])) || $route->defaults['plugin'] !== 'DebugKit';
- });
-
- return (string)count($routes);
- }
-
- /**
- * Data collection callback.
- *
- * @param \Cake\Event\Event $event The shutdown event.
- * @return void
- */
- public function shutdown(Event $event)
- {
- $controller = $event->getSubject();
- /* @var \Cake\Http\ServerRequest $request */
- $request = $controller ? $controller->request : null;
- $this->_data = [
- 'matchedRoute' => $request ? $request->getParam('_matchedRoute') : null,
- ];
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/SessionPanel.php b/vendor/cakephp/debug_kit/src/Panel/SessionPanel.php
deleted file mode 100644
index 6bd9755..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/SessionPanel.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getSubject()->request;
- if ($request) {
- $this->_data = ['content' => $request->getSession()->read()];
- }
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/SqlLogPanel.php b/vendor/cakephp/debug_kit/src/Panel/SqlLogPanel.php
deleted file mode 100644
index 95c013d..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/SqlLogPanel.php
+++ /dev/null
@@ -1,111 +0,0 @@
-configName() === 'debug_kit') {
- continue;
- }
- $logger = null;
- if ($connection->isQueryLoggingEnabled()) {
- $logger = $connection->getLogger();
- }
-
- if ($logger instanceof DebugLog) {
- $logger->setIncludeSchema($includeSchemaReflection);
- $this->_loggers[] = $logger;
- continue;
- }
- $logger = new DebugLog($logger, $name, $includeSchemaReflection);
-
- $connection->enableQueryLogging(true);
-
- if (method_exists($connection, 'setLogger')) {
- $connection->setLogger($logger);
- } else {
- $connection->logger($logger);
- }
-
- $this->_loggers[] = $logger;
- }
- }
-
- /**
- * Get the data this panel wants to store.
- *
- * @return array
- */
- public function data()
- {
- return [
- 'tables' => array_map(function (Table $table) {
- return $table->getAlias();
- }, TableRegistry::getTableLocator()->genericInstances()),
- 'loggers' => $this->_loggers,
- ];
- }
-
- /**
- * Get summary data from the queries run.
- *
- * @return string
- */
- public function summary()
- {
- $count = $time = 0;
- foreach ($this->_loggers as $logger) {
- $count += count($logger->queries());
- $time += $logger->totalTime();
- }
- if (!$count) {
- return '0';
- }
-
- return "$count / $time ms";
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php b/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php
deleted file mode 100644
index ebb75ea..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php
+++ /dev/null
@@ -1,129 +0,0 @@
- 0, 'callable' => $before('Event: ' . $name)],
- ['priority' => 999, 'callable' => $after('Event: ' . $name)],
- ];
- };
-
- return [
- 'Controller.initialize' => [
- ['priority' => 0, 'callable' => function () {
- DebugMemory::record(__d('debug_kit', 'Controller initialization'));
- }],
- ['priority' => 0, 'callable' => $before('Event: Controller.initialize')],
- ['priority' => 999, 'callable' => $after('Event: Controller.initialize')],
- ],
- 'Controller.startup' => [
- ['priority' => 0, 'callable' => $before('Event: Controller.startup')],
- ['priority' => 999, 'callable' => $after('Event: Controller.startup')],
- ['priority' => 999, 'callable' => function () {
- DebugMemory::record(__d('debug_kit', 'Controller action start'));
- DebugTimer::start(__d('debug_kit', 'Controller action'));
- }],
- ],
- 'Controller.beforeRender' => [
- ['priority' => 0, 'callable' => function () {
- DebugTimer::stop(__d('debug_kit', 'Controller action'));
- }],
- ['priority' => 0, 'callable' => $before('Event: Controller.beforeRender')],
- ['priority' => 999, 'callable' => $after('Event: Controller.beforeRender')],
- ['priority' => 999, 'callable' => function () {
- DebugMemory::record(__d('debug_kit', 'View Render start'));
- DebugTimer::start(__d('debug_kit', 'View Render start'));
- }],
- ],
- 'View.beforeRender' => $both('View.beforeRender'),
- 'View.afterRender' => $both('View.afterRender'),
- 'View.beforeLayout' => $both('View.beforeLayout'),
- 'View.afterLayout' => $both('View.afterLayout'),
- 'View.beforeRenderFile' => [
- ['priority' => 0, 'callable' => function ($event, $filename) {
- DebugTimer::start(__d('debug_kit', 'Render {0}', $filename));
- }],
- ],
- 'View.afterRenderFile' => [
- ['priority' => 0, 'callable' => function ($event, $filename) {
- DebugTimer::stop(__d('debug_kit', 'Render {0}', $filename));
- }],
- ],
- 'Controller.shutdown' => [
- ['priority' => 0, 'callable' => $before('Event: Controller.shutdown')],
- ['priority' => 0, 'callable' => function () {
- DebugTimer::stop(__d('debug_kit', 'View Render start'));
- DebugMemory::record(__d('debug_kit', 'Controller shutdown'));
- }],
- ['priority' => 999, 'callable' => $after('Event: Controller.shutdown')],
- ],
- ];
- }
-
- /**
- * Get the data for the panel.
- *
- * @return array
- */
- public function data()
- {
- return [
- 'requestTime' => DebugTimer::requestTime(),
- 'timers' => DebugTimer::getAll(),
- 'memory' => DebugMemory::getAll(),
- 'peakMemory' => DebugMemory::getPeak(),
- ];
- }
-
- /**
- * Get the summary for the panel.
- *
- * @return string
- */
- public function summary()
- {
- $time = Number::precision(DebugTimer::requestTime(), 2) . ' s';
- $memory = Number::toReadableSize(DebugMemory::getPeak());
-
- return "$time / $memory";
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Panel/VariablesPanel.php b/vendor/cakephp/debug_kit/src/Panel/VariablesPanel.php
deleted file mode 100644
index c6d803e..0000000
--- a/vendor/cakephp/debug_kit/src/Panel/VariablesPanel.php
+++ /dev/null
@@ -1,195 +0,0 @@
-errors();
-
- foreach ($entity->visibleProperties() as $property) {
- $v = $entity[$property];
- if ($v instanceof EntityInterface) {
- $errors[$property] = $this->_getErrors($v);
- } elseif (is_array($v)) {
- foreach ($v as $key => $varValue) {
- if ($varValue instanceof EntityInterface) {
- $errors[$property][$key] = $this->_getErrors($varValue);
- }
- }
- }
- }
-
- return Hash::filter($errors);
- }
-
- /**
- * Safely retrieves debug information from an object
- * and applies a callback.
- *
- * @param callable $walker The walker to apply on the debug info array.
- * @param object $item The item whose debug info to retrieve.
- *
- * @return array|string
- */
- protected function _walkDebugInfo(callable $walker, $item)
- {
- try {
- $info = $item->__debugInfo();
- } catch (\Exception $exception) {
- return __d('debug_kit', 'Could not retrieve debug info - {0}. Error: {1} in {2}, line {3}', get_class($item), $exception->getMessage(), $exception->getFile(), $exception->getLine());
- }
-
- return array_map($walker, $info);
- }
-
- /**
- * Shutdown event
- *
- * @param \Cake\Event\Event $event The event
- * @return void
- */
- public function shutdown(Event $event)
- {
- $controller = $event->getSubject();
- $errors = [];
-
- $walker = function (&$item) use (&$walker) {
- if (
- $item instanceof Collection ||
- $item instanceof Query ||
- $item instanceof ResultSet
- ) {
- try {
- $item = $item->toArray();
- } catch (\Cake\Database\Exception $e) {
- //Likely issue is unbuffered query; fall back to __debugInfo
- $item = $this->_walkDebugInfo($walker, $item);
- } catch (RuntimeException $e) {
- // Likely a non-select query.
- $item = $this->_walkDebugInfo($walker, $item);
- } catch (InvalidArgumentException $e) {
- $item = $this->_walkDebugInfo($walker, $item);
- }
- } elseif (
- $item instanceof Closure ||
- $item instanceof PDO ||
- $item instanceof SimpleXMLElement
- ) {
- $item = 'Unserializable object - ' . get_class($item);
- } elseif ($item instanceof Exception) {
- $item = sprintf(
- 'Unserializable object - %s. Error: %s in %s, line %s',
- get_class($item),
- $item->getMessage(),
- $item->getFile(),
- $item->getLine()
- );
- } elseif (is_object($item)) {
- if (method_exists($item, '__debugInfo')) {
- // Convert objects into using __debugInfo.
- $item = $this->_walkDebugInfo($walker, $item);
- } else {
- $item = $this->trySerialize($item);
- }
- } elseif (is_resource($item)) {
- $item = sprintf('[%s] %s', get_resource_type($item), $item);
- }
-
- return $this->trySerialize($item);
- };
- // Copy so viewVars is not mutated.
- $vars = $controller->viewVars;
- array_walk_recursive($vars, $walker);
-
- foreach ($vars as $k => $v) {
- // Get the validation errors for Entity
- if ($v instanceof EntityInterface) {
- $errors[$k] = $this->_getErrors($v);
- } elseif ($v instanceof Form) {
- $formError = $v->errors();
- if (!empty($formError)) {
- $errors[$k] = $formError;
- }
- }
- }
-
- $this->_data = [
- 'content' => $vars,
- 'errors' => $errors,
- ];
- }
-
- /**
- * Try to serialize an item, provide an error message if not possible
- *
- * @param mixed $item Item to check
- * @return mixed The $item if it is serializable, error message if not
- */
- protected function trySerialize($item)
- {
- try {
- serialize($item);
-
- return $item;
- } catch (\Exception $e) {
- if (is_object($item)) {
- return __d('debug_kit', 'Unserializable object - {0}. Error: {1} in {2}, line {3}', get_class($item), $e->getMessage(), $e->getFile(), $e->getLine());
- }
-
- return __d('debug_kit', 'Unserializable Error: {1} in {2}, line {3}', $e->getMessage(), $e->getFile(), $e->getLine());
- }
- }
-
- /**
- * Get summary data for the variables panel.
- *
- * @return string
- */
- public function summary()
- {
- if (!isset($this->_data['content'])) {
- return '0';
- }
-
- return (string)count($this->_data['content']);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Plugin.php b/vendor/cakephp/debug_kit/src/Plugin.php
deleted file mode 100644
index be6dc5c..0000000
--- a/vendor/cakephp/debug_kit/src/Plugin.php
+++ /dev/null
@@ -1,23 +0,0 @@
-service = new ToolbarService($events, $config);
- }
-
- /**
- * Event bindings
- *
- * @return array
- */
- public function implementedEvents()
- {
- return [
- 'Dispatcher.beforeDispatch' => [
- 'callable' => 'beforeDispatch',
- 'priority' => 0,
- ],
- 'Dispatcher.afterDispatch' => [
- 'callable' => 'afterDispatch',
- 'priority' => 9999,
- ],
- ];
- }
-
- /**
- * Check whether or not debug kit is enabled.
- *
- * @return bool
- */
- public function isEnabled()
- {
- return $this->service->isEnabled();
- }
-
- /**
- * Get the list of loaded panels
- *
- * @return array
- */
- public function loadedPanels()
- {
- return $this->service->registry()->loaded();
- }
-
- /**
- * Get the list of loaded panels
- *
- * @param string $name The name of the panel you want to get.
- * @return \DebugKit\DebugPanel|null The panel or null.
- */
- public function panel($name)
- {
- $registry = $this->service->registry();
-
- return $registry->{$name};
- }
-
- /**
- * Do the required setup work.
- *
- * - Build panels.
- * - Connect events
- *
- * @return void
- */
- public function setup()
- {
- $this->service->loadPanels();
- }
-
- /**
- * Call the initialize method onl all the loaded panels.
- *
- * @param \Cake\Event\Event $event The beforeDispatch event.
- * @return void
- */
- public function beforeDispatch(Event $event)
- {
- $this->service->initializePanels();
- }
-
- /**
- * Save the toolbar data.
- *
- * @param \Cake\Event\Event $event The afterDispatch event.
- * @return \Psr\Http\Message\ResponseInterface|void Modified response or null
- */
- public function afterDispatch(Event $event)
- {
- /* @var Request $request */
- $request = $event->getData('request');
- /* @var Response $response */
- $response = $event->getData('response');
- $row = $this->service->saveData($request, $response);
- if (!$row) {
- return;
- }
-
- return $this->service->injectScripts($row, $response);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Shell/BenchmarkShell.php b/vendor/cakephp/debug_kit/src/Shell/BenchmarkShell.php
deleted file mode 100644
index 0324688..0000000
--- a/vendor/cakephp/debug_kit/src/Shell/BenchmarkShell.php
+++ /dev/null
@@ -1,173 +0,0 @@
-args[0];
- $defaults = ['t' => 100, 'n' => 10];
- $options = array_merge($defaults, $this->params);
- $times = [];
-
- $this->out(Text::insert(__d('debug_kit', '-> Testing :url'), compact('url')));
- $this->out("");
- for ($i = 0; $i < $options['n']; $i++) {
- if (floor($options['t'] - array_sum($times)) <= 0 || $options['n'] <= 1) {
- break;
- }
-
- $start = microtime(true);
- file_get_contents($url);
- $stop = microtime(true);
-
- $times[] = $stop - $start;
- }
- $this->_results($times);
- }
-
- /**
- * Prints calculated results
- *
- * @param array $times Array of time values
- * @return void
- */
- protected function _results($times)
- {
- $duration = array_sum($times);
- $requests = count($times);
-
- $this->out(Text::insert(__d('debug_kit', 'Total Requests made: :requests'), compact('requests')));
- $this->out(Text::insert(__d('debug_kit', 'Total Time elapsed: :duration (seconds)'), compact('duration')));
-
- $this->out("");
-
- $this->out(Text::insert(__d('debug_kit', 'Requests/Second: :rps req/sec'), [
- 'rps' => round($requests / $duration, 3),
- ]));
-
- $this->out(Text::insert(__d('debug_kit', 'Average request time: :average-time seconds'), [
- 'average-time' => round($duration / $requests, 3),
- ]));
-
- $this->out(Text::insert(__d('debug_kit', 'Standard deviation of average request time: :std-dev'), [
- 'std-dev' => round($this->_deviation($times, true), 3),
- ]));
-
- $this->out(Text::insert(__d('debug_kit', 'Longest/shortest request: :longest sec/:shortest sec'), [
- 'longest' => round(max($times), 3),
- 'shortest' => round(min($times), 3),
- ]));
-
- $this->out("");
- }
-
- /**
- * One-pass, numerically stable calculation of population variance.
- *
- * Donald E. Knuth (1998).
- * The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edn.,
- * p. 232. Boston: Addison-Wesley.
- *
- * @param array $times Array of values
- * @param bool $sample If true, calculates an unbiased estimate of the population
- * variance from a finite sample.
- * @return float Variance
- */
- protected function _variance($times, $sample = true)
- {
- $n = $mean = $M2 = 0;
-
- foreach ($times as $time) {
- $n += 1;
- $delta = $time - $mean;
- $mean = $mean + $delta / $n;
- $M2 = $M2 + $delta * ($time - $mean);
- }
-
- if ($sample) {
- $n -= 1;
- }
-
- return $M2 / $n;
- }
-
- /**
- * Calculate the standard deviation.
- *
- * @param array $times Array of values
- * @param bool $sample ''
- * @return float Standard deviation
- */
- protected function _deviation($times, $sample = true)
- {
- return sqrt($this->_variance($times, $sample));
- }
-
- /**
- * Get option parser.
- *
- * @return \Cake\Console\ConsoleOptionParser
- */
- public function getOptionParser()
- {
- $parser = parent::getOptionParser();
- $parser->description(__d(
- 'debug_kit',
- 'Allows you to obtain some rough benchmarking statistics' .
- 'about a fully qualified URL.'
- ))
- ->addArgument('url', [
- 'help' => __d('debug_kit', 'The URL to request.'),
- 'required' => true,
- ])
- ->addOption('n', [
- 'default' => 10,
- 'help' => __d('debug_kit', 'Number of iterations to perform.'),
- ])
- ->addOption('t', [
- 'default' => 100,
- 'help' => __d(
- 'debug_kit',
- 'Maximum total time for all iterations, in seconds.' .
- 'If a single iteration takes more than the timeout, only one request will be made'
- ),
- ])
- ->epilog(__d(
- 'debug_kit',
- 'Example Use: `cake benchmark --n 10 --t 100 http://localhost/testsite`. ' .
- 'Note: this benchmark does not include browser render times.'
- ));
-
- return $parser;
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Shell/WhitespaceShell.php b/vendor/cakephp/debug_kit/src/Shell/WhitespaceShell.php
deleted file mode 100644
index 812a768..0000000
--- a/vendor/cakephp/debug_kit/src/Shell/WhitespaceShell.php
+++ /dev/null
@@ -1,101 +0,0 @@
-params['path']) && strpos($this->params['path'], '/') === 0) {
- $path = $this->params['path'];
- } elseif (!empty($this->params['path'])) {
- $path .= $this->params['path'];
- }
- $folder = new Folder($path);
-
- $r = $folder->findRecursive('.*\.php');
- $this->out("Checking *.php in " . $path);
- foreach ($r as $file) {
- $c = file_get_contents($file);
- if (preg_match('/^[\n\r|\n\r|\n|\r|\s]+\<\?php/', $c)) {
- $this->out('!!!contains leading whitespaces: ' . $this->shortPath($file));
- }
- if (preg_match('/\?\>[\n\r|\n\r|\n|\r|\s]+$/', $c)) {
- $this->out('!!!contains trailing whitespaces: ' . $this->shortPath($file));
- }
- }
- }
-
- /**
- * Much like main() except files are modified. Be sure to have
- * backups or use version control.
- *
- * @return void
- */
- public function trim()
- {
- $path = APP;
- if (!empty($this->params['path']) && strpos($this->params['path'], '/') === 0) {
- $path = $this->params['path'];
- } elseif (!empty($this->params['path'])) {
- $path .= $this->params['path'];
- }
- $folder = new Folder($path);
-
- $r = $folder->findRecursive('.*\.php');
- $this->out("Checking *.php in " . $path);
- foreach ($r as $file) {
- $c = file_get_contents($file);
- if (preg_match('/^[\n\r|\n\r|\n|\r|\s]+\<\?php/', $c) || preg_match('/\?\>[\n\r|\n\r|\n|\r|\s]+$/', $c)) {
- $this->out('trimming' . $this->shortPath($file));
- $c = preg_replace('/^[\n\r|\n\r|\n|\r|\s]+\<\?php/', '[\n\r|\n\r|\n|\r|\s]+$/', '?>', $c);
- file_put_contents($file, $c);
- }
- }
- }
-
- /**
- * get the option parser
- *
- * @return \Cake\Console\ConsoleOptionParser
- */
- public function getOptionParser()
- {
- $parser = parent::getOptionParser();
-
- return $parser->addOption('path', [
- 'short' => 'p',
- 'help' => __d('debug_kit', 'Absolute path or relative to {0}.', 'APP'),
- ]);
- }
-}
diff --git a/vendor/cakephp/debug_kit/src/Template/Dashboard/index.ctp b/vendor/cakephp/debug_kit/src/Template/Dashboard/index.ctp
deleted file mode 100644
index ee3566f..0000000
--- a/vendor/cakephp/debug_kit/src/Template/Dashboard/index.ctp
+++ /dev/null
@@ -1,26 +0,0 @@
-
-