Code Duplication    Length = 7-9 lines in 2 locations

vendor/anax/mvc/src/Content/CFileContent.php 1 location

@@ 49-57 (lines=9) @@
46
     *
47
     * @return $this
48
     */
49
    public function setBasePath($path) 
50
    {
51
        if (!is_dir($path)) {
52
            throw new \Exception("Base path for file content is not a directory: " . $path);
53
        }
54
        $this->path = rtrim($path, '/') . '/';
55
56
        return $this;
57
    }
58
}
59

vendor/anax/mvc/src/View/CViewContainerBasic.php 1 location

@@ 121-127 (lines=7) @@
118
     *
119
     * @return $this
120
     */
121
    public function setBasePath($path)
122
    {
123
        if (!is_dir($path)) {
124
            throw new \Exception("Base path for views is not a directory: " . $path);
125
        }
126
        $this->path = rtrim($path, '/') . '/';
127
    }
128
129
130