Test Setup Failed
Push — master ( 290539...414ec1 )
by Raí
17:00 queued 10:56
created
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @return mixed
18 18
      */
19
-    public function handle($request, Closure $next, $guard = null)
19
+    public function handle($request, Closure $next, $guard = NULL)
20 20
     {
21 21
         if (Auth::guard($guard)->check()) {
22 22
             return redirect('/home');
Please login to merge, or discard this patch.
server.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 // built-in PHP web server. This provides a convenient way to test a Laravel
14 14
 // application without having installed a "real" web server software here.
15 15
 if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
16
-    return false;
16
+    return FALSE;
17 17
 }
18 18
 
19 19
 require_once __DIR__.'/public/index.php';
Please login to merge, or discard this patch.
config/cache.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         'database' => [
42 42
             'driver'     => 'database',
43 43
             'table'      => 'cache',
44
-            'connection' => null,
44
+            'connection' => NULL,
45 45
         ],
46 46
 
47 47
         'file' => [
Please login to merge, or discard this patch.
config/app.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     |
40 40
     */
41 41
 
42
-    'debug' => env('APP_DEBUG', false),
42
+    'debug' => env('APP_DEBUG', FALSE),
43 43
 
44 44
     /*
45 45
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
config/database.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
             'charset'     => 'utf8mb4',
51 51
             'collation'   => 'utf8mb4_unicode_ci',
52 52
             'prefix'      => '',
53
-            'strict'      => true,
54
-            'engine'      => null,
53
+            'strict'      => TRUE,
54
+            'engine'      => NULL,
55 55
         ],
56 56
 
57 57
         'pgsql' => [
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         'default' => [
112 112
             'host'     => env('REDIS_HOST', '127.0.0.1'),
113
-            'password' => env('REDIS_PASSWORD', null),
113
+            'password' => env('REDIS_PASSWORD', NULL),
114 114
             'port'     => env('REDIS_PORT', 6379),
115 115
             'database' => 0,
116 116
         ],
Please login to merge, or discard this patch.
Bludata/Helpers/CurlHelper.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
     protected function exec()
25 25
     {
26 26
         curl_setopt($this->init, CURLOPT_URL, trim($this->baseUrl.$this->posFixUrl));
27
-        curl_setopt($this->init, CURLOPT_RETURNTRANSFER, true);
27
+        curl_setopt($this->init, CURLOPT_RETURNTRANSFER, TRUE);
28 28
         curl_setopt($this->init, CURLOPT_HTTPHEADER, $this->headers);
29
-        curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, false);
29
+        curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, FALSE);
30 30
 
31 31
         foreach ($this->options as $key => $value) {
32 32
             curl_setopt($this->init, $key, $value);
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
         $this->info = curl_getinfo($this->init);
38 38
     }
39 39
 
40
-    public function send($close = true)
40
+    public function send($close = TRUE)
41 41
     {
42 42
         $this->exec();
43 43
 
44
-        if ($close === true) {
44
+        if ($close === TRUE) {
45 45
             curl_close($this->init);
46 46
         }
47 47
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     public function post(array $data)
86 86
     {
87
-        $this->options[CURLOPT_POST] = true;
87
+        $this->options[CURLOPT_POST] = TRUE;
88 88
         $this->options[CURLOPT_POSTFIELDS] = json_encode($data);
89 89
 
90 90
         return $this;
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Helpers/functions.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     function register_annotation_file(string $file)
11 11
     {
12 12
         if (!is_file($file)) {
13
-            return false;
13
+            return FALSE;
14 14
         }
15 15
 
16 16
         return \Doctrine\Common\Annotations\AnnotationRegistry::registerFile($file);
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  * Retrieve all annotations of a giving object
22 22
  */
23 23
 if (!function_exists('get_class_annotations')) {
24
-    function get_class_annotations($element, $annotation = null)
24
+    function get_class_annotations($element, $annotation = NULL)
25 25
     {
26 26
         $class = $element;
27 27
         if (is_object($element)) {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  * Retrieve annotations of a especific property of a giving object
40 40
  */
41 41
 if (!function_exists('get_property_annotations')) {
42
-    function get_property_annotations($element, $property = null, $annotation = null)
42
+    function get_property_annotations($element, $property = NULL, $annotation = NULL)
43 43
     {
44 44
         $class = $element;
45 45
         if (is_object($element) && !($element instanceof \ReflectionClass)) {
Please login to merge, or discard this patch.
Bludata/Framework/Laravel/Helpers/functions.php 1 patch
Upper-Lower-Casing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     function register_annotation_file(string $file)
12 12
     {
13 13
         if (!is_file($file)) {
14
-            return false;
14
+            return FALSE;
15 15
         }
16 16
 
17 17
         return \Doctrine\Common\Annotations\AnnotationRegistry::registerFile($file);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     function register_annotation_dir(string $dir)
29 29
     {
30 30
         if (!is_dir($dir)) {
31
-            return false;
31
+            return FALSE;
32 32
         }
33 33
 
34 34
         $handle = opendir($dir);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             register_annotation_file($toRegisterPath);
38 38
         }
39 39
 
40
-        return true;
40
+        return TRUE;
41 41
     }
42 42
 }
43 43
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             if ($type == 'boolean') {
102 102
                 $result = $arg ? 'true' : 'false';
103 103
             } else {
104
-                $result = print_r($arg, true);
104
+                $result = print_r($arg, TRUE);
105 105
             }
106 106
             $result = sprintf('(%s) %s', $type, $result);
107 107
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param string $version   = 'v1'
123 123
      * @param bool   $abort     = true
124 124
      */
125
-    function bdClassExists(string $folder, string $className, string $version = 'v1', bool $abort = true)
125
+    function bdClassExists(string $folder, string $className, string $version = 'v1', bool $abort = TRUE)
126 126
     {
127 127
         $entityClass = config('bludata.generator.rootNamespace').'\\'.$folder.'\\'.$version.'\\'.$className;
128 128
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             abort(500, 'Undefined \''.$className.'\'');
135 135
         }
136 136
 
137
-        return null;
137
+        return NULL;
138 138
     }
139 139
 }
140 140
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param string $version   = 'v1'
150 150
      * @param bool   $abort     = true
151 151
      */
152
-    function bdInterfaceExists(string $folder, string $className, string $version = 'v1', bool $abort = true)
152
+    function bdInterfaceExists(string $folder, string $className, string $version = 'v1', bool $abort = TRUE)
153 153
     {
154 154
         $entityClass = config('bludata.generator.rootNamespace').'\\'.$folder.'\\'.$version.'\\'.$className;
155 155
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             abort(500, 'Undefined \''.$className.'\'');
162 162
         }
163 163
 
164
-        return null;
164
+        return NULL;
165 165
     }
166 166
 }
167 167
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * @param string $version   = 'v1'
172 172
      * @param bool   $abort     = true
173 173
      */
174
-    function bdInterfaceClass(string $className, string $version = 'v1', bool $abort = true)
174
+    function bdInterfaceClass(string $className, string $version = 'v1', bool $abort = TRUE)
175 175
     {
176 176
         return bdInterfaceExists(config('bludata.generator.paths.interfaces'), $className.'Interface', $version, $abort);
177 177
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * @param string $version   = 'v1'
184 184
      * @param bool   $abort     = true
185 185
      */
186
-    function bdContractClass(string $className, string $version = 'v1', bool $abort = true)
186
+    function bdContractClass(string $className, string $version = 'v1', bool $abort = TRUE)
187 187
     {
188 188
         return bdInterfaceExists(config('bludata.generator.paths.contracts'), $className.'Interface', $version, $abort);
189 189
     }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param string $version   = 'v1'
196 196
      * @param bool   $abort     = true
197 197
      */
198
-    function bdContract(string $className, string $version = 'v1', bool $abort = true)
198
+    function bdContract(string $className, string $version = 'v1', bool $abort = TRUE)
199 199
     {
200 200
         return app(bdContractClass($className, $version, $abort));
201 201
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * @param string $version   = 'v1'
208 208
      * @param bool   $abort     = true
209 209
      */
210
-    function bdRepositoryInterfaceClass(string $className, string $version = 'v1', bool $abort = true)
210
+    function bdRepositoryInterfaceClass(string $className, string $version = 'v1', bool $abort = TRUE)
211 211
     {
212 212
         return bdInterfaceClass($className.'Repository', $version, $abort);
213 213
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @param string $version   = 'v1'
220 220
      * @param bool   $abort     = true
221 221
      */
222
-    function bdRepositoryClass(string $className, string $version = 'v1', bool $abort = true)
222
+    function bdRepositoryClass(string $className, string $version = 'v1', bool $abort = TRUE)
223 223
     {
224 224
         return bdClassExists(config('bludata.generator.paths.repositories'), $className.'Repository', $version, $abort);
225 225
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      * @param string $version   = 'v1'
232 232
      * @param bool   $abort     = true
233 233
      */
234
-    function bdRepository(string $className, string $version = 'v1', bool $abort = true)
234
+    function bdRepository(string $className, string $version = 'v1', bool $abort = TRUE)
235 235
     {
236 236
         return app(bdRepositoryInterfaceClass($className, $version, $abort));
237 237
     }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      * @param string $version   = 'v1'
244 244
      * @param bool   $abort     = true
245 245
      */
246
-    function bdServiceInterfaceClass(string $className, string $version = 'v1', bool $abort = true)
246
+    function bdServiceInterfaceClass(string $className, string $version = 'v1', bool $abort = TRUE)
247 247
     {
248 248
         return bdInterfaceClass($className.'Service', $version, $abort);
249 249
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      * @param string $version   = 'v1'
256 256
      * @param bool   $abort     = true
257 257
      */
258
-    function bdServiceClass(string $className, string $version = 'v1', bool $abort = true)
258
+    function bdServiceClass(string $className, string $version = 'v1', bool $abort = TRUE)
259 259
     {
260 260
         return bdClassExists(config('bludata.generator.paths.services'), $className.'Service', $version, $abort);
261 261
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @param string $version   = 'v1'
268 268
      * @param bool   $abort     = true
269 269
      */
270
-    function bdService(string $className, string $version = 'v1', bool $abort = true)
270
+    function bdService(string $className, string $version = 'v1', bool $abort = TRUE)
271 271
     {
272 272
         return app(bdServiceInterfaceClass($className, $version, $abort));
273 273
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      * @param string $version   = 'v1'
280 280
      * @param bool   $abort     = true
281 281
      */
282
-    function bdEntityClass(string $className, string $version = 'v1', bool $abort = true)
282
+    function bdEntityClass(string $className, string $version = 'v1', bool $abort = TRUE)
283 283
     {
284 284
         return bdClassExists(config('bludata.generator.paths.entities'), $className, $version, $abort);
285 285
     }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      * @param string $version   = 'v1'
292 292
      * @param bool   $abort     = true
293 293
      */
294
-    function bdEntity(string $className, string $version = 'v1', bool $abort = true)
294
+    function bdEntity(string $className, string $version = 'v1', bool $abort = TRUE)
295 295
     {
296 296
         return app(bdEntityClass($className, $version, $abort));
297 297
     }
Please login to merge, or discard this patch.
Bludata/Framework/Laravel/Application/BaseApplication.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,21 +8,21 @@
 block discarded – undo
8 8
 
9 9
 class BaseApplication extends Application
10 10
 {
11
-    public function publicRoutes(string $uri, string $controller, Closure $routes = null, array $options = [])
11
+    public function publicRoutes(string $uri, string $controller, Closure $routes = NULL, array $options = [])
12 12
     {
13 13
         $options['only'] = $options['only'] ?? ['index', 'show', 'destroyed'];
14 14
 
15 15
         return $this->resourceRoutes($uri, $controller, $routes, $options);
16 16
     }
17 17
 
18
-    public function routesWithPermission(string $uri, string $controller, Closure $routes = null, array $options = [])
18
+    public function routesWithPermission(string $uri, string $controller, Closure $routes = NULL, array $options = [])
19 19
     {
20 20
         $options['only'] = $options['only'] ?? ['store', 'update', 'destroyed', 'restoreDestroyed'];
21 21
 
22 22
         return $this->resourceRoutes($uri, $controller, $routes, $options);
23 23
     }
24 24
 
25
-    public function resourceRoutes(string $uri, string $controller, Closure $routes = null, array $options = [])
25
+    public function resourceRoutes(string $uri, string $controller, Closure $routes = NULL, array $options = [])
26 26
     {
27 27
         $options['name'] = $options['name'] ?? $uri;
28 28
         $options['only'] = $options['only'] ?? [];
Please login to merge, or discard this patch.