Completed
Push — master ( bd7bea...541785 )
by Antonio Carlos
02:10 queued 12s
created
src/Vendor/Laravel/ServiceProvider.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function registerTracker()
154 154
     {
155
-        $this->app->singleton('tracker', function ($app) {
155
+        $this->app->singleton('tracker', function($app) {
156 156
             $app['tracker.loaded'] = true;
157 157
 
158 158
             return new Tracker(
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
     public function registerRepositories()
171 171
     {
172
-        $this->app->singleton('tracker.repositories', function ($app) {
172
+        $this->app->singleton('tracker.repositories', function($app) {
173 173
             try {
174 174
                 $uaParser = new UserAgentParser($app->make('path.base'));
175 175
             } catch (\Exception $exception) {
@@ -353,21 +353,21 @@  discard block
 block discarded – undo
353 353
 
354 354
     public function registerAuthentication()
355 355
     {
356
-        $this->app->singleton('tracker.authentication', function ($app) {
356
+        $this->app->singleton('tracker.authentication', function($app) {
357 357
             return new Authentication($app['tracker.config'], $app);
358 358
         });
359 359
     }
360 360
 
361 361
     public function registerCache()
362 362
     {
363
-        $this->app->singleton('tracker.cache', function ($app) {
363
+        $this->app->singleton('tracker.cache', function($app) {
364 364
             return new Cache($app['tracker.config'], $app);
365 365
         });
366 366
     }
367 367
 
368 368
     protected function registerTablesCommand()
369 369
     {
370
-        $this->app->singleton('tracker.tables.command', function ($app) {
370
+        $this->app->singleton('tracker.tables.command', function($app) {
371 371
             return new TablesCommand();
372 372
         });
373 373
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
             'Illuminate\Routing\Events\RouteMatched',
384 384
         ];
385 385
 
386
-        $this->app['events']->listen($mathingEvents, function () use ($me) {
386
+        $this->app['events']->listen($mathingEvents, function() use ($me) {
387 387
             $me->getTracker()->routerMatched($me->getConfig('log_routes'));
388 388
         });
389 389
     }
@@ -434,14 +434,14 @@  discard block
 block discarded – undo
434 434
         $me = $this;
435 435
 
436 436
         if (!class_exists('Illuminate\Database\Events\QueryExecuted')) {
437
-            $this->app['events']->listen('illuminate.query', function ($query,
437
+            $this->app['events']->listen('illuminate.query', function($query,
438 438
                                                                         $bindings,
439 439
                                                                         $time,
440 440
                                                                         $name) use ($me) {
441 441
                 $me->logSqlQuery($query, $bindings, $time, $name);
442 442
             });
443 443
         } else {
444
-            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function ($query) use ($me) {
444
+            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($query) use ($me) {
445 445
                 $me->logSqlQuery($query);
446 446
             });
447 447
         }
@@ -472,11 +472,11 @@  discard block
 block discarded – undo
472 472
     {
473 473
         $me = $this;
474 474
 
475
-        $this->app->singleton('tracker.events', function ($app) {
475
+        $this->app->singleton('tracker.events', function($app) {
476 476
             return new EventStorage();
477 477
         });
478 478
 
479
-        $this->app['events']->listen('*', function ($object = null) use ($me) {
479
+        $this->app['events']->listen('*', function($object = null) use ($me) {
480 480
             if ($me->app['tracker.events']->isOff() || !$me->isFullyBooted()) {
481 481
                 return;
482 482
             }
@@ -528,9 +528,9 @@  discard block
 block discarded – undo
528 528
 
529 529
         $router = $this->app->make('router');
530 530
 
531
-        $router->group(['namespace' => $namespace], function () use ($prefix, $router, $filters) {
532
-            $router->group($filters, function () use ($prefix, $router) {
533
-                $router->group(['prefix' => $prefix], function ($router) {
531
+        $router->group(['namespace' => $namespace], function() use ($prefix, $router, $filters) {
532
+            $router->group($filters, function() use ($prefix, $router) {
533
+                $router->group(['prefix' => $prefix], function($router) {
534 534
                     $router->get('/', ['as' => 'tracker.stats.index', 'uses' => 'Stats@index']);
535 535
 
536 536
                     $router->get('log/{uuid}', ['as' => 'tracker.stats.log', 'uses' => 'Stats@log']);
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
     {
586 586
         $me = $this;
587 587
 
588
-        $this->app->make('view')->composer('pragmarx/tracker::*', function ($view) use ($me) {
588
+        $this->app->make('view')->composer('pragmarx/tracker::*', function($view) use ($me) {
589 589
             $view->with('stats_layout', $me->getConfig('stats_layout'));
590 590
 
591 591
             $template_path = url('/').$me->getConfig('stats_template_path');
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
 
597 597
     protected function registerUpdateGeoIpCommand()
598 598
     {
599
-        $this->app->singleton('tracker.updategeoip.command', function ($app) {
599
+        $this->app->singleton('tracker.updategeoip.command', function($app) {
600 600
             return new UpdateGeoIp();
601 601
         });
602 602
 
@@ -607,13 +607,13 @@  discard block
 block discarded – undo
607 607
     {
608 608
         $me = $this;
609 609
 
610
-        $this->app['events']->listen('router.before', function ($object = null) use ($me) {
610
+        $this->app['events']->listen('router.before', function($object = null) use ($me) {
611 611
 
612 612
             // get auth bindings to check
613 613
             $bindings = $me->getConfig('authentication_ioc_binding');
614 614
 
615 615
             // check if all bindings are resolved
616
-            $checked_bindings = array_map(function ($abstract) use ($me) {
616
+            $checked_bindings = array_map(function($abstract) use ($me) {
617 617
                 return $me->app->resolved($abstract);
618 618
             }, $bindings);
619 619
 
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
      */
663 663
     protected function registerMessageRepository()
664 664
     {
665
-        $this->app->singleton('tracker.messages', function () {
665
+        $this->app->singleton('tracker.messages', function() {
666 666
             return new MessageRepository();
667 667
         });
668 668
     }
Please login to merge, or discard this patch.