Code Duplication    Length = 14-15 lines in 2 locations

src/Installers/LaravelPassportInstaller.php 1 location

@@ 33-47 (lines=15) @@
30
    /**
31
     * copy files from stubs/passport to their appropriate locations
32
     */
33
    public function copyFiles(): void
34
    {
35
        file_put_contents(
36
            config_path('auth.php'),
37
            $this->compileFileStub('config/auth.stub')
38
        );
39
40
        foreach ($this->filesToCopy as $stub => $file) {
41
            file_put_contents(
42
                app_path($file),
43
                $this->compileFileStub($stub)
44
            );
45
        }
46
    }
47
48
49
    /**
50
     * @param $file

src/Installers/TymonJwtInstaller.php 1 location

@@ 30-43 (lines=14) @@
27
    /**
28
     * copy compiled stubs to their correct locations
29
     */
30
    public function copyFiles()
31
    {
32
        file_put_contents(
33
            config_path('auth.php'),
34
            $this->compileFileStub('config/auth.stub')
35
        );
36
37
        foreach ($this->filesToCopy as $stub => $file) {
38
            file_put_contents(
39
                app_path($file),
40
                $this->compileFileStub($stub)
41
            );
42
        }
43
    }
44
45
    /**
46
     * @param $file