Commit 972a0eac authored by a.chevordin@iq-adv.ru's avatar a.chevordin@iq-adv.ru
Browse files

install fixer and fix codestyle

parent ee4b26c8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,3 +19,8 @@
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###

.php-cs-fixer.dist.php

0 → 100644
+13 −0
Original line number Diff line number Diff line
<?php

$finder = (new PhpCsFixer\Finder())
    ->in(__DIR__)
    ->exclude('var')
;

return (new PhpCsFixer\Config())
    ->setRules([
        '@PSR12' => true,
    ])
    ->setFinder($finder)
;
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@
    },
    "require-dev": {
        "doctrine/doctrine-fixtures-bundle": "^3.5",
        "friendsofphp/php-cs-fixer": "^3.38",
        "phpunit/phpunit": "^10.4",
        "symfony/maker-bundle": "^1.51"
    }
+458 −1
Original line number Diff line number Diff line
@@ -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": "dede1a0770d10bbcc15aada965a3bf73",
    "content-hash": "07e3ce9ee22bd3ef10d06295b9732a68",
    "packages": [
        {
            "name": "brick/math",
@@ -5561,6 +5561,224 @@
        }
    ],
    "packages-dev": [
        {
            "name": "composer/pcre",
            "version": "3.1.1",
            "source": {
                "type": "git",
                "url": "https://github.com/composer/pcre.git",
                "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/composer/pcre/zipball/00104306927c7a0919b4ced2aaa6782c1e61a3c9",
                "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9",
                "shasum": ""
            },
            "require": {
                "php": "^7.4 || ^8.0"
            },
            "require-dev": {
                "phpstan/phpstan": "^1.3",
                "phpstan/phpstan-strict-rules": "^1.1",
                "symfony/phpunit-bridge": "^5"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-main": "3.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Composer\\Pcre\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jordi Boggiano",
                    "email": "j.boggiano@seld.be",
                    "homepage": "http://seld.be"
                }
            ],
            "description": "PCRE wrapping library that offers type-safe preg_* replacements.",
            "keywords": [
                "PCRE",
                "preg",
                "regex",
                "regular expression"
            ],
            "support": {
                "issues": "https://github.com/composer/pcre/issues",
                "source": "https://github.com/composer/pcre/tree/3.1.1"
            },
            "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": "2023-10-11T07:11:09+00:00"
        },
        {
            "name": "composer/semver",
            "version": "3.4.0",
            "source": {
                "type": "git",
                "url": "https://github.com/composer/semver.git",
                "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32",
                "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32",
                "shasum": ""
            },
            "require": {
                "php": "^5.3.2 || ^7.0 || ^8.0"
            },
            "require-dev": {
                "phpstan/phpstan": "^1.4",
                "symfony/phpunit-bridge": "^4.2 || ^5"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-main": "3.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"
            ],
            "support": {
                "irc": "ircs://irc.libera.chat:6697/composer",
                "issues": "https://github.com/composer/semver/issues",
                "source": "https://github.com/composer/semver/tree/3.4.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": "2023-08-31T09:50:34+00:00"
        },
        {
            "name": "composer/xdebug-handler",
            "version": "3.0.3",
            "source": {
                "type": "git",
                "url": "https://github.com/composer/xdebug-handler.git",
                "reference": "ced299686f41dce890debac69273b47ffe98a40c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c",
                "reference": "ced299686f41dce890debac69273b47ffe98a40c",
                "shasum": ""
            },
            "require": {
                "composer/pcre": "^1 || ^2 || ^3",
                "php": "^7.2.5 || ^8.0",
                "psr/log": "^1 || ^2 || ^3"
            },
            "require-dev": {
                "phpstan/phpstan": "^1.0",
                "phpstan/phpstan-strict-rules": "^1.1",
                "symfony/phpunit-bridge": "^6.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Composer\\XdebugHandler\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "John Stevenson",
                    "email": "john-stevenson@blueyonder.co.uk"
                }
            ],
            "description": "Restarts a process without Xdebug.",
            "keywords": [
                "Xdebug",
                "performance"
            ],
            "support": {
                "irc": "irc://irc.freenode.org/composer",
                "issues": "https://github.com/composer/xdebug-handler/issues",
                "source": "https://github.com/composer/xdebug-handler/tree/3.0.3"
            },
            "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": "2022-02-25T21:32:43+00:00"
        },
        {
            "name": "doctrine/data-fixtures",
            "version": "1.6.7",
@@ -5730,6 +5948,99 @@
            ],
            "time": "2023-11-15T19:40:48+00:00"
        },
        {
            "name": "friendsofphp/php-cs-fixer",
            "version": "v3.38.2",
            "source": {
                "type": "git",
                "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
                "reference": "d872cdd543797ade030aaa307c0a4954a712e081"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d872cdd543797ade030aaa307c0a4954a712e081",
                "reference": "d872cdd543797ade030aaa307c0a4954a712e081",
                "shasum": ""
            },
            "require": {
                "composer/semver": "^3.3",
                "composer/xdebug-handler": "^3.0.3",
                "ext-json": "*",
                "ext-tokenizer": "*",
                "php": "^7.4 || ^8.0",
                "sebastian/diff": "^4.0 || ^5.0",
                "symfony/console": "^5.4 || ^6.0",
                "symfony/event-dispatcher": "^5.4 || ^6.0",
                "symfony/filesystem": "^5.4 || ^6.0",
                "symfony/finder": "^5.4 || ^6.0",
                "symfony/options-resolver": "^5.4 || ^6.0",
                "symfony/polyfill-mbstring": "^1.27",
                "symfony/polyfill-php80": "^1.27",
                "symfony/polyfill-php81": "^1.27",
                "symfony/process": "^5.4 || ^6.0",
                "symfony/stopwatch": "^5.4 || ^6.0"
            },
            "require-dev": {
                "facile-it/paraunit": "^1.3 || ^2.0",
                "justinrainbow/json-schema": "^5.2",
                "keradus/cli-executor": "^2.0",
                "mikey179/vfsstream": "^1.6.11",
                "php-coveralls/php-coveralls": "^2.5.3",
                "php-cs-fixer/accessible-object": "^1.1",
                "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
                "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
                "phpspec/prophecy": "^1.16",
                "phpspec/prophecy-phpunit": "^2.0",
                "phpunit/phpunit": "^9.5",
                "symfony/phpunit-bridge": "^6.2.3",
                "symfony/yaml": "^5.4 || ^6.0"
            },
            "suggest": {
                "ext-dom": "For handling output formats in XML",
                "ext-mbstring": "For handling non-UTF8 characters."
            },
            "bin": [
                "php-cs-fixer"
            ],
            "type": "application",
            "autoload": {
                "psr-4": {
                    "PhpCsFixer\\": "src/"
                }
            },
            "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",
            "keywords": [
                "Static code analysis",
                "fixer",
                "standards",
                "static analysis"
            ],
            "support": {
                "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
                "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.38.2"
            },
            "funding": [
                {
                    "url": "https://github.com/keradus",
                    "type": "github"
                }
            ],
            "time": "2023-11-14T00:19:22+00:00"
        },
        {
            "name": "myclabs/deep-copy",
            "version": "1.11.1",
@@ -7385,6 +7696,152 @@
            ],
            "time": "2023-09-18T18:17:31+00:00"
        },
        {
            "name": "symfony/options-resolver",
            "version": "v6.3.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/options-resolver.git",
                "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a10f19f5198d589d5c33333cffe98dc9820332dd",
                "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd",
                "shasum": ""
            },
            "require": {
                "php": ">=8.1",
                "symfony/deprecation-contracts": "^2.5|^3"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\OptionsResolver\\": ""
                },
                "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 an improved replacement for the array_replace PHP function",
            "homepage": "https://symfony.com",
            "keywords": [
                "config",
                "configuration",
                "options"
            ],
            "support": {
                "source": "https://github.com/symfony/options-resolver/tree/v6.3.0"
            },
            "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": "2023-05-12T14:21:09+00:00"
        },
        {
            "name": "symfony/polyfill-php81",
            "version": "v1.28.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-php81.git",
                "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/7581cd600fa9fd681b797d00b02f068e2f13263b",
                "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b",
                "shasum": ""
            },
            "require": {
                "php": ">=7.1"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-main": "1.28-dev"
                },
                "thanks": {
                    "name": "symfony/polyfill",
                    "url": "https://github.com/symfony/polyfill"
                }
            },
            "autoload": {
                "files": [
                    "bootstrap.php"
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Php81\\": ""
                },
                "classmap": [
                    "Resources/stubs"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
            "homepage": "https://symfony.com",
            "keywords": [
                "compatibility",
                "polyfill",
                "portable",
                "shim"
            ],
            "support": {
                "source": "https://github.com/symfony/polyfill-php81/tree/v1.28.0"
            },
            "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": "2023-01-26T09:26:14+00:00"
        },
        {
            "name": "symfony/process",
            "version": "v6.3.4",
+2 −2
Original line number Diff line number Diff line
@@ -25,12 +25,12 @@ class UserFixtures extends Fixture
        $managerRole = new Role(RoleCodes::MANAGER);
        $manager->persist($managerRole);

        $basicUser = new User('test@gmail.com', 'хуй', $userRole);
        $basicUser = new User('test@gmail.com', self::USER_PASSWORD, $userRole);
        $hashedPassword = $this->hasher->hashPassword($basicUser, self::USER_PASSWORD);
        $basicUser->setPassword($hashedPassword);
        $manager->persist($basicUser);

        $managerUser = new User('testAdmin@gmail.com', 'хуй', $managerRole);
        $managerUser = new User('testAdmin@gmail.com', self::USER_PASSWORD, $managerRole);
        $hashedPassword = $this->hasher->hashPassword($managerUser, self::USER_PASSWORD);
        $managerUser->setPassword($hashedPassword);
        $manager->persist($managerUser);
Loading