Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit b8e6b8a

Browse files
d8vjorkStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 33903ec commit b8e6b8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Http/Resources/RelationshipsWithIncludes.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @property mixed $resource
1313
* @property array $with
14-
* @property bool $authorise
14+
* @property bool $authorise
1515
*/
1616
trait RelationshipsWithIncludes
1717
{
@@ -144,11 +144,12 @@ protected function checkUniqueness(Collection $collection)
144144
* Get API resource from model.
145145
*
146146
* @param \Illuminate\Database\Eloquent\Model $model
147+
*
147148
* @return string
148149
*/
149150
protected function getModelResource(Model $model)
150151
{
151-
return defined(get_class($model) . '::JSON_SERIALIZER')
152+
return defined(get_class($model).'::JSON_SERIALIZER')
152153
? $model::JSON_SERIALIZER
153154
: JsonApiResource::class;
154155
}

0 commit comments

Comments
 (0)