diff --git a/src/Fields/OrganicField.php b/src/Fields/OrganicField.php index c12056991..385f2b28e 100644 --- a/src/Fields/OrganicField.php +++ b/src/Fields/OrganicField.php @@ -85,7 +85,7 @@ public function hideFromDetail($callback = true) $this->showOnDetail = is_callable($callback) ? function () use ($callback) { return ! call_user_func_array($callback, func_get_args()); } - : ! $callback; + : ! $callback; return $this; } @@ -101,7 +101,7 @@ public function hideFromIndex($callback = true) $this->showOnIndex = is_callable($callback) ? function () use ($callback) { return ! call_user_func_array($callback, func_get_args()); } - : ! $callback; + : ! $callback; return $this; } @@ -153,5 +153,4 @@ public function isHiddenOnIndex(RestifyRequest $request, $repository): bool return ! $this->showOnIndex; } - } diff --git a/src/Http/Requests/RestifyRequest.php b/src/Http/Requests/RestifyRequest.php index a89e8c680..ce4a5cac8 100644 --- a/src/Http/Requests/RestifyRequest.php +++ b/src/Http/Requests/RestifyRequest.php @@ -30,7 +30,7 @@ public function isDev() } /** - * Determine if the request is on repository index e.g. restify-api/users + * Determine if the request is on repository index e.g. restify-api/users. * * @return bool */ @@ -43,7 +43,7 @@ public function isIndexRequest() /** * Determine if the request is on repository detail e.g. restify-api/users/1 - * This will match any verbs (PATCH, DELETE or GET) + * This will match any verbs (PATCH, DELETE or GET). * @return bool */ public function isDetailRequest()