Completed
Push — master ( 45ee44...54c1f3 )
by Frank
02:35
created
src/Marksimple.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         return array_reduce(
118 118
             $this->rules,
119
-            function (string $content, ElementRuleInterface $rule): string {
119
+            function(string $content, ElementRuleInterface $rule): string {
120 120
                 return $rule->parse($content);
121 121
             },
122 122
             $this->sanitize($content)
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     protected function sanitize(string $content): string
134 134
     {
135 135
         // Add new line to get the first character of a string.
136
-        $content = "\n".$content;
136
+        $content = "\n" . $content;
137 137
 
138 138
         // Standardize line breaks.
139 139
         $content = str_replace(["\n\n", "\r\n", "\r"], "\n", $content);
Please login to merge, or discard this patch.
src/Rule/Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     public function render(array $content): string
24 24
     {
25
-        return '<a href="' . $content[ 2 ] . '">' . $content[ 1 ] . '</a>';
25
+        return '<a href="' . $content[2] . '">' . $content[1] . '</a>';
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Rule/Strong.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     public function render(array $content): string
24 24
     {
25
-        return sprintf('<strong>%s</strong>', $content[ 2 ]);
25
+        return sprintf('<strong>%s</strong>', $content[2]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Rule/NewLine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     public function render(array $content): string
24 24
     {
25
-        return "\n<br>" . $content[ 0 ];
25
+        return "\n<br>" . $content[0];
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Rule/Italic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     public function render(array $content): string
24 24
     {
25
-        return sprintf('<em>%s</em>', $content[ 2 ]);
25
+        return sprintf('<em>%s</em>', $content[2]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.