@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | if (mb_strpos($entry[1], 'Auto') !== FALSE) { |
| 387 | 387 | $result['speed'] = 'auto'; |
| 388 | 388 | } else { |
| 389 | - $result['speed'] = (int)$entry[1]; |
|
| 389 | + $result['speed'] = (int) $entry[1]; |
|
| 390 | 390 | } // if .. else |
| 391 | 391 | $entry[2] = rtrim($entry[2]); |
| 392 | 392 | $result['type'] = mb_substr($entry[2], mb_strrpos($entry[2], ' ') + 1); |
@@ -563,7 +563,7 @@ discard block |
||
| 563 | 563 | foreach ($this->_data as $vlan) { |
| 564 | 564 | $vlan = explode(' ', $vlan); |
| 565 | 565 | $vlan = mb_substr($vlan[0], 4); |
| 566 | - $result[] = (int)$vlan; |
|
| 566 | + $result[] = (int) $vlan; |
|
| 567 | 567 | } // foreach |
| 568 | 568 | } // if |
| 569 | 569 | $this->_data = $result; |
@@ -748,14 +748,14 @@ discard block |
||
| 748 | 748 | $config_prompt = str_replace("\r\n", '', trim($config_prompt)); |
| 749 | 749 | if (mb_strpos($config_prompt, 'config)#') !== FALSE) { |
| 750 | 750 | foreach ($this->_data as $c) |
| 751 | - $this->_ssh->write($c . "\n"); |
|
| 751 | + $this->_ssh->write($c."\n"); |
|
| 752 | 752 | $this->_ssh->write("end\n"); |
| 753 | 753 | } |
| 754 | 754 | $result = $this->_ssh->read($this->_prompt); |
| 755 | 755 | $result = explode("\r\n", $result); |
| 756 | 756 | if (count($this->_data) == (count($result) - 2)) |
| 757 | 757 | return true; else |
| 758 | - die('Error: Switch rejected configuration: '.PHP_EOL . $config . "\n"); |
|
| 758 | + die('Error: Switch rejected configuration: '.PHP_EOL.$config."\n"); |
|
| 759 | 759 | } |
| 760 | 760 | |
| 761 | 761 | /** |