Passed
Push — master ( aa949f...4779f0 )
by Alex
02:17
created
Mezon/Application/Tests/ApplicationUnitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $application = new \Mezon\Application\Application();
209 209
 
210
-        $application->fly = function () {
210
+        $application->fly = function() {
211 211
             return 'OK!';
212 212
         };
213 213
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         // setup
233 233
         $application = new \Mezon\Application\Application();
234 234
 
235
-        $application->fly = function () {
235
+        $application->fly = function() {
236 236
             return 'OK!';
237 237
         };
238 238
 
Please login to merge, or discard this patch.
Mezon/Application/ActionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public static function ignoreKey(): callable
15 15
     {
16
-        return function (): void {
16
+        return function(): void {
17 17
             // do nothind
18 18
         };
19 19
     }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function resetLayout(HtmlTemplate $template, string $value): callable
30 30
     {
31
-        return function () use ($template, $value) {
31
+        return function() use ($template, $value) {
32 32
             $template->resetLayout($value);
33 33
         };
34 34
     }
Please login to merge, or discard this patch.
Mezon/Application/Tests/CommonApplicationUnitTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -176,35 +176,35 @@
 block discarded – undo
176 176
     {
177 177
         $presenter = new TestingPresenter(new View(), 'Result');
178 178
         return [
179
-            [ // #0 testing presenter
180
-                function (): TestCommonApplication {
179
+            [// #0 testing presenter
180
+                function(): TestCommonApplication {
181 181
                     return new TestCommonApplication();
182 182
                 },
183 183
                 $presenter,
184
-                function (array $params) {
184
+                function(array $params) {
185 185
                     $this->assertTrue($params[0]->wasCalled);
186 186
                 }
187 187
             ],
188
-            [ // #1 testing action message setup
189
-                function (): TestCommonApplication {
188
+            [// #1 testing action message setup
189
+                function(): TestCommonApplication {
190 190
                     $_GET['action-message'] = 'test-error';
191 191
                     return new TestCommonApplication();
192 192
                 },
193 193
                 $presenter,
194
-                function (array $params): void {
194
+                function(array $params): void {
195 195
                     $this->assertEquals('error', $params[1]->getTemplate()
196 196
                         ->getPageVar('action-message'));
197 197
                 }
198 198
             ],
199
-            [ // #2 no file with the messages
200
-                function (): TestCommonApplication {
199
+            [// #2 no file with the messages
200
+                function(): TestCommonApplication {
201 201
                     $_GET['action-message'] = 'test-error';
202 202
                     $application = new TestCommonApplication();
203 203
                     $application->hasMessages = false;
204 204
                     return $application;
205 205
                 },
206 206
                 $presenter,
207
-                function (array $params): void {
207
+                function(array $params): void {
208 208
                     $this->assertEquals('', $params[1]->getTemplate()
209 209
                         ->getPageVar('action-message'));
210 210
                 }
Please login to merge, or discard this patch.
Mezon/Application/CommonApplication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         }
308 308
 
309 309
         foreach ($value as $configKey => $configValue) {
310
-            if (! in_array($configKey, [
310
+            if (!in_array($configKey, [
311 311
                 'class',
312 312
                 'name',
313 313
                 'placeholder'
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     {
350 350
         $method = 'action' . basename($path, '.json');
351 351
 
352
-        $this->$method = function () use ($path): array {
352
+        $this->$method = function() use ($path): array {
353 353
             $result = [];
354 354
             $views = [];
355 355
             $presenter = null;
Please login to merge, or discard this patch.
Mezon/Application/Tests/CommonApplicationActionsUnitTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             // #0, default behaviour, layout is not set, extra view variable is set
38 38
             [
39 39
                 'from-config',
40
-                function (string $result) {
40
+                function(string $result) {
41 41
                     $this->assertCommonCall($result, '<!-- index1 -->');
42 42
                     $this->assertStringContainsString('someVarValue', $result);
43 43
                 }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             // #1, default behaviour, layout is set, no name is defined for the other-view
46 46
             [
47 47
                 'from-config2',
48
-                function (string $result) {
48
+                function(string $result) {
49 49
                     $this->assertCommonCall($result, '<!-- index2 -->');
50 50
 
51 51
                     $this->assertTrue(TestingView::$defaultViewWasRendered);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             // #2, inherit from from-config2
55 55
             [
56 56
                 'from-config3',
57
-                function (string $result) {
57
+                function(string $result) {
58 58
                     $this->assertCommonCall($result, '<!-- index1 -->');
59 59
 
60 60
                     $this->assertTrue(TestingView::$defaultViewWasRendered);
Please login to merge, or discard this patch.