Code Duplication    Length = 3-5 lines in 2 locations

lib/Dwoo/Template/Str.php 2 locations

@@ 126-130 (lines=5) @@
123
        $this->name      = hash('md4', $templateString);
124
        $this->cacheTime = $cacheTime;
125
126
        if ($compileId !== null) {
127
            $this->compileId = str_replace('../', '__', strtr($compileId, '\\%?=!:;' . PATH_SEPARATOR, '/-------'));
128
        } else {
129
            $this->compileId = $templateString;
130
        }
131
132
        if ($cacheId !== null) {
133
            $this->cacheId = str_replace('../', '__', strtr($cacheId, '\\%?=!:;' . PATH_SEPARATOR, '/-------'));
@@ 132-134 (lines=3) @@
129
            $this->compileId = $templateString;
130
        }
131
132
        if ($cacheId !== null) {
133
            $this->cacheId = str_replace('../', '__', strtr($cacheId, '\\%?=!:;' . PATH_SEPARATOR, '/-------'));
134
        }
135
    }
136
137
    /**