Skip to content

Commit 043f246

Browse files
authored
Merge pull request #1 from hnhdigital-os/analysis-XZ7dxP
Apply fixes from StyleCI
2 parents 075609a + 2a08f5c commit 043f246

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

app/Commands/ConfigureCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private function sshConnect($host, $port, $username, $public_key, $private_key)
296296
$stdio_stream = ssh2_exec($connection, 'command -v "mysql-helper" >/dev/null 2>&1; echo $?');
297297
stream_set_blocking($stdio_stream, true);
298298

299-
$binary_exists = !(boolean) stream_get_contents($stdio_stream);
299+
$binary_exists = !(bool) stream_get_contents($stdio_stream);
300300

301301
fclose($stdio_stream);
302302
ssh2_disconnect($connection);
@@ -611,7 +611,6 @@ private function testLocalProfile($profile, $name)
611611
return $this->updateLocalProfile($profile, $name);
612612
}
613613

614-
615614
/**
616615
* Create local profile.
617616
*

app/Commands/InstallCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
namespace App\Commands;
44

5-
use LaravelZero\Framework\Commands\Command;
65
use HnhDigital\CliHelper\SoftwareTrait;
7-
use Symfony\Component\Process\Process;
8-
use Symfony\Component\Process\Exception\ProcessFailedException;
6+
use LaravelZero\Framework\Commands\Command;
97

108
class InstallCommand extends Command
119
{

app/Commands/RestoreCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ private function selectSqlFile($profile)
127127

128128
// Select the source database.
129129
$selected_database = $this->menu('Select source database', $menu_options)->open();
130-
130+
131131
$restore_files = glob($restore_file_path.'/'.$selected_database.'/*.zip');
132132

133133
$menu_options = [];
134134

135135
foreach ($restore_files as $path) {
136136
$date = Carbon::createFromFormat('Y-m-d-H-i-s', pathinfo($path, PATHINFO_FILENAME));
137-
$menu_options[$path] = (string)$date;
137+
$menu_options[$path] = (string) $date;
138138
}
139139

140140
krsort($menu_options);
@@ -196,7 +196,7 @@ private function selectDatabase($profile, $connection, $database = null)
196196
DB::connection($connection)->reconnect();
197197

198198
$databases = [
199-
'new' => 'NEW DATABASE'
199+
'new' => 'NEW DATABASE',
200200
];
201201

202202
$available_databases = DB::connection($connection)

0 commit comments

Comments
 (0)