Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-01-07 20:34:10 +00:00
parent 6066e82e9c
commit a5dde6a61a
232 changed files with 14828 additions and 14443 deletions

View File

@@ -12,8 +12,9 @@ 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)
@@ -46,7 +47,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'));
@@ -64,7 +65,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>']);