Code Duplication    Length = 7-7 lines in 2 locations

src/Http/Controllers/UtilitiesController.php 2 locations

@@ 110-116 (lines=7) @@
107
     *
108
     * @return \Illuminate\Http\JsonResponse
109
     */
110
    public function cache()
111
    {
112
        $this->command->call('cache:clear');
113
        $this->log->info(trans('cms::utilities.cache.success') . trans('cms::utilities.field.executed_by',['name'=>$this->getCurrentUserName()]));
114
115
        return $this->notifySuccess(trans('cms::utilities.cache.success'));
116
    }
117
118
    /**
119
     * Run config artisan command manually.
@@ 145-151 (lines=7) @@
142
     *
143
     * @return \Illuminate\Http\JsonResponse
144
     */
145
    public function views()
146
    {
147
        $this->command->call('view:clear');
148
        $this->log->info(trans('cms::utilities.views.success').trans('cms::utilities.field.executed_by',['name'=>$this->getCurrentUserName()]));
149
150
        return $this->notifySuccess(trans('cms::utilities.views.success'));
151
    }
152
153
    /**
154
     * Log viewer.