Completed
Push — master ( 8c8014...211020 )
by Jacob
03:25
created
tests/unit/Domain/Blog/Series/MysqlSeriesRepositoryTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             )"
43 43
         );
44 44
 
45
-        self::$connection = new ConnectionLocator(function () use ($extendedPdo) {
45
+        self::$connection = new ConnectionLocator(function() use ($extendedPdo) {
46 46
             return $extendedPdo;
47 47
         });
48 48
     }
@@ -180,11 +180,11 @@  discard block
 block discarded – undo
180 180
         $repository = new MysqlSeriesRepository(self::$connection);
181 181
         $data = $repository->getSeriesForPost(reset($testPostData)['id']);
182 182
 
183
-        usort($testPostData, function ($rowA, $rowB) use ($testSeriesPostData) {
184
-            $seriesA = array_filter($testSeriesPostData, function ($row) use ($rowA) {
183
+        usort($testPostData, function($rowA, $rowB) use ($testSeriesPostData) {
184
+            $seriesA = array_filter($testSeriesPostData, function($row) use ($rowA) {
185 185
                 return ($rowA['id'] == $row['post']);
186 186
             });
187
-            $seriesB = array_filter($testSeriesPostData, function ($row) use ($rowB) {
187
+            $seriesB = array_filter($testSeriesPostData, function($row) use ($rowB) {
188 188
                 return ($rowB['id'] == $row['post']);
189 189
             });
190 190
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         $this->assertNotFalse($data);
309 309
         $this->assertInternalType('array', $data);
310 310
 
311
-        $testPostData = array_filter($testPostData, function ($row) {
311
+        $testPostData = array_filter($testPostData, function($row) {
312 312
             return ($row['display'] == 1);
313 313
         });
314 314
         $testPosts = array_column($testPostData, 'id');
Please login to merge, or discard this patch.