Completed
Push — master ( ad8d2b...c8618f )
by Manel
55:15 queued 25:14
created
src/Console/AdminLTEAdmin.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Acacha\AdminLTETemplateLaravel\Console;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use App\Models\User;
6
+use Illuminate\Console\Command;
7 7
 
8 8
 /**
9 9
  * Class AdminLTEAdmin.
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     public function handle()
31 31
     {
32 32
         $this->createAdminUser();
33
-        $this->info('User ' . $this->username() . '(' . $this->email() . ') ' .
34
-            $this->passwordInfo() . ' created succesfully!');
33
+        $this->info('User '.$this->username().'('.$this->email().') '.
34
+            $this->passwordInfo().' created succesfully!');
35 35
         $this->call('make:adminUserSeeder');
36 36
         $this->info('A database seed has been created to permanently add admin user to database.');
37 37
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             User::factory()->create([
46 46
                     "name" => env('ADMIN_USER', $this->username()),
47 47
                     "email" => env('ADMIN_EMAIL', $this->email()),
48
-                    "password" => bcrypt(env('ADMIN_PWD', '123456'))]);
48
+                    "password" => bcrypt(env('ADMIN_PWD', '123456')) ]);
49 49
         } catch (\Illuminate\Database\QueryException $exception) {
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
src/Console/stubs/AdminUserSeeder.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Database\Seeder;
4 3
 use App\Models\User;
4
+use Illuminate\Database\Seeder;
5 5
 
6 6
 /**
7 7
  * Class AdminUserSeeder
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             User::factory()->create([
20 20
                     "name" => env('ADMIN_USER', "$USER_NAME$"),
21 21
                     "email" => env('ADMIN_EMAIL', "$USER_EMAIL"),
22
-                    "password" => bcrypt(env('ADMIN_PWD', '123456'))]);
22
+                    "password" => bcrypt(env('ADMIN_PWD', '123456')) ]);
23 23
         } catch (\Illuminate\Database\QueryException $exception) {
24 24
         }
25 25
     }
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
  * but take into account we have to add 'web' middleware group here because Laravel by defaults add this middleware in
6 6
  * RouteServiceProvider
7 7
  */
8
-Route::group(['middleware' => 'web'], function () {
8
+Route::group([ 'middleware' => 'web' ], function() {
9 9
     Route::get('/home', 'HomeController@index');
10 10
 });
Please login to merge, or discard this patch.
src/Console/MakeAdminUserSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         try {
66 66
             $this->filesystem->overwrite(
67
-                $path = database_path('seeders/' . config('AdminUserSeeder', 'AdminUserSeeder.php')),
67
+                $path = database_path('seeders/'.config('AdminUserSeeder', 'AdminUserSeeder.php')),
68 68
                 $this->compiler->compile(
69 69
                     $this->filesystem->get($this->getStubPath()),
70 70
                     [
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     ]
74 74
                 )
75 75
             );
76
-            $this->info('File ' . $path . ' created');
76
+            $this->info('File '.$path.' created');
77 77
         } catch (\Exception $e) {
78 78
             print_r($e->getMessage());
79 79
         }
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
      */
87 87
     protected function getStubPath()
88 88
     {
89
-        return __DIR__ . '/stubs/AdminUserSeeder.php';
89
+        return __DIR__.'/stubs/AdminUserSeeder.php';
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/stubs/RegisterController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Auth;
4 4
 
5
-use App\Models\User;
6
-use Validator;
7 5
 use App\Http\Controllers\Controller;
6
+use App\Models\User;
8 7
 use Illuminate\Foundation\Auth\RegistersUsers;
8
+use Validator;
9 9
 
10 10
 /**
11 11
  * Class RegisterController
Please login to merge, or discard this patch.