@@ -104,6 +104,9 @@ discard block |
||
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 |
||
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); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | return false; |
49 | 49 | } |
50 | 50 | |
51 | - $table = new Table(function (Cursor $cursor) use (&$table, $columns) { |
|
51 | + $table = new Table(function(Cursor $cursor) use (&$table, $columns) { |
|
52 | 52 | $row = $this->parseRow($cursor->getLine(), $columns); |
53 | 53 | if (null === $row) { |
54 | 54 | if (null !== $table->getCaption()) { |