Commit aa257fb2 authored by Jacob Priddy's avatar Jacob Priddy 👌

Fix code styles

parent 039625b0
Pipeline #5455 passed with stages
in 2 minutes and 4 seconds
......@@ -6,7 +6,6 @@ namespace App\Guards;
use Illuminate\Http\Request;
use Illuminate\Auth\GuardHelpers;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Contracts\Auth\Authenticatable;
use Source\UseCases\Token\Authenticate\AuthenticateUseCase;
use Source\UseCases\Token\Authenticate\TranslationPresenter;
......
......@@ -5,15 +5,15 @@ namespace App\Http\Controllers;
use Illuminate\Http\JsonResponse;
use Source\Authorization\Permissions;
use Source\UseCases\Doors\GetDoor\GetDoorUseCase;
use Source\UseCases\Doors\DeleteDoor\APIPresenter as DeleteDoorAPIPresenter;
use Source\UseCases\Doors\CreateDoor\CreateDoorUseCase;
use Source\UseCases\Doors\DeleteDoor\DeleteDoorUseCase;
use Source\UseCases\Doors\GenerateDoorToken\GenerateDoorTokenUseCase;
use Source\UseCases\Doors\UpdateDoor\APIPresenter as UpdateDoorAPIPresenter;
use Source\UseCases\Doors\UpdateDoor\UpdateDoorUseCase;
use Source\UseCases\Doors\CreateDoor\APIPresenter as CreateDoorAPIPresenter;
use Source\UseCases\Doors\CreateDoor\CreateDoorUseCase;
use Source\UseCases\Doors\GetAllDoors\GetAllDoorsUseCase;
use Source\UseCases\Doors\GenerateDoorToken\GenerateDoorTokenUseCase;
use Source\UseCases\Doors\GetDoor\APIPresenter as GetDoorAPIPresenter;
use Source\UseCases\Doors\CreateDoor\APIPresenter as CreateDoorAPIPresenter;
use Source\UseCases\Doors\DeleteDoor\APIPresenter as DeleteDoorAPIPresenter;
use Source\UseCases\Doors\UpdateDoor\APIPresenter as UpdateDoorAPIPresenter;
use Source\UseCases\Doors\GetAllDoors\APIPresenter as GetAllDoorsAPIPresenter;
class DoorsController extends ApiController
......
......@@ -9,19 +9,18 @@ use Source\Gateways\Doors\DoorsRepositoryServiceProvider;
use Source\Gateways\Users\UsersRepositoryServiceProvider;
use Source\Gateways\Groups\GroupsRepositoryServiceProvider;
use Source\Gateways\Tokens\TokensRepositoryServiceProvider;
use Source\UseCases\Doors\GenerateDoorToken\GenerateDoorToken;
use Source\UseCases\Users\GetUser\GetUserUseCaseServiceProvider;
use Source\UseCases\Doors\GetDoor\GetDoorUseCaseServiceProvider;
use Source\UseCases\Users\GetUser\GetUserUseCaseServiceProvider;
use Source\Gateways\GroupUser\GroupUserRepositoryServiceProvider;
use Source\UseCases\Groups\GetGroup\GetGroupUseCaseServiceProvider;
use Source\UseCases\Doors\CreateDoor\CreateDoorUseCaseServiceProvider;
use Source\UseCases\Doors\DeleteDoor\DeleteDoorUseCaseServiceProvider;
use Source\UseCases\Doors\UpdateDoor\UpdateDoorUseCaseServiceProvider;
use Source\UseCases\Users\CreateUser\CreateUserUseCaseServiceProvider;
use Source\UseCases\Users\DeleteUser\DeleteUserUseCaseServiceProvider;
use Source\UseCases\Users\UpdateUser\UpdateUserUseCaseServiceProvider;
use Source\UseCases\Doors\CreateDoor\CreateDoorUseCaseServiceProvider;
use Source\UseCases\Doors\UpdateDoor\UpdateDoorUseCaseServiceProvider;
use Source\UseCases\Doors\DeleteDoor\DeleteDoorUseCaseServiceProvider;
use Source\UseCases\Users\GetAllUsers\GetAllUsersUseCaseServiceProvider;
use Source\UseCases\Doors\GetAllDoors\GetAllDoorsUseCaseServiceProvider;
use Source\UseCases\Users\GetAllUsers\GetAllUsersUseCaseServiceProvider;
use Source\UseCases\Groups\CreateGroup\CreateGroupUseCaseServiceProvider;
use Source\UseCases\Groups\DeleteGroup\DeleteGroupUseCaseServiceProvider;
use Source\UseCases\Groups\UpdateGroup\UpdateGroupUseCaseServiceProvider;
......
......@@ -3,8 +3,8 @@
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MeController;
use App\Http\Controllers\AuthController;
use App\Http\Controllers\UsersController;
use App\Http\Controllers\DoorsController;
use App\Http\Controllers\UsersController;
use App\Http\Controllers\GroupsController;
/*
......
......@@ -3,7 +3,6 @@
namespace Source\Exceptions;
use Exception;
use Throwable;
......
......@@ -79,7 +79,8 @@ class DatabaseDoorsRepository implements DoorsRepository
return array_map(
static function (\App\Door $door) {
return self::makeDoorFromDb($door);
}, $doors
},
$doors
);
}
......
......@@ -4,8 +4,8 @@
namespace Source\Gateways\Users;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use Source\Entities\HashedSearchable;
class DatabaseUsersRepository implements UsersRepository
{
......
......@@ -4,8 +4,8 @@
namespace Source\UseCases;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\Door;
use Source\Entities\User;
use Source\Entities\Group;
abstract class BasePresenter
......
......@@ -3,7 +3,6 @@
namespace Source\UseCases\Doors\DeleteDoor;
use Source\Gateways\Doors\DoorsRepository;
use Source\Exceptions\DeleteFailedException;
use Source\Exceptions\EntityNotFoundException;
class DeleteDoor implements DeleteDoorUseCase
......
......@@ -3,10 +3,10 @@
namespace Source\UseCases\Doors\DeleteDoor;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Doors\DoorsRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......
......@@ -3,11 +3,11 @@
namespace Source\UseCases\Doors\GenerateDoorToken;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Doors\DoorsRepository;
use Source\Gateways\Tokens\TokensRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......
......@@ -3,10 +3,10 @@
namespace Source\UseCases\Doors\GetAllDoors;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Doors\DoorsRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......
......@@ -3,10 +3,10 @@
namespace Source\UseCases\Doors\UpdateDoor;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Doors\DoorsRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
/**
* Service provider must be registered in AppServiceProvider
......
......@@ -5,12 +5,10 @@ namespace Source\UseCases\Users\Authenticate;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\Token;
use Illuminate\Support\Str;
use Source\Gateways\Saml\SamlRepository;
use Source\Gateways\Users\UsersRepository;
use Source\Gateways\Tokens\TokensRepository;
use Source\Exceptions\AuthenticationException;
use Source\Exceptions\NotImplementedException;
class Authenticate implements AuthenticateUseCase
{
......
......@@ -5,8 +5,8 @@ namespace Source\UseCases\Users\CreateUser;
use Exception;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use Source\Entities\HashedSearchable;
use Source\Gateways\Users\UsersRepository;
use Source\Exceptions\EntityExistsException;
......
......@@ -5,9 +5,9 @@ namespace Source\UseCases\Users\UpdateUser;
use Exception;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use Source\Authorization\Authorizer;
use Source\Entities\HashedSearchable;
use Source\Gateways\Users\UsersRepository;
use Source\Exceptions\EntityNotFoundException;
......
......@@ -5,8 +5,8 @@ namespace Tests\Database;
use Source\Entities\User;
use Tests\DatabaseTestCase;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use Source\Entities\HashedSearchable;
use Source\Gateways\Users\DatabaseUsersRepository;
class UserDatabaseTest extends DatabaseTestCase
......
......@@ -4,8 +4,8 @@
namespace Tests\Feature\Api\Me;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Illuminate\Testing\TestResponse;
use Source\Entities\HashedSearchable;
use Source\Gateways\Users\UsersRepository;
use Source\Gateways\Groups\GroupsRepository;
use Source\Exceptions\EntityNotFoundException;
......
......@@ -4,8 +4,8 @@
namespace Tests\Feature\Api\Users;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Illuminate\Testing\TestResponse;
use Source\Entities\HashedSearchable;
use Source\Exceptions\EntityNotFoundException;
use Tests\Feature\AuthenticatesWithApplicationTestCase;
......
......@@ -4,7 +4,6 @@
namespace Tests\Feature\Api\Users;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Illuminate\Testing\TestResponse;
use Source\Gateways\Users\UsersRepository;
use Source\Exceptions\EntityNotFoundException;
......
......@@ -6,9 +6,9 @@ namespace Tests\Unit\Source\UseCases\Users\Authenticate;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\Token;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Users\Authenticate\APIPresenter;
use Source\UseCases\Users\Authenticate\ResponseModel;
......
......@@ -5,9 +5,9 @@ namespace Tests\Unit\Source\UseCases\Users\CreateUser;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Users\CreateUser\APIPresenter;
use Source\UseCases\Users\CreateUser\ResponseModel;
......
......@@ -5,9 +5,9 @@ namespace Tests\Unit\Source\UseCases\Users\GetAllUsers;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Users\GetAllUsers\APIPresenter;
use Source\UseCases\Users\GetAllUsers\ResponseModel;
......
......@@ -5,9 +5,9 @@ namespace Unit\Source\UseCases\Users\GetUser;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Users\GetUser\APIPresenter;
use Source\UseCases\Users\GetUser\ResponseModel;
......
......@@ -5,9 +5,9 @@ namespace Unit\Source\UseCases\Users\UpdateUser;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Users\UpdateUser\APIPresenter;
use Source\UseCases\Users\UpdateUser\ResponseModel;
......
......@@ -5,10 +5,10 @@ namespace Tests\Unit\Source\UseCases\Users\UpdateUser;
use Carbon\Carbon;
use Source\Entities\User;
use Source\Entities\HashedSearchable;
use Source\Entities\Password;
use PHPUnit\Framework\TestCase;
use Tests\Doubles\AuthorizerStub;
use Source\Entities\HashedSearchable;
use Source\Exceptions\EntityNotFoundException;
use Tests\Doubles\InMemoryUsersRepositoryStub;
use Source\UseCases\Users\UpdateUser\UpdateUser;
......
Markdown is supported
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