Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Oct 28, 2021
1 parent f48aa79 commit 2f06016
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Containers/AppSection/User/Actions/UpdateUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
use App\Containers\AppSection\User\Models\User;
use App\Containers\AppSection\User\Tasks\UpdateUserTask;
use App\Containers\AppSection\User\UI\API\Requests\UpdateUserRequest;
use App\Ship\Exceptions\NotFoundException;
use App\Ship\Exceptions\UpdateResourceFailedException;
use App\Ship\Parents\Actions\Action;

class UpdateUserAction extends Action
{
/**
* @throws UpdateResourceFailedException
* @throws UpdateResourceFailedException|NotFoundException
*/
public function run(UpdateUserRequest $request): User
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
use App\Containers\AppSection\User\UI\API\Transformers\UserTransformer;
use App\Ship\Exceptions\CreateResourceFailedException;
use App\Ship\Parents\Controllers\ApiController;
use Throwable;

class CreateAdminController extends ApiController
{
/**
* @throws InvalidTransformerException
* @throws CreateResourceFailedException
* @throws Throwable
*/
public function createAdmin(CreateAdminRequest $request): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Containers\AppSection\User\UI\API\Tests\Functional;

use App\Containers\AppSection\User\Models\User;
use App\Containers\AppSection\User\UI\API\Tests\ApiTestCase;
use Illuminate\Testing\Fluent\AssertableJson;

Expand Down

0 comments on commit 2f06016

Please sign in to comment.