Run cs-fix, ensure we only install dependency versions supporting 7.4+

This commit is contained in:
DaneEveritt 2022-05-04 19:01:29 -04:00
parent 3e55a79439
commit 34ffaebd3e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
16 changed files with 154 additions and 290 deletions

View file

@ -114,6 +114,7 @@ class AppSettingsCommand extends Command
foreach ($validator->errors()->all() as $error) {
$this->output->error($error);
}
return 1;
}

View file

@ -46,7 +46,6 @@ class MakeNodeCommand extends Command
*/
protected $description = 'Creates a new node on the system via the CLI.';
/**
* Handle the command execution process.
*
@ -62,13 +61,18 @@ class MakeNodeCommand extends Command
$data['fqdn'] = $this->option('fqdn') ?? $this->ask('Enter a domain name (e.g node.example.com) to be used for connecting to the daemon. An IP address may only be used if you are not using SSL for this node');
if (!filter_var(gethostbyname($data['fqdn']), FILTER_VALIDATE_IP)) {
$this->error('The FQDN or IP address provided does not resolve to a valid IP address.');
return;
}
$data['public'] = $this->option('public') ?? $this->confirm('Should this node be public? As a note, setting a node to private you will be denying the ability to auto-deploy to this node.', true);
$data['scheme'] = $this->option('scheme') ?? $this->anticipate('Please either enter https for SSL or http for a non-ssl connection',
["https","http",],"https");
$data['scheme'] = $this->option('scheme') ?? $this->anticipate(
'Please either enter https for SSL or http for a non-ssl connection',
['https', 'http'],
'https'
);
if (filter_var($data['fqdn'], FILTER_VALIDATE_IP) && $data['scheme'] === 'https') {
$this->error('A fully qualified domain name that resolves to a public IP address is required in order to use SSL for this node.');
return;
}
$data['behind_proxy'] = $this->option('proxy') ?? $this->confirm('Is your FQDN behind a proxy?');

View file

@ -69,7 +69,7 @@ class ProcessRunnableCommand extends Command
'schedule' => $schedule->name,
'hash' => $schedule->hashid,
]));
} catch (Throwable | Exception $exception) {
} catch (Throwable|Exception $exception) {
Log::error($exception, ['schedule_id' => $schedule->id]);
$this->error("An error was encountered while processing Schedule #{$schedule->id}: " . $exception->getMessage());

View file

@ -87,6 +87,7 @@ class UpgradeCommand extends Command
if (!$this->confirm('Are you sure you want to run the upgrade process for your Panel?')) {
$this->warn('Upgrade process terminated by user.');
return;
}
}