Code Duplication    Length = 12-12 lines in 2 locations

src/AdminLte.php 2 locations

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