Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lexdewilligen authored and actions-user committed Mar 12, 2021
1 parent 4cd876f commit f07e38f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/HasRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace AgilePixels\ResourceAbilities;

use AgilePixels\ResourceAbilities\ResourceCollection;
use Illuminate\Http\Resources\Json\JsonResource;

trait HasRelationships
Expand Down
2 changes: 1 addition & 1 deletion src/JsonResource/ProcessesAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace AgilePixels\ResourceAbilities\JsonResource;

use AgilePixels\ResourceAbilities\AbilityResource;
use AgilePixels\ResourceAbilities\AnonymousResourceCollection;
use AgilePixels\ResourceAbilities\Collection;
use AgilePixels\ResourceAbilities\HasAbilities as ModelHasAbilities;
use AgilePixels\ResourceAbilities\AnonymousResourceCollection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Resources\MissingValue;

Expand Down
2 changes: 1 addition & 1 deletion src/ResourceCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection as BaseResourceCollection;
use Illuminate\Pagination\AbstractPaginator;
use Illuminate\Support\Collection;
use Illuminate\Http\Resources\Json\ResourceCollection as BaseResourceCollection;
use JsonSerializable;

class ResourceCollection extends BaseResourceCollection
Expand Down
12 changes: 6 additions & 6 deletions tests/JsonResource/ProcessesAbilitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function toArray($request)
'users' => [
'data' => [
['id' => 1, 'name' => 'Test User'],
]
]
],
],
],
]);
}
Expand Down Expand Up @@ -387,7 +387,7 @@ public function toArray($request)

$this->get('/resources')->assertExactJson([
'data' => [
['id' => 1]
['id' => 1],
],
]);
}
Expand Down Expand Up @@ -417,9 +417,9 @@ public function toArray($request)
'users' => [
'data' => [
['id' => 1, 'name' => 'Test User'],
]
]
]
],
],
],
],
]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ResourceCollection/ProcessesAbilitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace AgilePixels\ResourceAbilities\Tests\ResourceCollection;

use AgilePixels\ResourceAbilities\ResourceCollection\ProcessesAbilities;
use AgilePixels\ResourceAbilities\ResourceCollection;
use AgilePixels\ResourceAbilities\ResourceCollection\ProcessesAbilities;
use AgilePixels\ResourceAbilities\Serializers\ExtendedAbilitySerializer;
use AgilePixels\ResourceAbilities\Tests\Fakes\TestModel;
use AgilePixels\ResourceAbilities\Tests\Fakes\TestPolicy;
Expand Down

0 comments on commit f07e38f

Please sign in to comment.