Skip to content

Commit 85eb8b8

Browse files
dev: Migrated to phpcs v4 (#294)
2 parents 6ece80b + 56f4bf4 commit 85eb8b8

File tree

185 files changed

+128
-795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+128
-795
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"./vendor/bin/phpunit"
249249
],
250250
"phpcs": [
251-
"./vendor-bin/phpcs/vendor/bin/phpcs"
251+
"./vendor-bin/phpcs/vendor/bin/phpcs -s"
252252
],
253253
"markdownlint": [
254254
"npm run markdownlint"

packages/glob-matcher/src/BraceExpander/Ast/BraceExpansionNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
* @extends ParentNode<BraceExpansionNodeChild>
1010
*/
1111
class BraceExpansionNode extends ParentNode implements SequenceNodeChild {
12-
/**
13-
* @inheritDoc
14-
*/
1512
#[Override]
1613
public static function toIterable(Cursor $cursor): iterable {
1714
yield from self::iterate($cursor, 0, '');

packages/glob-matcher/src/BraceExpander/Ast/CharacterSequenceNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ public function __construct(
2525
// empty
2626
}
2727

28-
/**
29-
* @inheritDoc
30-
*/
3128
#[Override]
3229
public static function toIterable(Cursor $cursor): iterable {
3330
$start = mb_ord($cursor->node->start, Package::Encoding);

packages/glob-matcher/src/BraceExpander/Ast/IntegerSequenceNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ public function __construct(
3333
// empty
3434
}
3535

36-
/**
37-
* @inheritDoc
38-
*/
3936
#[Override]
4037
public static function toIterable(Cursor $cursor): iterable {
4138
$start = static::parse($cursor->node->start);

packages/glob-matcher/src/BraceExpander/Ast/SequenceNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
* @extends ParentNode<SequenceNodeChild>
1010
*/
1111
class SequenceNode extends ParentNode implements BraceExpansionNodeChild, SequenceNodeChild {
12-
/**
13-
* @inheritDoc
14-
*/
1512
#[Override]
1613
public static function toIterable(Cursor $cursor): iterable {
1714
foreach ($cursor as $child) {

packages/glob-matcher/src/BraceExpander/Ast/SequenceNodeTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ final class SequenceNodeTest extends TestCase {
1717
public function testToIterable(): void {
1818
$node = new SequenceNode([
1919
new class () implements SequenceNodeChild {
20-
/**
21-
* @inheritDoc
22-
*/
2320
#[Override]
2421
public static function toIterable(Cursor $cursor): iterable {
2522
return ['aa', 'ab'];
2623
}
2724
},
2825
new class () implements SequenceNodeChild {
29-
/**
30-
* @inheritDoc
31-
*/
3226
#[Override]
3327
public static function toIterable(Cursor $cursor): iterable {
3428
return ['ba', 'bb', 'bc'];

packages/glob-matcher/src/BraceExpander/Ast/StringNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Override;
88

99
class StringNode extends NodeString implements BraceExpansionNodeChild {
10-
/**
11-
* @inheritDoc
12-
*/
1310
#[Override]
1411
public static function toIterable(Cursor $cursor): iterable {
1512
return [$cursor->node->string];

packages/glob-matcher/src/BraceExpander/Parser/Factories/BraceExpansionNodeFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@
1111
* @extends NodeParentFactory<BraceExpansionNode, BraceExpansionNodeChild>
1212
*/
1313
class BraceExpansionNodeFactory extends NodeParentFactory {
14-
/**
15-
* @inheritDoc
16-
*/
1714
#[Override]
1815
protected function onCreate(array $children): ?object {
1916
return new BraceExpansionNode($children);
2017
}
2118

22-
/**
23-
* @inheritDoc
24-
*/
2519
#[Override]
2620
protected function onPush(array $children, ?object $node): bool {
2721
return true;

packages/glob-matcher/src/BraceExpander/Parser/Factories/SequenceNodeFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,11 @@
1313
* @extends NodeParentFactory<SequenceNode, SequenceNodeChild>
1414
*/
1515
class SequenceNodeFactory extends NodeParentFactory {
16-
/**
17-
* @inheritDoc
18-
*/
1916
#[Override]
2017
protected function onCreate(array $children): ?object {
2118
return count($children) > 1 ? new SequenceNode($children) : null;
2219
}
2320

24-
/**
25-
* @inheritDoc
26-
*/
2721
#[Override]
2822
protected function onPush(array $children, ?object $node): bool {
2923
return true;

packages/glob-matcher/src/Glob/Parser/Factories/CharacterNodeFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,11 @@ public function __construct(
1717
parent::__construct();
1818
}
1919

20-
/**
21-
* @inheritDoc
22-
*/
2320
#[Override]
2421
protected function onCreate(array $children): ?object {
2522
return $children !== [] ? new CharacterNode($this->negated, $children) : null;
2623
}
2724

28-
/**
29-
* @inheritDoc
30-
*/
3125
#[Override]
3226
protected function onPush(array $children, ?object $node): bool {
3327
return true;

0 commit comments

Comments
 (0)