Completed
Pull Request — master (#7)
by
unknown
02:15 queued 14s
created
src/TableParser.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@
 block discarded – undo
92 92
         return $columns;
93 93
     }
94 94
 
95
+    /**
96
+     * @param string $line
97
+     */
95 98
     private function parseRow($line, array $columns, $type = TableCell::TYPE_BODY)
96 99
     {
97 100
         $cells = RegexHelper::matchAll(self::REGEXP_CELLS, $line);
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,10 +114,10 @@
 block discarded – undo
114 114
 
115 115
         // If we have a single match we might be using a single-column table
116 116
         if (!is_array($cells[0])) {
117
-			// If this isn't a single-column table, this is an invalid row
118
-			if (1 !== count($columns)) {
119
-				return;
120
-			}
117
+            // If this isn't a single-column table, this is an invalid row
118
+            if (1 !== count($columns)) {
119
+                return;
120
+            }
121 121
 
122 122
             // Single-column table cells that have [body] content must be prefixed with | to not be treated as captions
123 123
             if (null !== $this->parseCaption($line)) {
Please login to merge, or discard this patch.