Skip to content

Commit 412229b

Browse files
authored
Remove OrderedClassElementsInternalFixer (#948)
1 parent 7f50ad6 commit 412229b

File tree

7 files changed

+39
-260
lines changed

7 files changed

+39
-260
lines changed

.dev-tools/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"mi-schi/phpmd-extension": "^4.3",
1212
"phpmd/phpmd": "^2.15",
1313
"phpstan/extension-installer": "^1.3.1",
14-
"phpstan/phpstan": "^1.10.55",
14+
"phpstan/phpstan": "^1.10.56",
1515
"phpstan/phpstan-phpunit": "^1.3.15",
1616
"phpstan/phpstan-strict-rules": "^1.5.2",
17-
"squizlabs/php_codesniffer": "^3.8.0",
18-
"vimeo/psalm": "^5.18"
17+
"squizlabs/php_codesniffer": "^3.8.1",
18+
"vimeo/psalm": "^5.19"
1919
},
2020
"autoload": {
2121
"psr-4": {

.dev-tools/composer.lock

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

.dev-tools/src/Fixer/OrderedClassElementsInternalFixer.php

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

.dev-tools/src/OrderedClassElementsFixerWrapper.php

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

.dev-tools/src/Priority/PriorityCollection.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ final class PriorityCollection
2424
/** @var list<PriorityFixer> */
2525
private array $priorityFixers = [];
2626

27-
public static function create(): self
28-
{
29-
/** @var null|self $instance */
30-
static $instance;
31-
32-
if ($instance === null) {
33-
$instance = new self();
34-
}
35-
36-
return $instance;
37-
}
38-
3927
public function __construct()
4028
{
4129
$fixerFactory = new FixerFactory();
@@ -70,6 +58,18 @@ public function __construct()
7058
}
7159
}
7260

61+
public static function create(): self
62+
{
63+
/** @var null|self $instance */
64+
static $instance;
65+
66+
if ($instance === null) {
67+
$instance = new self();
68+
}
69+
70+
return $instance;
71+
}
72+
7373
public function getPriorityFixer(string $name): PriorityFixer
7474
{
7575
return $this->priorityFixers[$name];

0 commit comments

Comments
 (0)