Passed
Pull Request — master (#5)
by Aleksandr
02:53
created
src/System/Mac/NetworksCollection.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         array_shift($availableNetworks);
55 55
 
56
-        array_walk($availableNetworks, function (&$networkData) use ($currentBssid) {
56
+        array_walk($availableNetworks, function(&$networkData) use ($currentBssid) {
57 57
             $networkData = $this->extractingDataFromString($networkData);
58 58
 
59 59
             if (in_array($networkData[self::BSSID_KEY], $currentBssid)) {
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $extractedProperties = [];
75 75
 
76
-        $pattern = '/(.*?)'.
77
-        '(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})\s{1,}'.
78
-        '([-+]?[0-9]*)\s{1,}'.
79
-        '([^a-zA-Z]*)'.
80
-        '(\w{1,})\s{1,}'.
81
-        '([\w-]+)'.
76
+        $pattern = '/(.*?)' .
77
+        '(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})\s{1,}' .
78
+        '([-+]?[0-9]*)\s{1,}' .
79
+        '([^a-zA-Z]*)' .
80
+        '(\w{1,})\s{1,}' .
81
+        '([\w-]+)' .
82 82
         '(.*)/';
83 83
 
84 84
         preg_match_all(
Please login to merge, or discard this patch.
src/System/Mac/Network.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@
 block discarded – undo
53 53
     {
54 54
         $this->ssid = $network[0];
55 55
         $this->bssid = $network[1];
56
-        $this->channel = (int) $network[3];
56
+        $this->channel = (int)$network[3];
57 57
         $this->security = $network[6];
58 58
         $this->securityFlags = $network[5];
59 59
         $this->quality = $network[2];
60 60
         $this->frequency = $this->getFrequency();
61
-        $this->dbm = to_dbm((int) $network[2]);
61
+        $this->dbm = to_dbm((int)$network[2]);
62 62
         $this->connected = isset($network[7]);
63 63
 
64 64
         return $this;
Please login to merge, or discard this patch.