@@ -172,11 +172,11 @@ discard block |
||
| 172 | 172 | { |
| 173 | 173 | $array = []; |
| 174 | 174 | |
| 175 | - if (! empty($this->canonicalUrl)) { |
|
| 175 | + if (!empty($this->canonicalUrl)) { |
|
| 176 | 176 | $array[] = Meta::link('canonical', $this->canonicalUrl); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - if (! empty($this->title)) { |
|
| 179 | + if (!empty($this->title)) { |
|
| 180 | 180 | $array[] = Meta::name('twitter:title', $this->htmlTitle()); |
| 181 | 181 | $array[] = Meta::property('title', $this->htmlTitle()); |
| 182 | 182 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | public function showInNavigation(): bool |
| 205 | 205 | { |
| 206 | - return ! $this->navigation['hidden']; |
|
| 206 | + return !$this->navigation['hidden']; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | public function navigationMenuPriority(): int |
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected function makeCanonicalUrl(): ?string |
| 40 | 40 | { |
| 41 | - if (! empty($this->matter('canonicalUrl'))) { |
|
| 41 | + if (!empty($this->matter('canonicalUrl'))) { |
|
| 42 | 42 | return $this->matter('canonicalUrl'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if (Hyde::hasSiteUrl() && ! empty($this->identifier)) { |
|
| 45 | + if (Hyde::hasSiteUrl() && !empty($this->identifier)) { |
|
| 46 | 46 | return $this->getRoute()->getQualifiedUrl(); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public static function link(string $rel, string $href, array $attr = []): string |
| 28 | 28 | { |
| 29 | - if (! $attr) { |
|
| 29 | + if (!$attr) { |
|
| 30 | 30 | return '<link rel="'.e($rel).'" href="'.e($href).'">'; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - $attributes = collect($attr)->map(function ($value, $key) { |
|
| 33 | + $attributes = collect($attr)->map(function($value, $key) { |
|
| 34 | 34 | return e($key).'="'.e($value).'"'; |
| 35 | 35 | })->implode(' '); |
| 36 | 36 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | foreach (array_reverse($meta) as $metaItem) { |
| 59 | 59 | $substring = substr($metaItem, 6, strpos($metaItem, ' content="') - 6); |
| 60 | 60 | |
| 61 | - if (! in_array($substring, $existing)) { |
|
| 61 | + if (!in_array($substring, $existing)) { |
|
| 62 | 62 | $array[] = $metaItem; |
| 63 | 63 | $existing[] = $substring; |
| 64 | 64 | } |