Lines Matching refs:lines
134 * @param array $lines
138 protected function detectLineType($lines, $current) argument
140 $line = $lines[$current];
143 if ($this->{'identify' . $blockType}($line, $lines, $current)) {
155 protected function parseBlocks($lines) argument
159 return [['text', implode("\n", $lines)]];
166 for ($i = 0, $count = count($lines); $i < $count; $i++) {
167 $line = $lines[$i];
170 list($block, $i) = $this->parseBlock($lines, $i);
189 protected function parseBlock($lines, $current) argument
192 $blockType = $this->detectLineType($lines, $current);
195 return $this->{'consume' . $blockType}($lines, $current);
216 protected function consumeParagraph($lines, $current) argument
220 for ($i = $current, $count = count($lines); $i < $count; $i++) {
221 if (ltrim($lines[$i]) !== '') {
222 $content[] = $lines[$i];