@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | )" |
42 | 42 | ); |
43 | 43 | |
44 | - self::$connection = new ConnectionLocator(function () use ($extendedPdo) { |
|
44 | + self::$connection = new ConnectionLocator(function() use ($extendedPdo) { |
|
45 | 45 | return $extendedPdo; |
46 | 46 | }); |
47 | 47 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->assertInternalType('array', $data); |
168 | 168 | $this->assertCount(count($testData), $data); |
169 | 169 | |
170 | - usort($testData, function ($rowA, $rowB) { |
|
170 | + usort($testData, function($rowA, $rowB) { |
|
171 | 171 | return ((new DateTime($rowA['date'])) < (new DateTime($rowB['date']))); |
172 | 172 | }); |
173 | 173 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $this->assertNotFalse($data); |
213 | 213 | $this->assertInternalType('array', $data); |
214 | 214 | |
215 | - $testData = array_filter($testData, function ($row) { |
|
215 | + $testData = array_filter($testData, function($row) { |
|
216 | 216 | return ($row['display'] == 1); |
217 | 217 | }); |
218 | 218 | |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $this->assertNotFalse($data); |
348 | 348 | $this->assertStringMatchesFormat('%d', $data); |
349 | 349 | |
350 | - $testData = array_filter($testData, function ($row) { |
|
350 | + $testData = array_filter($testData, function($row) { |
|
351 | 351 | return ($row['display'] == 1); |
352 | 352 | }); |
353 | 353 | |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | $this->assertNotFalse($data); |
465 | 465 | $this->assertInternalType('array', $data); |
466 | 466 | |
467 | - $testPostData = array_filter($testPostData, function ($row) { |
|
467 | + $testPostData = array_filter($testPostData, function($row) { |
|
468 | 468 | return ($row['display'] == 1); |
469 | 469 | }); |
470 | 470 | |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | $this->assertNotFalse($data); |
665 | 665 | $this->assertStringMatchesFormat('%d', $data); |
666 | 666 | |
667 | - $testPostData = array_filter($testPostData, function ($row) { |
|
667 | + $testPostData = array_filter($testPostData, function($row) { |
|
668 | 668 | return ($row['display'] == 1); |
669 | 669 | }); |
670 | 670 |