@@ -18,7 +18,7 @@ |
||
| 18 | 18 | if (preg_match($version, $uaString)) { |
| 19 | 19 | preg_match($version, $uaString, $v); |
| 20 | 20 | $version = $v[0]; |
| 21 | - $version = preg_replace('/' . $phrase . '/', '', $version); |
|
| 21 | + $version = preg_replace('/'.$phrase.'/', '', $version); |
|
| 22 | 22 | $version = str_replace(';', '', $version); |
| 23 | 23 | $version = str_replace(' ', '', $version); |
| 24 | 24 | $version = str_replace('/', '', $version); |
@@ -79,10 +79,10 @@ |
||
| 79 | 79 | $this->setDataProvider($dataProvider); |
| 80 | 80 | $this->detectors = []; |
| 81 | 81 | $this->resultObject = new Result(); |
| 82 | - $check = ['os','device', 'browser', 'robots']; |
|
| 82 | + $check = ['os', 'device', 'browser', 'robots']; |
|
| 83 | 83 | foreach ($check as $detectionType) { |
| 84 | 84 | $className = sprintf('\\EndorphinStudio\\Detector\\Detection\\%s', ucfirst(sprintf('%sDetector', $detectionType))); |
| 85 | - if(class_exists($className)) { |
|
| 85 | + if (class_exists($className)) { |
|
| 86 | 86 | $this->detectors[$detectionType] = new $className(); |
| 87 | 87 | $this->detectors[$detectionType]->init($this); |
| 88 | 88 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function init(Detector $detector) |
| 22 | 22 | { |
| 23 | 23 | $this->detector = $detector; |
| 24 | - echo static::class . PHP_EOL; |
|
| 24 | + echo static::class.PHP_EOL; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | protected function initResultObject() |