Code Duplication    Length = 8-8 lines in 2 locations

src/Assets.php 2 locations

@@ 119-126 (lines=8) @@
116
            $assets = [$assets];
117
        }
118
119
        foreach ($assets as &$item) {
120
            if (!in_array($item, $this->appendedStyles)) {
121
                $this->appendedStyles[] = [
122
                    'src'        => $item,
123
                    'attributes' => [],
124
                ];
125
            }
126
        }
127
128
        return $this;
129
    }
@@ 144-151 (lines=8) @@
141
            $assets = [$assets];
142
        }
143
144
        foreach ($assets as &$item) {
145
            if (!in_array($item, $this->appendedScripts[$location])) {
146
                $this->appendedScripts[$location][] = [
147
                    'src'        => $item,
148
                    'attributes' => [],
149
                ];
150
            }
151
        }
152
153
        return $this;
154
    }