@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | } |
26 | 26 | $osData = $this->detectByFamily(); |
27 | 27 | foreach ($osData as $key => $value) { |
28 | - if($key !== 'originalInfo') { |
|
29 | - echo sprintf('%s: %s%s',$key, $value, PHP_EOL); |
|
28 | + if ($key !== 'originalInfo') { |
|
29 | + echo sprintf('%s: %s%s', $key, $value, PHP_EOL); |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | if (!$useDefault) { |
72 | 72 | $pattern = sprintf($pattern, $patternData['pattern']); |
73 | - if(array_key_exists('version',$patternData)) { |
|
73 | + if (array_key_exists('version', $patternData)) { |
|
74 | 74 | $version = sprintf($version, $patternData['version']); |
75 | 75 | } |
76 | 76 | } |
@@ -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 | } |