Code Duplication    Length = 10-10 lines in 2 locations

src/assets/AbstractAsset.php 2 locations

@@ 110-119 (lines=10) @@
107
     *
108
     * @return array
109
     */
110
    private function getInternal(array $files): array
111
    {
112
        $result = [];
113
        foreach ($files as $file) {
114
            if ($this->isInternal($file)) {
115
                $result[] = $file;
116
            }
117
        }
118
        return $result;
119
    }
120
121
    /**
122
     * @param array $files
@@ 126-135 (lines=10) @@
123
     *
124
     * @return array
125
     */
126
    private function getExternal(array $files): array
127
    {
128
        $result = [];
129
        foreach ($files as $file) {
130
            if (!$this->isInternal($file)) {
131
                $result[] = $file;
132
            }
133
        }
134
        return $result;
135
    }
136
137
    /**
138
     * @param string $file