Completed
Pull Request — master (#5)
by Stéphane
05:01
created
src/TableParser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return false;
47 47
         }
48 48
 
49
-        $table = new Table(function (Cursor $cursor) use (&$table, $columns) {
49
+        $table = new Table(function(Cursor $cursor) use (&$table, $columns) {
50 50
             $row = $this->parseRow($cursor->getLine(), $columns);
51 51
             if (null === $row) {
52 52
                 return false;
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@  discard block
 block discarded – undo
104 104
         return $columns;
105 105
     }
106 106
 
107
+    /**
108
+     * @param string $line
109
+     */
107 110
     private function parseRow($line, array $columns, $type = TableCell::TYPE_BODY)
108 111
     {
109 112
         $cells = RegexHelper::matchAll(self::REGEXP_CELLS, $line);
@@ -123,6 +126,9 @@  discard block
 block discarded – undo
123 126
         return $row;
124 127
     }
125 128
 
129
+    /**
130
+     * @param string $line
131
+     */
126 132
     private function parseCaption($line)
127 133
     {
128 134
         $caption = RegexHelper::matchAll(self::REGEXP_CAPTION, $line);
Please login to merge, or discard this patch.