Skip to content

Commit aa138a1

Browse files
committed
Adjusted variable names
1 parent ede6d2a commit aa138a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Commands/ConfigureCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ private function testRemoteProfile($profile, $name)
245245
$this->info(sprintf(' ✔️ Connection successful', $name));
246246

247247
// Check binary exists.
248-
$binary_exists_stream = ssh2_exec($connection, 'command -v "mysql-helper" >/dev/null 2>&1; echo $?');
249-
stream_set_blocking($binary_exists_stream, true);
250-
$binary_exists = !(boolean) stream_get_contents($binary_exists_stream);
251-
fclose($binary_exists_stream);
248+
$stdio_stream = ssh2_exec($connection, 'command -v "mysql-helper" >/dev/null 2>&1; echo $?');
249+
stream_set_blocking($stdio_stream, true);
250+
$binary_exists = !(boolean) stream_get_contents($stdio_stream);
251+
fclose($stdio_stream);
252252

253253
if (!$binary_exists) {
254254
$this->error(sprintf(' ❌ mysql-helper binary does not exist', $name));

0 commit comments

Comments
 (0)