Completed
Push — master ( f92391...2b16eb )
by Jacob
03:12
created
tests/unit/Domain/Blog/Tag/MysqlTagRepositoryTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             )"
41 41
         );
42 42
 
43
-        self::$connection = new ConnectionLocator(function () use ($extendedPdo) {
43
+        self::$connection = new ConnectionLocator(function() use ($extendedPdo) {
44 44
             return $extendedPdo;
45 45
         });
46 46
     }
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
         $this->assertNotFalse($data);
201 201
         $this->assertInternalType('array', $data);
202 202
 
203
-        $tagCountData = array_map(function ($row) use ($testTagData) {
203
+        $tagCountData = array_map(function($row) use ($testTagData) {
204 204
             $tag = $row['tag_id'];
205
-            $tag = array_filter($testTagData, function ($row) use ($tag) {
205
+            $tag = array_filter($testTagData, function($row) use ($tag) {
206 206
                 return ($tag == $row['id']);
207 207
             });
208 208
             $tag = current($tag)['tag'];
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
 
230 230
         $this->assertCount(count($testCountData), $data);
231 231
 
232
-        usort($testCountData, function ($rowA, $rowB) {
232
+        usort($testCountData, function($rowA, $rowB) {
233 233
             return ($rowA['tag'] > $rowB['tag']);
234 234
         });
235
-        usort($data, function ($rowA, $rowB) {
235
+        usort($data, function($rowA, $rowB) {
236 236
             return ($rowA['tag'] > $rowB['tag']);
237 237
         });
238 238
 
@@ -298,18 +298,18 @@  discard block
 block discarded – undo
298 298
         $this->assertNotFalse($data);
299 299
         $this->assertInternalType('array', $data);
300 300
 
301
-        $testPTLinkData = array_filter($testPTLinkData, function ($row) use ($testPostData) {
301
+        $testPTLinkData = array_filter($testPTLinkData, function($row) use ($testPostData) {
302 302
             $post = $row['post_id'];
303
-            $post = array_filter($testPostData, function ($row) use ($post) {
303
+            $post = array_filter($testPostData, function($row) use ($post) {
304 304
                 return ($post == $row['id']);
305 305
             });
306 306
             $post = current($post);
307 307
             return ($post['display'] == 1);
308 308
         });
309 309
 
310
-        $tagCountData = array_map(function ($row) use ($testTagData) {
310
+        $tagCountData = array_map(function($row) use ($testTagData) {
311 311
             $tag = $row['tag_id'];
312
-            $tag = array_filter($testTagData, function ($row) use ($tag) {
312
+            $tag = array_filter($testTagData, function($row) use ($tag) {
313 313
                 return ($tag == $row['id']);
314 314
             });
315 315
             $tag = current($tag)['tag'];
@@ -336,10 +336,10 @@  discard block
 block discarded – undo
336 336
 
337 337
         $this->assertCount(count($testCountData), $data);
338 338
 
339
-        usort($testCountData, function ($rowA, $rowB) {
339
+        usort($testCountData, function($rowA, $rowB) {
340 340
             return ($rowA['tag'] > $rowB['tag']);
341 341
         });
342
-        usort($data, function ($rowA, $rowB) {
342
+        usort($data, function($rowA, $rowB) {
343 343
             return ($rowA['tag'] > $rowB['tag']);
344 344
         });
345 345
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         $this->assertInternalType('array', $data);
415 415
         $this->assertCount(count($testTagData), $data);
416 416
 
417
-        usort($testTagData, function ($rowA, $rowB) {
417
+        usort($testTagData, function($rowA, $rowB) {
418 418
             return ($rowA['tag'] > $rowB['tag']);
419 419
         });
420 420
 
Please login to merge, or discard this patch.
tests/unit/Domain/Blog/Post/MysqlPostRepositoryTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             )"
49 49
         );
50 50
 
51
-        self::$connection = new ConnectionLocator(function () use ($extendedPdo) {
51
+        self::$connection = new ConnectionLocator(function() use ($extendedPdo) {
52 52
             return $extendedPdo;
53 53
         });
54 54
     }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $this->assertInternalType('array', $data);
175 175
         $this->assertCount(count($testData), $data);
176 176
 
177
-        usort($testData, function ($rowA, $rowB) {
177
+        usort($testData, function($rowA, $rowB) {
178 178
             return ((new DateTime($rowA['date'])) < (new DateTime($rowB['date'])));
179 179
         });
180 180
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $this->assertNotFalse($data);
220 220
         $this->assertInternalType('array', $data);
221 221
 
222
-        $testData = array_filter($testData, function ($row) {
222
+        $testData = array_filter($testData, function($row) {
223 223
             return ($row['display'] == 1);
224 224
         });
225 225
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $this->assertNotFalse($data);
355 355
         $this->assertStringMatchesFormat('%d', $data);
356 356
 
357
-        $testData = array_filter($testData, function ($row) {
357
+        $testData = array_filter($testData, function($row) {
358 358
             return ($row['display'] == 1);
359 359
         });
360 360
 
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
         $this->assertNotFalse($data);
472 472
         $this->assertInternalType('array', $data);
473 473
 
474
-        $testPostData = array_filter($testPostData, function ($row) {
474
+        $testPostData = array_filter($testPostData, function($row) {
475 475
             return ($row['display'] == 1);
476 476
         });
477 477
 
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
         $this->assertNotFalse($data);
672 672
         $this->assertStringMatchesFormat('%d', $data);
673 673
 
674
-        $testPostData = array_filter($testPostData, function ($row) {
674
+        $testPostData = array_filter($testPostData, function($row) {
675 675
             return ($row['display'] == 1);
676 676
         });
677 677
 
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
         $this->assertNotFalse($data);
770 770
         $this->assertInternalType('array', $data);
771 771
 
772
-        $testData = array_filter($testData, function ($row) {
772
+        $testData = array_filter($testData, function($row) {
773 773
             return ($row['display'] == 1);
774 774
         });
775 775
 
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
         $this->assertNotFalse($data);
922 922
         $this->assertStringMatchesFormat('%d', $data);
923 923
 
924
-        $testData = array_filter($testData, function ($row) {
924
+        $testData = array_filter($testData, function($row) {
925 925
             return ($row['display'] == 1);
926 926
         });
927 927
 
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
         $this->assertInternalType('array', $data);
1110 1110
 
1111 1111
         array_shift($testPostData);
1112
-        $testPostData = array_filter($testPostData, function ($row) {
1112
+        $testPostData = array_filter($testPostData, function($row) {
1113 1113
             return ($row['display'] == 1);
1114 1114
         });
1115 1115
 
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
         $this->assertInternalType('array', $data);
1182 1182
 
1183 1183
         array_shift($testPostData);
1184
-        $testPostData = array_filter($testPostData, function ($row) use ($testSeriesPostData) {
1184
+        $testPostData = array_filter($testPostData, function($row) use ($testSeriesPostData) {
1185 1185
             return (!in_array($row['id'], array_column($testSeriesPostData, 'post')));
1186 1186
         });
1187 1187
 
Please login to merge, or discard this patch.