Skip to content

Commit e4663ed

Browse files
authored
Merge pull request #2 from symfony-si/scrutinizer-patch-2
Scrutinizer Auto-Fixes
2 parents b41a7dd + ba436cb commit e4663ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AppBundle/Repository/PostRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function findAll()
4040
$finder = new Finder();
4141
$finder->files()->in($this->path.'/app/Resources/content/blog');
4242
$finder->files()->name('*.md');
43-
$finder->sort(function ($a, $b) { return strcmp($b->getRealpath(), $a->getRealpath()); });
43+
$finder->sort(function($a, $b) { return strcmp($b->getRealpath(), $a->getRealpath()); });
4444

4545
$posts = [];
4646
foreach ($finder as $file) {
@@ -85,7 +85,7 @@ public function findLatest($limit = 10)
8585
$finder = new Finder();
8686
$finder->files()->in($this->path.'/app/Resources/content/blog');
8787
$finder->files()->name('*.md');
88-
$finder->sort(function ($a, $b) { return strcmp($b->getRealpath(), $a->getRealpath()); });
88+
$finder->sort(function($a, $b) { return strcmp($b->getRealpath(), $a->getRealpath()); });
8989

9090
$posts = [];
9191
foreach (new \LimitIterator($finder->getIterator(), 0, $limit) as $file) {

0 commit comments

Comments
 (0)