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

Test Failed
Pull Request — master (#3113)
by Cristian
25:27 queued 10:27
created
src/helpers.php 1 patch
Spacing   +17 added lines, -17 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);
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_form_input')) {
33
+if (!function_exists('backpack_form_input')) {
34 34
     /**
35 35
      * Parse the submitted input in request('form') to an usable array.
36 36
      * Joins the multiple[] fields in a single key and transform the dot notation fields into arrayed ones.
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
             }
60 60
 
61 61
             if (is_null($input_arg)) {
62
-                if (! isset($result[$input_key])) {
62
+                if (!isset($result[$input_key])) {
63 63
                     $result[$input_key] = $row['value'];
64 64
                 } else {
65
-                    $result[$input_key] = ! is_array($result[$input_key]) ? [$result[$input_key]] : $result[$input_key];
65
+                    $result[$input_key] = !is_array($result[$input_key]) ? [$result[$input_key]] : $result[$input_key];
66 66
 
67 67
                     array_push($result[$input_key], $row['value']);
68 68
                 }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 }
77 77
 
78
-if (! function_exists('backpack_users_have_email')) {
78
+if (!function_exists('backpack_users_have_email')) {
79 79
     /**
80 80
      * Check if the email column is present on the user table.
81 81
      *
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 }
92 92
 
93
-if (! function_exists('backpack_avatar_url')) {
93
+if (!function_exists('backpack_avatar_url')) {
94 94
     /**
95 95
      * Returns the avatar URL of a user.
96 96
      *
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 }
125 125
 
126
-if (! function_exists('backpack_middleware')) {
126
+if (!function_exists('backpack_middleware')) {
127 127
     /**
128 128
      * Return the key of the middleware used across Backpack.
129 129
      * That middleware checks if the visitor is an admin.
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     }
139 139
 }
140 140
 
141
-if (! function_exists('backpack_guard_name')) {
141
+if (!function_exists('backpack_guard_name')) {
142 142
     /*
143 143
      * Returns the name of the guard defined
144 144
      * by the application config
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 }
151 151
 
152
-if (! function_exists('backpack_auth')) {
152
+if (!function_exists('backpack_auth')) {
153 153
     /*
154 154
      * Returns the user instance if it exists
155 155
      * of the currently authenticated admin
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     }
162 162
 }
163 163
 
164
-if (! function_exists('backpack_user')) {
164
+if (!function_exists('backpack_user')) {
165 165
     /*
166 166
      * Returns back a user instance without
167 167
      * the admin guard, however allows you
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 }
175 175
 
176
-if (! function_exists('mb_ucfirst')) {
176
+if (!function_exists('mb_ucfirst')) {
177 177
     /**
178 178
      * Capitalize the first letter of a string,
179 179
      * even if that string is multi-byte (non-latin alphabet).
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     }
196 196
 }
197 197
 
198
-if (! function_exists('backpack_view')) {
198
+if (!function_exists('backpack_view')) {
199 199
     /**
200 200
      * Returns a new displayable view based on the configured backpack view namespace.
201 201
      * If that view doesn't exist, it will load the one from the original theme.
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         $returnView = $theme.$view;
217 217
 
218
-        if (! view()->exists($returnView)) {
218
+        if (!view()->exists($returnView)) {
219 219
             $returnView = $originalTheme.$view;
220 220
         }
221 221
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     }
224 224
 }
225 225
 
226
-if (! function_exists('square_brackets_to_dots')) {
226
+if (!function_exists('square_brackets_to_dots')) {
227 227
     /**
228 228
      * Turns a string from bracket-type array to dot-notation array.
229 229
      * Ex: array[0][property] turns into array.0.property.
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     }
241 241
 }
242 242
 
243
-if (! function_exists('is_countable')) {
243
+if (!function_exists('is_countable')) {
244 244
     /**
245 245
      * We need this because is_countable was only introduced in PHP 7.3,
246 246
      * and in PHP 7.2 you should check if count() argument is really countable.
Please login to merge, or discard this patch.