mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
mvc: style sweep
This commit is contained in:
parent
89d4af5a52
commit
af459fff31
@ -387,7 +387,8 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
|
||||
$element = $element->{$step};
|
||||
}
|
||||
|
||||
if (empty($fields) && (
|
||||
if (
|
||||
empty($fields) && (
|
||||
is_a($element, "OPNsense\\Base\\FieldTypes\\ArrayField") ||
|
||||
is_subclass_of($element, "OPNsense\\Base\\FieldTypes\\ArrayField")
|
||||
)
|
||||
|
||||
@ -48,7 +48,7 @@ class CategoryController extends ApiMutableModelControllerBase
|
||||
* @return array search results
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public function searchItemAction($add_empty='0')
|
||||
public function searchItemAction($add_empty = '0')
|
||||
{
|
||||
$result = $this->searchBase("categories.category", null, "name");
|
||||
if (!empty($add_empty)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user