Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Http/Controllers/RepositoryUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle(RepositoryUpdateRequest $request)
$model = $request->findModelQuery()->lockForUpdate()->firstOrFail();

/**
* @var Repository $repository
* @var Repository
*/
$repository = $request->newRepositoryWith($model);
$repository->authorizeToUpdate($request);
Expand Down
1 change: 0 additions & 1 deletion src/Repositories/Crudable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Binaryk\LaravelRestify\Services\Search\SearchService;

/**
* @package Binaryk\LaravelRestify\Repositories;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
trait Crudable
Expand Down
4 changes: 1 addition & 3 deletions src/RestifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

/**
* This provider is injected in console context by the main provider or by the RestifyInjector
* if a restify request
*
* @package Binaryk\LaravelRestify
* if a restify request.
*/
class RestifyServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Controllers/RepositoryIndexControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function test_that_with_param_works()

$this->assertSameSize((array) data_get($r, 'data.0.relationships.posts'), $posts->toArray());
$this->assertSame(array_keys((array) data_get($r, 'data.0.relationships.posts.0')), [
'id', 'type', 'attributes', 'meta'
'id', 'type', 'attributes', 'meta',
]);
}
}