Completed
Push — master ( f92391...2b16eb )
by Jacob
03:12
created
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.