Skip to content

Commit 0fddfb1

Browse files
committed
Move/phpdoc method
1 parent 765c0c5 commit 0fddfb1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/ServiceProvider.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ function ($request, $response) use ($app) {
7373
}
7474
}
7575

76-
protected function shouldUseMiddleware()
77-
{
78-
$app = $this->app;
79-
$version = $app::VERSION;
80-
return !$app->runningInConsole() && version_compare($version, '4.1-dev', '>=') && version_compare($version, '5.0-dev', '<');
81-
}
82-
8376
/**
8477
* Register the service provider.
8578
*
@@ -139,6 +132,18 @@ protected function registerConfiguration()
139132
$this->app['config']->set('laravel-debugbar::config', $config);
140133
}
141134
}
135+
136+
/**
137+
* Detect if the Middelware should be used.
138+
*
139+
* @return bool
140+
*/
141+
protected function shouldUseMiddleware()
142+
{
143+
$app = $this->app;
144+
$version = $app::VERSION;
145+
return !$app->runningInConsole() && version_compare($version, '4.1-dev', '>=') && version_compare($version, '5.0-dev', '<');
146+
}
142147

143148
/**
144149
* Get the services provided by the provider.

0 commit comments

Comments
 (0)