Skip to content

Commit 4db6445

Browse files
author
dmitriy
committed
updated bundles + improvements
1 parent 24ebce7 commit 4db6445

40 files changed

+360
-509
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ phpcs: ## Run PHP CodeSniffer
201201

202202
###> ecs ###
203203
ecs: ## Run Easy Coding Standard
204-
@make exec-bash cmd="error_reporting=0 ./vendor/bin/ecs --clear-cache check src tests"
204+
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache check src tests"
205205

206206
ecs-fix: ## Run The Easy Coding Standard to fix issues
207-
@make exec-bash cmd="error_reporting=0 ./vendor/bin/ecs --clear-cache --fix check src tests"
207+
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache --fix check src tests"
208208
###< ecs ###
209209

210210
###> phpmetrics ###

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"symfony/intl": "4.4.*",
6060
"symfony/mailer": "4.4.*",
6161
"symfony/messenger": "4.4.*",
62-
"symfony/monolog-bundle": "^3.5",
62+
"symfony/monolog-bundle": "^3.6",
6363
"symfony/orm-pack": "*",
6464
"symfony/process": "4.4.*",
6565
"symfony/routing": "4.4.*",
@@ -121,10 +121,13 @@
121121
"autoload-dev": {
122122
"psr-4": {
123123
"App\\Tests\\": "tests/",
124-
"PHPUnit\\": "tools/01_phpunit/vendor/phpunit/phpunit/src/",
124+
"PHPUnit\\": "tools/01_phpunit/vendor/phpunit/phpunit/src",
125125
"Symfony\\Component\\BrowserKit\\": "tools/01_phpunit/vendor/symfony/browser-kit",
126126
"Symfony\\Bridge\\PhpUnit\\": "tools/01_phpunit/vendor/symfony/phpunit-bridge",
127-
"PHPMD\\": "tools/06_phpmd/vendor/phpmd/phpmd/src/bin"
127+
"PHPMD\\": "tools/06_phpmd/vendor/phpmd/phpmd/src/bin",
128+
"PhpCsFixer\\": "tools/03_ecs/vendor/friendsofphp/php-cs-fixer/src",
129+
"SlevomatCodingStandard\\": "tools/03_ecs/vendor/slevomat/coding-standard/SlevomatCodingStandard",
130+
"Symplify\\CodingStandard\\": "tools/03_ecs/vendor/symplify/coding-standard/src"
128131
}
129132
},
130133
"prefer-stable": true,

composer.lock

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecs.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayOpenerAndCloserNewlineFixer;
3030
use Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixer;
3131
use Symplify\CodingStandard\Fixer\Strict\BlankLineAfterStrictTypesFixer;
32+
use SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff;
3233

3334
return static function (ContainerConfigurator $containerConfigurator): void {
3435
$containerConfigurator->import(__DIR__ . '/tools/03_ecs/vendor/symplify/easy-coding-standard/config/set/psr12.php');
@@ -73,6 +74,8 @@
7374

7475
$services->set(SingleBlankLineBeforeNamespaceFixer::class);
7576

77+
$services->set(DuplicateSpacesSniff::class)->property('ignoreSpacesInAnnotation', true);
78+
7679
$parameters = $containerConfigurator->parameters();
7780

7881
$parameters->set('skip',

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
66
backupGlobals="false"
77
backupStaticAttributes="false"
88
bootstrap="tests/bootstrap.php"

src/Command/ApiKey/CreateApiKeyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateApiKeyCommand extends Command
3535
use ApiKeyUserManagementHelper;
3636

3737
/**
38-
* @var array<int, array<string, int|string>>
38+
* @var array<int, array<string, string>>
3939
*/
4040
private static array $commandParameters = [
4141
[

src/Command/User/CreateUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CreateUserCommand extends Command
3838
private const PARAMETER_DESCRIPTION = 'description';
3939

4040
/**
41-
* @var array<int, array<string, int|string>>
41+
* @var array<int, array<string, string>>
4242
*/
4343
private static array $commandParameters = [
4444
[

src/Command/User/CreateUserGroupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateUserGroupCommand extends Command
3535
use StyleSymfony;
3636

3737
/**
38-
* @var array<int, array<string, int|string>>
38+
* @var array<int, array<string, string>>
3939
*/
4040
private static array $commandParameters = [
4141
[

src/DTO/RestDto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class RestDto implements RestDtoInterface
3131
*
3232
* And in that method make all necessary that you need to set that specified value.
3333
*
34-
* @var mixed[]
34+
* @var array<string, string>
3535
*/
3636
protected static array $mappings = [];
3737

src/Doctrine/DBAL/Types/EnumLanguageType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ class EnumLanguageType extends EnumType
1717
public const LANGUAGE_RU = 'ru';
1818

1919
protected static string $name = 'EnumLanguage';
20+
21+
/**
22+
* @var array<int, string>
23+
*/
2024
protected static array $values = [
2125
self::LANGUAGE_EN,
2226
self::LANGUAGE_RU,

0 commit comments

Comments
 (0)