@@ -79,11 +79,11 @@ |
||
| 79 | 79 | $this->setDataProvider($dataProvider); |
| 80 | 80 | $this->detectors = []; |
| 81 | 81 | $this->resultObject = new Result(); |
| 82 | - $check = ['os','device', 'browser', 'robot']; |
|
| 82 | + $check = ['os', 'device', 'browser', 'robot']; |
|
| 83 | 83 | Tools::setWindowsConfig($dataProvider->getConfig()['windows']); |
| 84 | 84 | foreach ($check as $detectionType) { |
| 85 | 85 | $className = sprintf('\\EndorphinStudio\\Detector\\Detection\\%s', ucfirst(sprintf('%sDetector', $detectionType))); |
| 86 | - if(class_exists($className)) { |
|
| 86 | + if (class_exists($className)) { |
|
| 87 | 87 | $this->detectors[$detectionType] = new $className(); |
| 88 | 88 | $this->detectors[$detectionType]->init($this); |
| 89 | 89 | } |
@@ -28,13 +28,13 @@ |
||
| 28 | 28 | if (preg_match($version, $uaString)) { |
| 29 | 29 | preg_match($version, $uaString, $v); |
| 30 | 30 | $version = $v[0]; |
| 31 | - $version = preg_replace('/' . $phrase . '/', '', $version); |
|
| 31 | + $version = preg_replace('/'.$phrase.'/', '', $version); |
|
| 32 | 32 | $version = str_replace(';', '', $version); |
| 33 | 33 | $version = str_replace(' ', '', $version); |
| 34 | 34 | $version = str_replace('/', '', $version); |
| 35 | 35 | $version = str_replace('_', '.', $version); |
| 36 | 36 | |
| 37 | - if(preg_match('/ Windows /', $uaString)) { |
|
| 37 | + if (preg_match('/ Windows /', $uaString)) { |
|
| 38 | 38 | $version = static::getWindowsVersion($version); |
| 39 | 39 | } |
| 40 | 40 | return $version; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Execute getter |
| 107 | - * @param $object |
|
| 107 | + * @param Data\Result $object |
|
| 108 | 108 | * @param string $key |
| 109 | 109 | * @return null |
| 110 | 110 | */ |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | protected function initResultObject() |
| 49 | 49 | { |
| 50 | - if(!array_key_exists('default', $this->config)) { |
|
| 50 | + if (!array_key_exists('default', $this->config)) { |
|
| 51 | 51 | return null; |
| 52 | 52 | } |
| 53 | 53 | // init default value from data |