@@ -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 |
@@ -87,11 +87,11 @@ |
||
87 | 87 | $dataProvider->setDataDirectory($dataDirectory); |
88 | 88 | $this->setDataProvider($dataProvider); |
89 | 89 | $this->detectors = []; |
90 | - $check = ['os','device', 'browser', 'robot']; |
|
90 | + $check = ['os', 'device', 'browser', 'robot']; |
|
91 | 91 | Tools::setWindowsConfig($dataProvider->getConfig()['windows']); |
92 | 92 | foreach ($check as $detectionType) { |
93 | 93 | $className = sprintf('\\EndorphinStudio\\Detector\\Detection\\%s', ucfirst(sprintf('%sDetector', $detectionType))); |
94 | - if(class_exists($className)) { |
|
94 | + if (class_exists($className)) { |
|
95 | 95 | $this->detectors[$detectionType] = new $className(); |
96 | 96 | $this->detectors[$detectionType]->init($this); |
97 | 97 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | } |
30 | 30 | $patternList = $this->config[$name]; |
31 | 31 | foreach ($patternList as $series => $data) { |
32 | - if(array_key_exists('pattern', $data)) { |
|
33 | - $this->detectModelByPattern($series,$data['pattern']); |
|
32 | + if (array_key_exists('pattern', $data)) { |
|
33 | + $this->detectModelByPattern($series, $data['pattern']); |
|
34 | 34 | } elseif (array_key_exists('models', $data)) { |
35 | 35 | $this->detectModelByModelList($series, $data['models']); |
36 | 36 | } |