Code Duplication    Length = 4-4 lines in 2 locations

code/view/Requirements_Backend_For_Webpack.php 2 locations

@@ 271-274 (lines=4) @@
268
            if (file_exists($logFile)) {
269
                $lines = file($logFile);
270
            }
271
            if (! in_array($fileLocation, $lines)) {
272
                $handle = fopen($logFile, 'a');
273
                fwrite($handle, $line);
274
            }
275
        } else {
276
            $from = $fileLocation;
277
            $to = basename($fileLocation);
@@ 286-289 (lines=4) @@
283
            if (file_exists($logFile)) {
284
                $lines = file($logFile);
285
            }
286
            if (! in_array($line, $lines)) {
287
                $handle = fopen($logFile, 'a');
288
                fwrite($handle, $line);
289
            }
290
            if (in_array($fileLocation, self::$files_to_ignore)) {
291
                //to be completed ...
292
            } else {