From 3b6204c26b8fcc08bc6c08a6aacb6d7488ccaded Mon Sep 17 00:00:00 2001 From: "roman.dykyi" Date: Mon, 7 Jun 2021 16:02:47 +0300 Subject: [PATCH] add more ci znalyze toools --- Makefile | 2 +- code/composer.json | 22 +- code/composer.lock | 668 +++++++++++++++--- code/lint.php | 12 + code/src/Game/Features/Player/Level/Level.php | 2 +- .../Game/Features/Player/Player/Player.php | 2 +- code/symfony.lock | 27 +- code/var/database/db.sqlite | Bin 2572288 -> 2572288 bytes 8 files changed, 642 insertions(+), 93 deletions(-) create mode 100644 code/lint.php diff --git a/Makefile b/Makefile index afdbf0f..d3da658 100644 --- a/Makefile +++ b/Makefile @@ -67,8 +67,8 @@ postman-test: cd ./docker && docker-compose run newman ci-test: - cd ./docker && docker-compose -f docker-compose.test.yml run tests cd ./docker && docker-compose -f docker-compose.test.yml run analyzer + cd ./docker && docker-compose -f docker-compose.test.yml run tests pre-commit: deptrac phpcs psalm ecs rector php-test postman-test @: \ No newline at end of file diff --git a/code/composer.json b/code/composer.json index 1ab4cda..f7aa146 100644 --- a/code/composer.json +++ b/code/composer.json @@ -5,11 +5,8 @@ "prefer-stable": true, "require": { "php": ">=8.0", - "ext-ctype": "*", - "ext-iconv": "*", "ext-json": "*", "ext-simplexml": "*", - "composer/package-versions-deprecated": "1.11.99.1", "doctrine/annotations": "^1.12", "doctrine/doctrine-bundle": "^2.3", "doctrine/doctrine-migrations-bundle": "^3.1", @@ -26,16 +23,15 @@ "symfony/framework-bundle": "5.2.*", "symfony/messenger": "5.2.*", "symfony/monolog-bundle": "^3.6", - "symfony/proxy-manager-bridge": "5.2.*", "symfony/security-bundle": "5.2.*", "symfony/twig-bundle": "5.2.*", "symfony/uid": "5.2.*", - "symfony/yaml": "5.2.*", "webmozart/assert": "^1.10", "zircote/swagger-php": "^3.1" }, "require-dev": { "fzaninotto/faker": "^1.5", + "icanhazstring/composer-unused": "^0.7.5", "object-calisthenics/phpcs-calisthenics-rules": "^3.9", "phpunit/phpunit": "^9.5", "qossmic/deptrac-shim": "^0.12.0", @@ -43,6 +39,7 @@ "roave/security-advisories": "dev-master", "squizlabs/php_codesniffer": "^3.5", "symfony/phpunit-bridge": "^5.2", + "symfony/yaml": "5.2.*", "symplify/coding-standard": "^9.2", "symplify/easy-coding-standard": "^9.2", "vimeo/psalm": "^4.6" @@ -88,12 +85,27 @@ "deptrac analyze src/Game/config/depfile.yaml" ], "analyzer": [ + "@composer", + "@symfony", "@phpcs", "@psalm", "@ecs", "@rector", "@deptrac" ], + "symfony": [ + "php lint.php src/Crossword/config", + "php lint.php src/Dictionary/config", + "php lint.php src/Game/config", + "php lint.php src/SharedKernel/config", + "php lint.php src/Swagger/config", + "bin/console debug:container --deprecations", + "bin/console doctrine:ensure-production-settings --env=prod" + ], + "composer": [ + "composer validate", + "composer unused" + ], "test": [ "@phpunit" ], diff --git a/code/composer.lock b/code/composer.lock index fd27a08..ac46ee7 100644 --- a/code/composer.lock +++ b/code/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "945aecf302b1a7a6901e8b22399162f6", + "content-hash": "5eac6970b0234a4982f2950c3558989b", "packages": [ { "name": "composer/package-versions-deprecated", - "version": "1.11.99.1", + "version": "1.11.99.2", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "7413f0b55a051e89485c5cb9f765fe24bb02a7b6" + "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/7413f0b55a051e89485c5cb9f765fe24bb02a7b6", - "reference": "7413f0b55a051e89485c5cb9f765fe24bb02a7b6", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c6522afe5540d5fc46675043d3ed5a45a740b27c", + "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c", "shasum": "" }, "require": { @@ -61,7 +61,7 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.1" + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.2" }, "funding": [ { @@ -77,7 +77,7 @@ "type": "tidelift" } ], - "time": "2020-11-11T10:22:58+00:00" + "time": "2021-05-24T07:46:03+00:00" }, { "name": "doctrine/annotations", @@ -5305,73 +5305,6 @@ ], "time": "2021-02-17T15:24:54+00:00" }, - { - "name": "symfony/proxy-manager-bridge", - "version": "v5.2.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/proxy-manager-bridge.git", - "reference": "fd6bb40190b1719abbe831be09adf38e0744d5f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/proxy-manager-bridge/zipball/fd6bb40190b1719abbe831be09adf38e0744d5f5", - "reference": "fd6bb40190b1719abbe831be09adf38e0744d5f5", - "shasum": "" - }, - "require": { - "composer/package-versions-deprecated": "^1.8", - "friendsofphp/proxy-manager-lts": "^1.0.2", - "php": ">=7.2.5", - "symfony/dependency-injection": "^5.0" - }, - "require-dev": { - "symfony/config": "^4.4|^5.0" - }, - "type": "symfony-bridge", - "autoload": { - "psr-4": { - "Symfony\\Bridge\\ProxyManager\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides integration for ProxyManager with various Symfony components", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/proxy-manager-bridge/tree/v5.2.4" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-01-27T10:01:46+00:00" - }, { "name": "symfony/redis-messenger", "version": "v5.2.4", @@ -6680,16 +6613,16 @@ }, { "name": "symfony/yaml", - "version": "v5.2.5", + "version": "v5.2.10", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "298a08ddda623485208506fcee08817807a251dd" + "reference": "cd7930d6a7e0d8ceac299846235bc6e2e032c3a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/298a08ddda623485208506fcee08817807a251dd", - "reference": "298a08ddda623485208506fcee08817807a251dd", + "url": "https://api.github.com/repos/symfony/yaml/zipball/cd7930d6a7e0d8ceac299846235bc6e2e032c3a3", + "reference": "cd7930d6a7e0d8ceac299846235bc6e2e032c3a3", "shasum": "" }, "require": { @@ -6735,7 +6668,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.2.5" + "source": "https://github.com/symfony/yaml/tree/v5.2.10" }, "funding": [ { @@ -6751,7 +6684,7 @@ "type": "tidelift" } ], - "time": "2021-03-06T07:59:01+00:00" + "time": "2021-05-26T17:40:38+00:00" }, { "name": "twig/twig", @@ -7126,6 +7059,249 @@ ], "time": "2021-03-30T17:13:30+00:00" }, + { + "name": "composer/ca-bundle", + "version": "1.2.9", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/78a0e288fdcebf92aa2318a8d3656168da6ac1a5", + "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "psr/log": "^1.0", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.2.9" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-01-12T12:10:35+00:00" + }, + { + "name": "composer/composer", + "version": "2.0.13", + "source": { + "type": "git", + "url": "https://github.com/composer/composer.git", + "reference": "986e8b86b7b570632ad0a905c3726c33dd4c0efb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/composer/zipball/986e8b86b7b570632ad0a905c3726c33dd4c0efb", + "reference": "986e8b86b7b570632ad0a905c3726c33dd4c0efb", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.0", + "composer/metadata-minifier": "^1.0", + "composer/semver": "^3.0", + "composer/spdx-licenses": "^1.2", + "composer/xdebug-handler": "^1.1", + "justinrainbow/json-schema": "^5.2.10", + "php": "^5.3.2 || ^7.0 || ^8.0", + "psr/log": "^1.0", + "react/promise": "^1.2 || ^2.7", + "seld/jsonlint": "^1.4", + "seld/phar-utils": "^1.0", + "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0", + "symfony/filesystem": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0", + "symfony/finder": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0", + "symfony/process": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0" + }, + "require-dev": { + "phpspec/prophecy": "^1.10", + "symfony/phpunit-bridge": "^4.2 || ^5.0" + }, + "suggest": { + "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", + "ext-zip": "Enabling the zip extension allows you to unzip archives", + "ext-zlib": "Allow gzip compression of HTTP requests" + }, + "bin": [ + "bin/composer" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\": "src/Composer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "https://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.", + "homepage": "https://getcomposer.org/", + "keywords": [ + "autoload", + "dependency", + "package" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/composer/issues", + "source": "https://github.com/composer/composer/tree/2.0.13" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-04-27T11:11:08+00:00" + }, + { + "name": "composer/metadata-minifier", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/metadata-minifier.git", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/metadata-minifier/zipball/c549d23829536f0d0e984aaabbf02af91f443207", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "composer/composer": "^2", + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\MetadataMinifier\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Small utility library that handles metadata minification and expansion.", + "keywords": [ + "composer", + "compression" + ], + "support": { + "issues": "https://github.com/composer/metadata-minifier/issues", + "source": "https://github.com/composer/metadata-minifier/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-04-07T13:37:33+00:00" + }, { "name": "composer/semver", "version": "3.2.4", @@ -7207,6 +7383,85 @@ ], "time": "2020-11-13T08:59:24+00:00" }, + { + "name": "composer/spdx-licenses", + "version": "1.5.5", + "source": { + "type": "git", + "url": "https://github.com/composer/spdx-licenses.git", + "reference": "de30328a7af8680efdc03e396aad24befd513200" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/de30328a7af8680efdc03e396aad24befd513200", + "reference": "de30328a7af8680efdc03e396aad24befd513200", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Spdx\\": "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": "SPDX licenses list and validation library.", + "keywords": [ + "license", + "spdx", + "validator" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/spdx-licenses/issues", + "source": "https://github.com/composer/spdx-licenses/tree/1.5.5" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2020-12-03T16:04:16+00:00" + }, { "name": "composer/xdebug-handler", "version": "1.4.6", @@ -7640,6 +7895,76 @@ "abandoned": true, "time": "2015-05-29T06:29:14+00:00" }, + { + "name": "icanhazstring/composer-unused", + "version": "0.7.5", + "source": { + "type": "git", + "url": "https://github.com/composer-unused/composer-unused.git", + "reference": "c38aca9d85410d24359adf64e6d519b79604d9ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer-unused/composer-unused/zipball/c38aca9d85410d24359adf64e6d519b79604d9ce", + "reference": "c38aca9d85410d24359adf64e6d519b79604d9ce", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1 || ^2.0", + "composer/composer": "^1.1 || ^2.0@dev", + "ext-json": "*", + "nikic/php-parser": "^4.2", + "php": ">=7.3", + "psr/container": "^1.0", + "psr/log": "^1.1", + "symfony/finder": "^4.2 || ^5.0" + }, + "require-dev": { + "ext-ds": "*", + "ext-zend-opcache": "*", + "jangregor/phpstan-prophecy": "^0.6.2", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/phpstan": "^0.12.14", + "phpunit/phpunit": "^9.0.1", + "roave/security-advisories": "dev-master", + "squizlabs/php_codesniffer": "^3.5" + }, + "bin": [ + "bin/composer-unused" + ], + "type": "composer-plugin", + "extra": { + "class": "Icanhazstring\\Composer\\Unused\\UnusedPlugin" + }, + "autoload": { + "psr-4": { + "Icanhazstring\\Composer\\Unused\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Frömer", + "email": "blubb0r05+github@gmail.com" + } + ], + "description": "Show unused packages by scanning your code", + "homepage": "https://github.com/composer-unused/composer-unused", + "keywords": [ + "composer", + "php-parser", + "plugin", + "unused" + ], + "support": { + "issues": "https://github.com/composer-unused/composer-unused/issues", + "source": "https://github.com/composer-unused/composer-unused" + }, + "time": "2020-10-28T11:39:37+00:00" + }, { "name": "jean85/pretty-package-versions", "version": "2.0.3", @@ -7699,6 +8024,76 @@ }, "time": "2021-02-22T10:52:38+00:00" }, + { + "name": "justinrainbow/json-schema", + "version": "5.2.10", + "source": { + "type": "git", + "url": "https://github.com/justinrainbow/json-schema.git", + "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", + "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", + "json-schema/json-schema-test-suite": "1.2.0", + "phpunit/phpunit": "^4.8.35" + }, + "bin": [ + "bin/validate-json" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "JsonSchema\\": "src/JsonSchema/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bruno Prieto Reis", + "email": "bruno.p.reis@gmail.com" + }, + { + "name": "Justin Rainbow", + "email": "justin.rainbow@gmail.com" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Robert Schönthal", + "email": "seroscho@googlemail.com" + } + ], + "description": "A library to validate a json schema.", + "homepage": "https://github.com/justinrainbow/json-schema", + "keywords": [ + "json", + "schema" + ], + "support": { + "issues": "https://github.com/justinrainbow/json-schema/issues", + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.10" + }, + "time": "2020-05-27T16:41:55+00:00" + }, { "name": "myclabs/deep-copy", "version": "1.10.2", @@ -10850,6 +11245,117 @@ ], "time": "2020-09-28T06:39:44+00:00" }, + { + "name": "seld/jsonlint", + "version": "1.8.3", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/jsonlint.git", + "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9ad6ce79c342fbd44df10ea95511a1b24dee5b57", + "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "bin": [ + "bin/jsonlint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Seld\\JsonLint\\": "src/Seld/JsonLint/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "JSON Linter", + "keywords": [ + "json", + "linter", + "parser", + "validator" + ], + "support": { + "issues": "https://github.com/Seldaek/jsonlint/issues", + "source": "https://github.com/Seldaek/jsonlint/tree/1.8.3" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/seld/jsonlint", + "type": "tidelift" + } + ], + "time": "2020-11-11T09:19:24+00:00" + }, + { + "name": "seld/phar-utils", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/phar-utils.git", + "reference": "8674b1d84ffb47cc59a101f5d5a3b61e87d23796" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/8674b1d84ffb47cc59a101f5d5a3b61e87d23796", + "reference": "8674b1d84ffb47cc59a101f5d5a3b61e87d23796", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Seld\\PharUtils\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be" + } + ], + "description": "PHAR file format utilities, for when PHP phars you up", + "keywords": [ + "phar" + ], + "support": { + "issues": "https://github.com/Seldaek/phar-utils/issues", + "source": "https://github.com/Seldaek/phar-utils/tree/master" + }, + "time": "2020-07-07T18:42:57+00:00" + }, { "name": "slevomat/coding-standard", "version": "6.4.1", @@ -12619,8 +13125,6 @@ "prefer-lowest": false, "platform": { "php": ">=8.0", - "ext-ctype": "*", - "ext-iconv": "*", "ext-json": "*", "ext-simplexml": "*" }, diff --git a/code/lint.php b/code/lint.php new file mode 100644 index 0000000..4bb4f1b --- /dev/null +++ b/code/lint.php @@ -0,0 +1,12 @@ +add(new LintCommand()) + ->getApplication() + ->setDefaultCommand('lint:yaml', true) + ->run(); \ No newline at end of file diff --git a/code/src/Game/Features/Player/Level/Level.php b/code/src/Game/Features/Player/Level/Level.php index 4fd1bc8..05688d4 100644 --- a/code/src/Game/Features/Player/Level/Level.php +++ b/code/src/Game/Features/Player/Level/Level.php @@ -11,7 +11,7 @@ * * @todo https://wiki.php.net/rfc/enumerations */ -final class Level extends Enum +class Level extends Enum { public const LAST_LEVEL = 5; } diff --git a/code/src/Game/Features/Player/Player/Player.php b/code/src/Game/Features/Player/Player/Player.php index 25d8a3c..8bbb703 100644 --- a/code/src/Game/Features/Player/Player/Player.php +++ b/code/src/Game/Features/Player/Player/Player.php @@ -9,7 +9,7 @@ use App\Game\Features\Player\Level\LevelUpEvent; use DateTimeImmutable; -final class Player extends AggregateRoot +class Player extends AggregateRoot { private PlayerId $playerId; private DateTimeImmutable $createdAt; diff --git a/code/symfony.lock b/code/symfony.lock index 60b27ec..33eb278 100644 --- a/code/symfony.lock +++ b/code/symfony.lock @@ -5,12 +5,24 @@ "amphp/byte-stream": { "version": "v1.8.0" }, + "composer/ca-bundle": { + "version": "1.2.9" + }, + "composer/composer": { + "version": "2.0.13" + }, + "composer/metadata-minifier": { + "version": "1.0.0" + }, "composer/package-versions-deprecated": { "version": "1.11.99.1" }, "composer/semver": { "version": "3.2.4" }, + "composer/spdx-licenses": { + "version": "1.5.5" + }, "composer/xdebug-handler": { "version": "1.4.5" }, @@ -142,9 +154,15 @@ "guzzlehttp/psr7": { "version": "1.7.0" }, + "icanhazstring/composer-unused": { + "version": "0.7.5" + }, "jean85/pretty-package-versions": { "version": "2.0.3" }, + "justinrainbow/json-schema": { + "version": "5.2.10" + }, "laminas/laminas-code": { "version": "4.1.0" }, @@ -342,6 +360,12 @@ "sebastian/version": { "version": "3.0.2" }, + "seld/jsonlint": { + "version": "1.8.3" + }, + "seld/phar-utils": { + "version": "1.1.1" + }, "slevomat/coding-standard": { "version": "6.4.1" }, @@ -536,9 +560,6 @@ "symfony/property-info": { "version": "v5.2.4" }, - "symfony/proxy-manager-bridge": { - "version": "v5.2.4" - }, "symfony/redis-messenger": { "version": "v5.2.4" }, diff --git a/code/var/database/db.sqlite b/code/var/database/db.sqlite index 9b15d0086db2cba4847b5058081f3fd6871b8d1c..66dda35972524e92da564f314aa421924997cd21 100644 GIT binary patch delta 873 zcmZo@n9JAz#1o_iwHO$fN*EXzM1gcJkT#yEV=Sq~pyxe-mv1ct8~1AlzODQVdByn} zxL@H??kE<%wTu%dcX20jHCFMmi%Uy0HhWK=z-?ErqmW#bnpl#W z;#i^(;_2%e9OCF3py1~pqTm>gE{g6QbZ88WiN}7ZMLwqN7k+kV2Nef}F(4 z)FK6E562)4^7M5Kid67+jnv3Y(bUxCV-t6jW@O0BOG&LLF3ia+ zNsUh|Ey)M-<1;dgOY(~<;|-w<_NFv$c5z8b##Z&oe!SL`XY(rXD>(c6_&A2RDmZ!i z0ZpE~8;jU&UekIsb@UDpcO3n+a delta 3730 zcmcImYit$A72dsf@3noe_g;vhU`Wh$Z2SNZncbP$$4!Gviz_(+;^1r*(X`3ztB^P@ zg&Si^)ytzKB@PMcMr?l&ngq2)YL$`)xIt=~v{F@xR6=T^rUS%+dFgS%zWpZ*>h(1?|((!4>-1RakC_)Dv~5Eh2N*(xAUbQ(%dYq!)3L2 zL(1m6q{7+aYwE_v%lT*WU2l$_$tjO!v&*8M{5Iv_V5Tm5F3%%1*OnOyMuMSeqM;)? zoI6zwmAYkSvwWao$FLuaI$Qc5dd#*o+uUHV4VqR}v~t zU#Wk~#=b|A!EO4b2e*`JYf4?iJG>`{`BOpn!Qph>vgT&_uvy{mP*9uSITWo^*G1PF zmPFrFTcRXA@k#VXZ>hTV!A*US4fbyy*wm+ET|<~6T`y^*jP)|3pCgi_?Bh;nLKy}& zp%yieMnW4=VsqqT%R`>)>wzA^kLAyzWK=VJ)ANlW)NICaXh!e%7KZ+l4aB(324YB3 z=FiURn%m4E8r2OH7+Bcgd&ml03wewgh80pmTw0mowQ%~$`3Z4Z!*d9QDBmxQIc*7{ zhq+Axog)$wjHqh`$Thf!bgpAp(>%|z_zXh9_ryGW5Mi?nY%}6MDLPP>t9M#!4hD>y zR>*)w(-74{1997;K+iGpybun_oaRf;bjSR3tjx4IbV5}4PU@7iDxouBQ-gXTG6*nH z&oz(*fkfD#mK*w-W`^E0op8=lFUX507jxh9sOekCB@iGAuLUgjIMOZ4@C`T$-!qcM zbdRo!#oOmGm6QoC<5{Loiqs3z51qRbQ!S5cM(8mVat5Z_+(eemDDpiYywq%B*!C2g zAp6$5WI8M3S;s)ii3rG^byn7n-PLv9wnF4_$P&s8g51!i2*iY%1dhShC&>iY{CTC* zvOXuT5>er*+~#NrmjQ3ENlmDLcrv*mU73%007vh_OJ~6OxF)>nhRHPSdMqR+nQ~Q! zzddpiUT;mc2N)Wj^|UHc=*|@jnbS9ZkMC-;-0>o6(||JCw|p?9JmplRM&9e=e_0 z-p z`B&ZbWYLKq%RQ<3lM((22(Lj$>~!t~?DP+HBJ-tWC*^OA<@By(r)?)?C-bNLdih2& z{Nfl`^2hx8c%XAdM{GS0%RYd~4l$`H@8!OnYU>6C z6My>%Jbn+4blg}@JUj;ivGMj`sDdp?Y#4BAXWm|OSWLMm>J-s%4 zU*S?s9YY5;iPrqICsjO{ggaj6%MI1yH>B=`WPcWp^23EFW3DxvHbeK0a`~K AumAu6