Completed
Push — master ( 37b087...b08a55 )
by Mihail
02:34
created
src/Ffcms/Core/Helper/HTML/Bootstrap/Nav.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/Listing.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,9 @@
 block discarded – undo
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){
Please login to merge, or discard this patch.