Skip to content

Commit

Permalink
chore: update coding-standards to 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Oct 20, 2024
1 parent 28e974c commit 5929feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"twig/twig": "^3.7"
},
"require-dev": {
"brotkrueml/coding-standards": "~5.1.0",
"brotkrueml/coding-standards": "~6.1.0",
"ergebnis/composer-normalize": "~2.42.0",
"infection/infection": "^0.27.10",
"phpstan/phpstan": "1.10.59",
Expand Down
4 changes: 2 additions & 2 deletions src/Parser/LineNumbersParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function parse(string $numbers): array
$separatedNumbers = [];
foreach ($numbersArray as $numberWithPossibleRange) {
if (\is_numeric($numberWithPossibleRange)) {
$separatedNumbers[] = (int)$numberWithPossibleRange;
$separatedNumbers[] = (int) $numberWithPossibleRange;
continue;
}
if (! \str_contains($numberWithPossibleRange, '-')) {
Expand All @@ -47,7 +47,7 @@ public function parse(string $numbers): array
if (! \is_numeric($high)) {
continue;
}
$separatedNumbers = [...$separatedNumbers, ...\range((int)$low, (int)$high)];
$separatedNumbers = [...$separatedNumbers, ...\range((int) $low, (int) $high)];
}

\sort($separatedNumbers);
Expand Down
2 changes: 1 addition & 1 deletion tests/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static function providerForHighlightThroughTwigTemplate(): \Iterator
#[Test]
public function warningIsLoggedIfLanguageIsNotAvailable(): void
{
$logger = new class() implements LoggerInterface {
$logger = new class implements LoggerInterface {
use LoggerTrait;

public string $level = '';
Expand Down

0 comments on commit 5929feb

Please sign in to comment.