Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

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