Apply fixes from StyleCI

This commit is contained in:
HDVinnie
2018-12-06 22:57:41 +00:00
committed by StyleCI Bot
parent 674e662a83
commit 2f2c52328b
300 changed files with 18930 additions and 15001 deletions
+6 -6
View File
@@ -2,10 +2,10 @@
namespace App\Console;
use Symfony\Component\Process\Process;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Process\Exception\ProcessTimedOutException;
use Symfony\Component\Process\Process;
trait ConsoleTools
{
@@ -81,7 +81,7 @@ trait ConsoleTools
foreach ($commands as $command) {
$process = $this->process($command, $silent);
if (!$silent) {
if (! $silent) {
echo "\n\n";
$this->warn($process->getOutput());
}
@@ -90,7 +90,7 @@ trait ConsoleTools
private function process($command, $silent = false)
{
if (!$silent) {
if (! $silent) {
$this->cyan($command);
$bar = $this->progressStart();
}
@@ -106,20 +106,20 @@ trait ConsoleTools
$this->red("'{$command}' timed out.!");
}
if (!$silent) {
if (! $silent) {
$bar->advance();
}
usleep(200000);
}
if (!$silent) {
if (! $silent) {
$this->progressStop($bar);
}
$process->stop();
if (!$process->isSuccessful()) {
if (! $process->isSuccessful()) {
$this->red($process->getErrorOutput());
die();
}