Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 authored and github-actions[bot] committed Sep 29, 2023
1 parent 7ecfb9c commit e414e6b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Controller/Admin/ElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,11 +762,11 @@ public function getRequiresDependenciesAction(Request $request): JsonResponse

foreach ($filters as $filter) {

if ($filter['type'] == 'string') {
$value = ($filter['value']??'');
}
if ($filter['type'] == 'string') {
$value = ($filter['value']??'');
}

$elements = $element->getDependencies()->getFilterRequiresByPath($offset,$limit,$value);
$elements = $element->getDependencies()->getFilterRequiresByPath($offset, $limit, $value);

}

Expand All @@ -776,12 +776,12 @@ public function getRequiresDependenciesAction(Request $request): JsonResponse
'requires' => [], // Initialize 'requires' as an empty array
];

if(count($elements) > 0){
if(count($elements) > 0) {
$result = Model\Element\Service::getFilterRequiresForFrontend($elements);
$result['total'] = count($result['requires']);

return $this->adminJson($result);
}else{
} else {
return $this->adminJson($elements);
}

Expand Down Expand Up @@ -829,10 +829,10 @@ public function getRequiredByDependenciesAction(Request $request): JsonResponse
foreach ($filters as $filter) {

if ($filter['type'] == 'string') {
$value = ($filter['value']??'');
$value = ($filter['value']??'');
}

$elements = $element->getDependencies()->getFilterRequiredByPath($offset,$limit,$value);
$elements = $element->getDependencies()->getFilterRequiredByPath($offset, $limit, $value);

}

Expand All @@ -842,12 +842,12 @@ public function getRequiredByDependenciesAction(Request $request): JsonResponse
'requiredBy' => [], // Initialize 'requiredBy' as an empty array
];

if(count($elements) > 0){
if(count($elements) > 0) {
$result = Model\Element\Service::getFilterRequiredByPathForFrontend($elements);
$result['total'] = count($result['requiredBy']);

return $this->adminJson($result);
}else{
} else {
return $this->adminJson($elements);
}

Expand Down

0 comments on commit e414e6b

Please sign in to comment.