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

@@ -12,9 +12,8 @@ class CheckUpdate
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
@@ -47,7 +46,7 @@ class CheckUpdate
public function checkNewUpdate()
{
$notify = new BarNotification();
if (!\Schema::hasTable('bar_notifications')) {
if (! \Schema::hasTable('bar_notifications')) {
$url = url('database-upgrade');
//$string = "Your Database is outdated please upgrade <a href=$url>Now !</a>";
echo view('themes.default1.update.database', compact('url'));
@@ -65,7 +64,7 @@ class CheckUpdate
}
}
if (count($notifications) > 0) {
if (!array_key_exists('new-version', $notifications)) {
if (! array_key_exists('new-version', $notifications)) {
$check_version = $this->checkNewVersion();
if ($check_version == true) {
$notify->create(['key' => 'new-version', 'value' => 'new version found please click <a href='.url('file-update').'><b>here to download</b></a>']);