Code Duplication    Length = 10-10 lines in 2 locations

Commands/MakeRepositoryCommand.php 2 locations

@@ 99-108 (lines=10) @@
96
        
97
        $this->makeDirectory( $basePath );
98
        
99
        if ( !$this->filesystem->exists( $classFilePath ) )
100
        {
101
            // Read the stub and replace
102
            $this->filesystem->put( $classFilePath, $this->compileRepositoryStub() );
103
            $this->info("'".ucfirst( $this->implementation )."' implementation created successfully for '$this->modelClassShortName'.");
104
            $this->composer->dumpAutoloads();
105
        } else
106
        {
107
            $this->error("The repository '$classFilePath' already exists, so it was skipped.");
108
        }
109
    }
110
    
111
    
@@ 123-132 (lines=10) @@
120
        
121
        $this->makeDirectory( $repositoriesBasePath );
122
        
123
        if ( !$this->filesystem->exists( $interfaceFilePath ) )
124
        {
125
            // Read the stub and replace
126
            $this->filesystem->put( $interfaceFilePath, $this->compileRepositoryInterfaceStub() );
127
            $this->info("Interface created successfully for '$this->modelClassShortName'.");
128
            $this->composer->dumpAutoloads();
129
        } else
130
        {
131
            $this->error("The interface '$this->repositoryInterfaceName' already exists, so it was skipped.");
132
        }
133
    }
134
    
135