mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user