Code Duplication    Length = 10-10 lines in 2 locations

src/Util/InteractsWithFiles.php 2 locations

@@ 29-38 (lines=10) @@
26
     *
27
     * @return bool
28
     */
29
    protected function createFile(string $path, $contents, bool $inBasePath = false) : bool
30
    {
31
        $path = $this->getPath($path, $inBasePath);
32
        
33
        if (!$this->disk->exists($path)) {
34
            return $this->disk->put($path, $contents);
35
        }
36
        
37
        return false;
38
    }
39
    
40
    /**
41
     * @param string $path
@@ 46-55 (lines=10) @@
43
     *
44
     * @return bool
45
     */
46
    protected function createDir(string $path, bool $inBasePath = false) : bool
47
    {
48
        $path = $this->getPath($path, $inBasePath);
49
        
50
        if (!$this->disk->exists($path)) {
51
            return $this->disk->makeDirectory($path);
52
        }
53
        
54
        return false;
55
    }
56
    
57
    /**
58
     * @param string $path