Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Storage/tests/StorageTestCase.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,8 @@
 block discarded – undo
151 151
 
152 152
         $actual = '';
153 153
         $stream = $this->local->getStream('file.txt');
154
-        while (!\feof($stream)) {
154
+        while (!\feof($stream))
155
+        {
155 156
             $actual .= \fread($stream, 256);
156 157
         }
157 158
         \fclose($stream);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     public function testVisibility(): void
47 47
     {
48 48
         $this->markTestSkipped(
49
-            'This test [' . __FUNCTION__ . '] returns incorrect visibility ' .
50
-                'of files on Windows OS. ' .
49
+            'This test ['.__FUNCTION__.'] returns incorrect visibility '.
50
+                'of files on Windows OS. '.
51 51
             'It is required to understand the situation',
52 52
         );
53 53
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         $actual = '';
142 142
         $stream = $this->local->getStream('file.txt');
143
-        while (!\feof($stream)) {
143
+        while (!\feof($stream)){
144 144
             $actual .= \fread($stream, 256);
145 145
         }
146 146
         \fclose($stream);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function testLastModified(): void
166 166
     {
167
-        $now = (int) \floor(\microtime(true));
167
+        $now = (int)\floor(\microtime(true));
168 168
 
169 169
         $this->local->create('file.txt');
170 170
         $before = $this->local->getLastModified('file.txt');
Please login to merge, or discard this patch.
src/Storage/tests/ManagerTestCase.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,8 @@
 block discarded – undo
257 257
 
258 258
         $actual = '';
259 259
         $stream = $this->manager->getStream('file.txt');
260
-        while (!\feof($stream)) {
260
+        while (!\feof($stream))
261
+        {
261 262
             $actual .= \fread($stream, 256);
262 263
         }
263 264
         \fclose($stream);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $this->expectException(InvalidArgumentException::class);
72 72
         $this->expectExceptionMessage(
73
-            'URI argument must be a valid URI in ' .
73
+            'URI argument must be a valid URI in '.
74 74
             '"[STORAGE]://[PATH_TO_FILE]" format, but `test://` given',
75 75
         );
76 76
 
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
     public function testVisibility(): void
136 136
     {
137 137
         $this->markTestSkipped(
138
-            'This test [' . __FUNCTION__ . '] returns incorrect visibility ' .
139
-                'of files on Windows OS. ' .
138
+            'This test ['.__FUNCTION__.'] returns incorrect visibility '.
139
+                'of files on Windows OS. '.
140 140
             'It is required to understand the situation',
141 141
         );
142 142
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         $actual = '';
237 237
         $stream = $this->manager->getStream('file.txt');
238
-        while (!\feof($stream)) {
238
+        while (!\feof($stream)){
239 239
             $actual .= \fread($stream, 256);
240 240
         }
241 241
         \fclose($stream);
Please login to merge, or discard this patch.
src/Storage/tests/FileTestCase.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,8 @@
 block discarded – undo
190 190
 
191 191
         $actual = '';
192 192
         $stream = $source->getStream();
193
-        while (!\feof($stream)) {
193
+        while (!\feof($stream))
194
+        {
194 195
             $actual .= \fread($stream, 256);
195 196
         }
196 197
         \fclose($stream);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
     public function testVisibility(): void
73 73
     {
74 74
         $this->markTestSkipped(
75
-            'This test [' . __FUNCTION__ . '] returns incorrect visibility ' .
76
-                'of files on Windows OS. ' .
75
+            'This test ['.__FUNCTION__.'] returns incorrect visibility '.
76
+                'of files on Windows OS. '.
77 77
             'It is required to understand the situation',
78 78
         );
79 79
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
         $actual = '';
183 183
         $stream = $source->getStream();
184
-        while (!\feof($stream)) {
184
+        while (!\feof($stream)){
185 185
             $actual .= \fread($stream, 256);
186 186
         }
187 187
         \fclose($stream);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function testLastModified(): void
209 209
     {
210
-        $now = (int) \floor(\microtime(true));
210
+        $now = (int)\floor(\microtime(true));
211 211
 
212 212
         $file = $this->local->file('file.txt')
213 213
             ->create()
Please login to merge, or discard this patch.
src/Storage/src/Visibility.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
      * @var string
23 23
      * @psalm-var VisibilityType
24 24
      */
25
-    public const VISIBILITY_PUBLIC = \League\Flysystem\Visibility::PUBLIC;
25
+    public const VISIBILITY_PUBLIC = \League\Flysystem\Visibility::public;
26 26
 
27 27
     /**
28 28
      * @var string
29 29
      * @psalm-var VisibilityType
30 30
      */
31
-    public const VISIBILITY_PRIVATE = \League\Flysystem\Visibility::PRIVATE;
31
+    public const VISIBILITY_PRIVATE = \League\Flysystem\Visibility::private;
32 32
 }
Please login to merge, or discard this patch.
src/Stempler/src/Directive/AbstractDirective.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,8 @@
 block discarded – undo
37 37
 
38 38
     public function render(Directive $directive): ?string
39 39
     {
40
-        if (!$this->hasDirective($directive->name)) {
40
+        if (!$this->hasDirective($directive->name))
41
+        {
41 42
             return null;
42 43
         }
43 44
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
 
24 24
     public function hasDirective(string $name): bool
25 25
     {
26
-        return $this->r->hasMethod('render' . \ucfirst($name));
26
+        return $this->r->hasMethod('render'.\ucfirst($name));
27 27
     }
28 28
 
29 29
     public function render(Directive $directive): ?string
30 30
     {
31
-        if (!$this->hasDirective($directive->name)) {
31
+        if (!$this->hasDirective($directive->name)){
32 32
             return null;
33 33
         }
34 34
 
35
-        return \call_user_func([$this, 'render' . \ucfirst($directive->name)], $directive);
35
+        return \call_user_func([$this, 'render'.\ucfirst($directive->name)], $directive);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/AuthHttp/src/Middleware/Firewall/AbstractFirewall.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         /** @var AuthContextInterface $authContext */
29 29
         $authContext = $request->getAttribute(AuthMiddleware::ATTRIBUTE);
30 30
 
31
-        if ($authContext === null || $authContext->getActor() === null) {
31
+        if ($authContext === null || $authContext->getActor() === null){
32 32
             return $this->denyAccess($request, $handler);
33 33
         }
34 34
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
         /** @var AuthContextInterface $authContext */
29 29
         $authContext = $request->getAttribute(AuthMiddleware::ATTRIBUTE);
30 30
 
31
-        if ($authContext === null || $authContext->getActor() === null) {
31
+        if ($authContext === null || $authContext->getActor() === null)
32
+        {
32 33
             return $this->denyAccess($request, $handler);
33 34
         }
34 35
 
Please login to merge, or discard this patch.
src/Config/src/Patch/Group.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function patch(array $config): array
27 27
     {
28
-        foreach ($this->patches as $patch) {
28
+        foreach ($this->patches as $patch){
29 29
             $config = $patch->patch($config);
30 30
         }
31 31
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function patch(array $config): array
27 27
     {
28
-        foreach ($this->patches as $patch) {
28
+        foreach ($this->patches as $patch)
29
+        {
29 30
             $config = $patch->patch($config);
30 31
         }
31 32
 
Please login to merge, or discard this patch.
src/Core/tests/Fixtures/UnionTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 class UnionTypes
15 15
 {
16
-    public static function example(SampleClass|TypedClass $example)
16
+    public static function example(SampleClass | TypedClass $example)
17 17
     {
18 18
     }
19 19
 
20
-    public static function unionNull(null|string $nullable): null|string
20
+    public static function unionNull(null | string $nullable): null | string
21 21
     {
22 22
         return $nullable;
23 23
     }
Please login to merge, or discard this patch.
src/Distribution/src/Resolver/UriResolver.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
 {
18 18
     protected function concat(string $file, ?string $prefix): string
19 19
     {
20
-        if ($prefix === null) {
20
+        if ($prefix === null){
21 21
             return $file;
22 22
         }
23 23
 
24
-        return \trim($prefix, '/') . '/' . \trim($file, '/');
24
+        return \trim($prefix, '/').'/'.\trim($file, '/');
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
 {
18 18
     protected function concat(string $file, ?string $prefix): string
19 19
     {
20
-        if ($prefix === null) {
20
+        if ($prefix === null)
21
+        {
21 22
             return $file;
22 23
         }
23 24
 
Please login to merge, or discard this patch.