Completed
Push — master ( 926270...c5fc84 )
by Jacob
03:17
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.