Passed
Push — main ( 044852...8b5b31 )
by Peter
03:24
created
tests/Http/Middleware/SessionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         /** @var Response|MockObject $requestMock */
52 52
         $responseMock = $this->createMock(Response::class);
53 53
 
54
-        $next = function () use ($responseMock) {
54
+        $next = function() use ($responseMock) {
55 55
             return $responseMock;
56 56
         };
57 57
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         /** @var Response|MockObject $requestMock */
78 78
         $responseMock = $this->createMock(Response::class);
79 79
 
80
-        $next = function () use ($responseMock) {
80
+        $next = function() use ($responseMock) {
81 81
             return $responseMock;
82 82
         };
83 83
 
Please login to merge, or discard this patch.
tests/Http/Middleware/SecurityTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         /** @var Response|MockObject $requestMock */
35 35
         $responseMock = $this->createMock(Response::class);
36 36
 
37
-        $next = function () use ($responseMock) {
37
+        $next = function() use ($responseMock) {
38 38
             return $responseMock;
39 39
         };
40 40
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         /** @var Response|MockObject $requestMock */
56 56
         $responseMock = $this->createMock(Response::class);
57 57
 
58
-        $next = function () use ($responseMock) {
58
+        $next = function() use ($responseMock) {
59 59
             return $responseMock;
60 60
         };
61 61
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         /** @var Response|MockObject $requestMock */
77 77
         $responseMock = $this->createMock(Response::class);
78 78
 
79
-        $next = function () use ($responseMock) {
79
+        $next = function() use ($responseMock) {
80 80
             return $responseMock;
81 81
         };
82 82
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         /** @var Response|MockObject $requestMock */
114 114
         $responseMock = $this->createMock(Response::class);
115 115
 
116
-        $next = function () use ($responseMock) {
116
+        $next = function() use ($responseMock) {
117 117
             return $responseMock;
118 118
         };
119 119
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         /** @var Response|MockObject $requestMock */
300 300
         $responseMock = $this->createMock(Response::class);
301 301
 
302
-        $next = function () use ($responseMock) {
302
+        $next = function() use ($responseMock) {
303 303
             return $responseMock;
304 304
         };
305 305
 
Please login to merge, or discard this patch.
tests/Template/CacheManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 CacheData::PAYLOAD_KEY_SUBTEMPLATES => $cacheData->getSubTemplates(),
99 99
             ]
100 100
         );
101
-        $key     = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
101
+        $key = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
102 102
 
103 103
         $this->cacheBridgeMock->expects($this->once())->method('set')->with($key, $payload, PHP_INT_MAX);
104 104
         $this->cacheBridgeMock->expects($this->once())->method('has')->with($key);
Please login to merge, or discard this patch.
tests/TestDouble/I18n/MockTranslatorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             ->expects($testCase->any())
31 31
             ->method('translate')
32 32
             ->willReturnCallback(
33
-                function ($key) use ($translations) {
33
+                function($key) use ($translations) {
34 34
                     if (array_key_exists($key, $translations)) {
35 35
                         return $translations[$key];
36 36
                     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             ->expects($testCase->any())
44 44
             ->method('canTranslate')
45 45
             ->willReturnCallback(
46
-                function ($key) use ($translations) {
46
+                function($key) use ($translations) {
47 47
                     if ($translations && array_key_exists($key, $translations)) {
48 48
                         return true;
49 49
                     }
Please login to merge, or discard this patch.
tests/TestDouble/Session/MockSessionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             ->expects($testCase->any())
36 36
             ->method('get')
37 37
             ->willReturnCallback(
38
-                function ($key, $defaultValue = null) use ($sessionData) {
38
+                function($key, $defaultValue = null) use ($sessionData) {
39 39
                     if (array_key_exists($key, $sessionData)) {
40 40
                         return $sessionData[$key];
41 41
                     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             ->expects($testCase->any())
49 49
             ->method('has')
50 50
             ->willReturnCallback(
51
-                function ($key) use ($sessionData) {
51
+                function($key) use ($sessionData) {
52 52
                     if (array_key_exists($key, $sessionData)) {
53 53
                         return true;
54 54
                     }
Please login to merge, or discard this patch.
tests/Navigation/ItemTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function testGetRoleGetsLastSetResource()
119 119
     {
120
-        $content  = 'foo';
120
+        $content = 'foo';
121 121
         $role = 'bar';
122 122
 
123 123
         $sut = $this->createNode($content);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     public function testDisabledItemCastsToEmptyString()
133 133
     {
134
-        $content  = 'foo';
134
+        $content = 'foo';
135 135
         $sut = $this->createNode($content);
136 136
 
137 137
         $sut->disable();
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
     public function testEnableCanRevertDisabling()
143 143
     {
144
-        $content  = 'foo';
144
+        $content = 'foo';
145 145
         $sut = $this->createNode($content);
146 146
 
147 147
         $sut->disable();
Please login to merge, or discard this patch.
tests/Navigation/UserBlockTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
 
35 35
         $sessionData = &$this->sessionData;
36 36
         $this->sessionMock->expects($this->any())->method('has')->willReturnCallback(
37
-            function ($key) use ($sessionData) {
37
+            function($key) use ($sessionData) {
38 38
                 return isset($sessionData[$key]);
39 39
             }
40 40
         );
41 41
         $this->sessionMock->expects($this->any())->method('get')->willReturnCallback(
42
-            function ($key) use ($sessionData) {
42
+            function($key) use ($sessionData) {
43 43
                 return isset($sessionData[$key]) ? $sessionData[$key] : '';
44 44
             }
45 45
         );
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
         $sessionMock = $this->createMock(Session::class);
70 70
 
71 71
         $sessionMock->expects($this->any())->method('has')->willReturnCallback(
72
-            function ($key) use ($sessionData) {
72
+            function($key) use ($sessionData) {
73 73
                 return isset($sessionData[$key]);
74 74
             }
75 75
         );
76 76
         $sessionMock->expects($this->any())->method('get')->willReturnCallback(
77
-            function ($key) use ($sessionData) {
77
+            function($key) use ($sessionData) {
78 78
                 return isset($sessionData[$key]) ? $sessionData[$key] : '';
79 79
             }
80 80
         );
Please login to merge, or discard this patch.
tests/Http/Middleware/EnvironmentWarningTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         /** @var Response|MockObject $requestMock */
52 52
         $responseMock = $this->createMock(Response::class);
53 53
 
54
-        $next = function () use ($responseMock) {
54
+        $next = function() use ($responseMock) {
55 55
             return $responseMock;
56 56
         };
57 57
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         /** @var Response|MockObject $requestMock */
78 78
         $responseMock = $this->createMock(Response::class);
79 79
 
80
-        $next = function () use ($responseMock) {
80
+        $next = function() use ($responseMock) {
81 81
             return $responseMock;
82 82
         };
83 83
 
Please login to merge, or discard this patch.
src/Assets/CacheManager/Flysystem.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
 
29 29
     public function __construct()
30 30
     {
31
-        $this->isFlushable = function ($obj) {
31
+        $this->isFlushable = function($obj) {
32 32
             if (!is_array($obj) && !($obj instanceof ArrayAccess)) {
33 33
                 throw new InvalidArgumentException("isFlushable requires an array or \ArrayAccess, received object is not: %s", get_class($obj));
34 34
             }
Please login to merge, or discard this patch.