Completed
Push — master ( 46c45d...1f3eb2 )
by Aivis
14s
created
src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	public function boot()
25 25
 	{
26
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
26
+        $configPath = __DIR__.'/../../config/understand-laravel.php';
27 27
         $this->publishes([$configPath => config_path('understand-laravel.php')], 'config');
28 28
 
29 29
         if ($this->app['config']->get('understand-laravel.log_types.eloquent_log.enabled'))
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function registerConfig()
62 62
     {
63
-        $configPath = __DIR__ . '/../../config/understand-laravel.php';
63
+        $configPath = __DIR__.'/../../config/understand-laravel.php';
64 64
         $this->mergeConfigFrom($configPath, 'understand-laravel');
65 65
     }
66 66
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             return new Handlers\LaravelQueueHandler($inputToken, $apiUrl, $silent, $sslBundlePath);
197 197
         }
198 198
 
199
-        throw new \ErrorException('understand-laravel handler misconfiguration:' . $handlerType);
199
+        throw new \ErrorException('understand-laravel handler misconfiguration:'.$handlerType);
200 200
     }
201 201
 
202 202
     /**
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         }
283 283
         else
284 284
         {
285
-            $log = (array)$message;
285
+            $log = (array) $message;
286 286
             $log['tags'] = ['laravel_log'];
287 287
         }
288 288
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             {
320 320
                 $this->app['events']->listen($listenerName, function($model) use($modelLogger, $eventName)
321 321
                 {
322
-                    $modelLevelEventName = 'eloquent.' . $eventName . ': ' . get_class($model);
322
+                    $modelLevelEventName = 'eloquent.'.$eventName.': '.get_class($model);
323 323
                     
324 324
                     $modelLogger->logModelEvent($eventName, $model, $modelLevelEventName);
325 325
                 });
Please login to merge, or discard this patch.
src/Understand/UnderstandLaravel5/ModelEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public function logModelEvent($eventName, Model $model, $modelLevelEventName = null)
43 43
     {
44 44
         $log = [
45
-            'message' => is_null($modelLevelEventName) ? null : (string)$modelLevelEventName,
45
+            'message' => is_null($modelLevelEventName) ? null : (string) $modelLevelEventName,
46 46
             'id' => (int) $model->id,
47 47
             'model_event' => $eventName,
48 48
             'model_name' => get_class($model),
Please login to merge, or discard this patch.