mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 17:50:38 +00:00
Fix backend code styling
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Support\Middleware;
|
||||
|
||||
use Schema;
|
||||
use Closure;
|
||||
use Doctrine\DBAL\Driver\PDOException;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Schema;
|
||||
use Doctrine\DBAL\Driver\PDOException;
|
||||
|
||||
class ProtectSetupWizardRoutes
|
||||
{
|
||||
@@ -25,7 +24,6 @@ class ProtectSetupWizardRoutes
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
} catch (PDOException $e) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
use Carbon\Carbon;
|
||||
use ByteUnits\Metric;
|
||||
use App\Users\Models\User;
|
||||
use Domain\Files\Models\File;
|
||||
use Domain\Folders\Models\Folder;
|
||||
use Illuminate\Support\Str;
|
||||
use Domain\Files\Models\File;
|
||||
use Domain\Sharing\Models\Share;
|
||||
use Domain\Folders\Models\Folder;
|
||||
use Illuminate\Support\Collection;
|
||||
use Domain\Settings\Models\Setting;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -252,7 +252,7 @@ if (! function_exists('get_item')) {
|
||||
/**
|
||||
* Get folder or file item
|
||||
*/
|
||||
function get_item(string $type, string $id): Folder|File
|
||||
function get_item(string $type, string $id): Folder | File
|
||||
{
|
||||
$model = $type === 'Folder'
|
||||
? 'folder'
|
||||
|
||||
Reference in New Issue
Block a user