Code Duplication    Length = 9-9 lines in 2 locations

src/ResponsiveImage.php 1 location

@@ 146-154 (lines=9) @@
143
     * @return SplFileInfo
144
     * @throws FileNotFoundException
145
     */
146
    private function getImageFile($src) {
147
        $files = Finder::create()->files()->in('.')->path(trim($src, './'));
148
149
        foreach ($files as $file) {
150
            return $file;
151
        }
152
153
        throw new FileNotFoundException($src);
154
    }
155
156
}
157

src/ResponsiveFactory.php 1 location

@@ 151-159 (lines=9) @@
148
     * @return SplFileInfo
149
     * @throws FileNotFoundException
150
     */
151
    private function getImageFile($src) {
152
        $files = Finder::create()->files()->in('.')->path(trim($src, './'));
153
154
        foreach ($files as $file) {
155
            return $file;
156
        }
157
158
        throw new FileNotFoundException($src);
159
    }
160
161
}
162