@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } elseif ($item['type'] === 'tab') { |
| 61 | 61 | $activeObject = false; |
| 62 | 62 | $item['type'] = 'link'; // fix for global Listing builder |
| 63 | - $item['link'] = '#' . $elements['tabAnchor'] . $tabIdx; |
|
| 63 | + $item['link'] = '#'.$elements['tabAnchor'].$tabIdx; |
|
| 64 | 64 | |
| 65 | 65 | $item['property']['role'] = 'presentation'; |
| 66 | 66 | |
@@ -75,11 +75,11 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | // mark active tab |
| 77 | 77 | if ($activeObject === true) { |
| 78 | - $item['property']['class'] .= (Str::length($item['property']['class']) > 0 ? ' ' : null) . 'active'; |
|
| 78 | + $item['property']['class'] .= (Str::length($item['property']['class']) > 0 ? ' ' : null).'active'; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // tab special properties for bootstrap |
| 82 | - $item['linkProperty']['aria-controls'] = $elements['tabAnchor'] . $tabIdx; |
|
| 82 | + $item['linkProperty']['aria-controls'] = $elements['tabAnchor'].$tabIdx; |
|
| 83 | 83 | $item['linkProperty']['role'] = 'tab'; |
| 84 | 84 | $item['linkProperty']['data-toggle'] = 'tab'; |
| 85 | 85 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } else { |
| 99 | 99 | return self::nohtml($itemContent); |
| 100 | 100 | } |
| 101 | - }, ['role' => 'tabpanel', 'class' => 'tab-pane fade' . ($activeObject === true ? ' in active' : null), 'id' => $elements['tabAnchor'] . $tabIdx]); |
|
| 101 | + }, ['role' => 'tabpanel', 'class' => 'tab-pane fade'.($activeObject === true ? ' in active' : null), 'id' => $elements['tabAnchor'].$tabIdx]); |
|
| 102 | 102 | $tabIdx++; |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | // check if global class "nav" isset |
| 107 | 107 | if ($elements['property']['class'] !== null) { |
| 108 | 108 | if (!Str::contains('nav ', $elements['property']['class'])) { |
| 109 | - $elements['property']['class'] = 'nav ' . $elements['property']['class']; |
|
| 109 | + $elements['property']['class'] = 'nav '.$elements['property']['class']; |
|
| 110 | 110 | } |
| 111 | 111 | } else { |
| 112 | 112 | $elements['property']['class'] = 'nav'; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | return $tabContent; |
| 131 | 131 | }, $elements['tabProperty']); |
| 132 | 132 | } |
| 133 | - return $listing . $tabContent; |
|
| 133 | + return $listing.$tabContent; |
|
| 134 | 134 | }, $blockProperty); |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | // initialize new DOM model |
| 31 | 31 | $dom = new Dom(); |
| 32 | 32 | // return DOM-HTML, build based on closures! |
| 33 | - return $dom->{$elements['type']}(function () use ($dom, $elements) { |
|
| 33 | + return $dom->{$elements['type']}(function() use ($dom, $elements) { |
|
| 34 | 34 | // prepare output avg variable |
| 35 | 35 | $itemHTML = null; |
| 36 | 36 | // get active order level |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | return $dom->li(function() use($dom, $item){ |
| 73 | 73 | $dropdownLink = $dom->a(function() use ($dom, $item){ |
| 74 | - return self::applyEscape($item['text'], $item['html'], $item['!secure']) . ' ' . $dom->span(function(){}, ['class' => 'caret']); |
|
| 74 | + return self::applyEscape($item['text'], $item['html'], $item['!secure']).' '.$dom->span(function() {}, ['class' => 'caret']); |
|
| 75 | 75 | }, $item['dropdown']); |
| 76 | 76 | |
| 77 | 77 | $dropdownElements = $dom->ul(function() use ($dom, $item){ |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | return $resp; |
| 83 | 83 | }, $item['menuProperty']); |
| 84 | 84 | |
| 85 | - return $dropdownLink . $dropdownElements; |
|
| 85 | + return $dropdownLink.$dropdownElements; |
|
| 86 | 86 | }, $item['property']); |
| 87 | 87 | |
| 88 | 88 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $item['linkProperty']['href'] = self::convertLink($item['link']); |
| 137 | 137 | |
| 138 | 138 | // build output <li@params><a @params>@text</li> |
| 139 | - return $dom->li(function () use ($dom, $text, $item) { |
|
| 139 | + return $dom->li(function() use ($dom, $text, $item) { |
|
| 140 | 140 | return $dom->a(function() use ($text) { |
| 141 | 141 | return $text; |
| 142 | 142 | }, $item['linkProperty']); |
@@ -66,8 +66,9 @@ |
||
| 66 | 66 | return null; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - if (!isset($item['menuProperty']['class'])) |
|
| 70 | - $item['menuProperty']['class'] = 'dropdown-menu'; |
|
| 69 | + if (!isset($item['menuProperty']['class'])) { |
|
| 70 | + $item['menuProperty']['class'] = 'dropdown-menu'; |
|
| 71 | + } |
|
| 71 | 72 | |
| 72 | 73 | return $dom->li(function() use($dom, $item){ |
| 73 | 74 | $dropdownLink = $dom->a(function() use ($dom, $item){ |