Skip to content

Commit 5ef5fa7

Browse files
committed
style: format code
1 parent a6116b7 commit 5ef5fa7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<file>./Inpsyde/Sniffs</file>
88
<file>./tests/src</file>
99
<file>./tests/cases</file>
10+
<file>./tests/e2e/E2eTest.php</file>
1011

1112
<!--
1213
PHP 7.4 and higher.

tests/e2e/E2eTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ protected function setUp(): void
2121
public function testInpsydeAndTemplatesRulesets(): void
2222
{
2323
$output = [];
24+
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec
2425
exec(
2526
sprintf(
2627
'cd %s && %s',
@@ -37,7 +38,8 @@ public function testInpsydeAndTemplatesRulesets(): void
3738

3839
$json = end($output);
3940

40-
self::assertSame([
41+
// phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
42+
$expectedMessages = [
4143
'index.php' => [
4244
[
4345
'source' => 'Inpsyde.CodeQuality.NoElse.ElseFound',
@@ -64,13 +66,16 @@ public function testInpsydeAndTemplatesRulesets(): void
6466
],
6567

6668
],
67-
], $this->phpCsNormalizedOutput($json));
69+
];
70+
// phpcs:enable Inpsyde.CodeQuality.LineLength.TooLong
71+
72+
self::assertSame($expectedMessages, $this->phpCsMessages($json));
6873
}
6974

7075
/**
7176
* @psalm-return array<string, list<array{source: string, line: positive-int}>>
7277
*/
73-
private function phpCsNormalizedOutput(string $json): array
78+
private function phpCsMessages(string $json): array
7479
{
7580
/** @var array{
7681
* files: array<string, array{

0 commit comments

Comments
 (0)