Skip to content

Commit 05f7935

Browse files
committed
style: put brackets for if
1 parent ddd27c6 commit 05f7935

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/SeoManager.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,17 @@ public function byUrl(): Model|Seo|null
100100
$url = (string)$this->url();
101101

102102
$seo = Seo::query()->where("url", $url)->first();
103-
if ($seo) return $seo;
103+
104+
if ($seo) {
105+
return $seo;
106+
}
104107

105108
$baseUrl = parse_url($url, PHP_URL_PATH);
106109
$seo = Seo::query()->where("url", $baseUrl)->first();
107-
if ($seo) return $seo;
110+
111+
if ($seo) {
112+
return $seo;
113+
}
108114

109115
return null;
110116
}

0 commit comments

Comments
 (0)