Completed
Push — master ( 9f0c1c...cd70d1 )
by Mihail
04:02
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.