@@ -115,8 +115,9 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public function updatePosts(): void |
| 117 | 117 | { |
| 118 | - foreach ($this->getResult() as $post) |
|
| 119 | - $post->update(); |
|
| 118 | + foreach ($this->getResult() as $post) { |
|
| 119 | + $post->update(); |
|
| 120 | + } |
|
| 120 | 121 | } |
| 121 | 122 | |
| 122 | 123 | #endregion |
@@ -144,11 +145,13 @@ discard block |
||
| 144 | 145 | $title = $this->getTitle(); |
| 145 | 146 | $link = $this->getLink(); |
| 146 | 147 | |
| 147 | - if ($this->isRawLink()) |
|
| 148 | - return $this->getLink(); |
|
| 148 | + if ($this->isRawLink()) { |
|
| 149 | + return $this->getLink(); |
|
| 150 | + } |
|
| 149 | 151 | |
| 150 | - if ($this->isMarkdown()) |
|
| 151 | - return "[$title]($link)"; |
|
| 152 | + if ($this->isMarkdown()) { |
|
| 153 | + return "[$title]($link)"; |
|
| 154 | + } |
|
| 152 | 155 | |
| 153 | 156 | return $this->formatHtml($title, $link); |
| 154 | 157 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function register() |
| 15 | 15 | { |
| 16 | - $this->app->bind('laravel_interlink', function () { |
|
| 16 | + $this->app->bind('laravel_interlink', function() { |
|
| 17 | 17 | return new LaravelInterlink(); |
| 18 | 18 | }); |
| 19 | 19 | } |