Completed
Push — gh-27-android-devices ( 3c8d0e...fde74c )
by Serhii
69:03 queued 41:07
created
src/Detection/AbstractDetection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Detector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.
src/Detection/ModelDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.