Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

@@ 103-114 (lines=12) @@
100
101
            $fixed_navbar_cfg = config('adminlte.layout_fixed_navbar');
102
103
            if ($fixed_navbar_cfg === true) {
104
                $body_classes[] = 'layout-navbar-fixed';
105
            } elseif (is_array($fixed_navbar_cfg)) {
106
                foreach ($fixed_navbar_cfg as $size => $enabled) {
107
                    if (in_array($size, $screen_sizes)) {
108
                        $size = $size == 'xs' ? '' : '-'.$size;
109
                        $body_classes[] = $enabled == true ?
110
                            'layout'.$size.'-navbar-fixed' :
111
                            'layout'.$size.'-navbar-not-fixed';
112
                    }
113
                }
114
            }
115
116
            // Check for fixed footer configuration.
117
@@ 120-131 (lines=12) @@
117
118
            $fixed_footer_cfg = config('adminlte.layout_fixed_footer');
119
120
            if ($fixed_footer_cfg === true) {
121
                $body_classes[] = 'layout-footer-fixed';
122
            } elseif (is_array($fixed_footer_cfg)) {
123
                foreach ($fixed_footer_cfg as $size => $enabled) {
124
                    if (in_array($size, $screen_sizes)) {
125
                        $size = $size == 'xs' ? '' : '-'.$size;
126
                        $body_classes[] = $enabled == true ?
127
                            'layout'.$size.'-footer-fixed' :
128
                            'layout'.$size.'-footer-not-fixed';
129
                    }
130
                }
131
            }
132
        }
133
134
        $body_classes[] = config('adminlte.classes_body', '');