Passed
Branch master (5fa815)
by Aleksandr
02:50
created
Category
src/System/Windows/Network.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      */
112 112
     protected function getTmpFileName(): string
113 113
     {
114
-        return __DIR__. "\\..\\..\\..\\tmp\\" . $this->ssid . '.xml';
114
+        return __DIR__ . "\\..\\..\\..\\tmp\\" . $this->ssid . '.xml';
115 115
     }
116 116
 
117 117
     /**
Please login to merge, or discard this patch.
src/System/Linux/NetworksCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @return string
44 44
      */
45
-    protected function getNetwork():? string
45
+    protected function getNetwork(): ? string
46 46
     {
47 47
         return Network::class;
48 48
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $availableNetworks = $this->explodeAvailableNetworks($output);
58 58
 
59
-        array_walk($availableNetworks, function (&$networkData) {
59
+        array_walk($availableNetworks, function(&$networkData) {
60 60
             $networkData = $this->extractingDataFromString($networkData);
61 61
         });
62 62
 
Please login to merge, or discard this patch.
src/System/Linux/Network.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $instance->dbm = $network[6];
70 70
         $instance->quality = $instance->dBmToQuality();
71 71
         $instance->frequency = (int)$network[5];
72
-        $instance->connected = ($network[0]==self::POSITIVE_CONNECTION_FLAG);
72
+        $instance->connected = ($network[0] == self::POSITIVE_CONNECTION_FLAG);
73 73
 
74 74
         return $instance;
75 75
     }
Please login to merge, or discard this patch.
src/System/NetworksCollectionTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     protected function trimArrayValue(array $array): array
17 17
     {
18
-        array_walk($array, function (&$item) {
18
+        array_walk($array, function(&$item) {
19 19
             list($firstElement) = $item;
20 20
 
21 21
             $item = trim($firstElement);
Please login to merge, or discard this patch.
src/System/Mac/NetworksCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * @return string
46 46
      */
47
-    protected function getNetwork():? string
47
+    protected function getNetwork(): ? string
48 48
     {
49 49
         return Network::class;
50 50
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         array_shift($availableNetworks);
66 66
 
67
-        array_walk($availableNetworks, function (&$networkData) use ($currentBssid) {
67
+        array_walk($availableNetworks, function(&$networkData) use ($currentBssid) {
68 68
             $networkData = $this->extractingDataFromString($networkData);
69 69
 
70 70
             if ($this->isConnected($networkData[self::BSSID_KEY], $currentBssid)) {
Please login to merge, or discard this patch.
src/System/AbstractNetworksCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @return string
30 30
      */
31
-    abstract protected function getNetwork():? string;
31
+    abstract protected function getNetwork(): ? string;
32 32
 
33 33
     /**
34 34
      * @return string
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getConnected(): array
64 64
     {
65
-        return $this->getFiltered(function (AbstractNetwork $network) {
65
+        return $this->getFiltered(function(AbstractNetwork $network) {
66 66
             if ($network->connected) {
67 67
                 return $network;
68 68
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getBySsid(string $ssid): array
78 78
     {
79
-        return $this->getFiltered(function (AbstractNetwork $network) use ($ssid) {
79
+        return $this->getFiltered(function(AbstractNetwork $network) use ($ssid) {
80 80
             if ($network->ssid == $ssid) {
81 81
                 return $network;
82 82
             }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getByBssid(string $bssid): array
92 92
     {
93
-        return $this->getFiltered(function (AbstractNetwork $network) use ($bssid) {
93
+        return $this->getFiltered(function(AbstractNetwork $network) use ($bssid) {
94 94
             if ($network->bssid == $bssid) {
95 95
                 return $network;
96 96
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     protected function setNetworks(array $networks): self
106 106
     {
107
-        $this->networks = array_map(function ($network) {
107
+        $this->networks = array_map(function($network) {
108 108
             /** @var AbstractNetwork $networkInstance */
109 109
             $networkInstance = $this->getNetwork();
110 110
             return $networkInstance::createFromArray($network);
Please login to merge, or discard this patch.