Passed
Push — master ( 5c4bac...e50301 )
by butschster
05:42 queued 19s
created
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/Distribution/src/Resolver/StaticResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,6 +75,6 @@
 block discarded – undo
75 75
         $prefix = \trim($this->host->getPath(), self::URI_PATH_DELIMITER);
76 76
         $file = \trim($file, self::URI_PATH_DELIMITER);
77 77
 
78
-        return self::URI_PATH_DELIMITER . ('' === $prefix ? '' : $prefix . self::URI_PATH_DELIMITER) . $file;
78
+        return self::URI_PATH_DELIMITER.('' === $prefix ? '' : $prefix.self::URI_PATH_DELIMITER).$file;
79 79
     }
80 80
 }
Please login to merge, or discard this patch.
src/AuthHttp/tests/HeaderTransportTest.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,9 +43,12 @@  discard block
 block discarded – undo
43 43
 
44 44
         $http->setHandler(
45 45
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
46
-                if ($request->getAttribute('authContext')->getToken() === null) {
46
+                if ($request->getAttribute('authContext')->getToken() === null)
47
+                {
47 48
                     echo 'no token';
48
-                } else {
49
+                }
50
+                else
51
+                {
49 52
                     echo $request->getAttribute('authContext')->getToken()->getID();
50 53
                     echo ':';
51 54
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -67,9 +70,12 @@  discard block
 block discarded – undo
67 70
 
68 71
         $http->setHandler(
69 72
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
70
-                if ($request->getAttribute('authContext')->getToken() === null) {
73
+                if ($request->getAttribute('authContext')->getToken() === null)
74
+                {
71 75
                     echo 'no token';
72
-                } else {
76
+                }
77
+                else
78
+                {
73 79
                     echo $request->getAttribute('authContext')->getToken()->getID();
74 80
                     echo ':';
75 81
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -90,9 +96,12 @@  discard block
 block discarded – undo
90 96
 
91 97
         $http->setHandler(
92 98
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
93
-                if ($request->getAttribute('authContext')->getToken() === null) {
99
+                if ($request->getAttribute('authContext')->getToken() === null)
100
+                {
94 101
                     echo 'no token';
95
-                } else {
102
+                }
103
+                else
104
+                {
96 105
                     echo $request->getAttribute('authContext')->getToken()->getID();
97 106
                     echo ':';
98 107
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 
37 37
         $http->setHandler(
38 38
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
39
-                if ($request->getAttribute('authContext')->getToken() === null) {
39
+                if ($request->getAttribute('authContext')->getToken() === null){
40 40
                     echo 'no token';
41
-                } else {
41
+                }else{
42 42
                     echo $request->getAttribute('authContext')->getToken()->getID();
43 43
                     echo ':';
44 44
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
         $http->setHandler(
62 62
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
63
-                if ($request->getAttribute('authContext')->getToken() === null) {
63
+                if ($request->getAttribute('authContext')->getToken() === null){
64 64
                     echo 'no token';
65
-                } else {
65
+                }else{
66 66
                     echo $request->getAttribute('authContext')->getToken()->getID();
67 67
                     echo ':';
68 68
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
 
84 84
         $http->setHandler(
85 85
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
86
-                if ($request->getAttribute('authContext')->getToken() === null) {
86
+                if ($request->getAttribute('authContext')->getToken() === null){
87 87
                     echo 'no token';
88
-                } else {
88
+                }else{
89 89
                     echo $request->getAttribute('authContext')->getToken()->getID();
90 90
                     echo ':';
91 91
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             }
113 113
         );
114 114
         $response = $http->handle(
115
-            new ServerRequest('GET', '',['X-Auth-Token' => 'bad'], 'php://input')
115
+            new ServerRequest('GET', '', ['X-Auth-Token' => 'bad'], 'php://input')
116 116
         );
117 117
 
118 118
         self::assertEmpty($response->getHeader('X-Auth-Token'));
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/Stempler/src/Directive/DirectiveGroup.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,10 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function hasDirective(string $name): bool
35 35
     {
36
-        foreach ($this->directives as $directiveRenderer) {
37
-            if ($directiveRenderer->hasDirective($name)) {
36
+        foreach ($this->directives as $directiveRenderer)
37
+        {
38
+            if ($directiveRenderer->hasDirective($name))
39
+            {
38 40
                 return true;
39 41
             }
40 42
         }
@@ -44,8 +46,10 @@  discard block
 block discarded – undo
44 46
 
45 47
     public function render(Directive $directive): ?string
46 48
     {
47
-        foreach ($this->directives as $directiveRenderer) {
48
-            if ($directiveRenderer->hasDirective($directive->name)) {
49
+        foreach ($this->directives as $directiveRenderer)
50
+        {
51
+            if ($directiveRenderer->hasDirective($directive->name))
52
+            {
49 53
                 return $directiveRenderer->render($directive);
50 54
             }
51 55
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function __construct(
15 15
         private array $directives = []
16
-    ) {
16
+    ){
17 17
     }
18 18
 
19 19
     /**
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function hasDirective(string $name): bool
28 28
     {
29
-        foreach ($this->directives as $directiveRenderer) {
30
-            if ($directiveRenderer->hasDirective($name)) {
29
+        foreach ($this->directives as $directiveRenderer){
30
+            if ($directiveRenderer->hasDirective($name)){
31 31
                 return true;
32 32
             }
33 33
         }
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function render(Directive $directive): ?string
39 39
     {
40
-        foreach ($this->directives as $directiveRenderer) {
41
-            if ($directiveRenderer->hasDirective($directive->name)) {
40
+        foreach ($this->directives as $directiveRenderer){
41
+            if ($directiveRenderer->hasDirective($directive->name)){
42 42
                 return $directiveRenderer->render($directive);
43 43
             }
44 44
         }
Please login to merge, or discard this patch.
src/Queue/tests/Job/ObjectJobTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function testHandleWithHandleMethod(): void
43 43
     {
44
-        $object = new class($this) {
44
+        $object = new class($this)
45
+        {
45 46
             private $testCase;
46 47
 
47 48
             public function __construct($testCase)
@@ -64,7 +65,8 @@  discard block
 block discarded – undo
64 65
 
65 66
     public function testHandleWithInvokeMethod(): void
66 67
     {
67
-        $object = new class($this) {
68
+        $object = new class($this)
69
+        {
68 70
             private $testCase;
69 71
 
70 72
             public function __construct($testCase)
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/Cache/tests/Storage/FileStorageTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function testGetsWithExistsValueAndCacheFile(): void
39 39
     {
40 40
         $ttl = time() + self::DEFAULT_TTL;
41
-        $value = $ttl . 's:3:"bar";';
41
+        $value = $ttl.'s:3:"bar";';
42 42
         $path = self::DEFAULT_PATH;
43 43
 
44 44
         $this->files->shouldReceive('read')->with($path)->andReturn($value);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $path = self::DEFAULT_PATH;
63 63
 
64
-        $this->files->shouldReceive('read')->with($path)->andReturn(time() . 's:3:"bar";');
64
+        $this->files->shouldReceive('read')->with($path)->andReturn(time().'s:3:"bar";');
65 65
         $this->files->shouldReceive('exists')->with($path)->andReturn(true);
66 66
         $this->files->shouldReceive('delete')->with($path)->andReturnTrue();
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function testGetsWithExistsValueWithDeadValue(): void
72 72
     {
73 73
         $ttl = time() + self::DEFAULT_TTL;
74
-        $value = $ttl . 's:3:"barbar";';
74
+        $value = $ttl.'s:3:"barbar";';
75 75
         $path = self::DEFAULT_PATH;
76 76
 
77 77
         $this->files->shouldReceive('read')->with($path)->andReturn($value);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     public function testSetsWithDefaultTTL(): void
85 85
     {
86 86
         $ttl = time() + self::DEFAULT_TTL;
87
-        $value = $ttl . 's:3:"bar";';
87
+        $value = $ttl.'s:3:"bar";';
88 88
 
89 89
         $this->files->shouldReceive('write')->with(self::DEFAULT_PATH, $value, null, true)->andReturnTrue();
90 90
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function testSetsWithTTLInSeconds(): void
95 95
     {
96 96
         $ttl = time() + 30;
97
-        $value = $ttl . 's:3:"bar";';
97
+        $value = $ttl.'s:3:"bar";';
98 98
 
99 99
         $this->files->shouldReceive('write')->with(self::DEFAULT_PATH, $value, null, true)->andReturnTrue();
100 100
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function testSetsWithTTLInDateInterval(): void
105 105
     {
106 106
         $ttl = time() + 30;
107
-        $value = $ttl . 's:3:"bar";';
107
+        $value = $ttl.'s:3:"bar";';
108 108
 
109 109
         $this->files->shouldReceive('write')->with(self::DEFAULT_PATH, $value, null, true)->andReturnTrue();
110 110
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function testSetsWithTTLInDateTime(): void
115 115
     {
116 116
         $ttl = time() + 30;
117
-        $value = $ttl . 's:3:"bar";';
117
+        $value = $ttl.'s:3:"bar";';
118 118
 
119 119
         $this->files->shouldReceive('write')->with(self::DEFAULT_PATH, $value, null, true)->andReturnTrue();
120 120
 
@@ -161,15 +161,15 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $this->files->shouldReceive('read')->with(
163 163
             'path/to/cache/0b/ee/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
164
-        )->andReturn((time() + self::DEFAULT_TTL) . 's:3:"abc";');
164
+        )->andReturn((time() + self::DEFAULT_TTL).'s:3:"abc";');
165 165
 
166 166
         $this->files->shouldReceive('read')->with(
167 167
             'path/to/cache/62/cd/62cdb7020ff920e5aa642c3d4066950dd1f01f4d'
168
-        )->andReturn((time() + self::DEFAULT_TTL) . 's:3:"cde";');
168
+        )->andReturn((time() + self::DEFAULT_TTL).'s:3:"cde";');
169 169
 
170 170
         $this->files->shouldReceive('read')->with(
171 171
             'path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2'
172
-        )->andReturn((time() + -1) . 's:3:"efg";');
172
+        )->andReturn((time() + -1).'s:3:"efg";');
173 173
         $this->files->shouldReceive('exists')->with(
174 174
             'path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2'
175 175
         )->andReturnFalse();
@@ -186,15 +186,15 @@  discard block
 block discarded – undo
186 186
         $ttl = time() + self::DEFAULT_TTL;
187 187
 
188 188
         $this->files->shouldReceive('write')
189
-            ->with('path/to/cache/0b/ee/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', $ttl . 's:3:"baz";', null, true)
189
+            ->with('path/to/cache/0b/ee/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', $ttl.'s:3:"baz";', null, true)
190 190
             ->andReturnTrue();
191 191
 
192 192
         $this->files->shouldReceive('write')
193
-            ->with('path/to/cache/62/cd/62cdb7020ff920e5aa642c3d4066950dd1f01f4d', $ttl . 's:3:"foo";', null, true)
193
+            ->with('path/to/cache/62/cd/62cdb7020ff920e5aa642c3d4066950dd1f01f4d', $ttl.'s:3:"foo";', null, true)
194 194
             ->andReturnTrue();
195 195
 
196 196
         $this->files->shouldReceive('write')
197
-            ->with('path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2', $ttl . 's:3:"bar";', null, true)
197
+            ->with('path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2', $ttl.'s:3:"bar";', null, true)
198 198
             ->andReturnTrue();
199 199
 
200 200
         $this->assertTrue(
@@ -211,15 +211,15 @@  discard block
 block discarded – undo
211 211
         $ttl = time() + 30;
212 212
 
213 213
         $this->files->shouldReceive('write')
214
-            ->with('path/to/cache/0b/ee/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', $ttl . 's:3:"baz";', null, true)
214
+            ->with('path/to/cache/0b/ee/0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', $ttl.'s:3:"baz";', null, true)
215 215
             ->andReturnTrue();
216 216
 
217 217
         $this->files->shouldReceive('write')
218
-            ->with('path/to/cache/62/cd/62cdb7020ff920e5aa642c3d4066950dd1f01f4d', $ttl . 's:3:"foo";', null, true)
218
+            ->with('path/to/cache/62/cd/62cdb7020ff920e5aa642c3d4066950dd1f01f4d', $ttl.'s:3:"foo";', null, true)
219 219
             ->andReturnTrue();
220 220
 
221 221
         $this->files->shouldReceive('write')
222
-            ->with('path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2', $ttl . 's:3:"bar";', null, true)
222
+            ->with('path/to/cache/bb/e9/bbe960a25ea311d21d40669e93df2003ba9b90a2', $ttl.'s:3:"bar";', null, true)
223 223
             ->andReturnTrue();
224 224
 
225 225
         $this->assertTrue(
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.