Passed
Push — master ( 275232...3ace16 )
by Aleksandr
01:28
created
src/System/Linux/NetworksCollection.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,25 +25,25 @@  discard block
 block discarded – undo
25 25
     protected function getCommand(): string
26 26
     {
27 27
         $options =
28
-            ' --terse'.
29
-            ' --fields '.
30
-            'active,ssid,bssid,'.
31
-            'mode,chan,freq,'.
32
-            'signal,security,wpa-flags,'.
33
-            'rsn-flags'.
34
-            ' device'.
35
-            ' wifi'.
28
+            ' --terse' .
29
+            ' --fields ' .
30
+            'active,ssid,bssid,' .
31
+            'mode,chan,freq,' .
32
+            'signal,security,wpa-flags,' .
33
+            'rsn-flags' .
34
+            ' device' .
35
+            ' wifi' .
36 36
             ' list';
37 37
 
38 38
         return implode(' && ', [
39
-            $this->getUtility().$options,
39
+            $this->getUtility() . $options,
40 40
         ]);
41 41
     }
42 42
 
43 43
     /**
44 44
      * @return string
45 45
      */
46
-    protected function getNetwork():? string
46
+    protected function getNetwork(): ? string
47 47
     {
48 48
         return Network::class;
49 49
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $availableNetworks = $this->explodeAvailableNetworks($output);
59 59
 
60
-        array_walk($availableNetworks, function (&$networkData) {
60
+        array_walk($availableNetworks, function(&$networkData) {
61 61
             $networkData = $this->extractingDataFromString($networkData);
62 62
         });
63 63
 
Please login to merge, or discard this patch.
src/System/Linux/Network.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         Command::exec(
33 33
             sprintf(
34
-                $this->getUtility().' -w 10 device wifi connect "%s" password "%s" ifname "%s"',
34
+                $this->getUtility() . ' -w 10 device wifi connect "%s" password "%s" ifname "%s"',
35 35
                 $this->ssid,
36 36
                 $password,
37 37
                 $device
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         Command::exec(
50 50
             implode(' && ', [
51
-                sprintf($this->getUtility().' device disconnect %s', $device),
51
+                sprintf($this->getUtility() . ' device disconnect %s', $device),
52 52
             ])
53 53
         );
54 54
     }
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
         $instance = new self();
64 64
         $instance->ssid = $network[1];
65 65
         $instance->bssid = $network[2];
66
-        $instance->channel = (int) $network[4];
66
+        $instance->channel = (int)$network[4];
67 67
         $instance->security = $network[7];
68
-        $instance->securityFlags = $network[8].' '.$network[9];
68
+        $instance->securityFlags = $network[8] . ' ' . $network[9];
69 69
         $instance->dbm = $network[6];
70 70
         $instance->quality = $instance->dBmToQuality();
71
-        $instance->frequency = (int) $network[5];
71
+        $instance->frequency = (int)$network[5];
72 72
         $instance->connected = ($network[0] == self::POSITIVE_CONNECTION_FLAG);
73 73
 
74 74
         return $instance;
Please login to merge, or discard this patch.