Completed
Push — master ( 74e291...f48cd5 )
by Aivis
12s
created
src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 */
23 23
 	public function boot()
24 24
 	{
25
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
25
+        $configPath = __DIR__.'/../../config/understand-laravel.php';
26 26
         $this->publishes([$configPath => config_path('understand-laravel.php')], 'config');
27 27
 
28 28
         if ($this->app['config']->get('understand-laravel.log_types.eloquent_log.enabled'))
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     protected function registerConfig()
61 61
     {
62
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
62
+        $configPath = __DIR__.'/../../config/understand-laravel.php';
63 63
         $this->mergeConfigFrom($configPath, 'understand-laravel');
64 64
     }
65 65
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             return new Handlers\LaravelQueueHandler($inputToken, $apiUrl, $silent, $sslBundlePath);
196 196
         }
197 197
 
198
-        throw new \ErrorException('understand-laravel handler misconfiguration:' . $handlerType);
198
+        throw new \ErrorException('understand-laravel handler misconfiguration:'.$handlerType);
199 199
     }
200 200
 
201 201
     /**
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
         else
272 272
         {
273
-            $log = (array)$message;
273
+            $log = (array) $message;
274 274
             $log['tags'] = ['laravel_log'];
275 275
         }
276 276
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -228,8 +228,7 @@  discard block
 block discarded – undo
228 228
             {
229 229
                 $this->handleEvent($level, $message, $context);
230 230
             });
231
-        }
232
-        else
231
+        } else
233 232
         {
234 233
             // starting from L5.4 MessageLogged event class was introduced
235 234
             // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072
@@ -256,8 +255,7 @@  discard block
 block discarded – undo
256 255
         if ($message instanceof Exceptions\HandlerException)
257 256
         {
258 257
             return;
259
-        }
260
-        else if ($message instanceof \Exception)
258
+        } else if ($message instanceof \Exception)
261 259
         {
262 260
             $log = $this->app['understand.exception-encoder']->exceptionToArray($message);
263 261
             $log['tags'] = ['exception_log'];
@@ -267,8 +265,7 @@  discard block
 block discarded – undo
267 265
         {
268 266
             $log['message'] = $message;
269 267
             $log['tags'] = ['laravel_log'];
270
-        }
271
-        else
268
+        } else
272 269
         {
273 270
             $log = (array)$message;
274 271
             $log['tags'] = ['laravel_log'];
Please login to merge, or discard this patch.
src/Understand/UnderstandLaravel5/Logger.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function formatMessage($message)
112 112
     {
113
-        if ( ! is_bool($message))
113
+        if (!is_bool($message))
114 114
         {
115
-            return (string)$message;
115
+            return (string) $message;
116 116
         }
117 117
         
118 118
         // cast boolean values to "1" or "0" strings
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         }
159 159
         catch (\Exception $ex)
160 160
         {
161
-            if (! $this->silent)
161
+            if (!$this->silent)
162 162
             {
163 163
                 throw new $ex;
164 164
             }
Please login to merge, or discard this patch.