Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit 3c7c68b

Browse files
CS fixes
1 parent 2d7a41f commit 3c7c68b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Navigation.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,14 @@ public function addToBar(array $item, $name = 'default', $first = false)
164164
* @param array $data
165165
* @return string
166166
*/
167-
public function render($mainname = 'default', $barname = false, array $data = array('title' => 'Navigation', 'side' => 'dropdown', 'inverse' => true))
168-
{
167+
public function render(
168+
$mainname = 'default',
169+
$barname = false,
170+
array $data = array('title' => 'Navigation', 'side' => 'dropdown', 'inverse' => true)
171+
) {
169172
// get the nav bar arrays
170173
$mainnav = $this->getMain($mainname);
171-
if ($barname) {
174+
if (is_string($barname)) {
172175
$barnav = $this->getBar($barname);
173176
if (empty($barnav)) {
174177
$barnav = false;

0 commit comments

Comments
 (0)