Code Duplication    Length = 4-4 lines in 2 locations

code/view/Requirements_Backend_For_Webpack.php 2 locations

@@ 285-288 (lines=4) @@
282
            if (file_exists($logFile)) {
283
                $lines = file($logFile);
284
            }
285
            if (! in_array($fileLocation, $lines)) {
286
                $handle = fopen($logFile, 'a');
287
                fwrite($handle, $line);
288
            }
289
        } else {
290
            $from = $fileLocation;
291
            $to = basename($fileLocation);
@@ 300-303 (lines=4) @@
297
            if (file_exists($logFile)) {
298
                $lines = file($logFile);
299
            }
300
            if (! in_array($line, $lines)) {
301
                $handle = fopen($logFile, 'a');
302
                fwrite($handle, $line);
303
            }
304
            if (in_array($fileLocation, self::$files_to_ignore)) {
305
                //to be completed ...
306
            } else {