Code Duplication    Length = 8-10 lines in 2 locations

src/Console/CommandCreator.php 1 location

@@ 60-69 (lines=10) @@
57
     *
58
     * @return string
59
     */
60
    protected function resolveCommandNamespace()
61
    {
62
        if ($this->config->has(['namespaces', 'consoleNamespace'])) {
63
            return $this->config->get(
64
                ['namespaces', 'consoleNamespace']
65
            ).'\Commands';
66
        }
67
68
        return $this->guessNamespace($this->config->getCommandsDirectory());
69
    }
70
}
71

src/Console/DirectoryCreator.php 1 location

@@ 66-73 (lines=8) @@
63
     *
64
     * @return string
65
     */
66
    protected function resolveConsoleNamespace()
67
    {
68
        if ($this->config->has(['namespaces', 'consoleNamespace'])) {
69
            return $this->config->get(['namespaces', 'consoleNamespace']);
70
        }
71
        
72
        return $this->guessNamespace($this->config->getConsoleDirectory());
73
    }
74
}
75