Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
rafaucau committed Jan 12, 2022
2 parents 6fe6536 + faedb77 commit ba47114
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/LSCacheClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ protected function fire(): int
];

$paths = $this->input->getOption('path');
if (!empty($paths)) {
if (! empty($paths)) {
$options['query']['paths'] = $paths;
}

$client = new Client();

try {
//GET does not require the Flarum API key
$client->request('GET', $this->url->to('api')->route('lscache.purge'), $options);
Expand All @@ -65,7 +66,7 @@ protected function fire(): int
}

$this->deleteKey();
$this->info('Notified LiteSpeed Web Server to purge' . (empty($paths) ? ' all' : '') . ' LSCache entries');
$this->info('Notified LiteSpeed Web Server to purge'.(empty($paths) ? ' all' : '').' LSCache entries');

return 0;
}
Expand Down

0 comments on commit ba47114

Please sign in to comment.