Skip to content

Commit 6cccfb2

Browse files
author
Lupacescu Eduard
authored
Apply fixes from StyleCI (#111)
1 parent 94e95b7 commit 6cccfb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Fields/OrganicField.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function hideFromDetail($callback = true)
8585
$this->showOnDetail = is_callable($callback) ? function () use ($callback) {
8686
return ! call_user_func_array($callback, func_get_args());
8787
}
88-
: ! $callback;
88+
: ! $callback;
8989

9090
return $this;
9191
}
@@ -101,7 +101,7 @@ public function hideFromIndex($callback = true)
101101
$this->showOnIndex = is_callable($callback) ? function () use ($callback) {
102102
return ! call_user_func_array($callback, func_get_args());
103103
}
104-
: ! $callback;
104+
: ! $callback;
105105

106106
return $this;
107107
}
@@ -153,5 +153,4 @@ public function isHiddenOnIndex(RestifyRequest $request, $repository): bool
153153

154154
return ! $this->showOnIndex;
155155
}
156-
157156
}

src/Http/Requests/RestifyRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function isDev()
3030
}
3131

3232
/**
33-
* Determine if the request is on repository index e.g. restify-api/users
33+
* Determine if the request is on repository index e.g. restify-api/users.
3434
*
3535
* @return bool
3636
*/
@@ -43,7 +43,7 @@ public function isIndexRequest()
4343

4444
/**
4545
* Determine if the request is on repository detail e.g. restify-api/users/1
46-
* This will match any verbs (PATCH, DELETE or GET)
46+
* This will match any verbs (PATCH, DELETE or GET).
4747
* @return bool
4848
*/
4949
public function isDetailRequest()

0 commit comments

Comments
 (0)