Skip to content

Commit

Permalink
improve code style
Browse files Browse the repository at this point in the history
add clean line before if
add space after comma in function call
  • Loading branch information
Minei3oat committed Sep 10, 2016
1 parent 214217d commit e25bd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/cms/html/bootstrap.php
Expand Up @@ -633,7 +633,8 @@ public static function startAccordion($selector = 'myAccordian', $params = array
$script[] = "\t.on('hidden', " . $onHidden . ")";
}

$parents = array_key_exists(__METHOD__, static::$loaded) ? array_column(static::$loaded[__METHOD__],'parent') : array();
$parents = array_key_exists(__METHOD__, static::$loaded) ? array_column(static::$loaded[__METHOD__], 'parent') : array();

if ($opt['parent'] && empty(array_filter($parents)))
{
$script[] = "
Expand Down

0 comments on commit e25bd91

Please sign in to comment.