@@ -166,6 +166,4 @@ |
||
166 | 166 | throw new Exception("Cannot read dump file \"$absolutePath\""); |
167 | 167 | } |
168 | 168 | |
169 | - return $absolutePath; |
|
170 | - } |
|
171 | -} |
|
169 | + return $absolutePath |
|
172 | 170 | \ No newline at end of file |
@@ -166,6 +166,4 @@ |
||
166 | 166 | throw new Exception("Cannot read dump file \"$absolutePath\""); |
167 | 167 | } |
168 | 168 | |
169 | - return $absolutePath; |
|
170 | - } |
|
171 | -} |
|
169 | + return $absolutePath |
|
172 | 170 | \ No newline at end of file |
@@ -166,6 +166,4 @@ |
||
166 | 166 | throw new Exception("Cannot read dump file \"$absolutePath\""); |
167 | 167 | } |
168 | 168 | |
169 | - return $absolutePath; |
|
170 | - } |
|
171 | -} |
|
169 | + return $absolutePath |
|
172 | 170 | \ No newline at end of file |
@@ -166,6 +166,4 @@ |
||
166 | 166 | throw new Exception("Cannot read dump file \"$absolutePath\""); |
167 | 167 | } |
168 | 168 | |
169 | - return $absolutePath; |
|
170 | - } |
|
171 | -} |
|
169 | + return $absolutePath |
|
172 | 170 | \ No newline at end of file |
@@ -166,6 +166,4 @@ |
||
166 | 166 | throw new Exception("Cannot read dump file \"$absolutePath\""); |
167 | 167 | } |
168 | 168 | |
169 | - return $absolutePath; |
|
170 | - } |
|
171 | -} |
|
169 | + return $absolutePath |
|
172 | 170 | \ No newline at end of file |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | { |
30 | 30 | $container = new ServiceManager([ |
31 | 31 | 'factories' => [ |
32 | - Db::class => fn () => self::createMock(Db::class), |
|
33 | - Mail::class => fn () => self::createMock(Mail::class), |
|
32 | + Db::class => fn() => self::createMock(Db::class), |
|
33 | + Mail::class => fn() => self::createMock(Mail::class), |
|
34 | 34 | ], |
35 | 35 | ]); |
36 | 36 | |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | { |
45 | 45 | $container = new ServiceManager([ |
46 | 46 | 'factories' => [ |
47 | - Db::class => fn () => self::createMock(Db::class), |
|
48 | - Mail::class => fn () => null, |
|
47 | + Db::class => fn() => self::createMock(Db::class), |
|
48 | + Mail::class => fn() => null, |
|
49 | 49 | ], |
50 | 50 | ]); |
51 | 51 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ], |
73 | 73 | 'factories' => [ |
74 | 74 | EventCompleter::class => EventCompleterFactory::class, |
75 | - TransportInterface::class => fn () => $transport, |
|
75 | + TransportInterface::class => fn() => $transport, |
|
76 | 76 | ], |
77 | 77 | ]); |
78 | 78 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | global $container; |
29 | 29 | $container = new ServiceManager([ |
30 | 30 | 'factories' => [ |
31 | - EntityManager::class => fn () => $this->entityManager, |
|
31 | + EntityManager::class => fn() => $this->entityManager, |
|
32 | 32 | ], |
33 | 33 | ]); |
34 | 34 | } |
@@ -97,6 +97,4 @@ |
||
97 | 97 | - it is not himself |
98 | 98 | - mocked reason |
99 | 99 | STRING; |
100 | - self::assertSame($expected, $acl->getLastDenialMessage()); |
|
101 | - } |
|
102 | -} |
|
100 | + self::assertSame($expected, $acl->getLastDenialMessage |
|
103 | 101 | \ No newline at end of file |
@@ -97,6 +97,4 @@ |
||
97 | 97 | - it is not himself |
98 | 98 | - mocked reason |
99 | 99 | STRING; |
100 | - self::assertSame($expected, $acl->getLastDenialMessage()); |
|
101 | - } |
|
102 | -} |
|
100 | + self::assertSame($expected, $acl->getLastDenialMessage |
|
103 | 101 | \ No newline at end of file |
@@ -97,6 +97,4 @@ |
||
97 | 97 | - it is not himself |
98 | 98 | - mocked reason |
99 | 99 | STRING; |
100 | - self::assertSame($expected, $acl->getLastDenialMessage()); |
|
101 | - } |
|
102 | -} |
|
100 | + self::assertSame($expected, $acl->getLastDenialMessage |
|
103 | 101 | \ No newline at end of file |
@@ -97,6 +97,4 @@ |
||
97 | 97 | - it is not himself |
98 | 98 | - mocked reason |
99 | 99 | STRING; |
100 | - self::assertSame($expected, $acl->getLastDenialMessage()); |
|
101 | - } |
|
102 | -} |
|
100 | + self::assertSame($expected, $acl->getLastDenialMessage |
|
103 | 101 | \ No newline at end of file |
@@ -97,6 +97,4 @@ |
||
97 | 97 | - it is not himself |
98 | 98 | - mocked reason |
99 | 99 | STRING; |
100 | - self::assertSame($expected, $acl->getLastDenialMessage()); |
|
101 | - } |
|
102 | -} |
|
100 | + self::assertSame($expected, $acl->getLastDenialMessage |
|
103 | 101 | \ No newline at end of file |
@@ -108,7 +108,7 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | // Renumber backtrace items. |
111 | - $renumberedTrace = preg_replace_callback('/^#(\d+)/m', fn ($matches) => '#' . ((int) $matches[1] - 5), $shortenTrace); |
|
111 | + $renumberedTrace = preg_replace_callback('/^#(\d+)/m', fn($matches) => '#' . ((int) $matches[1] - 5), $shortenTrace); |
|
112 | 112 | |
113 | 113 | if ($renumberedTrace === null) { |
114 | 114 | return $shortenTrace; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | if ($count === 1) { |
97 | 97 | $message .= ' because ' . $this->reasons[0]; |
98 | 98 | } elseif ($count) { |
99 | - $list = array_map(fn ($reason) => '- ' . $reason, $this->reasons); |
|
99 | + $list = array_map(fn($reason) => '- ' . $reason, $this->reasons); |
|
100 | 100 | $message .= ' because:' . PHP_EOL . PHP_EOL . implode(PHP_EOL, $list); |
101 | 101 | } |
102 | 102 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
16 | 16 | { |
17 | 17 | $possibleValues = $this->getPossibleValues(); |
18 | - $quotedPossibleValues = implode(', ', array_map(fn ($str) => "'" . (string) $str . "'", $possibleValues)); |
|
18 | + $quotedPossibleValues = implode(', ', array_map(fn($str) => "'" . (string) $str . "'", $possibleValues)); |
|
19 | 19 | |
20 | 20 | $sql = 'ENUM(' . $quotedPossibleValues . ')'; |
21 | 21 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $config = [ |
28 | 28 | 'description' => 'Describe what page we want', |
29 | - 'fields' => fn (): array => [ |
|
29 | + 'fields' => fn(): array => [ |
|
30 | 30 | 'offset' => [ |
31 | 31 | 'type' => self::int(), |
32 | 32 | 'defaultValue' => null, |