| @@ 38-47 (lines=10) @@ | ||
| 35 | /** |
|
| 36 | * @return bool|array |
|
| 37 | */ |
|
| 38 | public function getSyntaxError() |
|
| 39 | { |
|
| 40 | if ($this->hasSyntaxError()) { |
|
| 41 | $out = explode("\n", trim($this->getOutput())); |
|
| 42 | ||
| 43 | return $this->parseError(array_shift($out)); |
|
| 44 | } |
|
| 45 | ||
| 46 | return false; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Parse error message. |
|
| @@ 90-99 (lines=10) @@ | ||
| 87 | /** |
|
| 88 | * @return bool|array |
|
| 89 | */ |
|
| 90 | public function getSyntaxIssue() |
|
| 91 | { |
|
| 92 | if ($this->hasSyntaxIssue()) { |
|
| 93 | $out = explode("\n", trim($this->getOutput())); |
|
| 94 | ||
| 95 | return $this->parseIssue(array_shift($out)); |
|
| 96 | } |
|
| 97 | ||
| 98 | return false; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Parse error message. |
|