@@ -41,7 +41,7 @@ |
||
| 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) { |
@@ -53,10 +53,10 @@ |
||
| 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 | } |
@@ -51,10 +51,10 @@ |
||
| 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 | } |
@@ -51,10 +51,10 @@ |
||
| 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 | } |
@@ -48,7 +48,7 @@ |
||
| 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 | } |
@@ -53,10 +53,10 @@ |
||
| 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 | } |
@@ -52,13 +52,13 @@ |
||
| 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 | } |
@@ -37,7 +37,7 @@ |
||
| 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); |
@@ -48,7 +48,7 @@ |
||
| 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 | } |