@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function stackTraceCallToString(array $trace) |
91 | 91 | { |
92 | - if (! isset($trace['type'])) |
|
92 | + if (!isset($trace['type'])) |
|
93 | 93 | { |
94 | 94 | return 'function'; |
95 | 95 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $params = []; |
117 | 117 | |
118 | - if (! isset($trace['args'])) |
|
118 | + if (!isset($trace['args'])) |
|
119 | 119 | { |
120 | 120 | return $params; |
121 | 121 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | return; |
58 | 58 | } |
59 | 59 | |
60 | - if ( ! $this->config->get('understand-laravel.log_types.exception_log.enabled')) |
|
60 | + if (!$this->config->get('understand-laravel.log_types.exception_log.enabled')) |
|
61 | 61 | { |
62 | 62 | return; |
63 | 63 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | } |
20 | 20 | catch (\Exception $ex) |
21 | 21 | { |
22 | - if ( ! $this->silent) |
|
22 | + if (!$this->silent) |
|
23 | 23 | { |
24 | 24 | throw new \Understand\UnderstandLaravel5\Exceptions\HandlerException($ex->getMessage(), $ex->getCode(), $ex); |
25 | 25 | } |
@@ -6,20 +6,20 @@ discard block |
||
6 | 6 | class UnderstandLaravel5ServiceProvider extends ServiceProvider |
7 | 7 | { |
8 | 8 | |
9 | - /** |
|
10 | - * Indicates if loading of the provider is deferred. |
|
11 | - * |
|
12 | - * @var bool |
|
13 | - */ |
|
14 | - protected $defer = false; |
|
15 | - |
|
16 | - /** |
|
17 | - * Bootstrap the application events. |
|
18 | - * |
|
19 | - * @return void |
|
20 | - */ |
|
21 | - public function boot() |
|
22 | - { |
|
9 | + /** |
|
10 | + * Indicates if loading of the provider is deferred. |
|
11 | + * |
|
12 | + * @var bool |
|
13 | + */ |
|
14 | + protected $defer = false; |
|
15 | + |
|
16 | + /** |
|
17 | + * Bootstrap the application events. |
|
18 | + * |
|
19 | + * @return void |
|
20 | + */ |
|
21 | + public function boot() |
|
22 | + { |
|
23 | 23 | $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
24 | 24 | $this->publishes([$configPath => config_path('understand-laravel.php')], 'config'); |
25 | 25 | |
@@ -32,23 +32,23 @@ discard block |
||
32 | 32 | { |
33 | 33 | $this->listenLaravelEvents(); |
34 | 34 | } |
35 | - } |
|
36 | - |
|
37 | - /** |
|
38 | - * Register the service provider. |
|
39 | - * |
|
40 | - * @return void |
|
41 | - */ |
|
42 | - public function register() |
|
43 | - { |
|
44 | - $this->registerConfig(); |
|
35 | + } |
|
36 | + |
|
37 | + /** |
|
38 | + * Register the service provider. |
|
39 | + * |
|
40 | + * @return void |
|
41 | + */ |
|
42 | + public function register() |
|
43 | + { |
|
44 | + $this->registerConfig(); |
|
45 | 45 | $this->registerFieldProvider(); |
46 | 46 | $this->registerTokenProvider(); |
47 | 47 | $this->registerLogger(); |
48 | 48 | $this->registerModelEventListenerProvider(); |
49 | 49 | $this->registerExceptionEncoder(); |
50 | 50 | $this->registerExceptionLogger(); |
51 | - } |
|
51 | + } |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Register config |
@@ -226,7 +226,7 @@ |
||
226 | 226 | { |
227 | 227 | $url = $this->request->path(); |
228 | 228 | |
229 | - if ( ! starts_with($url, '/')) |
|
229 | + if (!starts_with($url, '/')) |
|
230 | 230 | { |
231 | 231 | $url = '/' . $url; |
232 | 232 | } |
@@ -128,7 +128,7 @@ |
||
128 | 128 | } |
129 | 129 | catch (\Exception $ex) |
130 | 130 | { |
131 | - if (! $this->silent) |
|
131 | + if (!$this->silent) |
|
132 | 132 | { |
133 | 133 | throw new $ex; |
134 | 134 | } |