Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-01-07 20:32:31 +00:00
parent f9ae387337
commit 87acc30a0b
235 changed files with 14454 additions and 14841 deletions

View File

@@ -34,7 +34,7 @@ class QueueController extends Controller
try {
$queues = new QueueService();
$queue = $queues->find($id);
if (!$queue) {
if (! $queue) {
throw new Exception('Sorry we can not find your request');
}
@@ -50,7 +50,7 @@ class QueueController extends Controller
$values = $request->except('_token');
$queues = new QueueService();
$queue = $queues->find($id);
if (!$queue) {
if (! $queue) {
throw new Exception('Sorry we can not find your request');
}
$setting = new FaveoQueue();
@@ -64,8 +64,8 @@ class QueueController extends Controller
foreach ($values as $key => $value) {
$setting->create([
'service_id' => $id,
'key' => $key,
'value' => $value,
'key' => $key,
'value' => $value,
]);
}
}
@@ -82,7 +82,7 @@ class QueueController extends Controller
$queues = new QueueService();
$queue = $queues->find($id);
$active_queue = $queues->where('status', 1)->first();
if (!$queue) {
if (! $queue) {
throw new Exception('Sorry we can not find your request');
}
if ($queue->isActivate() == false && $id != 1 && $id != 2) {