Code Duplication    Length = 7-7 lines in 2 locations

lib/Dwoo/Core.php 2 locations

@@ 739-745 (lines=7) @@
736
     * @return void
737
     * @throws Exception
738
     */
739
    public function setCacheDir($dir)
740
    {
741
        $this->cacheDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR;
742
        if (is_writable($this->cacheDir) === false) {
743
            throw new Exception('The cache directory must be writable, chmod "' . $this->cacheDir . '" to make it writable');
744
        }
745
    }
746
747
    /**
748
     * Returns the compile directory with a trailing DIRECTORY_SEPARATOR.
@@ 769-775 (lines=7) @@
766
     * @return void
767
     * @throws Exception
768
     */
769
    public function setCompileDir($dir)
770
    {
771
        $this->compileDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR;
772
        if (is_writable($this->compileDir) === false) {
773
            throw new Exception('The compile directory must be writable, chmod "' . $this->compileDir . '" to make it writable');
774
        }
775
    }
776
777
    /**
778
     * Returns the default cache time that is used with templates that do not have a cache time set.