@@ -41,14 +41,14 @@ |
||
41 | 41 | */ |
42 | 42 | public function getUrl(string $url) |
43 | 43 | { |
44 | - return collect($this->tags)->first(function (Tag $tag) use ($url) { |
|
44 | + return collect($this->tags)->first(function(Tag $tag) use ($url) { |
|
45 | 45 | return $tag->getType() === 'url' && $tag->url === $url; |
46 | 46 | }); |
47 | 47 | } |
48 | 48 | |
49 | 49 | public function hasUrl(string $url): bool |
50 | 50 | { |
51 | - return (bool)$this->getUrl($url); |
|
51 | + return (bool) $this->getUrl($url); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | public function render($sort = false): string |
@@ -53,8 +53,9 @@ |
||
53 | 53 | |
54 | 54 | public function render($sort = false): string |
55 | 55 | { |
56 | - if ($sort) |
|
57 | - sort($this->tags); |
|
56 | + if ($sort) { |
|
57 | + sort($this->tags); |
|
58 | + } |
|
58 | 59 | |
59 | 60 | $tags = $this->tags; |
60 | 61 |