Skip to content

Commit 7f71444

Browse files
committed
Apply fixes from StyleCI
1 parent f8ad2f9 commit 7f71444

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/Http/Response.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ protected function buildGatesForModel(Model $model, Resource $resource, array $g
4646
*
4747
* This method transforms the given model by selecting only the specified attributes and aggregates as defined in the request parameters or resource. If authorization gating is enabled and gate parameters are provided, it appends the corresponding authorization data. Additionally, it recursively processes any loaded relations—returning pivot data when applicable and mapping related models (or collections of models) using the resource’s configuration.
4848
*
49-
* @param Model $model The Eloquent model instance to be converted.
50-
* @param Resource $resource The resource defining the fields and structure of the response.
51-
* @param array $requestArray Request parameters that control field selection, aggregates, and authorization gates.
52-
* @param Relation|null $relation Optional relation context for processing nested relationships.
49+
* @param Model $model The Eloquent model instance to be converted.
50+
* @param resource $resource The resource defining the fields and structure of the response.
51+
* @param array $requestArray Request parameters that control field selection, aggregates, and authorization gates.
52+
* @param Relation|null $relation Optional relation context for processing nested relationships.
53+
*
5354
* @return array The structured array representation of the model, including attributes and recursively processed relations.
5455
*/
5556
public function modelToResponse(Model $model, Resource $resource, array $requestArray, Relation $relation = null)

src/Query/Builder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function newQueryBuilder($parameters)
6969
* Toggling this flag disables or enables security checks during query building.
7070
*
7171
* @param bool $disable Set to true to disable security checks (default), or false to enable them.
72+
*
7273
* @return $this The current instance for method chaining.
7374
*/
7475
public function disableSecurity($disable = true)
@@ -85,6 +86,7 @@ public function disableSecurity($disable = true)
8586
* allowing retrieval of all matching records unless a custom limit is specified.
8687
*
8788
* @param bool $disable True to disable the default limit, false to enable it.
89+
*
8890
* @return self Returns the current instance for chaining.
8991
*/
9092
public function disableDefaultLimit($disable = true)

src/Query/ScoutBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class ScoutBuilder implements QueryBuilder
2323
* underlying search operation.
2424
*
2525
* @param array $parameters An associative array of search criteria, which may include:
26-
* - 'text': The search query string.
27-
* - 'filters': An array of filter conditions.
28-
* - 'sorts': An array of sorting directives.
29-
* - 'instructions': Additional query instructions.
30-
* - 'limit': Maximum number of results to return (defaults to 50 if not provided).
26+
* - 'text': The search query string.
27+
* - 'filters': An array of filter conditions.
28+
* - 'sorts': An array of sorting directives.
29+
* - 'instructions': Additional query instructions.
30+
* - 'limit': Maximum number of results to return (defaults to 50 if not provided).
3131
*
3232
* @return \Laravel\Scout\Builder The configured Scout query builder.
3333
*/

0 commit comments

Comments
 (0)