Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Apply cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Mar 3, 2020
1 parent ca94d89 commit b1a54d2
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ return PhpCsFixer\Config::create()
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
])
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/Respondable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Signifly\Responder\Concerns;

use Signifly\Responder\Contracts\Responder;
use Illuminate\Contracts\Support\Responsable;
use Signifly\Responder\Contracts\Responder;

trait Respondable
{
Expand Down
16 changes: 8 additions & 8 deletions src/Responder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace Signifly\Responder;

use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Contracts\Support\Responsable;
use Signifly\Responder\Contracts\ModelResolver;
use Signifly\Responder\Responses\ModelResponse;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Resources\Json\JsonResource;
use Signifly\Responder\Responses\DefaultResponse;
use Illuminate\Support\Collection;
use Signifly\Responder\Contracts\ModelResolver;
use Signifly\Responder\Contracts\ResourceResolver;
use Signifly\Responder\Responses\PaginatorResponse;
use Signifly\Responder\Responses\CollectionResponse;
use Signifly\Responder\Contracts\Responder as Contract;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Signifly\Responder\Responses\CollectionResponse;
use Signifly\Responder\Responses\DefaultResponse;
use Signifly\Responder\Responses\ModelResponse;
use Signifly\Responder\Responses\PaginatorResponse;

class Responder implements Contract
{
Expand Down
6 changes: 3 additions & 3 deletions src/ResponderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Signifly\Responder;

use Illuminate\Support\ServiceProvider;
use Signifly\Responder\Support\ModelResolver;
use Signifly\Responder\Support\ResourceResolver;
use Signifly\Responder\Contracts\Responder as ResponderContract;
use Signifly\Responder\Contracts\ModelResolver as ModelResolverContract;
use Signifly\Responder\Contracts\ResourceResolver as ResourceResolverContract;
use Signifly\Responder\Contracts\Responder as ResponderContract;
use Signifly\Responder\Support\ModelResolver;
use Signifly\Responder\Support\ResourceResolver;

class ResponderServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/ModelResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Signifly\Responder\Responses;

use Illuminate\Http\JsonResponse;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Http\JsonResponse;

class ModelResponse extends Response
{
Expand Down
6 changes: 3 additions & 3 deletions src/Support/ModelResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Signifly\Responder\Support;

use Exception;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Signifly\Responder\Contracts\ModelResolver as Contract;

class ModelResolver implements Contract
Expand Down
2 changes: 1 addition & 1 deletion src/Support/ResourceResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Signifly\Responder\Support;

use Illuminate\Http\Resources\Json\JsonResource;
use Signifly\Responder\Exceptions\ResourceNotFoundException;
use Signifly\Responder\Contracts\ResourceResolver as Contract;
use Signifly\Responder\Exceptions\ResourceNotFoundException;

class ResourceResolver implements Contract
{
Expand Down
6 changes: 3 additions & 3 deletions tests/ResponderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Signifly\Responder\Tests;

use Signifly\Responder\Contracts\Responder as ResponderContract;
use Signifly\Responder\Facades\Responder;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Responses\CollectionResponse;
use Signifly\Responder\Responses\ModelResponse;
use Signifly\Responder\Responses\PaginatorResponse;
use Signifly\Responder\Responses\CollectionResponse;
use Signifly\Responder\Contracts\Responder as ResponderContract;
use Signifly\Responder\Tests\Models\Product;

class ResponderTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Responses/CollectionResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

use Illuminate\Http\JsonResponse;
use Illuminate\Support\Collection;
use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Responses\CollectionResponse;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Tests\Resources\ProductResource;
use Signifly\Responder\Tests\TestCase;

class CollectionResponseTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Responses/DefaultResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Signifly\Responder\Tests\Responses;

use Illuminate\Http\JsonResponse;
use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Responses\DefaultResponse;
use Signifly\Responder\Tests\TestCase;

class DefaultResponseTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Responses/ModelResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Signifly\Responder\Tests\Responses;

use Illuminate\Http\JsonResponse;
use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Responses\ModelResponse;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Tests\Resources\ProductResource;
use Signifly\Responder\Tests\TestCase;

class ModelResponseTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Responses/PaginatorResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Signifly\Responder\Tests\Responses;

use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Collection;
use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Responses\PaginatorResponse;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Tests\Resources\ProductResource;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Signifly\Responder\Tests\TestCase;

class PaginatorResponseTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/ModelResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Signifly\Responder\Tests\Support;

use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Contracts\ModelResolver;
use Signifly\Responder\Tests\Models\Product;
use Signifly\Responder\Tests\TestCase;

class ModelResolverTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/ResourceResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Signifly\Responder\Tests\Support;

use Signifly\Responder\Tests\TestCase;
use Signifly\Responder\Tests\Resources\Product;
use Illuminate\Http\Resources\Json\JsonResource;
use Signifly\Responder\Contracts\ResourceResolver;
use Signifly\Responder\Tests\Resources\Product;
use Signifly\Responder\Tests\Resources\ProductResource;
use Signifly\Responder\Tests\TestCase;

class ResourceResolverTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Signifly\Responder\Tests;

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Signifly\Responder\Tests\Models\Product;
use Illuminate\Support\Facades\Schema;
use Orchestra\Testbench\TestCase as Orchestra;
use Signifly\Responder\ResponderServiceProvider;
use Signifly\Responder\Tests\Models\Product;

abstract class TestCase extends Orchestra
{
Expand Down

0 comments on commit b1a54d2

Please sign in to comment.