|
@@ -87,11 +87,11 @@ |
|
|
block discarded – undo |
|
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
|
} |
Please login to merge, or discard this patch.