Skip to content

Commit

Permalink
Apply the coding standard
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <[email protected]>
  • Loading branch information
williamdes committed Jan 10, 2025
1 parent 43e6f43 commit a7e16a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
20 changes: 0 additions & 20 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ parameters:
count: 6
path: test/Node/MoTranslatorTransTest.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
count: 8
path: test/Node/MoTranslatorTransTest.php

-
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
count: 3
path: test/Node/MoTranslatorTransTest.php

-
message: "#^Cannot call method compile\\(\\) on mixed\\.$#"
count: 2
Expand Down Expand Up @@ -99,13 +89,3 @@ parameters:
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#"
count: 4
path: test/Node/TransTest.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
count: 5
path: test/Node/TransTest.php

-
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
count: 1
path: test/Node/TransTest.php
4 changes: 3 additions & 1 deletion test/Node/MoTranslatorTransTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
namespace PhpMyAdmin\Tests\Twig\Extensions\Node;

use PhpMyAdmin\Twig\Extensions\Node\TransNode;
use Twig\Environment;
use Twig\Node\Expression\ConstantExpression;
use Twig\Node\Expression\Variable\ContextVariable;
use Twig\Node\Node;
use Twig\Node\Nodes;
use Twig\Node\PrintNode;
use Twig\Node\TextNode;
Expand Down Expand Up @@ -70,7 +72,7 @@ public function testFullConstructor(): void
$this->assertEquals($context, $node->getNode('context'));
}

/** @return iterable<array{0: \Twig\Node\Node, 1: string, 2?: Environment|null, 3?: bool}> */
/** @return iterable<array{0: Node, 1: string, 2?: Environment|null, 3?: bool}> */
public static function provideTests(): iterable
{
$tests = [];
Expand Down
4 changes: 3 additions & 1 deletion test/Node/TransTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
namespace PhpMyAdmin\Tests\Twig\Extensions\Node;

use PhpMyAdmin\Twig\Extensions\Node\TransNode;
use Twig\Environment;
use Twig\Node\Expression\ConstantExpression;
use Twig\Node\Expression\FilterExpression;
use Twig\Node\Expression\Variable\ContextVariable;
use Twig\Node\Node;
use Twig\Node\Nodes;
use Twig\Node\PrintNode;
use Twig\Node\TextNode;
Expand Down Expand Up @@ -128,7 +130,7 @@ public function testEnableDebugEnabled(): void
TransNode::$notesLabel = '// notes: ';
}

/** @return iterable<array{0: \Twig\Node\Node, 1: string, 2?: Environment|null, 3?: bool}> */
/** @return iterable<array{0: Node, 1: string, 2?: Environment|null, 3?: bool}> */
public static function provideTests(): iterable
{
$tests = [];
Expand Down

0 comments on commit a7e16a7

Please sign in to comment.