Skip to content

Commit ffd8cef

Browse files
author
Xavier Marchegay
committed
add linter
1 parent 15b4446 commit ffd8cef

File tree

7 files changed

+15
-30
lines changed

7 files changed

+15
-30
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015-2019 Clever-Age
3+
Copyright (c) 2015-2023 Clever-Age
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.ONESHELL:
2+
SHELL := /bin/bash
3+
4+
linter: #[Linter]
5+
vendor/bin/php-cs-fixer fix src
6+
vendor/bin/rector process
7+
vendor/bin/phpstan

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@
4949
"doctrine/doctrine-bundle": "^2"
5050
},
5151
"require-dev": {
52+
"friendsofphp/php-cs-fixer": "*",
5253
"roave/security-advisories": "dev-latest",
5354
"phpunit/phpunit": "*",
5455
"phpstan/phpstan": "*",
5556
"phpstan/phpstan-symfony": "*",
5657
"phpstan/extension-installer": "*",
5758
"rector/rector": "*",
58-
"symplify/easy-coding-standard": "*",
59-
"symplify/phpstan-rules": "*",
6059
"symfony/test-pack": "^1.1"
6160
},
6261
"config": {
62+
"sort-packages": true,
6363
"allow-plugins": {
6464
"phpstan/extension-installer": true,
6565
"symfony/flex": true

ecs.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
$rectorConfig->sets([
1919
SetList::TYPE_DECLARATION,
20-
LevelSetList::UP_TO_PHP_81,
21-
SymfonyLevelSetList::UP_TO_SYMFONY_62,
20+
LevelSetList::UP_TO_PHP_82,
21+
SymfonyLevelSetList::UP_TO_SYMFONY_63,
2222
]);
2323

24-
$rectorConfig->phpVersion(PhpVersion::PHP_81);
24+
$rectorConfig->phpVersion(PhpVersion::PHP_82);
2525
};

src/Task/EntityManager/AbstractDoctrineQueryTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Psr\Log\LogLevel;
1919
use Symfony\Component\OptionsResolver\OptionsResolver;
2020
use UnexpectedValueException;
21+
2122
use function is_array;
2223

2324
/**

src/Task/EntityManager/DoctrineBatchWriterTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use SplObjectStorage;
2121
use Symfony\Component\OptionsResolver\OptionsResolver;
2222
use UnexpectedValueException;
23+
2324
use function count;
2425

2526
/**

0 commit comments

Comments
 (0)