@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | - * @param $relativePath |
|
160 | + * @param string|null $relativePath |
|
161 | 161 | * @param $line |
162 | 162 | * @param int $linesAround |
163 | 163 | * @return array|void |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * Return stack trace file |
218 | 218 | * |
219 | 219 | * @param array $trace |
220 | - * @return mixed |
|
220 | + * @return string|null |
|
221 | 221 | */ |
222 | 222 | protected function getStackTraceFile(array $trace) |
223 | 223 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function exceptionToArray($exception) |
31 | 31 | { |
32 | - if ( ! ($exception instanceof Exception || $exception instanceof Throwable)) |
|
32 | + if (!($exception instanceof Exception || $exception instanceof Throwable)) |
|
33 | 33 | { |
34 | 34 | throw new InvalidArgumentException('$exception must be instance of Exception or Throwable'); |
35 | 35 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $stackTrace = $this->getCurrentStackTrace($level); |
59 | 59 | $firstLineSet = false; |
60 | 60 | |
61 | - foreach($stackTrace as $trace) |
|
61 | + foreach ($stackTrace as $trace) |
|
62 | 62 | { |
63 | 63 | if ($firstLineSet) |
64 | 64 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $stackTrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 100); |
86 | 86 | $vendorExcluded = false; |
87 | 87 | |
88 | - foreach($stackTrace as $index => $trace) |
|
88 | + foreach ($stackTrace as $index => $trace) |
|
89 | 89 | { |
90 | 90 | // exclude Understand service provider and helper classes |
91 | 91 | if (isset($trace['class']) && strpos($trace['class'], 'Understand\UnderstandLaravel5\\') === 0) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | unset($stackTrace[$index]); |
94 | 94 | } |
95 | 95 | |
96 | - if ( ! isset($trace['file'])) |
|
96 | + if (!isset($trace['file'])) |
|
97 | 97 | { |
98 | 98 | $vendorExcluded = true; |
99 | 99 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | // exclude `vendor` folder until project path reached |
107 | - if (strpos($trace['file'], $this->projectRoot . 'vendor' . DIRECTORY_SEPARATOR) === 0) |
|
107 | + if (strpos($trace['file'], $this->projectRoot.'vendor'.DIRECTORY_SEPARATOR) === 0) |
|
108 | 108 | { |
109 | 109 | unset($stackTrace[$index]); |
110 | 110 | } |
@@ -164,12 +164,12 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function getCode($relativePath, $line, $linesAround = 6) |
166 | 166 | { |
167 | - if ( ! $relativePath || ! $line) |
|
167 | + if (!$relativePath || !$line) |
|
168 | 168 | { |
169 | 169 | return; |
170 | 170 | } |
171 | 171 | |
172 | - $filePath = $this->projectRoot . $relativePath; |
|
172 | + $filePath = $this->projectRoot.$relativePath; |
|
173 | 173 | |
174 | 174 | try |
175 | 175 | { |
@@ -179,11 +179,11 @@ discard block |
||
179 | 179 | $codeLines = []; |
180 | 180 | |
181 | 181 | $from = max(0, $line - $linesAround - 2); |
182 | - $to = min($line + $linesAround -1, $file->key() + 1); |
|
182 | + $to = min($line + $linesAround - 1, $file->key() + 1); |
|
183 | 183 | |
184 | 184 | $file->seek($from); |
185 | 185 | |
186 | - while ($file->key() < $to && ! $file->eof()) |
|
186 | + while ($file->key() < $to && !$file->eof()) |
|
187 | 187 | { |
188 | 188 | $file->next(); |
189 | 189 | // `key()` returns 0 as the first line |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | */ |
236 | 236 | protected function stackTraceCallToString(array $trace) |
237 | 237 | { |
238 | - if (! isset($trace['type'])) |
|
238 | + if (!isset($trace['type'])) |
|
239 | 239 | { |
240 | 240 | return 'function'; |
241 | 241 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | { |
262 | 262 | $params = []; |
263 | 263 | |
264 | - if (! isset($trace['args'])) |
|
264 | + if (!isset($trace['args'])) |
|
265 | 265 | { |
266 | 266 | return $params; |
267 | 267 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | { |
271 | 271 | if (is_array($arg)) |
272 | 272 | { |
273 | - $params[] = 'array(' . count($arg) . ')'; |
|
273 | + $params[] = 'array('.count($arg).')'; |
|
274 | 274 | } |
275 | 275 | else if (is_object($arg)) |
276 | 276 | { |
@@ -278,19 +278,19 @@ discard block |
||
278 | 278 | } |
279 | 279 | else if (is_string($arg)) |
280 | 280 | { |
281 | - $params[] = 'string(' . $arg . ')'; |
|
281 | + $params[] = 'string('.$arg.')'; |
|
282 | 282 | } |
283 | 283 | else if (is_int($arg)) |
284 | 284 | { |
285 | - $params[] = 'int(' . $arg . ')'; |
|
285 | + $params[] = 'int('.$arg.')'; |
|
286 | 286 | } |
287 | 287 | else if (is_float($arg)) |
288 | 288 | { |
289 | - $params[] = 'float(' . $arg . ')'; |
|
289 | + $params[] = 'float('.$arg.')'; |
|
290 | 290 | } |
291 | 291 | else if (is_bool($arg)) |
292 | 292 | { |
293 | - $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
|
293 | + $params[] = 'bool('.($arg ? 'true' : 'false').')'; |
|
294 | 294 | } |
295 | 295 | else if ($arg instanceof \__PHP_Incomplete_Class) |
296 | 296 | { |
@@ -107,8 +107,7 @@ discard block |
||
107 | 107 | if (strpos($trace['file'], $this->projectRoot . 'vendor' . DIRECTORY_SEPARATOR) === 0) |
108 | 108 | { |
109 | 109 | unset($stackTrace[$index]); |
110 | - } |
|
111 | - else |
|
110 | + } else |
|
112 | 111 | { |
113 | 112 | $vendorExcluded = true; |
114 | 113 | } |
@@ -194,8 +193,7 @@ discard block |
||
194 | 193 | } |
195 | 194 | |
196 | 195 | return $codeLines; |
197 | - } |
|
198 | - catch (\Exception $e) |
|
196 | + } catch (\Exception $e) |
|
199 | 197 | {} |
200 | 198 | } |
201 | 199 | |
@@ -271,32 +269,25 @@ discard block |
||
271 | 269 | if (is_array($arg)) |
272 | 270 | { |
273 | 271 | $params[] = 'array(' . count($arg) . ')'; |
274 | - } |
|
275 | - else if (is_object($arg)) |
|
272 | + } else if (is_object($arg)) |
|
276 | 273 | { |
277 | 274 | $params[] = get_class($arg); |
278 | - } |
|
279 | - else if (is_string($arg)) |
|
275 | + } else if (is_string($arg)) |
|
280 | 276 | { |
281 | 277 | $params[] = 'string(' . $arg . ')'; |
282 | - } |
|
283 | - else if (is_int($arg)) |
|
278 | + } else if (is_int($arg)) |
|
284 | 279 | { |
285 | 280 | $params[] = 'int(' . $arg . ')'; |
286 | - } |
|
287 | - else if (is_float($arg)) |
|
281 | + } else if (is_float($arg)) |
|
288 | 282 | { |
289 | 283 | $params[] = 'float(' . $arg . ')'; |
290 | - } |
|
291 | - else if (is_bool($arg)) |
|
284 | + } else if (is_bool($arg)) |
|
292 | 285 | { |
293 | 286 | $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
294 | - } |
|
295 | - else if ($arg instanceof \__PHP_Incomplete_Class) |
|
287 | + } else if ($arg instanceof \__PHP_Incomplete_Class) |
|
296 | 288 | { |
297 | 289 | $params[] = 'object(__PHP_Incomplete_Class)'; |
298 | - } |
|
299 | - else |
|
290 | + } else |
|
300 | 291 | { |
301 | 292 | $params[] = gettype($arg); |
302 | 293 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | protected $app; |
88 | 88 | |
89 | 89 | /** |
90 | - * @return void |
|
90 | + * @return Application |
|
91 | 91 | */ |
92 | 92 | public function __construct() |
93 | 93 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Set session store |
110 | 110 | * |
111 | - * @param type $service |
|
111 | + * @param SessionStore $service |
|
112 | 112 | */ |
113 | 113 | public function setSessionStore(SessionStore $service) |
114 | 114 | { |
@@ -157,7 +157,6 @@ discard block |
||
157 | 157 | * Register a custom HTML macro. |
158 | 158 | * |
159 | 159 | * @param string $name |
160 | - * @param mixed $macro |
|
161 | 160 | * @return void |
162 | 161 | */ |
163 | 162 | public function extend($name, $provider) |
@@ -168,7 +167,7 @@ discard block |
||
168 | 167 | /** |
169 | 168 | * Set token provider |
170 | 169 | * |
171 | - * @param UniqueProcessIdentifier $tokenProvider |
|
170 | + * @param TokenProvider $tokenProvider |
|
172 | 171 | */ |
173 | 172 | public function setTokenProvider(TokenProvider $tokenProvider) |
174 | 173 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | */ |
231 | 231 | protected function getSessionId() |
232 | 232 | { |
233 | - if ( ! $this->session) |
|
233 | + if (!$this->session) |
|
234 | 234 | { |
235 | 235 | return null; |
236 | 236 | } |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | */ |
270 | 270 | protected function getRouteName() |
271 | 271 | { |
272 | - if ( ! $this->router) |
|
272 | + if (!$this->router) |
|
273 | 273 | { |
274 | 274 | return null; |
275 | 275 | } |
@@ -284,23 +284,23 @@ discard block |
||
284 | 284 | */ |
285 | 285 | protected function getUrl() |
286 | 286 | { |
287 | - if ( ! $this->request) |
|
287 | + if (!$this->request) |
|
288 | 288 | { |
289 | 289 | return null; |
290 | 290 | } |
291 | 291 | |
292 | 292 | $url = $this->request->path(); |
293 | 293 | |
294 | - if ( ! starts_with($url, '/')) |
|
294 | + if (!starts_with($url, '/')) |
|
295 | 295 | { |
296 | - $url = '/' . $url; |
|
296 | + $url = '/'.$url; |
|
297 | 297 | } |
298 | 298 | |
299 | 299 | $queryString = $this->request->getQueryString(); |
300 | 300 | |
301 | 301 | if ($queryString) |
302 | 302 | { |
303 | - $url .= '?' . $queryString; |
|
303 | + $url .= '?'.$queryString; |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | return $url; |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | */ |
314 | 314 | protected function getRequestMethod() |
315 | 315 | { |
316 | - if ( ! $this->request) |
|
316 | + if (!$this->request) |
|
317 | 317 | { |
318 | 318 | return null; |
319 | 319 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | */ |
329 | 329 | protected function getServerIp() |
330 | 330 | { |
331 | - if ( ! $this->request) |
|
331 | + if (!$this->request) |
|
332 | 332 | { |
333 | 333 | return null; |
334 | 334 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | protected function getClientIp() |
345 | 345 | { |
346 | - if ( ! $this->request) |
|
346 | + if (!$this->request) |
|
347 | 347 | { |
348 | 348 | return null; |
349 | 349 | } |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | protected function getClientUserAgent() |
360 | 360 | { |
361 | - if ( ! $this->request) |
|
361 | + if (!$this->request) |
|
362 | 362 | { |
363 | 363 | return null; |
364 | 364 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | */ |
385 | 385 | protected function getFromSession($key) |
386 | 386 | { |
387 | - if ( ! $this->session) |
|
387 | + if (!$this->session) |
|
388 | 388 | { |
389 | 389 | return null; |
390 | 390 | } |
@@ -402,9 +402,9 @@ discard block |
||
402 | 402 | { |
403 | 403 | $parts = []; |
404 | 404 | |
405 | - foreach(['class', 'file', 'line'] as $field) |
|
405 | + foreach (['class', 'file', 'line'] as $field) |
|
406 | 406 | { |
407 | - $parts[] = isset($log[$field]) ? (string)$log[$field] : null; |
|
407 | + $parts[] = isset($log[$field]) ? (string) $log[$field] : null; |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | return sha1(implode('#', $parts)); |
@@ -423,8 +423,7 @@ discard block |
||
423 | 423 | { |
424 | 424 | return $userId; |
425 | 425 | } |
426 | - } |
|
427 | - catch (\Exception $e) |
|
426 | + } catch (\Exception $e) |
|
428 | 427 | {} |
429 | 428 | |
430 | 429 | try |
@@ -433,8 +432,7 @@ discard block |
||
433 | 432 | { |
434 | 433 | return $user->id; |
435 | 434 | } |
436 | - } |
|
437 | - catch (\Exception $e) |
|
435 | + } catch (\Exception $e) |
|
438 | 436 | {} |
439 | 437 | |
440 | 438 | try |
@@ -443,8 +441,7 @@ discard block |
||
443 | 441 | { |
444 | 442 | return $user->id; |
445 | 443 | } |
446 | - } |
|
447 | - catch (\Exception $e) |
|
444 | + } catch (\Exception $e) |
|
448 | 445 | {} |
449 | 446 | } |
450 | 447 |
@@ -28,7 +28,6 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * @param FieldProvider $fieldProvider |
30 | 30 | * @param BaseHandler $handler |
31 | - * @param bool $silent |
|
32 | 31 | */ |
33 | 32 | public function __construct(FieldProvider $fieldProvider, BaseHandler $handler) |
34 | 33 | { |
@@ -144,7 +143,6 @@ discard block |
||
144 | 143 | /** |
145 | 144 | * Send data to storage |
146 | 145 | * |
147 | - * @param array $requestData |
|
148 | 146 | * @return mixed |
149 | 147 | */ |
150 | 148 | protected function send(array $event) |
@@ -107,9 +107,9 @@ |
||
107 | 107 | */ |
108 | 108 | protected function formatMessage($message) |
109 | 109 | { |
110 | - if ( ! is_bool($message)) |
|
110 | + if (!is_bool($message)) |
|
111 | 111 | { |
112 | - return (string)$message; |
|
112 | + return (string) $message; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | // cast boolean values to "1" or "0" strings |
@@ -152,8 +152,7 @@ |
||
152 | 152 | try |
153 | 153 | { |
154 | 154 | return $this->handler->handle($event); |
155 | - } |
|
156 | - catch (\Exception $ex) |
|
155 | + } catch (\Exception $ex) |
|
157 | 156 | { |
158 | 157 | return false; |
159 | 158 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function log($error) |
57 | 57 | { |
58 | - if ( ! $this->canHandle($error)) |
|
58 | + if (!$this->canHandle($error)) |
|
59 | 59 | { |
60 | 60 | return; |
61 | 61 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function logError($level, $message, $context) |
75 | 75 | { |
76 | - if ( ! $this->canHandle($message)) |
|
76 | + if (!$this->canHandle($message)) |
|
77 | 77 | { |
78 | 78 | return; |
79 | 79 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | else |
95 | 95 | { |
96 | - $log = (array)$message; |
|
96 | + $log = (array) $message; |
|
97 | 97 | $log = $this->encoder->setCurrentStackTrace($log); |
98 | 98 | } |
99 | 99 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | if ($context) |
103 | 103 | { |
104 | - $log['context'] = (array)$context; |
|
104 | + $log['context'] = (array) $context; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | return $this->dispatch($log); |
@@ -150,6 +150,6 @@ discard block |
||
150 | 150 | */ |
151 | 151 | protected function canHandle($error) |
152 | 152 | { |
153 | - return (bool)$this->config->get('understand-laravel.enabled'); |
|
153 | + return (bool) $this->config->get('understand-laravel.enabled'); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | \ No newline at end of file |
@@ -90,8 +90,7 @@ |
||
90 | 90 | ]; |
91 | 91 | |
92 | 92 | $log = $this->encoder->setCurrentStackTrace($log); |
93 | - } |
|
94 | - else |
|
93 | + } else |
|
95 | 94 | { |
96 | 95 | $log = (array)$message; |
97 | 96 | $log = $this->encoder->setCurrentStackTrace($log); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | else |
50 | 50 | { |
51 | - $log = (array)$message; |
|
51 | + $log = (array) $message; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | $log['tags'] = ['laravel_log']; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | if ($context) |
58 | 58 | { |
59 | - $log['context'] = (array)$context; |
|
59 | + $log['context'] = (array) $context; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | $additionalFields = $this->getMetaFields(); |
@@ -45,8 +45,7 @@ |
||
45 | 45 | $log = [ |
46 | 46 | 'message' => $message |
47 | 47 | ]; |
48 | - } |
|
49 | - else |
|
48 | + } else |
|
50 | 49 | { |
51 | 50 | $log = (array)$message; |
52 | 51 | } |
@@ -10,20 +10,20 @@ discard block |
||
10 | 10 | class UnderstandLaravel5ServiceProvider extends ServiceProvider |
11 | 11 | { |
12 | 12 | |
13 | - /** |
|
14 | - * Indicates if loading of the provider is deferred. |
|
15 | - * |
|
16 | - * @var bool |
|
17 | - */ |
|
18 | - protected $defer = false; |
|
13 | + /** |
|
14 | + * Indicates if loading of the provider is deferred. |
|
15 | + * |
|
16 | + * @var bool |
|
17 | + */ |
|
18 | + protected $defer = false; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Bootstrap the application events. |
|
22 | - * |
|
23 | - * @return void |
|
24 | - */ |
|
25 | - public function boot() |
|
26 | - { |
|
20 | + /** |
|
21 | + * Bootstrap the application events. |
|
22 | + * |
|
23 | + * @return void |
|
24 | + */ |
|
25 | + public function boot() |
|
26 | + { |
|
27 | 27 | $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
28 | 28 | $this->publishes([$configPath => config_path('understand-laravel.php')], 'config'); |
29 | 29 | $enabled = $this->app['config']->get('understand-laravel.enabled'); |
@@ -37,23 +37,23 @@ discard block |
||
37 | 37 | { |
38 | 38 | $this->listenQueryEvents(); |
39 | 39 | } |
40 | - } |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Register the service provider. |
|
44 | - * |
|
45 | - * @return void |
|
46 | - */ |
|
47 | - public function register() |
|
48 | - { |
|
49 | - $this->registerConfig(); |
|
42 | + /** |
|
43 | + * Register the service provider. |
|
44 | + * |
|
45 | + * @return void |
|
46 | + */ |
|
47 | + public function register() |
|
48 | + { |
|
49 | + $this->registerConfig(); |
|
50 | 50 | $this->registerFieldProvider(); |
51 | 51 | $this->registerDataCollector(); |
52 | 52 | $this->registerTokenProvider(); |
53 | 53 | $this->registerLogger(); |
54 | 54 | $this->registerExceptionEncoder(); |
55 | 55 | $this->registerEventLoggers(); |
56 | - } |
|
56 | + } |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Register config |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function boot() |
26 | 26 | { |
27 | - $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
|
27 | + $configPath = __DIR__.'/../../config/understand-laravel.php'; |
|
28 | 28 | $this->publishes([$configPath => config_path('understand-laravel.php')], 'config'); |
29 | 29 | $enabled = $this->app['config']->get('understand-laravel.enabled'); |
30 | 30 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function registerConfig() |
64 | 64 | { |
65 | - $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
|
65 | + $configPath = __DIR__.'/../../config/understand-laravel.php'; |
|
66 | 66 | $this->mergeConfigFrom($configPath, 'understand-laravel'); |
67 | 67 | } |
68 | 68 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return new Handlers\SyncHandler($inputToken, $apiUrl, $sslBundlePath); |
210 | 210 | } |
211 | 211 | |
212 | - throw new \ErrorException('understand-laravel handler misconfiguration:' . $handlerType); |
|
212 | + throw new \ErrorException('understand-laravel handler misconfiguration:'.$handlerType); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | protected function handleEvent($level, $message, $context) |
294 | 294 | { |
295 | 295 | // `\Log::info`, `\Log::debug` and NOT `\Exception` or `\Throwable` |
296 | - if (in_array($level, ['info', 'debug']) && ! ($message instanceof Exception || $message instanceof Throwable)) |
|
296 | + if (in_array($level, ['info', 'debug']) && !($message instanceof Exception || $message instanceof Throwable)) |
|
297 | 297 | { |
298 | 298 | $this->app['understand.eventLogger']->logEvent($level, $message, $context); |
299 | 299 | } |
@@ -237,8 +237,7 @@ discard block |
||
237 | 237 | { |
238 | 238 | $this->handleEvent($level, $message, $context); |
239 | 239 | }); |
240 | - } |
|
241 | - else |
|
240 | + } else |
|
242 | 241 | { |
243 | 242 | // starting from L5.4 MessageLogged event class was introduced |
244 | 243 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
@@ -268,8 +267,7 @@ discard block |
||
268 | 267 | 'time' => $time, |
269 | 268 | ]); |
270 | 269 | }); |
271 | - } |
|
272 | - else |
|
270 | + } else |
|
273 | 271 | { |
274 | 272 | // https://laravel.com/api/5.3/Illuminate/Database/Events/QueryExecuted.html |
275 | 273 | $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($event) |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Project root folder |
25 | 25 | */ |
26 | - 'project_root' => base_path() . DIRECTORY_SEPARATOR, |
|
26 | + 'project_root' => base_path().DIRECTORY_SEPARATOR, |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Collect SQL queries without bindings |