Commit cc3a00cb authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

fix code styles

parent a3cc7520
Pipeline #5592 passed with stages
in 3 minutes and 41 seconds
......@@ -3,14 +3,14 @@
namespace Source\Gateways\DoorUser;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\DatabaseManager;
use Source\Gateways\Users\UsersRepository;
use Source\Gateways\Doors\DoorsRepository;
use Source\Gateways\Users\UsersRepository;
use Illuminate\Contracts\Foundation\Application;
use Source\Gateways\GroupUser\GroupUserRepository;
use Source\Gateways\DoorGroup\DoorGroupRepository;
use Source\Gateways\GroupUser\GroupUserRepository;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......@@ -34,7 +34,7 @@ class DoorUserRepositoryServiceProvider extends ServiceProvider implements Defer
);
}
if(env('APP_ENV') === 'testing') {
if (env('APP_ENV') === 'testing') {
return new InMemoryDoorUserRepository();
}
......
......@@ -3,8 +3,6 @@
namespace Source\Gateways\DoorUser;
use Source\Entities\Group;
class InMemoryDoorUserRepository implements DoorUserRepository
{
/**
......
......@@ -3,11 +3,11 @@
namespace Source\Gateways\DoorUser;
use Source\Gateways\Users\UsersRepository;
use Source\Gateways\Doors\DoorsRepository;
use Source\Gateways\Users\UsersRepository;
use Source\Exceptions\EntityNotFoundException;
use Source\Gateways\GroupUser\GroupUserRepository;
use Source\Gateways\DoorGroup\DoorGroupRepository;
use Source\Gateways\GroupUser\GroupUserRepository;
class LocalDoorUserRepository extends InMemoryDoorUserRepository
{
......
......@@ -4,11 +4,11 @@
namespace Source\UseCases\Door\Access;
use App\Guards\DoorGuard;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Users\UsersRepository;
use Illuminate\Contracts\Foundation\Application;
use Source\Gateways\DoorUser\DoorUserRepository;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......
......@@ -3,12 +3,8 @@
namespace Tests\Database;
use App\Door as DbDoor;
use App\User as DbUser;
use App\Group as DbGroup;
use Source\Entities\User;
use Source\Entities\Door;
use Source\Entities\User;
use Source\Entities\Group;
use Tests\DatabaseTestCase;
use Illuminate\Support\Facades\DB;
......
......@@ -3,7 +3,6 @@
namespace Tests\Unit\Source\UseCases\Door\Access;
use Source\Entities\User;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
......
......@@ -7,9 +7,6 @@ use Source\Entities\User;
use Source\Entities\Group;
use PHPUnit\Framework\TestCase;
use Tests\Doubles\AuthorizerStub;
use Source\Gateways\Users\UsersRepository;
use Source\Gateways\Groups\GroupsRepository;
use Source\Gateways\GroupUser\GroupUserRepository;
use Source\Gateways\Users\InMemoryUsersRepository;
use Source\Gateways\Groups\InMemoryGroupsRepository;
use Source\Gateways\GroupUser\InMemoryGroupUserRepository;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment