Completed
Pull Request — master (#14)
by Jitendra
01:42
created
src/BlockElementParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
             $this->trimmedLine = \trim($this->trimmedLine, '|');
113 113
 
114 114
             foreach (\explode('|', $this->trimmedLine) as $hdr) {
115
-                $this->markup .= '<th>' . \trim($hdr) . "</th>\n";
115
+                $this->markup .= '<th>'.\trim($hdr)."</th>\n";
116 116
             }
117 117
 
118 118
             $this->markup .= "</tr>\n</thead>\n<tbody>\n";
Please login to merge, or discard this patch.
src/HtmlUp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
             $level = \strlen($this->trimmedLine) - \strlen(\ltrim($this->trimmedLine, '#'));
192 192
 
193 193
             if ($level < 7) {
194
-                $this->markup .= "\n<h{$level}>" . \ltrim(\ltrim($this->trimmedLine, '# ')) . "</h{$level}>";
194
+                $this->markup .= "\n<h{$level}>".\ltrim(\ltrim($this->trimmedLine, '# '))."</h{$level}>";
195 195
 
196 196
                 return \true;
197 197
             }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         if ($codeBlock || (!$this->inList && !$this->inQuote && $isShifted)) {
220 220
             $lang = isset($codeMatch[1])
221
-                ? ' class="language-' . $codeMatch[1] . '"'
221
+                ? ' class="language-'.$codeMatch[1].'"'
222 222
                 : '';
223 223
 
224 224
             $this->markup .= "\n<pre><code{$lang}>";
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                 $this->listLevel++;
264 264
             }
265 265
 
266
-            $this->markup .= '<li>' . \ltrim($this->trimmedLine, '+-*0123456789. ');
266
+            $this->markup .= '<li>'.\ltrim($this->trimmedLine, '+-*0123456789. ');
267 267
 
268 268
             $this->listInternal();
269 269
 
Please login to merge, or discard this patch.
src/SpanElementParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $markup = $this->images($markup);
56 56
 
57
-        return \preg_replace_callback(static::RE_MD_URL, function ($a) {
57
+        return \preg_replace_callback(static::RE_MD_URL, function($a) {
58 58
             $title = isset($a[3]) ? " title={$a[3]} " : '';
59 59
 
60 60
             return "<a href=\"{$a[2]}\"{$title}>{$a[1]}</a>";
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     protected function images($markup)
65 65
     {
66
-        return \preg_replace_callback(static::RE_MD_IMG, function ($img) {
66
+        return \preg_replace_callback(static::RE_MD_IMG, function($img) {
67 67
             $title = isset($img[3]) ? " title={$img[3]} " : '';
68 68
             $alt   = $img[1] ? " alt=\"{$img[1]}\" " : '';
69 69
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     protected function spans($markup)
75 75
     {
76 76
         // em/code/strong/del
77
-        return \preg_replace_callback(static::RE_MD_FONT, function ($em) {
77
+        return \preg_replace_callback(static::RE_MD_FONT, function($em) {
78 78
             switch (\substr($em[1], 0, 2)) {
79 79
                 case '**':
80 80
                 case '__':
Please login to merge, or discard this patch.