@@ -46,7 +46,7 @@ |
||
| 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; |
@@ -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); |