@@ -17,14 +17,14 @@ discard block |
||
17 | 17 | protected function setupResultObject() |
18 | 18 | { |
19 | 19 | $name = $this->additionalInfo['name']; |
20 | - if(!\array_key_exists($name, $this->config)) { |
|
20 | + if (!\array_key_exists($name, $this->config)) { |
|
21 | 21 | return; |
22 | 22 | } |
23 | 23 | $patternList = $this->config[$name]; |
24 | 24 | foreach ($patternList as $series => $pattern) { |
25 | 25 | $pattern = sprintf('/%s/', $pattern); |
26 | 26 | $result = \preg_match($pattern, $this->detector->getUserAgent(), $model); |
27 | - if($result) { |
|
27 | + if ($result) { |
|
28 | 28 | $this->resultObject->setModel(sprintf('%s%s', $series, $model[1])); |
29 | 29 | $this->resultObject->setSeries($series); |
30 | 30 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->resultObject = new Model(); |
44 | 44 | } |
45 | 45 | $this->setupResultObject(); |
46 | - if($this->resultObject->getModel()) { |
|
46 | + if ($this->resultObject->getModel()) { |
|
47 | 47 | $this->detector->getResultObject()->getDevice()->setModel($this->resultObject); |
48 | 48 | $this->detector->getResultObject()->getDevice()->setHasModel(true); |
49 | 49 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | protected function afterDetection() |
25 | 25 | { |
26 | - if(\array_key_exists('hasModel', $this->additionalInfo['originalInfo']) && $this->additionalInfo['originalInfo']['hasModel'] === true) { |
|
26 | + if (\array_key_exists('hasModel', $this->additionalInfo['originalInfo']) && $this->additionalInfo['originalInfo']['hasModel'] === true) { |
|
27 | 27 | // detect model |
28 | 28 | $detector = new ModelDetector(); |
29 | 29 | $detector->init($this->detector); |