Passed
Branch main (2b2f59)
by Kaqaz
04:32
created
src/Core/SingleInterlink.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,8 +115,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ServiceProvider/LaravelInterlinkServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.