Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#7)
by
unknown
02:44
created
src/Console/Commands/ViewBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     protected function getPath($name)
92 92
     {
93
-        return $this->laravel['path'].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php';
93
+        return $this->laravel[ 'path' ].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php';
94 94
     }
95 95
 
96 96
     /**
Please login to merge, or discard this patch.
src/Console/Commands/ConfigBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     protected function getPath($name)
90 90
     {
91
-        return $this->laravel['path'].'/../config/'.str_replace('\\', '/', $name).'.php';
91
+        return $this->laravel[ 'path' ].'/../config/'.str_replace('\\', '/', $name).'.php';
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Console/Commands/CrudControllerBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         $name = str_replace($this->laravel->getNamespace(), '', $name);
48 48
 
49
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'CrudController.php';
49
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'CrudController.php';
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/Console/Commands/CrudRequestBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $name = str_replace($this->laravel->getNamespace(), '', $name);
47 47
 
48
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'Request.php';
48
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'Request.php';
49 49
     }
50 50
 
51 51
 
Please login to merge, or discard this patch.
src/Console/Commands/CrudBackpackCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
         $name = ucfirst($this->argument('name'));
32 32
 
33 33
         // Create the CRUD Controller and show output
34
-        Artisan::call('backpack:crud-controller', ['name' => $name]);
34
+        Artisan::call('backpack:crud-controller', [ 'name' => $name ]);
35 35
         echo Artisan::output();
36 36
 
37 37
         // Create the CRUD Model and show output
38
-        Artisan::call('backpack:crud-model', ['name' => $name]);
38
+        Artisan::call('backpack:crud-model', [ 'name' => $name ]);
39 39
         echo Artisan::output();
40 40
 
41 41
         // Create the CRUD Request and show output
42
-        Artisan::call('backpack:crud-request', ['name' => $name]);
42
+        Artisan::call('backpack:crud-request', [ 'name' => $name ]);
43 43
         echo Artisan::output();
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Console/Commands/PermissionGeneratorBackpackCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,28 +30,28 @@  discard block
 block discarded – undo
30 30
     public function handle()
31 31
     {
32 32
         $routeName         = $this->argument('route');
33
-        $permissions       = ['list', 'create', 'update', 'reorder', 'delete'];
33
+        $permissions       = [ 'list', 'create', 'update', 'reorder', 'delete' ];
34 34
         $permissionsAdded  = 0;
35 35
         $customPermissions = $this->option('permission');
36 36
 
37
-        if( count($customPermissions) > 0 ){
37
+        if (count($customPermissions) > 0) {
38 38
             $permissions = $customPermissions;
39 39
         }
40 40
 
41 41
         $bar = $this->output->createProgressBar(count($permissions));
42 42
 
43
-        foreach($permissions as $permission){
43
+        foreach ($permissions as $permission) {
44 44
 
45
-            $permissionName = trim($routeName, '/') . '/' . trim($permission, '/');
45
+            $permissionName = trim($routeName, '/').'/'.trim($permission, '/');
46 46
             $permissionName = strtolower($permissionName);
47 47
 
48
-            $existingPermission = Permission::where(['name' => $permissionName])->first();
48
+            $existingPermission = Permission::where([ 'name' => $permissionName ])->first();
49 49
 
50
-            if( $existingPermission ){
50
+            if ($existingPermission) {
51 51
 
52 52
                 $continueAdding = $this->confirm("$permissionName already exists, do you want to carry on? [y|N]");
53 53
 
54
-                if( $continueAdding ){
54
+                if ($continueAdding) {
55 55
                     $bar->setMessage("Skipping $permissionName");
56 56
                     $bar->advance();
57 57
                     continue;
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
                 }
63 63
             }
64 64
             else {
65
-                $newPermission = Permission::create(['name' => $permissionName]);
65
+                $newPermission = Permission::create([ 'name' => $permissionName ]);
66 66
                 $newPermission->save();
67 67
 
68
-                if( $newPermission->id ){
68
+                if ($newPermission->id) {
69 69
                     $permissionsAdded++;
70 70
                     $bar->setMessage("$newPermission->name added with ID: $newPermission->id");
71 71
                     $bar->advance();
Please login to merge, or discard this patch.