Skip to content

Commit

Permalink
[NodeBundle][NodeSearchBundle] Fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed May 14, 2019
1 parent 67608a9 commit 082ebe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Kunstmaan/NodeBundle/Controller/WidgetsController.php
Expand Up @@ -208,9 +208,11 @@ protected function nodesToArray($locale, $rootNodes, $depth = 2)
switch (true) {
case !$nodeTranslation->isOnline():
$type = 'offline';

break;
case $rootNode->isHiddenFromNav():
$type = 'hidden-from-nav';

break;
default:
$type = 'default';
Expand Down
Expand Up @@ -151,6 +151,7 @@ private function hasOfflineParents(NodeTranslation $nodeTranslation)
return true;
}
}

return false;
}

Expand Down

0 comments on commit 082ebe8

Please sign in to comment.