Passed
Push — master ( eef301...7c6fc7 )
by Maksim
02:15
created
src/ConditionalDebugBarServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
              * @var Collection|Route[]
42 42
              */
43 43
             $debugbarRoutes = collect($router->getRoutes()->getRoutesByName())
44
-                ->filter(function ($value, $key) {
44
+                ->filter(function($value, $key) {
45 45
                     return strpos($key, 'debugbar') !== false;
46 46
                 });
47 47
             if ($debugbarRoutes->count() > 0) {
Please login to merge, or discard this patch.
tests/BootedDebugBarRouteTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
     protected function getEnvironmentSetUp($app)
54 54
     {
55 55
         $app['config']->set('conditional-debugbar.debugbar-boot-validator', TestingDebugBarBootValidator::class);
56
-        $app['router']->get('sample-page', ['uses' => function () {
56
+        $app['router']->get('sample-page', ['uses' => function() {
57 57
             return $this->blank_page;
58 58
         }]);
59
-        $app['router']->get('page-with-middleware', ['uses' => function () {
59
+        $app['router']->get('page-with-middleware', ['uses' => function() {
60 60
             return $this->blank_page;
61 61
         }])->middleware(OptionalDebugBar::class);
62 62
     }
Please login to merge, or discard this patch.
tests/UnbootedDebugBarRouteTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@
 block discarded – undo
51 51
     protected function getEnvironmentSetUp($app)
52 52
     {
53 53
         $app['session']->flush();
54
-        $app['router']->get('sample-page', ['uses' => function () {
54
+        $app['router']->get('sample-page', ['uses' => function() {
55 55
             return $this->blank_page;
56 56
         }]);
57
-        $app['router']->get('page-with-middleware', ['uses' => function () {
57
+        $app['router']->get('page-with-middleware', ['uses' => function() {
58 58
             return $this->blank_page;
59 59
         }])->middleware(OptionalDebugBar::class);
60 60
     }
Please login to merge, or discard this patch.
tests/WithoutDebugBarRouteTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@
 block discarded – undo
51 51
     protected function getEnvironmentSetUp($app)
52 52
     {
53 53
         $app['session']->flush();
54
-        $app['router']->get('sample-page', ['uses' => function () {
54
+        $app['router']->get('sample-page', ['uses' => function() {
55 55
             return $this->blank_page;
56 56
         }]);
57
-        $app['router']->get('page-with-middleware', ['uses' => function () {
57
+        $app['router']->get('page-with-middleware', ['uses' => function() {
58 58
             return $this->blank_page;
59 59
         }])->middleware(OptionalDebugBar::class);
60 60
     }
Please login to merge, or discard this patch.
tests/BootedAlreadyEnabledDebugBarRouteTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $app['config']->set('debugbar.enabled', true);
49 49
         $app['config']->set('app.debug', true);
50 50
         resolve(\Barryvdh\Debugbar\LaravelDebugbar::class)->enable();
51
-        $app['router']->get('page-with-middleware', ['uses' => function () {
51
+        $app['router']->get('page-with-middleware', ['uses' => function() {
52 52
             return $this->blank_page;
53 53
         }])->middleware(OptionalDebugBar::class);
54 54
     }
Please login to merge, or discard this patch.
tests/BootedDisabledDebugBarRouteTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
     {
54 54
         $app['config']->set('conditional-debugbar.debugbar-boot-validator', TestingDebugBarBootValidator::class);
55 55
         $app['config']->set('debugbar.enabled', false);
56
-        $app['router']->get('sample-page', ['uses' => function () {
56
+        $app['router']->get('sample-page', ['uses' => function() {
57 57
             return $this->blank_page;
58 58
         }]);
59
-        $app['router']->get('page-with-middleware', ['uses' => function () {
59
+        $app['router']->get('page-with-middleware', ['uses' => function() {
60 60
             return $this->blank_page;
61 61
         }])->middleware(OptionalDebugBar::class);
62 62
     }
Please login to merge, or discard this patch.
tests/IntentionallyDisabledDebugBarRouteTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $app['config']->set('debugbar.enabled', true);
47 47
         $app['config']->set('app.debug', true);
48 48
         resolve(\Barryvdh\Debugbar\LaravelDebugbar::class)->enable();
49
-        $app['router']->get('page-with-middleware', ['uses' => function () {
49
+        $app['router']->get('page-with-middleware', ['uses' => function() {
50 50
             return $this->blank_page;
51 51
         }])->middleware(OptionalDebugBar::class);
52 52
     }
Please login to merge, or discard this patch.