Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

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