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.