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
5 changes: 2 additions & 3 deletions src/Fields/OrganicField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -153,5 +153,4 @@ public function isHiddenOnIndex(RestifyRequest $request, $repository): bool

return ! $this->showOnIndex;
}

}
4 changes: 2 additions & 2 deletions src/Http/Requests/RestifyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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()
Expand Down