@@ -16,7 +16,7 @@ |
||
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'); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * |
6 | 6 | * @author Taylor Otwell <[email protected]> |
7 | 7 | */ |
8 | -define('LARAVEL_START', microtime(true)); |
|
8 | +define('LARAVEL_START', microtime(TRUE)); |
|
9 | 9 | |
10 | 10 | /* |
11 | 11 | |-------------------------------------------------------------------------- |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | 'lifetime' => 120, |
33 | 33 | |
34 | - 'expire_on_close' => false, |
|
34 | + 'expire_on_close' => FALSE, |
|
35 | 35 | |
36 | 36 | /* |
37 | 37 | |-------------------------------------------------------------------------- |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | | |
45 | 45 | */ |
46 | 46 | |
47 | - 'encrypt' => false, |
|
47 | + 'encrypt' => FALSE, |
|
48 | 48 | |
49 | 49 | /* |
50 | 50 | |-------------------------------------------------------------------------- |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | | |
71 | 71 | */ |
72 | 72 | |
73 | - 'connection' => null, |
|
73 | + 'connection' => NULL, |
|
74 | 74 | |
75 | 75 | /* |
76 | 76 | |-------------------------------------------------------------------------- |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | | |
97 | 97 | */ |
98 | 98 | |
99 | - 'store' => null, |
|
99 | + 'store' => NULL, |
|
100 | 100 | |
101 | 101 | /* |
102 | 102 | |-------------------------------------------------------------------------- |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | | |
152 | 152 | */ |
153 | 153 | |
154 | - 'domain' => env('SESSION_DOMAIN', null), |
|
154 | + 'domain' => env('SESSION_DOMAIN', NULL), |
|
155 | 155 | |
156 | 156 | /* |
157 | 157 | |-------------------------------------------------------------------------- |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | | |
165 | 165 | */ |
166 | 166 | |
167 | - 'secure' => env('SESSION_SECURE_COOKIE', false), |
|
167 | + 'secure' => env('SESSION_SECURE_COOKIE', FALSE), |
|
168 | 168 | |
169 | 169 | /* |
170 | 170 | |-------------------------------------------------------------------------- |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | | |
178 | 178 | */ |
179 | 179 | |
180 | - 'http_only' => true, |
|
180 | + 'http_only' => TRUE, |
|
181 | 181 | |
182 | 182 | /* |
183 | 183 | |-------------------------------------------------------------------------- |
@@ -192,6 +192,6 @@ discard block |
||
192 | 192 | | |
193 | 193 | */ |
194 | 194 | |
195 | - 'same_site' => null, |
|
195 | + 'same_site' => NULL, |
|
196 | 196 | |
197 | 197 | ]; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | 'database' => [ |
42 | 42 | 'driver' => 'database', |
43 | 43 | 'table' => 'cache', |
44 | - 'connection' => null, |
|
44 | + 'connection' => NULL, |
|
45 | 45 | ], |
46 | 46 | |
47 | 47 | 'file' => [ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | | |
40 | 40 | */ |
41 | 41 | |
42 | - 'debug' => env('APP_DEBUG', false), |
|
42 | + 'debug' => env('APP_DEBUG', FALSE), |
|
43 | 43 | |
44 | 44 | /* |
45 | 45 | |-------------------------------------------------------------------------- |
@@ -50,8 +50,8 @@ discard block |
||
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 |
||
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 | ], |
@@ -24,9 +24,9 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -8,21 +8,21 @@ |
||
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'] ?? []; |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | ], |
32 | 32 | 'repository' => Doctrine\ORM\EntityRepository::class, |
33 | 33 | 'proxies' => [ |
34 | - 'namespace' => false, |
|
34 | + 'namespace' => FALSE, |
|
35 | 35 | 'path' => storage_path('proxies'), |
36 | - 'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', false), |
|
36 | + 'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', FALSE), |
|
37 | 37 | ], |
38 | 38 | /* |
39 | 39 | |-------------------------------------------------------------------------- |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | | - LaravelDoctrine\ORM\Loggers\FileLogger |
149 | 149 | |-------------------------------------------------------------------------- |
150 | 150 | */ |
151 | - 'logger' => env('DOCTRINE_LOGGER', false), |
|
151 | + 'logger' => env('DOCTRINE_LOGGER', FALSE), |
|
152 | 152 | /* |
153 | 153 | |-------------------------------------------------------------------------- |
154 | 154 | | Cache |
@@ -161,20 +161,20 @@ discard block |
||
161 | 161 | | |
162 | 162 | */ |
163 | 163 | 'cache' => [ |
164 | - 'second_level' => false, |
|
164 | + 'second_level' => FALSE, |
|
165 | 165 | 'default' => env('DOCTRINE_CACHE', 'array'), |
166 | - 'namespace' => null, |
|
166 | + 'namespace' => NULL, |
|
167 | 167 | 'metadata' => [ |
168 | 168 | 'driver' => env('DOCTRINE_METADATA_CACHE', env('DOCTRINE_CACHE', 'array')), |
169 | - 'namespace' => null, |
|
169 | + 'namespace' => NULL, |
|
170 | 170 | ], |
171 | 171 | 'query' => [ |
172 | 172 | 'driver' => env('DOCTRINE_QUERY_CACHE', env('DOCTRINE_CACHE', 'array')), |
173 | - 'namespace' => null, |
|
173 | + 'namespace' => NULL, |
|
174 | 174 | ], |
175 | 175 | 'result' => [ |
176 | 176 | 'driver' => env('DOCTRINE_RESULT_CACHE', env('DOCTRINE_CACHE', 'array')), |
177 | - 'namespace' => null, |
|
177 | + 'namespace' => NULL, |
|
178 | 178 | ], |
179 | 179 | ], |
180 | 180 | /* |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | | |
189 | 189 | */ |
190 | 190 | 'gedmo' => [ |
191 | - 'all_mappings' => false, |
|
191 | + 'all_mappings' => FALSE, |
|
192 | 192 | ], |
193 | 193 | /* |
194 | 194 | |-------------------------------------------------------------------------- |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | | Enables the Doctrine Presence Verifier for Validation |
199 | 199 | | |
200 | 200 | */ |
201 | - 'doctrine_presence_verifier' => true, |
|
201 | + 'doctrine_presence_verifier' => TRUE, |
|
202 | 202 | |
203 | 203 | /* |
204 | 204 | |-------------------------------------------------------------------------- |