Standardised facade usage to use via their FQCN

Done via Laravel Shift Workbench
This commit is contained in:
Dan Brown 2021-09-26 15:37:55 +01:00
parent ffdfdc7449
commit c32b315cd7
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
15 changed files with 18 additions and 18 deletions

View File

@ -4,7 +4,7 @@ namespace BookStack\Actions;
use BookStack\Auth\Permissions\PermissionService;
use BookStack\Entities\Models\Entity;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Collection;
class TagRepo

View File

@ -15,7 +15,7 @@ use Exception;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
use Log;
use Illuminate\Support\Facades\Log;
class UserRepo
{

View File

@ -3,7 +3,7 @@
namespace BookStack\Console\Commands;
use BookStack\Entities\Tools\SearchIndex;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Console\Command;
class RegenerateSearch extends Command

View File

@ -12,7 +12,7 @@ use BookStack\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Validator;
use Illuminate\Support\Facades\Validator;
class RegisterController extends Controller
{

View File

@ -2,7 +2,7 @@
namespace BookStack\Providers;
use Blade;
use Illuminate\Support\Facades\Blade;
use BookStack\Auth\Access\LoginService;
use BookStack\Auth\Access\SocialAuthService;
use BookStack\Entities\BreadcrumbsViewComposer;
@ -18,8 +18,8 @@ use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Laravel\Socialite\Contracts\Factory as SocialiteFactory;
use Schema;
use URL;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{

View File

@ -2,7 +2,7 @@
namespace BookStack\Providers;
use Auth;
use Illuminate\Support\Facades\Auth;
use BookStack\Api\ApiTokenGuard;
use BookStack\Auth\Access\ExternalBaseUserProvider;
use BookStack\Auth\Access\Guards\LdapSessionGuard;

View File

@ -3,7 +3,7 @@
namespace BookStack\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Route;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{

View File

@ -8,7 +8,7 @@ use Illuminate\Contracts\Filesystem\Factory as FileSystem;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Contracts\Filesystem\Filesystem as FileSystemInstance;
use Illuminate\Support\Str;
use Log;
use Illuminate\Support\Facades\Log;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class AttachmentService

View File

@ -3,7 +3,7 @@
namespace BookStack\Uploads;
use BookStack\Exceptions\ImageUploadException;
use DB;
use Illuminate\Support\Facades\DB;
use ErrorException;
use Exception;
use Illuminate\Contracts\Cache\Repository as Cache;

View File

@ -7,7 +7,7 @@ use BookStack\Auth\User;
use BookStack\Entities\Models\Page;
use BookStack\Notifications\ConfirmEmail;
use BookStack\Notifications\ResetPassword;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
use Tests\TestResponse;

View File

@ -5,7 +5,7 @@ namespace Tests\Auth;
use BookStack\Actions\ActivityType;
use BookStack\Auth\SocialAccount;
use BookStack\Auth\User;
use DB;
use Illuminate\Support\Facades\DB;
use Laravel\Socialite\Contracts\Factory;
use Laravel\Socialite\Contracts\Provider;
use Mockery;

View File

@ -6,9 +6,9 @@ use BookStack\Auth\Access\UserInviteService;
use BookStack\Auth\User;
use BookStack\Notifications\UserInvite;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Notification;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
class UserInviteTest extends TestCase

View File

@ -2,7 +2,7 @@
namespace Tests;
use Auth;
use Illuminate\Support\Facades\Auth;
use BookStack\Auth\Permissions\PermissionService;
use BookStack\Auth\Permissions\RolePermission;
use BookStack\Auth\Role;

View File

@ -8,7 +8,7 @@ use BookStack\Entities\Models\Chapter;
use BookStack\Entities\Models\Deletion;
use BookStack\Entities\Models\Entity;
use BookStack\Entities\Models\Page;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Carbon;
class RecycleBinTest extends TestCase

View File

@ -7,7 +7,7 @@ use BookStack\Entities\Models\Page;
use BookStack\Entities\Tools\PageContent;
use BookStack\Facades\Theme;
use BookStack\Theming\ThemeEvents;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use League\CommonMark\ConfigurableEnvironmentInterface;