protected function addLine($line)
	{
		$ignoreLen = 0;

		if (!isset($this->table))
		{
			$this->table = [];

			// Make the table start at the first non-space character
			preg_match('/^ */', $line, $m);
			$ignoreLen = strlen($m[0]);
			$line      = substr($line, $ignoreLen);
		}

		// Overwrite the outermost pipes
		$line = preg_replace('/^( *)\\|/', '$1 ', $line);
		$line = preg_replace('/\\|( *)$/', ' $1', $line);

		$this->table['rows'][] = ['line' => $line, 'pos' => $this->pos + $ignoreLen];
	}
protected function addLine($line)
	{
		$ignoreLen = 0;

		if (!isset($this->table))
		{
			$this->table = [];

			// Make the table start at the first non-space character
			preg_match('/^ */', $line, $m);
			$ignoreLen = strlen($m[0]);
			$line      = substr($line, $ignoreLen);
		}

		// Overwrite the outermost pipes
		$line = preg_replace('/^( *)\\|/', '$1 ', $line);
		$line = preg_replace('/\\|( *)$/', ' $1', $line);

		$this->table['rows'][] = ['line' => $line, 'pos' => $this->pos + $ignoreLen];
	}
protected function addLine ( $ line ) { $ ignoreLen = 0 ; if ( ! isset ( $ this -> table ) ) { $ this -> table = [ ] ; // Make the table start at the first non-space character preg_match ( '/^ */' , $ line , $ m ) ; $ ignoreLen = strlen ( $ m [ 0 ] ) ; $ line = substr ( $ line , $ ignoreLen ) ; } // Overwrite the outermost pipes $ line = preg_replace ( '/^( *)\\|/' , '$1 ' , $ line ) ; $ line = preg_replace ( '/\\|( *)$/' , ' $1' , $ line ) ; $ this -> table [ 'rows' ] [ ] = [ 'line' => $ line , 'pos' => $ this -> pos + $ ignoreLen ] ; }
Add current line to a table

@param  string $line Line of text
@return void
Add current line to a table