We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e06aa commit cf22aacCopy full SHA for cf22aac
src/Middleware/Agent.php
@@ -119,7 +119,7 @@ protected function isDevice()
119
120
$function = 'is' . ucfirst($allow);
121
122
- if ($this->$function()) {
+ if ($this->parser->$function()) {
123
continue;
124
}
125
@@ -167,19 +167,4 @@ protected function isProperty()
167
168
return false;
169
170
-
171
- protected function isMobile(): bool
172
- {
173
- return (new Parser())->isMobile();
174
- }
175
176
- protected function isTablet(): bool
177
178
- return (new Parser())->isTablet();
179
180
181
- protected function isDesktop(): bool
182
183
- return (new Parser())->isDesktop();
184
185
0 commit comments