22
33namespace Backpack \CRUD \app \Console \Commands ;
44
5+ use Artisan ;
56use Illuminate \Console \Command ;
67use Symfony \Component \Process \Exception \ProcessFailedException ;
78use Symfony \Component \Process \Process ;
8- use Artisan ;
99
1010class Install extends Command
1111{
@@ -65,13 +65,13 @@ public function handle()
6565
6666 $ this ->line (' Publishing configs, langs, views, js and css files ' );
6767 $ this ->executeArtisanProcess ('vendor:publish ' , [
68- '--provider ' => 'Backpack\CRUD\BackpackServiceProvider ' ,
69- '--tag ' => 'minimum '
68+ '--provider ' => 'Backpack\CRUD\BackpackServiceProvider ' ,
69+ '--tag ' => 'minimum ' ,
7070 ]);
7171
7272 $ this ->line (' Publishing config for notifications - prologue/alerts ' );
7373 $ this ->executeArtisanProcess ('vendor:publish ' , [
74- '--provider ' => 'Prologue\Alerts\AlertsServiceProvider '
74+ '--provider ' => 'Prologue\Alerts\AlertsServiceProvider ' ,
7575 ]);
7676
7777 $ this ->line (" Generating users table (using Laravel's default migrations) " );
@@ -108,19 +108,19 @@ public function handle()
108108
109109 $ this ->line (' Publishing custom elfinder views ' );
110110 $ this ->executeArtisanProcess ('vendor:publish ' , [
111- '--provider ' => 'Backpack\CRUD\BackpackServiceProvider ' ,
112- '--tag ' => 'elfinder '
111+ '--provider ' => 'Backpack\CRUD\BackpackServiceProvider ' ,
112+ '--tag ' => 'elfinder ' ,
113113 ]);
114114
115115 $ this ->line (' Adding sidebar menu item for File Manager ' );
116116 switch (DIRECTORY_SEPARATOR ) {
117117 case '/ ' : // unix
118- $ this ->executeArtisanProcess ('backpack:add-sidebar-content ' , [
119- 'code ' => '<li class="nav-item"><a class="nav-link" href="{{ backpack_url( \'elfinder \') }}\"><i class="nav-icon fa fa-files-o"></i> <span>{{ trans( \'backpack::crud.file_manager \') }}</span></a></li> ' ]);
118+ $ this ->executeArtisanProcess ('backpack:add-sidebar-content ' , [
119+ 'code ' => '<li class="nav-item"><a class="nav-link" href="{{ backpack_url( \'elfinder \') }}\"><i class="nav-icon fa fa-files-o"></i> <span>{{ trans( \'backpack::crud.file_manager \') }}</span></a></li> ' , ]);
120120 break ;
121121 case '\\' : // windows
122122 $ this ->executeArtisanProcess ('backpack:add-sidebar-content ' , [
123- 'code ' => '<li class="nav-item"><a class="nav-link" href=""{{ backpack_url( \'elfinder \') }}""><i class=""nav-icon fa fa-files-o""></i> <span>{{ trans( \'backpack::crud.file_manager \') }}</span></a></li> ' ]);
123+ 'code ' => '<li class="nav-item"><a class="nav-link" href=""{{ backpack_url( \'elfinder \') }}""><i class=""nav-icon fa fa-files-o""></i> <span>{{ trans( \'backpack::crud.file_manager \') }}</span></a></li> ' , ]);
124124 break ;
125125 }
126126 }
@@ -171,7 +171,7 @@ public function executeProcess($command, $beforeNotice = false, $afterNotice = f
171171
172172 /**
173173 * Run an artisan command.
174- *
174+ *
175175 * @param string $command The artisan command to be run.
176176 * @param array $arguments Key-value array of arguments to the artisan command.
177177 * @param bool $beforeNotice Information for the user before the command is run
@@ -184,7 +184,7 @@ public function executeArtisanProcess($command, $arguments = [], $beforeNotice =
184184 $ beforeNotice = $ beforeNotice ? ' ' .$ beforeNotice : 'php artisan ' .$ command .' ' .implode (' ' , $ arguments );
185185
186186 $ this ->echo ('info ' , $ beforeNotice );
187-
187+
188188 try {
189189 Artisan::call ($ command , $ arguments );
190190 } catch (Exception $ e ) {
0 commit comments