Passed
Push — master ( 7c6fc7...70457d )
by Maksim
02:54
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/DebugBarExceptedOptionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@
 block discarded – undo
52 52
     {
53 53
         $app['config']->set('conditional-debugbar.debugbar-boot-validator', TestingDebugBarBootValidator::class);
54 54
         $app['config']->set('debugbar.except', ['excluded/*']);
55
-        $app['router']->get('excluded/page', ['uses' => function () {
55
+        $app['router']->get('excluded/page', ['uses' => function() {
56 56
             return $this->blank_page;
57 57
         }])->middleware(OptionalDebugBar::class);
58
-        $app['router']->get('/excluded/another-page', ['uses' => function () {
58
+        $app['router']->get('/excluded/another-page', ['uses' => function() {
59 59
             return $this->blank_page;
60 60
         }])->middleware(OptionalDebugBar::class);
61
-        $app['router']->get('included/page', ['uses' => function () {
61
+        $app['router']->get('included/page', ['uses' => function() {
62 62
             return $this->blank_page;
63 63
         }])->middleware(OptionalDebugBar::class);
64 64
     }
Please login to merge, or discard this patch.
tests/DebugBarExceptionRouteTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     protected function getEnvironmentSetUp($app)
38 38
     {
39 39
         $app['config']->set('conditional-debugbar.debugbar-boot-validator', TestingDebugBarBootValidator::class);
40
-        $app['router']->get('page-with-middleware', ['uses' => function () {
40
+        $app['router']->get('page-with-middleware', ['uses' => function() {
41 41
             throw new Exception('Test Exception');
42 42
             return $this->blank_page;
43 43
         }])->middleware(OptionalDebugBar::class);
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
@@ -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.