Skip to content

Commit

Permalink
Fix function name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Mar 1, 2024
1 parent 3d3c8c4 commit f2a5bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ protected function getOsAttribute(string $attr): string
*
* @return bool
*/
protected function hasAndroidTableFragment(): bool
protected function hasAndroidTabletFragment(): bool
{
$regex = 'Android( [\.0-9]+)?; Tablet;';

Expand Down Expand Up @@ -966,7 +966,7 @@ protected function parseDevice(): void
/**
* Some UA contain the fragment 'Android; Tablet;' or 'Opera Tablet', so we assume those devices as tablets
*/
if (null === $this->device && ($this->hasAndroidTableFragment()
if (null === $this->device && ($this->hasAndroidTabletFragment()
|| $this->matchUserAgent('Opera Tablet'))
) {
$this->device = AbstractDeviceParser::DEVICE_TYPE_TABLET;
Expand Down

0 comments on commit f2a5bf6

Please # to comment.