| @@ 24-33 (lines=10) @@ | ||
| 21 | /** |
|
| 22 | * @return bool |
|
| 23 | */ |
|
| 24 | public function hasSyntaxError() |
|
| 25 | { |
|
| 26 | $output = trim($this->getOutput()); |
|
| 27 | ||
| 28 | if (defined('HHVM_VERSION') && empty($output)) { |
|
| 29 | return false; |
|
| 30 | } |
|
| 31 | ||
| 32 | return false === strpos($output, 'No syntax errors detected'); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @return bool|array |
|
| @@ 75-85 (lines=11) @@ | ||
| 72 | /** |
|
| 73 | * @return bool |
|
| 74 | */ |
|
| 75 | public function hasSyntaxIssue() |
|
| 76 | { |
|
| 77 | $output = trim($this->getOutput()); |
|
| 78 | ||
| 79 | if (defined('HHVM_VERSION') && empty($output)) { |
|
| 80 | return false; |
|
| 81 | } |
|
| 82 | ||
| 83 | ||
| 84 | return (bool)preg_match('/(Warning:|Deprecated:|Notice:)/', $output); |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @return bool|array |
|