Completed
Push — 4.0 ( 5960ab...e9991b )
by Serhii
02:05
created
src/Detection/OsDetector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
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
@@ -79,10 +79,10 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.