@@ -53,12 +53,12 @@ |
||
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; |
@@ -27,9 +27,9 @@ |
||
27 | 27 | public function __construct(string $command, string $output, int $returnCode) |
28 | 28 | { |
29 | 29 | if ($returnCode == 127) { |
30 | - $message = 'Command not found: "'.$command.'"'; |
|
30 | + $message = 'Command not found: "' . $command . '"'; |
|
31 | 31 | } else { |
32 | - $message = 'Command "'.$command.'" exited with code '.$returnCode.': '.$output; |
|
32 | + $message = 'Command "' . $command . '" exited with code ' . $returnCode . ': ' . $output; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | parent::__construct($message); |