Completed
Pull Request — master (#525)
by
unknown
01:45
created
src/Vendor/Laravel/ServiceProvider.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     protected function registerTracker()
153 153
     {
154
-        $this->app->singleton('tracker', function ($app) {
154
+        $this->app->singleton('tracker', function($app) {
155 155
             $app['tracker.loaded'] = true;
156 156
 
157 157
             return new Tracker(
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
     public function registerRepositories()
170 170
     {
171
-        $this->app->singleton('tracker.repositories', function ($app) {
171
+        $this->app->singleton('tracker.repositories', function($app) {
172 172
             try {
173 173
                 $uaParser = new UserAgentParser($app->make('path.base'));
174 174
             } catch (\Exception $exception) {
@@ -325,21 +325,21 @@  discard block
 block discarded – undo
325 325
 
326 326
     public function registerAuthentication()
327 327
     {
328
-        $this->app->singleton('tracker.authentication', function ($app) {
328
+        $this->app->singleton('tracker.authentication', function($app) {
329 329
             return new Authentication($app['tracker.config'], $app);
330 330
         });
331 331
     }
332 332
 
333 333
     public function registerCache()
334 334
     {
335
-        $this->app->singleton('tracker.cache', function ($app) {
335
+        $this->app->singleton('tracker.cache', function($app) {
336 336
             return new Cache($app['tracker.config'], $app);
337 337
         });
338 338
     }
339 339
 
340 340
     protected function registerTablesCommand()
341 341
     {
342
-        $this->app->singleton('tracker.tables.command', function ($app) {
342
+        $this->app->singleton('tracker.tables.command', function($app) {
343 343
             return new TablesCommand();
344 344
         });
345 345
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             'Illuminate\Routing\Events\RouteMatched',
356 356
         ];
357 357
 
358
-        $this->app['events']->listen($mathingEvents, function () use ($me) {
358
+        $this->app['events']->listen($mathingEvents, function() use ($me) {
359 359
             $me->getTracker()->routerMatched($me->getConfig('log_routes'));
360 360
         });
361 361
     }
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         $me = $this;
407 407
 
408 408
         if (!class_exists('Illuminate\Database\Events\QueryExecuted')) {
409
-            $this->app['events']->listen('illuminate.query', function (
409
+            $this->app['events']->listen('illuminate.query', function(
410 410
                 $query,
411 411
                 $bindings,
412 412
                 $time,
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                 $me->logSqlQuery($query, $bindings, $time, $name);
416 416
             });
417 417
         } else {
418
-            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function ($query) use ($me) {
418
+            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($query) use ($me) {
419 419
                 $me->logSqlQuery($query);
420 420
             });
421 421
         }
@@ -446,11 +446,11 @@  discard block
 block discarded – undo
446 446
     {
447 447
         $me = $this;
448 448
 
449
-        $this->app->singleton('tracker.events', function ($app) {
449
+        $this->app->singleton('tracker.events', function($app) {
450 450
             return new EventStorage();
451 451
         });
452 452
 
453
-        $this->app['events']->listen('*', function ($object = null) use ($me) {
453
+        $this->app['events']->listen('*', function($object = null) use ($me) {
454 454
             if ($me->app['tracker.events']->isOff() || !$me->isFullyBooted()) {
455 455
                 return;
456 456
             }
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
     {
510 510
         $me = $this;
511 511
 
512
-        $this->app->make('view')->composer('pragmarx/tracker::*', function ($view) use ($me) {
512
+        $this->app->make('view')->composer('pragmarx/tracker::*', function($view) use ($me) {
513 513
             $view->with('stats_layout', $me->getConfig('stats_layout'));
514 514
 
515 515
             $template_path = url('/').$me->getConfig('stats_template_path');
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
 
521 521
     protected function registerUpdateGeoIpCommand()
522 522
     {
523
-        $this->app->singleton('tracker.updategeoip.command', function ($app) {
523
+        $this->app->singleton('tracker.updategeoip.command', function($app) {
524 524
             return new UpdateGeoIp();
525 525
         });
526 526
 
@@ -531,13 +531,13 @@  discard block
 block discarded – undo
531 531
     {
532 532
         $me = $this;
533 533
 
534
-        $this->app['events']->listen('router.before', function ($object = null) use ($me) {
534
+        $this->app['events']->listen('router.before', function($object = null) use ($me) {
535 535
 
536 536
             // get auth bindings to check
537 537
             $bindings = $me->getConfig('authentication_ioc_binding');
538 538
 
539 539
             // check if all bindings are resolved
540
-            $checked_bindings = array_map(function ($abstract) use ($me) {
540
+            $checked_bindings = array_map(function($abstract) use ($me) {
541 541
                 return $me->app->resolved($abstract);
542 542
             }, $bindings);
543 543
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
      */
587 587
     protected function registerMessageRepository()
588 588
     {
589
-        $this->app->singleton('tracker.messages', function () {
589
+        $this->app->singleton('tracker.messages', function() {
590 590
             return new MessageRepository();
591 591
         });
592 592
     }
Please login to merge, or discard this patch.