Code Duplication    Length = 5-5 lines in 2 locations

tests/TightTest.php 2 locations

@@ 64-68 (lines=5) @@
61
62
    public function setUp() {
63
        $dirSize = count($this->directories);
64
        for ($index = 0; $index < $dirSize; $index++) {
65
            if (!is_dir($this->directories[$index])) {
66
                mkdir($this->directories[$index]);
67
            }
68
        }
69
        $fileSize = count($this->files);
70
        for ($index = 0; $index < $fileSize; $index++) {
71
            if (!is_file($this->files[$index])) {
@@ 87-91 (lines=5) @@
84
                unlink($this->files[$index]);
85
            }
86
        }
87
        for ($index = 0; $index < $dirSize; $index++) {
88
            if (is_dir($this->directories[$index])) {
89
                rmdir($this->directories[$index]);
90
            }
91
        }
92
    }
93
94
    /**