From 10ae7916ba0817a703fe44d2e2d9456d74e8495e Mon Sep 17 00:00:00 2001 From: Lupacescu Eduard Date: Wed, 22 Jan 2020 08:26:56 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Fields/OrganicField.php | 5 ++--- src/Http/Requests/RestifyRequest.php | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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()