Failed Conditions
Pull Request — master (#10)
by Adrien
04:59 queued 01:35
created
src/Service/AbstractDatabase.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,6 +166,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,6 +166,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,6 +166,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,6 +166,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,6 +166,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/Log/LoggerFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Log/Writer/MailFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Traits/TestWithEntityManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Acl/AclTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,6 +97,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,6 +97,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,6 +97,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,6 +97,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,6 +97,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Log/EventCompleter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Acl/Acl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DBAL/Types/EnumType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Api/Input/PaginationInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.