Completed
Push — 4.0 ( 5960ab...e9991b )
by Serhii
02:05
created
src/Detection/OsDetector.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 namespace EndorphinStudio\Detector\Detection;
5 5
 
6 6
 
7
-use EndorphinStudio\Detector\Data\AbstractData;
8
-use EndorphinStudio\Detector\Data\Os;
9 7
 use EndorphinStudio\Detector\Tools;
10 8
 
11 9
 class OsDetector extends AbstractDetection
Please login to merge, or discard this 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.