@@ -77,12 +77,12 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function __construct($dataFile) |
| 79 | 79 | { |
| 80 | - if (! class_exists('\DetectRight')) { |
|
| 81 | - throw new PackageNotLoadedException('You need to download and include the package by hand from ' . $this->getHomepage() . ' to use this provider'); |
|
| 80 | + if (!class_exists('\DetectRight')) { |
|
| 81 | + throw new PackageNotLoadedException('You need to download and include the package by hand from '.$this->getHomepage().' to use this provider'); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if (! file_exists($dataFile)) { |
|
| 85 | - throw new InvalidArgumentException('Data file not found ' . $dataFile); |
|
| 84 | + if (!file_exists($dataFile)) { |
|
| 85 | + throw new InvalidArgumentException('Data file not found '.$dataFile); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $this->dataFile = $dataFile; |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | { |
| 201 | 201 | $headers['User-Agent'] = $userAgent; |
| 202 | 202 | |
| 203 | - \DetectRight::initialize('DRSQLite//' . realpath($this->getDataFile())); |
|
| 203 | + \DetectRight::initialize('DRSQLite//'.realpath($this->getDataFile())); |
|
| 204 | 204 | |
| 205 | 205 | \DetectRight::adaptiveProfileOnDeviceNotFound(); |
| 206 | 206 | $resultRaw = \DetectRight::getProfileFromHeaders($headers); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * No result found? |
| 210 | 210 | */ |
| 211 | 211 | if ($this->hasResult($resultRaw) !== true) { |
| 212 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 212 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /* |