-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove unused imports #1404
base: master
Are you sure you want to change the base?
remove unused imports #1404
Conversation
@@ -5,8 +5,6 @@ | |||
use Closure; | |||
use DebugBar\DataCollector\DataCollector; | |||
use DebugBar\DataCollector\Renderable; | |||
use Illuminate\Http\Request; | |||
use Illuminate\Routing\Route; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it can be removed, since the import is not used anywhere, but I would suggest to keep the import of the Response class and use it here
if (!is_a($route, 'Illuminate\Routing\Route')) { |
as Response::class instead of a string value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're free to make a separate PR, but I'm going to leave this as is.
@@ -6,10 +6,8 @@ | |||
use Barryvdh\Debugbar\DataCollector\CacheCollector; | |||
use Barryvdh\Debugbar\DataCollector\EventCollector; | |||
use Barryvdh\Debugbar\DataCollector\FilesCollector; | |||
use Barryvdh\Debugbar\DataCollector\GateCollector; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same suggestions as above - leave the import and use in the code instead of string values
No description provided.