src/PhpGitHooks/Module/PhpCs/Infrastructure/Tool/PhpCsToolProcessor.php 1 location
|
@@ 71-78 (lines=8) @@
|
| 68 |
|
* |
| 69 |
|
* @throws \Symfony\Component\Process\Exception\LogicException |
| 70 |
|
*/ |
| 71 |
|
private function setErrors(Process $process) |
| 72 |
|
{ |
| 73 |
|
if (false === $process->isSuccessful()) { |
| 74 |
|
return $process->getErrorOutput() ?: $process->getOutput(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return null; |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
|
src/PhpGitHooks/Module/PhpMd/Infrastructure/Tool/PhpMdToolProcessor.php 1 location
|
@@ 62-69 (lines=8) @@
|
| 59 |
|
* |
| 60 |
|
* @throws \Symfony\Component\Process\Exception\LogicException |
| 61 |
|
*/ |
| 62 |
|
private function setError(Process $process) |
| 63 |
|
{ |
| 64 |
|
if (false === $process->isSuccessful()) { |
| 65 |
|
return $process->getErrorOutput() ?: $process->getOutput(); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
return null; |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|