Code Duplication    Length = 9-9 lines in 2 locations

src/Generator/BaseTestGenerator.php 1 location

@@ 119-127 (lines=9) @@
116
    /**
117
     * @throws FileNotFoundException
118
     */
119
    public function generate()
120
    {
121
        $factory = new TemplateFactory();
122
        $fileContents = $factory->getTemplate($this->templatePath)->produceWith($this->prepareSettings($this->settings));
123
        
124
        $path = $this->suite . DIRECTORY_SEPARATOR . $this->name . Str::ucfirst($this->type) . '.php';
125
        
126
        $this->createFile($path, $fileContents);
127
    }
128
    
129
    /**
130
     * @param string $name

src/Generator/TestGenerator.php 1 location

@@ 127-135 (lines=9) @@
124
    /**
125
     * @throws FileNotFoundException
126
     */
127
    public function generate()
128
    {
129
        $factory = new TemplateFactory();
130
        $fileContents = $factory->getTemplate($this->templatePath)->produceWith($this->settings);
131
        
132
        $path = $this->suite . DIRECTORY_SEPARATOR . $this->name . 'Test.php';
133
        
134
        $this->createFile($path, $fileContents);
135
    }
136
    
137
    /**
138
     * @param string $name