Code Duplication    Length = 22-24 lines in 2 locations

src/Console/PublishAdminLTE.php 1 location

@@ 55-76 (lines=22) @@
52
    /**
53
     * Execute the console command.
54
     */
55
    public function handle()
56
    {
57
        $this->processOptions();
58
59
        //Publish
60
        $this->publishHomeController();
61
        $this->changeRegisterController();
62
        $this->changeLoginController();
63
        $this->changeForgotPasswordController();
64
        $this->changeResetPasswordController();
65
        $this->publishPublicAssets();
66
        $this->publishViews();
67
        $this->publishResourceAssets();
68
        $this->publishTests();
69
        $this->publishLanguages();
70
        $this->publishGravatar();
71
        $this->publishConfig();
72
        $this->publishWebRoutes();
73
        $this->publishApiRoutes();
74
        $this->publishDusk();
75
        $this->publishDatabaseConfig();
76
    }
77
78
    /**
79
     * Install Home Controller.

src/Providers/AdminLTETemplateServiceProvider.php 1 location

@@ 85-108 (lines=24) @@
82
    /**
83
     * Bootstrap the application services.
84
     */
85
    public function boot()
86
    {
87
        $this->defineRoutes();
88
89
        //Publish
90
        $this->publishHomeController();
91
        $this->changeRegisterController();
92
        $this->changeLoginController();
93
        $this->changeForgotPasswordController();
94
        $this->changeResetPasswordController();
95
        $this->publishPublicAssets();
96
        $this->publishViews();
97
        $this->publishResourceAssets();
98
        $this->publishTests();
99
        $this->publishLanguages();
100
        $this->publishGravatar();
101
        $this->publishConfig();
102
        $this->publishWebRoutes();
103
        $this->publishApiRoutes();
104
        $this->publishDusk();
105
        $this->publishDatabaseConfig();
106
107
        $this->enableSpatieMenu();
108
    }
109
110
    /**
111
     * Define the AdminLTETemplate routes.