Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

@@ 91-102 (lines=12) @@
88
89
            $fixed_navbar_cfg = config('adminlte.layout_fixed_navbar');
90
91
            if ($fixed_navbar_cfg === true) {
92
                $body_classes[] = 'layout-navbar-fixed';
93
            } elseif (is_array($fixed_navbar_cfg)) {
94
                foreach ($fixed_navbar_cfg as $size => $enabled) {
95
                    if (in_array($size, $screen_sizes)) {
96
                        $size = $size == 'xs' ? '' : '-'.$size;
97
                        $body_classes[] = $enabled == true ?
98
                            'layout'.$size.'-navbar-fixed' :
99
                            'layout'.$size.'-navbar-not-fixed';
100
                    }
101
                }
102
            }
103
104
            // Check for fixed footer configuration.
105
@@ 108-119 (lines=12) @@
105
106
            $fixed_footer_cfg = config('adminlte.layout_fixed_footer');
107
108
            if ($fixed_footer_cfg === true) {
109
                $body_classes[] = 'layout-footer-fixed';
110
            } elseif (is_array($fixed_footer_cfg)) {
111
                foreach ($fixed_footer_cfg as $size => $enabled) {
112
                    if (in_array($size, $screen_sizes)) {
113
                        $size = $size == 'xs' ? '' : '-'.$size;
114
                        $body_classes[] = $enabled == true ?
115
                            'layout'.$size.'-footer-fixed' :
116
                            'layout'.$size.'-footer-not-fixed';
117
                    }
118
                }
119
            }
120
        }
121
122
        $body_classes[] = config('adminlte.classes_body', '');