From faedb77c164d4dab55e6ead9782212c1c861d81d Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 12 Jan 2022 03:36:25 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Command/LSCacheClearCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/LSCacheClearCommand.php b/src/Command/LSCacheClearCommand.php index 8781a49..31fcee2 100644 --- a/src/Command/LSCacheClearCommand.php +++ b/src/Command/LSCacheClearCommand.php @@ -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); @@ -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; }