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:17
created
src/Console/Commands/ViewBackpackCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      /**
50 50
      * Execute the console command.
51 51
      *
52
-     * @return bool|null
52
+     * @return false|null
53 53
      */
54 54
     public function fire()
55 55
     {
Please login to merge, or discard this 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 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      /**
50 50
      * Execute the console command.
51 51
      *
52
-     * @return bool|null
52
+     * @return false|null
53 53
      */
54 54
     public function fire()
55 55
     {
Please login to merge, or discard this patch.
src/Console/Commands/CrudControllerBackpackCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      * @param string $stub
78 78
      * @param string $name
79 79
      *
80
-     * @return string
80
+     * @return CrudControllerBackpackCommand
81 81
      */
82 82
     protected function replaceNameStrings(&$stub, $name)
83 83
     {
Please login to merge, or discard this 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/CrudModelBackpackCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param string $stub
63 63
      * @param string $name
64 64
      *
65
-     * @return string
65
+     * @return CrudModelBackpackCommand
66 66
      */
67 67
     protected function replaceTable(&$stub, $name)
68 68
     {
Please login to merge, or discard this patch.
src/Console/Commands/ModelBackpackCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      * @param string $stub
67 67
      * @param string $name
68 68
      *
69
-     * @return string
69
+     * @return ModelBackpackCommand
70 70
      */
71 71
     protected function replaceTable(&$stub, $name)
72 72
     {
Please login to merge, or discard this patch.
src/Console/Commands/PermissionGeneratorBackpackCommand.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,24 +8,24 @@
 block discarded – undo
8 8
 class PermissionGeneratorBackpackCommand extends Command
9 9
 {
10 10
     /**
11
-    * The name and signature of the console command.
12
-    *
13
-    * @var string
14
-    */
11
+     * The name and signature of the console command.
12
+     *
13
+     * @var string
14
+     */
15 15
      protected $signature = 'backpack:permissions {route : Name of the route e.g admin/teams} {--P|permission=* : A permission you wish to add, can accept multiple instances of -P|permission}';
16 16
 
17 17
     /**
18
-    * The console command description.
19
-    *
20
-    * @var string
21
-    */
18
+     * The console command description.
19
+     *
20
+     * @var string
21
+     */
22 22
     protected $description = 'Will generate permissions for routes and save to the database';
23 23
 
24 24
     /**
25
-    * Execute the console command.
26
-    *
27
-    * @return mixed
28
-    */
25
+     * Execute the console command.
26
+     *
27
+     * @return mixed
28
+     */
29 29
     public function handle()
30 30
     {
31 31
         $routeName = $this->argument('route');
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,28 +29,28 @@  discard block
 block discarded – undo
29 29
     public function handle()
30 30
     {
31 31
         $routeName = $this->argument('route');
32
-        $permissions = ['list', 'create', 'update', 'reorder', 'delete'];
32
+        $permissions = [ 'list', 'create', 'update', 'reorder', 'delete' ];
33 33
         $permissionsAdded = 0;
34 34
         $customPermissions = $this->option('permission');
35 35
 
36
-        if(count($customPermissions) > 0){
36
+        if (count($customPermissions) > 0) {
37 37
             $permissions = $customPermissions;
38 38
         }
39 39
 
40 40
         $bar = $this->output->createProgressBar(count($permissions));
41 41
 
42
-        foreach($permissions as $permission){
42
+        foreach ($permissions as $permission) {
43 43
 
44 44
             $permissionName = trim($routeName, '/').'/'.trim($permission, '/');
45 45
             $permissionName = strtolower($permissionName);
46 46
 
47
-            $existingPermission = Permission::where(['name' => $permissionName])->first();
47
+            $existingPermission = Permission::where([ 'name' => $permissionName ])->first();
48 48
 
49
-            if($existingPermission){
49
+            if ($existingPermission) {
50 50
 
51 51
                 $continueAdding = $this->confirm("$permissionName already exists, do you want to carry on? [y|N]");
52 52
 
53
-                if($continueAdding){
53
+                if ($continueAdding) {
54 54
                     $bar->setMessage("Skipping $permissionName");
55 55
                     $bar->advance();
56 56
                     continue;
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
                     return $this->error("\nCancelled adding any more permissions.");
60 60
                 }
61 61
             } else {
62
-                $newPermission = Permission::create(['name' => $permissionName]);
62
+                $newPermission = Permission::create([ 'name' => $permissionName ]);
63 63
                 $newPermission->save();
64 64
 
65
-                if($newPermission->id){
65
+                if ($newPermission->id) {
66 66
                     $permissionsAdded++;
67 67
                     $bar->setMessage("$newPermission->name added with ID: $newPermission->id");
68 68
                     $bar->advance();
Please login to merge, or discard this patch.