Use Easy-Coding-Standard for Coding Style check and fix.

This commit is contained in:
Jan Böhmer 2020-01-05 14:29:19 +01:00
parent 8921326b74
commit 700c049d26
6 changed files with 946 additions and 1 deletions

10
.gitignore vendored
View file

@ -36,3 +36,13 @@ yarn-error.log
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###
###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###
###> friendsofphp/php-cs-fixer ###
/.php_cs
/.php_cs.cache
###< friendsofphp/php-cs-fixer ###

View file

@ -64,6 +64,7 @@
"symfony/maker-bundle": "^1.13",
"symfony/profiler-pack": "*",
"symfony/test-pack": "^1.0",
"symplify/easy-coding-standard": "^7.1",
"vimeo/psalm": "^3.5"
},
"config": {

844
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "bee5abfb9cf728f9f26d702bdc2c16c3",
"content-hash": "fae707a4932b3cffeb74914818a761c9",
"packages": [
{
"name": "beberlei/assert",
@ -8761,6 +8761,68 @@
],
"time": "2019-10-27T14:33:41+00:00"
},
{
"name": "composer/semver",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/composer/semver.git",
"reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/semver/zipball/46d9139568ccb8d9e7cdd4539cab7347568a5e2e",
"reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e",
"shasum": ""
},
"require": {
"php": "^5.3.2 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.5 || ^5.0.5",
"phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Composer\\Semver\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nils Adermann",
"email": "naderman@naderman.de",
"homepage": "http://www.naderman.de"
},
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be"
},
{
"name": "Rob Bast",
"email": "rob.bast@gmail.com",
"homepage": "http://robbast.nl"
}
],
"description": "Semver library that offers utilities, version constraint parsing and validation.",
"keywords": [
"semantic",
"semver",
"validation",
"versioning"
],
"time": "2019-03-19T17:25:45+00:00"
},
{
"name": "composer/xdebug-handler",
"version": "1.4.0",
@ -9130,6 +9192,146 @@
],
"time": "2019-06-23T21:03:50+00:00"
},
{
"name": "friendsofphp/php-cs-fixer",
"version": "v2.16.1",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
"reference": "c8afb599858876e95e8ebfcd97812d383fa23f02"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/c8afb599858876e95e8ebfcd97812d383fa23f02",
"reference": "c8afb599858876e95e8ebfcd97812d383fa23f02",
"shasum": ""
},
"require": {
"composer/semver": "^1.4",
"composer/xdebug-handler": "^1.2",
"doctrine/annotations": "^1.2",
"ext-json": "*",
"ext-tokenizer": "*",
"php": "^5.6 || ^7.0",
"php-cs-fixer/diff": "^1.3",
"symfony/console": "^3.4.17 || ^4.1.6 || ^5.0",
"symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0",
"symfony/filesystem": "^3.0 || ^4.0 || ^5.0",
"symfony/finder": "^3.0 || ^4.0 || ^5.0",
"symfony/options-resolver": "^3.0 || ^4.0 || ^5.0",
"symfony/polyfill-php70": "^1.0",
"symfony/polyfill-php72": "^1.4",
"symfony/process": "^3.0 || ^4.0 || ^5.0",
"symfony/stopwatch": "^3.0 || ^4.0 || ^5.0"
},
"require-dev": {
"johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0",
"justinrainbow/json-schema": "^5.0",
"keradus/cli-executor": "^1.2",
"mikey179/vfsstream": "^1.6",
"php-coveralls/php-coveralls": "^2.1",
"php-cs-fixer/accessible-object": "^1.0",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.1",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1",
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1",
"phpunitgoodpractices/traits": "^1.8",
"symfony/phpunit-bridge": "^4.3 || ^5.0",
"symfony/yaml": "^3.0 || ^4.0 || ^5.0"
},
"suggest": {
"ext-mbstring": "For handling non-UTF8 characters in cache signature.",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.",
"symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible."
},
"bin": [
"php-cs-fixer"
],
"type": "application",
"autoload": {
"psr-4": {
"PhpCsFixer\\": "src/"
},
"classmap": [
"tests/Test/AbstractFixerTestCase.php",
"tests/Test/AbstractIntegrationCaseFactory.php",
"tests/Test/AbstractIntegrationTestCase.php",
"tests/Test/Assert/AssertTokensTrait.php",
"tests/Test/IntegrationCase.php",
"tests/Test/IntegrationCaseFactory.php",
"tests/Test/IntegrationCaseFactoryInterface.php",
"tests/Test/InternalIntegrationCaseFactory.php",
"tests/TestCase.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Dariusz Rumiński",
"email": "dariusz.ruminski@gmail.com"
}
],
"description": "A tool to automatically fix PHP code style",
"time": "2019-11-25T22:10:32+00:00"
},
{
"name": "jean85/pretty-package-versions",
"version": "1.2",
"source": {
"type": "git",
"url": "https://github.com/Jean85/pretty-package-versions.git",
"reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/75c7effcf3f77501d0e0caa75111aff4daa0dd48",
"reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48",
"shasum": ""
},
"require": {
"ocramius/package-versions": "^1.2.0",
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Jean85\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Alessandro Lai",
"email": "alessandro.lai85@gmail.com"
}
],
"description": "A wrapper for ocramius/package-versions to get pretty versions strings",
"keywords": [
"composer",
"package",
"release",
"versions"
],
"time": "2018-06-13T13:22:40+00:00"
},
{
"name": "netresearch/jsonmapper",
"version": "v1.6.0",
@ -9176,6 +9378,210 @@
"description": "Map nested JSON structures onto PHP classes",
"time": "2019-08-15T19:41:25+00:00"
},
{
"name": "nette/finder",
"version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/nette/finder.git",
"reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/finder/zipball/4ad2c298eb8c687dd0e74ae84206a4186eeaed50",
"reference": "4ad2c298eb8c687dd0e74ae84206a4186eeaed50",
"shasum": ""
},
"require": {
"nette/utils": "^2.4 || ^3.0",
"php": ">=7.1"
},
"conflict": {
"nette/nette": "<2.2"
},
"require-dev": {
"nette/tester": "^2.0",
"phpstan/phpstan": "^0.12",
"tracy/tracy": "^2.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.5-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "🔍 Nette Finder: find files and directories with an intuitive API.",
"homepage": "https://nette.org",
"keywords": [
"filesystem",
"glob",
"iterator",
"nette"
],
"time": "2020-01-03T20:35:40+00:00"
},
{
"name": "nette/robot-loader",
"version": "v3.2.1",
"source": {
"type": "git",
"url": "https://github.com/nette/robot-loader.git",
"reference": "d2a100e1f5cab390c78bc88709abbc91249c3993"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/robot-loader/zipball/d2a100e1f5cab390c78bc88709abbc91249c3993",
"reference": "d2a100e1f5cab390c78bc88709abbc91249c3993",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
"nette/finder": "^2.5 || ^3.0",
"nette/utils": "^3.0",
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "^2.0",
"phpstan/phpstan": "^0.12",
"tracy/tracy": "^2.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.2-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
"homepage": "https://nette.org",
"keywords": [
"autoload",
"class",
"interface",
"nette",
"trait"
],
"time": "2019-12-26T22:32:02+00:00"
},
{
"name": "nette/utils",
"version": "v3.1.0",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
"reference": "d6cd63d77dd9a85c3a2fae707e1255e44c2bc182"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/utils/zipball/d6cd63d77dd9a85c3a2fae707e1255e44c2bc182",
"reference": "d6cd63d77dd9a85c3a2fae707e1255e44c2bc182",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "~2.0",
"phpstan/phpstan": "^0.12",
"tracy/tracy": "^2.3"
},
"suggest": {
"ext-gd": "to use Image",
"ext-iconv": "to use Strings::webalize() and toAscii()",
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
"ext-json": "to use Nette\\Utils\\Json",
"ext-mbstring": "to use Strings::lower() etc...",
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.1-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
"homepage": "https://nette.org",
"keywords": [
"array",
"core",
"datetime",
"images",
"json",
"nette",
"paginator",
"password",
"slugify",
"string",
"unicode",
"utf-8",
"utility",
"validation"
],
"time": "2020-01-03T18:13:31+00:00"
},
{
"name": "openlss/lib-array2xml",
"version": "1.0.0",
@ -9225,6 +9631,105 @@
],
"time": "2019-03-29T20:06:56+00:00"
},
{
"name": "php-cs-fixer/diff",
"version": "v1.3.0",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/diff.git",
"reference": "78bb099e9c16361126c86ce82ec4405ebab8e756"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756",
"reference": "78bb099e9c16361126c86ce82ec4405ebab8e756",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7.23 || ^6.4.3",
"symfony/process": "^3.3"
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "SpacePossum"
}
],
"description": "sebastian/diff v2 backport support for PHP5.6",
"homepage": "https://github.com/PHP-CS-Fixer",
"keywords": [
"diff"
],
"time": "2018-02-15T16:58:55+00:00"
},
{
"name": "phpstan/phpdoc-parser",
"version": "0.4.2",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "a6d13524641bb780efc821d9e0a1e1bfb23cbd0e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/a6d13524641bb780efc821d9e0a1e1bfb23cbd0e",
"reference": "a6d13524641bb780efc821d9e0a1e1bfb23cbd0e",
"shasum": ""
},
"require": {
"php": "~7.1"
},
"require-dev": {
"consistence/coding-standard": "^3.5",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"phing/phing": "^2.16.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^6.3",
"slevomat/coding-standard": "^4.7.2",
"symfony/process": "^4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.4-dev"
}
},
"autoload": {
"psr-4": {
"PHPStan\\PhpDocParser\\": [
"src/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"time": "2019-12-13T12:03:22+00:00"
},
{
"name": "roave/security-advisories",
"version": "dev-master",
@ -9500,6 +10005,98 @@
],
"time": "2019-02-04T06:01:07+00:00"
},
{
"name": "slevomat/coding-standard",
"version": "6.0.5",
"source": {
"type": "git",
"url": "https://github.com/slevomat/coding-standard.git",
"reference": "eaa0c35c6b88d146e7dfd3580c4d5fa9c49c7a23"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/slevomat/coding-standard/zipball/eaa0c35c6b88d146e7dfd3580c4d5fa9c49c7a23",
"reference": "eaa0c35c6b88d146e7dfd3580c4d5fa9c49c7a23",
"shasum": ""
},
"require": {
"php": "^7.1",
"phpstan/phpdoc-parser": "0.3.5 - 0.4.2",
"squizlabs/php_codesniffer": "^3.5.3"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.5.0",
"jakub-onderka/php-parallel-lint": "1.0.0",
"phing/phing": "2.16.1",
"phpstan/phpstan": "0.11.19|0.12",
"phpstan/phpstan-phpunit": "0.11.2|0.12",
"phpstan/phpstan-strict-rules": "0.11.1|0.12",
"phpunit/phpunit": "7.5.18|8.5.0"
},
"type": "phpcodesniffer-standard",
"autoload": {
"psr-4": {
"SlevomatCodingStandard\\": "SlevomatCodingStandard"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.",
"time": "2019-12-19T16:04:26+00:00"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.5.3",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb",
"reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"time": "2019-12-04T04:46:47+00:00"
},
{
"name": "symfony/browser-kit",
"version": "v4.4.2",
@ -9969,6 +10566,251 @@
"homepage": "https://symfony.com",
"time": "2019-11-20T10:44:55+00:00"
},
{
"name": "symplify/coding-standard",
"version": "v7.1.3",
"source": {
"type": "git",
"url": "https://github.com/Symplify/CodingStandard.git",
"reference": "864af829cd9007f3c11d778485082ef0056a1486"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Symplify/CodingStandard/zipball/864af829cd9007f3c11d778485082ef0056a1486",
"reference": "864af829cd9007f3c11d778485082ef0056a1486",
"shasum": ""
},
"require": {
"friendsofphp/php-cs-fixer": "^2.16",
"nette/finder": "^2.5",
"nette/utils": "^3.0",
"php": "^7.2",
"phpstan/phpdoc-parser": "^0.4",
"squizlabs/php_codesniffer": "^3.5",
"symplify/package-builder": "^7.1.3",
"symplify/smart-file-system": "^7.1.3"
},
"require-dev": {
"nette/application": "^3.0",
"phpunit/phpunit": "^8.4",
"symplify/easy-coding-standard-tester": "^7.1.3",
"symplify/package-builder": "^7.1.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.2-dev"
}
},
"autoload": {
"psr-4": {
"Symplify\\CodingStandard\\": "src",
"Symplify\\CodingStandard\\TokenRunner\\": "packages/TokenRunner/src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Set of Symplify rules for PHP_CodeSniffer and PHP CS Fixer.",
"time": "2019-12-18T20:34:38+00:00"
},
{
"name": "symplify/easy-coding-standard",
"version": "v7.1.3",
"source": {
"type": "git",
"url": "https://github.com/Symplify/EasyCodingStandard.git",
"reference": "d9f483bb42f9c8c169bedd67b5a57663d163163a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Symplify/EasyCodingStandard/zipball/d9f483bb42f9c8c169bedd67b5a57663d163163a",
"reference": "d9f483bb42f9c8c169bedd67b5a57663d163163a",
"shasum": ""
},
"require": {
"composer/xdebug-handler": "^1.4",
"friendsofphp/php-cs-fixer": "^2.16",
"jean85/pretty-package-versions": "^1.2",
"nette/robot-loader": "^3.2",
"nette/utils": "^3.0",
"ocramius/package-versions": "^1.4",
"php": "^7.2",
"psr/simple-cache": "^1.0",
"slevomat/coding-standard": "^6.0",
"squizlabs/php_codesniffer": "^3.5",
"symfony/cache": "^4.4|^5.0",
"symfony/config": "^4.4|^5.0",
"symfony/console": "^4.4|^5.0",
"symfony/dependency-injection": "^4.4|^5.0",
"symfony/finder": "^4.4|^5.0",
"symfony/http-kernel": "^4.4|^5.0",
"symfony/yaml": "^4.4|^5.0",
"symplify/coding-standard": "^7.1.3",
"symplify/package-builder": "^7.1.3",
"symplify/set-config-resolver": "^7.1.3",
"symplify/smart-file-system": "^7.1.3"
},
"require-dev": {
"phpunit/phpunit": "^8.4",
"symplify/easy-coding-standard-tester": "^7.1.3"
},
"bin": [
"bin/ecs"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.2-dev"
}
},
"autoload": {
"psr-4": {
"Symplify\\EasyCodingStandard\\": "src",
"Symplify\\EasyCodingStandard\\ChangedFilesDetector\\": "packages/ChangedFilesDetector/src",
"Symplify\\EasyCodingStandard\\Configuration\\": "packages/Configuration/src",
"Symplify\\EasyCodingStandard\\FixerRunner\\": "packages/FixerRunner/src",
"Symplify\\EasyCodingStandard\\SniffRunner\\": "packages/SniffRunner/src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP_CodeSniffer.",
"time": "2019-12-18T20:34:38+00:00"
},
{
"name": "symplify/package-builder",
"version": "v7.1.3",
"source": {
"type": "git",
"url": "https://github.com/Symplify/PackageBuilder.git",
"reference": "6d328c576472bbbb54f8fa50d127cf627e1680d5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Symplify/PackageBuilder/zipball/6d328c576472bbbb54f8fa50d127cf627e1680d5",
"reference": "6d328c576472bbbb54f8fa50d127cf627e1680d5",
"shasum": ""
},
"require": {
"nette/finder": "^2.5",
"nette/utils": "^3.0",
"php": "^7.2",
"symfony/config": "^4.4|^5.0",
"symfony/console": "^4.4|^5.0",
"symfony/dependency-injection": "^4.4|^5.0",
"symfony/finder": "^4.4|^5.0",
"symfony/http-kernel": "^4.4|^5.0",
"symfony/yaml": "^4.4|^5.0"
},
"require-dev": {
"phpunit/phpunit": "^8.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.2-dev"
}
},
"autoload": {
"psr-4": {
"Symplify\\PackageBuilder\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Dependency Injection, Console and Kernel toolkit for Symplify packages.",
"time": "2019-12-15T11:32:54+00:00"
},
{
"name": "symplify/set-config-resolver",
"version": "v7.1.3",
"source": {
"type": "git",
"url": "https://github.com/Symplify/SetConfigResolver.git",
"reference": "bf63e985dcf88d7651026d062edd314280715da9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Symplify/SetConfigResolver/zipball/bf63e985dcf88d7651026d062edd314280715da9",
"reference": "bf63e985dcf88d7651026d062edd314280715da9",
"shasum": ""
},
"require": {
"nette/utils": "^3.0",
"php": "^7.2",
"symfony/console": "^4.4|^5.0",
"symfony/filesystem": "^4.3|^5.0",
"symfony/finder": "^4.4|^5.0",
"symplify/smart-file-system": "^7.1.3"
},
"require-dev": {
"phpunit/phpunit": "^8.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.2-dev"
}
},
"autoload": {
"psr-4": {
"Symplify\\SetConfigResolver\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Resolve config and sets from configs and cli opptions for CLI applications",
"time": "2019-12-18T20:34:38+00:00"
},
{
"name": "symplify/smart-file-system",
"version": "v7.1.3",
"source": {
"type": "git",
"url": "https://github.com/Symplify/SmartFileSystem.git",
"reference": "aec493bf2d935cd71cec68dbcc299e415ecc2c20"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Symplify/SmartFileSystem/zipball/aec493bf2d935cd71cec68dbcc299e415ecc2c20",
"reference": "aec493bf2d935cd71cec68dbcc299e415ecc2c20",
"shasum": ""
},
"require": {
"nette/utils": "^3.0",
"php": "^7.2",
"symfony/filesystem": "^4.3|^5.0"
},
"require-dev": {
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^8.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.2-dev"
}
},
"autoload": {
"psr-4": {
"Symplify\\SmartFileSystem\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Sanitized FileInfo with safe getRealPath() and other handy methods",
"time": "2019-12-09T11:18:37+00:00"
},
{
"name": "vimeo/psalm",
"version": "3.8.1",

10
ecs.yaml Normal file
View file

@ -0,0 +1,10 @@
parameters:
sets:
- "psr12"
- "php70"
- "php71"
- "clean-code"
- "common"
# very nice to have ↓
- "symplify"
- "symfony"

19
phpcs.xml.dist Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<rule ref="PSR2"/>
<file>bin/</file>
<file>config/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
</ruleset>

View file

@ -8,6 +8,9 @@
"beberlei/assert": {
"version": "v3.2.6"
},
"composer/semver": {
"version": "1.5.0"
},
"composer/xdebug-handler": {
"version": "1.3.3"
},
@ -141,6 +144,18 @@
"florianv/swap": {
"version": "3.5.0"
},
"friendsofphp/php-cs-fixer": {
"version": "2.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "2.2",
"ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b"
},
"files": [
"./.php_cs.dist"
]
},
"friendsofsymfony/ckeditor-bundle": {
"version": "2.0",
"recipe": {
@ -165,6 +180,9 @@
"jdorn/sql-formatter": {
"version": "v1.2.17"
},
"jean85/pretty-package-versions": {
"version": "1.2"
},
"lcobucci/jwt": {
"version": "3.3.1"
},
@ -193,6 +211,15 @@
"netresearch/jsonmapper": {
"version": "v1.6.0"
},
"nette/finder": {
"version": "v2.5.2"
},
"nette/robot-loader": {
"version": "v3.2.1"
},
"nette/utils": {
"version": "v3.1.0"
},
"nikic/php-parser": {
"version": "v4.2.1"
},
@ -238,6 +265,9 @@
"php": {
"version": "7.2.5"
},
"php-cs-fixer/diff": {
"version": "v1.3.0"
},
"php-http/discovery": {
"version": "1.7.0"
},
@ -283,6 +313,9 @@
"phpdocumentor/type-resolver": {
"version": "0.4.0"
},
"phpstan/phpdoc-parser": {
"version": "0.4.2"
},
"psr/cache": {
"version": "1.0.1"
},
@ -362,9 +395,24 @@
"shivas/versioning-bundle": {
"version": "3.1.3"
},
"slevomat/coding-standard": {
"version": "6.0.5"
},
"spomky-labs/otphp": {
"version": "v9.1.4"
},
"squizlabs/php_codesniffer": {
"version": "3.0",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.0",
"ref": "0dc9cceda799fd3a08b96987e176a261028a3709"
},
"files": [
"./phpcs.xml.dist"
]
},
"symfony/apache-pack": {
"version": "1.0",
"recipe": {
@ -743,6 +791,21 @@
"symfony/yaml": {
"version": "v4.2.3"
},
"symplify/coding-standard": {
"version": "v7.1.3"
},
"symplify/easy-coding-standard": {
"version": "v7.1.3"
},
"symplify/package-builder": {
"version": "v7.1.3"
},
"symplify/set-config-resolver": {
"version": "v7.1.3"
},
"symplify/smart-file-system": {
"version": "v7.1.3"
},
"thecodingmachine/safe": {
"version": "v0.1.16"
},