Code Duplication    Length = 8-9 lines in 2 locations

Installer.php 2 locations

@@ 22-29 (lines=8) @@
19
        $this->silent = $silent;
20
    }
21
22
    public static function install($app = 'application')
23
    {
24
        self::recursiveCopy(
25
            dirname(__FILE__) . '/application/tests',
26
            $app . '/' . static::TEST_FOLDER
27
        );
28
        self::fixPath($app);
29
    }
30
31
    /**
32
     * Fix paths in Bootstrap.php
@@ 93-101 (lines=9) @@
90
        file_put_contents($file, $contents);
91
    }
92
93
    public static function update($app = 'application')
94
    {
95
        $target_dir = $app . '/' . static::TEST_FOLDER . '/_ci_phpunit_test';
96
        self::recursiveUnlink($target_dir);
97
        self::recursiveCopy(
98
            dirname(__FILE__) . '/application/tests/_ci_phpunit_test',
99
            $target_dir
100
        );
101
    }
102
103
    /**
104
     * Recursive Copy