Code Duplication    Length = 9-9 lines in 2 locations

src/Assets.php 2 locations

@@ 116-124 (lines=9) @@
113
        if (!is_array($assets)) {
114
            $assets = func_get_args();
115
        }
116
        foreach ($assets as &$item) {
117
            $item = $item . $this->build;
118
            if (!in_array($item, $this->appendedStyles)) {
119
                $this->appendedStyles[] = [
120
                    'src'        => $item,
121
                    'attributes' => [],
122
                ];
123
            }
124
        }
125
        return $this;
126
    }
127
@@ 140-148 (lines=9) @@
137
            $assets = func_get_args();
138
        }
139
140
        foreach ($assets as &$item) {
141
            $item = $item . $this->build;
142
            if (!in_array($item, $this->appendedScripts[$location])) {
143
                $this->appendedScripts[$location][] = [
144
                    'src'        => $item,
145
                    'attributes' => [],
146
                ];
147
            }
148
        }
149
        return $this;
150
    }
151