Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

@@ 113-124 (lines=12) @@
110
111
            $fixed_navbar_cfg = config('adminlte.layout_fixed_navbar');
112
113
            if ($fixed_navbar_cfg === true) {
114
                $body_classes[] = 'layout-navbar-fixed';
115
            } elseif (is_array($fixed_navbar_cfg)) {
116
                foreach ($fixed_navbar_cfg as $size => $enabled) {
117
                    if (in_array($size, $screen_sizes)) {
118
                        $size = $size == 'xs' ? '' : '-'.$size;
119
                        $body_classes[] = $enabled == true ?
120
                            'layout'.$size.'-navbar-fixed' :
121
                            'layout'.$size.'-navbar-not-fixed';
122
                    }
123
                }
124
            }
125
126
            // Check for fixed footer configuration.
127
@@ 130-141 (lines=12) @@
127
128
            $fixed_footer_cfg = config('adminlte.layout_fixed_footer');
129
130
            if ($fixed_footer_cfg === true) {
131
                $body_classes[] = 'layout-footer-fixed';
132
            } elseif (is_array($fixed_footer_cfg)) {
133
                foreach ($fixed_footer_cfg as $size => $enabled) {
134
                    if (in_array($size, $screen_sizes)) {
135
                        $size = $size == 'xs' ? '' : '-'.$size;
136
                        $body_classes[] = $enabled == true ?
137
                            'layout'.$size.'-footer-fixed' :
138
                            'layout'.$size.'-footer-not-fixed';
139
                    }
140
                }
141
            }
142
        }
143
144
        // Add custom classes, related to the "classes_body" configuration.