protected function parseLineNumber($lines) {
    $number = 0;

    foreach ($lines as $k => $line) {
      if (strpos($line, '----') === 0) {
        $string = trim($lines[$k - 1]);
        $string = explode('|', $string);
        $number = trim($string[0]);
        break;
      }
    }

    return (int) $number;
  }
protected function parseLineNumber($lines) {
    $number = 0;

    foreach ($lines as $k => $line) {
      if (strpos($line, '----') === 0) {
        $string = trim($lines[$k - 1]);
        $string = explode('|', $string);
        $number = trim($string[0]);
        break;
      }
    }

    return (int) $number;
  }
protected function parseLineNumber ( $ lines ) { $ number = 0 ; foreach ( $ lines as $ k => $ line ) { if ( strpos ( $ line , '----' ) === 0 ) { $ string = trim ( $ lines [ $ k - 1 ] ) ; $ string = explode ( '|' , $ string ) ; $ number = trim ( $ string [ 0 ] ) ; break ; } } return ( int ) $ number ; }
Parse line number.

@param array $lines Array of CLI output lines.

@return int Line number where error occurred.
Parse line number .