Fixing SensioLabs Insight 'Critical' violations.
This commit is contained in:
parent
4d91bd15e7
commit
9379da1393
2 changed files with 6 additions and 2 deletions
|
|
@ -87,7 +87,8 @@ class DaemoniseCommand extends Command
|
|||
try {
|
||||
$buildCount = $runner->run($emptyInput, $output);
|
||||
} catch (\Exception $e) {
|
||||
var_dump($e);
|
||||
$output->writeln('<error>Exception: ' . $e->getMessage() . '</error>');
|
||||
$output->writeln('<error>Line: ' . $e->getLine() . ' - File: ' . $e->getFile() . '</error>');
|
||||
}
|
||||
|
||||
if (0 == $buildCount && $this->sleep < 15) {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ class WindowsCommandExecutor extends BaseCommandExecutor
|
|||
*/
|
||||
protected function findGlobalBinary($binary)
|
||||
{
|
||||
return trim(shell_exec('where ' . $binary));
|
||||
$command = sprintf('where %s', $binary);
|
||||
$result = shell_exec($command);
|
||||
|
||||
return trim($result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue