Code Duplication    Length = 5-5 lines in 2 locations

tests/TightTest.php 2 locations

@@ 76-80 (lines=5) @@
73
            }
74
        }
75
        $fileSize = count($this->files);
76
        for ($index = 0; $index < $fileSize; $index++) {
77
            if (!is_file($this->files[$index])) {
78
                file_put_contents($this->files[$index], "");
79
            }
80
        }
81
        $config = new \Tight\TightConfig($this->config);
82
        $this->app = new \Tight\Tight($config);
83
    }
@@ 88-92 (lines=5) @@
85
    public function tearDown() {
86
        $fileSize = count($this->files);
87
        $dirSize = count($this->directories);
88
        for ($index = 0; $index < $fileSize; $index++) {
89
            if (is_file($this->files[$index])) {
90
                unlink($this->files[$index]);
91
            }
92
        }
93
        for ($index = 0; $index < $dirSize; $index++) {
94
            if (is_dir($this->directories[$index])) {
95
                rmdir($this->directories[$index]);