Fixing SensioLabs Insight 'Critical' violations.

This commit is contained in:
Dan Cryer 2015-02-12 10:39:41 +00:00
commit 9379da1393
2 changed files with 6 additions and 2 deletions

View file

@ -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) {

View file

@ -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);
}
}