Code Duplication    Length = 23-25 lines in 2 locations

src/Console/PublishAdminLTE.php 1 location

@@ 55-77 (lines=23) @@
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->publishNoGuestForgotPasswordController();
65
        $this->changeResetPasswordController();
66
        $this->publishPublicAssets();
67
        $this->publishViews();
68
        $this->publishResourceAssets();
69
        $this->publishTests();
70
        $this->publishLanguages();
71
        $this->publishGravatar();
72
        $this->publishConfig();
73
        $this->publishWebRoutes();
74
        $this->publishApiRoutes();
75
        $this->publishDusk();
76
        $this->publishDatabaseConfig();
77
    }
78
79
    /**
80
     * Install Home Controller.

src/Providers/AdminLTETemplateServiceProvider.php 1 location

@@ 74-98 (lines=25) @@
71
    /**
72
     * Bootstrap the application services.
73
     */
74
    public function boot(Router $router)
75
    {
76
        $router->pushMiddlewareToGroup('web', GuestUser::class);
77
78
        //Publish
79
        $this->publishHomeController();
80
        $this->changeRegisterController();
81
        $this->changeLoginController();
82
        $this->changeForgotPasswordController();
83
        $this->publishNoGuestForgotPasswordController();
84
        $this->changeResetPasswordController();
85
        $this->publishPublicAssets();
86
        $this->publishViews();
87
        $this->publishResourceAssets();
88
        $this->publishTests();
89
        $this->publishLanguages();
90
        $this->publishGravatar();
91
        $this->publishConfig();
92
        $this->publishWebRoutes();
93
        $this->publishApiRoutes();
94
        $this->publishDusk();
95
        $this->publishDatabaseConfig();
96
97
        $this->enableSpatieMenu();
98
    }
99
100
    /**
101
     * Publish Home Controller.