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
Push — v4dot1 ( 1d33b7...cabaa1 )
by Cristian
06:48 queued 21s
created
src/app/Http/Requests/ChangePasswordRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
      */
42 42
     public function withValidator($validator)
43 43
     {
44
-        $validator->after(function ($validator) {
44
+        $validator->after(function($validator) {
45 45
             // check old password matches
46
-            if (! Hash::check($this->input('old_password'), backpack_auth()->user()->password)) {
46
+            if (!Hash::check($this->input('old_password'), backpack_auth()->user()->password)) {
47 47
                 $validator->errors()->add('old_password', trans('backpack::base.old_password_incorrect'));
48 48
             }
49 49
         });
Please login to merge, or discard this patch.
src/config/backpack/base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     ],
44 44
 
45 45
     // CSS files that are loaded in all pages, using Laravel's mix() helper
46
-    'mix_styles' => [ // file_path => manifest_directory_path
46
+    'mix_styles' => [// file_path => manifest_directory_path
47 47
         // 'css/app.css' => '',
48 48
     ],
49 49
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('backpack_url')) {
3
+if (!function_exists('backpack_url')) {
4 4
     /**
5 5
      * Appends the configured backpack prefix and returns
6 6
      * the URL using the standard Laravel helpers.
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
      */
12 12
     function backpack_url($path = null, $parameters = [], $secure = null)
13 13
     {
14
-        $path = ! $path || (substr($path, 0, 1) == '/') ? $path : '/'.$path;
14
+        $path = !$path || (substr($path, 0, 1) == '/') ? $path : '/'.$path;
15 15
 
16 16
         return url(config('backpack.base.route_prefix', 'admin').$path, $parameters = [], $secure = null);
17 17
     }
18 18
 }
19 19
 
20
-if (! function_exists('backpack_authentication_column')) {
20
+if (!function_exists('backpack_authentication_column')) {
21 21
     /**
22 22
      * Return the username column name.
23 23
      * The Laravel default (and Backpack default) is 'email'.
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     }
31 31
 }
32 32
 
33
-if (! function_exists('backpack_users_have_email')) {
33
+if (!function_exists('backpack_users_have_email')) {
34 34
     /**
35 35
      * Check if the email column is present on the user table.
36 36
      *
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 }
47 47
 
48
-if (! function_exists('backpack_avatar_url')) {
48
+if (!function_exists('backpack_avatar_url')) {
49 49
     /**
50 50
      * Returns the avatar URL of a user.
51 51
      *
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 }
80 80
 
81
-if (! function_exists('backpack_middleware')) {
81
+if (!function_exists('backpack_middleware')) {
82 82
     /**
83 83
      * Return the key of the middleware used across Backpack.
84 84
      * That middleware checks if the visitor is an admin.
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 }
95 95
 
96
-if (! function_exists('backpack_guard_name')) {
96
+if (!function_exists('backpack_guard_name')) {
97 97
     /*
98 98
      * Returns the name of the guard defined
99 99
      * by the application config
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 }
106 106
 
107
-if (! function_exists('backpack_auth')) {
107
+if (!function_exists('backpack_auth')) {
108 108
     /*
109 109
      * Returns the user instance if it exists
110 110
      * of the currently authenticated admin
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     }
117 117
 }
118 118
 
119
-if (! function_exists('backpack_user')) {
119
+if (!function_exists('backpack_user')) {
120 120
     /*
121 121
      * Returns back a user instance without
122 122
      * the admin guard, however allows you
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     }
129 129
 }
130 130
 
131
-if (! function_exists('mb_ucfirst')) {
131
+if (!function_exists('mb_ucfirst')) {
132 132
     /**
133 133
      * Capitalize the first letter of a string,
134 134
      * even if that string is multi-byte (non-latin alphabet).
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     }
151 151
 }
152 152
 
153
-if (! function_exists('backpack_view')) {
153
+if (!function_exists('backpack_view')) {
154 154
     /**
155 155
      * Returns a new displayable view based on the configured backpack view namespace.
156 156
      * If that view doesn't exist, it will load the one from the original theme.
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
         $returnView = $theme.$view;
171 171
 
172
-        if (! view()->exists($returnView)) {
172
+        if (!view()->exists($returnView)) {
173 173
             $returnView = $originalTheme.$view;
174 174
         }
175 175
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     }
178 178
 }
179 179
 
180
-if (! function_exists('square_brackets_to_dots')) {
180
+if (!function_exists('square_brackets_to_dots')) {
181 181
     /**
182 182
      * Turns a string from bracket-type array to dot-notation array.
183 183
      * Ex: array[0][property] turns into array.0.property.
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     }
195 195
 }
196 196
 
197
-if (! function_exists('is_countable')) {
197
+if (!function_exists('is_countable')) {
198 198
     /**
199 199
      * We need this because is_countable was only introduced in PHP 7.3,
200 200
      * and in PHP 7.2 you should check if count() argument is really countable.
Please login to merge, or discard this patch.
src/Stats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     private function sendUsageStats()
39 39
     {
40 40
         // only send usage stats in production
41
-        if (! $this->runningInProduction()) {
41
+        if (!$this->runningInProduction()) {
42 42
             return;
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/BackpackServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     public function register()
55 55
     {
56 56
         // Bind the CrudPanel object to Laravel's service container
57
-        $this->app->singleton('crud', function ($app) {
57
+        $this->app->singleton('crud', function($app) {
58 58
             return new \Backpack\CRUD\app\Library\CrudPanel\CrudPanel($app);
59 59
         });
60 60
 
61 61
         // load a macro for Route,
62 62
         // helps developers load all routes for a CRUD resource in one line
63
-        if (! Route::hasMacro('crud')) {
63
+        if (!Route::hasMacro('crud')) {
64 64
             $this->addRouteMacro();
65 65
         }
66 66
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // }
82 82
 
83 83
         // map the elfinder prefix
84
-        if (! \Config::get('elfinder.route.prefix')) {
84
+        if (!\Config::get('elfinder.route.prefix')) {
85 85
             \Config::set('elfinder.route.prefix', \Config::get('backpack.base.route_prefix').'/elfinder');
86 86
         }
87 87
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $middleware_key = config('backpack.base.middleware_key');
92 92
         $middleware_class = config('backpack.base.middleware_class');
93 93
 
94
-        if (! is_array($middleware_class)) {
94
+        if (!is_array($middleware_class)) {
95 95
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
96 96
 
97 97
             return;
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     private function addRouteMacro()
197 197
     {
198
-        Route::macro('crud', function ($name, $controller) {
198
+        Route::macro('crud', function($name, $controller) {
199 199
             // put together the route name prefix,
200 200
             // as passed to the Route::group() statements
201 201
             $routeName = '';
Please login to merge, or discard this patch.
src/LicenseCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             return;
18 18
         }
19 19
 
20
-        if (! $this->validCode(config('backpack.base.license_code'))) {
20
+        if (!$this->validCode(config('backpack.base.license_code'))) {
21 21
             \Alert::add('warning', "<strong>You're using unlicensed software.</strong> Please ask your web developer to <a target='_blank' class='alert-link text-white' href='http://backpackforlaravel.com'>purchase a license code</a> to hide this message.");
22 22
         }
23 23
     }
Please login to merge, or discard this patch.
src/resources/views/crud/fields/checklist_dependency.blade.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -22,36 +22,36 @@
 block discarded – undo
22 22
             }
23 23
         }
24 24
 
25
-      //for update form, get initial state of the entity
26
-      if (isset($id) && $id) {
25
+        //for update form, get initial state of the entity
26
+        if (isset($id) && $id) {
27 27
 
28 28
         //get entity with relations for primary dependency
29
-          $entity_dependencies = $entity_model->with($primary_dependency['entity'])
30
-          ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
-          ->find($id);
29
+            $entity_dependencies = $entity_model->with($primary_dependency['entity'])
30
+            ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
+            ->find($id);
32 32
 
33
-          $secondaries_from_primary = [];
33
+            $secondaries_from_primary = [];
34 34
 
35
-          //convert relation in array
36
-          $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray();
35
+            //convert relation in array
36
+            $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray();
37 37
 
38
-          $secondary_ids = [];
38
+            $secondary_ids = [];
39 39
 
40
-          //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist
41
-          if (old($primary_dependency['name'])) {
42
-              foreach (old($primary_dependency['name']) as $primary_item) {
43
-                  foreach ($dependencyArray[$primary_item] as $second_item) {
44
-                      $secondary_ids[$second_item] = $second_item;
45
-                  }
46
-              }
47
-          } else { //create dependecies from relation if not from validate error
48
-              foreach ($primary_array as $primary_item) {
49
-                  foreach ($primary_item[$secondary_dependency['entity']] as $second_item) {
50
-                      $secondary_ids[$second_item['id']] = $second_item['id'];
51
-                  }
52
-              }
53
-          }
54
-      }
40
+            //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist
41
+            if (old($primary_dependency['name'])) {
42
+                foreach (old($primary_dependency['name']) as $primary_item) {
43
+                    foreach ($dependencyArray[$primary_item] as $second_item) {
44
+                        $secondary_ids[$second_item] = $second_item;
45
+                    }
46
+                }
47
+            } else { //create dependecies from relation if not from validate error
48
+                foreach ($primary_array as $primary_item) {
49
+                    foreach ($primary_item[$secondary_dependency['entity']] as $second_item) {
50
+                        $secondary_ids[$second_item['id']] = $second_item['id'];
51
+                    }
52
+                }
53
+            }
54
+        }
55 55
 
56 56
         //json encode of dependency matrix
57 57
         $dependencyJson = json_encode($dependencyArray);
Please login to merge, or discard this patch.
src/resources/views/crud/reorder.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 <?php
29 29
 function tree_element($entry, $key, $all_entries, $crud)
30 30
 {
31
-    if (! isset($entry->tree_element_shown)) {
31
+    if (!isset($entry->tree_element_shown)) {
32 32
         // mark the element as shown
33 33
         $all_entries[$key]->tree_element_shown = true;
34 34
         $entry->tree_element_shown = true;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             <ol class="sortable mt-0">
72 72
             <?php
73 73
                 $all_entries = collect($entries->all())->sortBy('lft')->keyBy($crud->getModel()->getKeyName());
74
-                $root_entries = $all_entries->filter(function ($item) {
74
+                $root_entries = $all_entries->filter(function($item) {
75 75
                     return $item->parent_id == 0;
76 76
                 });
77 77
                 foreach ($root_entries as $key => $entry) {
Please login to merge, or discard this patch.
src/resources/views/crud/fields/date_picker.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
     $field_language = isset($field['date_picker_options']['language']) ? $field['date_picker_options']['language'] : \App::getLocale();
11 11
 
12
-    if (! isset($field['attributes']['style'])) {
12
+    if (!isset($field['attributes']['style'])) {
13 13
         $field['attributes']['style'] = 'background-color: white!important;';
14 14
     }
15
-    if (! isset($field['attributes']['readonly'])) {
15
+    if (!isset($field['attributes']['readonly'])) {
16 16
         $field['attributes']['readonly'] = 'readonly';
17 17
     }
18 18
 ?>
Please login to merge, or discard this patch.