Skip to content

Commit 7ab16b2

Browse files
committed
cs fix
1 parent 4dee880 commit 7ab16b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Libraries/Blog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getPopularPosts(int $limit = 5)
116116
foreach ($files as $file) {
117117
foreach ($slugs as $slug => $count) {
118118
try {
119-
if (stripos($file, $slug) !== false) {
119+
if (str_contains(strtolower($file), strtolower($slug))) {
120120
$posts[$count] = $this->getPost($slug);
121121
}
122122
}

0 commit comments

Comments
 (0)