@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | if (mb_strpos($entry[1], 'Auto') !== FALSE) { |
| 383 | 383 | $result['speed'] = 'auto'; |
| 384 | 384 | } else { |
| 385 | - $result['speed'] = (int)$entry[1]; |
|
| 385 | + $result['speed'] = (int) $entry[1]; |
|
| 386 | 386 | } // if .. else |
| 387 | 387 | $entry[2] = rtrim($entry[2]); |
| 388 | 388 | $result['type'] = mb_substr($entry[2], mb_strrpos($entry[2], ' ') + 1); |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | foreach ($this->_data as $vlan) { |
| 560 | 560 | $vlan = explode(' ', $vlan); |
| 561 | 561 | $vlan = mb_substr($vlan[0], 4); |
| 562 | - $result[] = (int)$vlan; |
|
| 562 | + $result[] = (int) $vlan; |
|
| 563 | 563 | } // foreach |
| 564 | 564 | } // if |
| 565 | 565 | $this->_data = $result; |
@@ -744,7 +744,7 @@ discard block |
||
| 744 | 744 | $config_prompt = str_replace("\r\n", '', trim($config_prompt)); |
| 745 | 745 | if (mb_strpos($config_prompt, 'config)#') !== FALSE) { |
| 746 | 746 | foreach ($this->_data as $c) |
| 747 | - $this->_ssh->write($c . "\n"); |
|
| 747 | + $this->_ssh->write($c."\n"); |
|
| 748 | 748 | $this->_ssh->write("end\n"); |
| 749 | 749 | } |
| 750 | 750 | $result = $this->_ssh->read($this->_prompt); |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | if (count($this->_data) == (count($result) - 2)) |
| 753 | 753 | return TRUE; |
| 754 | 754 | else |
| 755 | - die('Error: Switch rejected configuration: '.PHP_EOL . $config . "\n"); |
|
| 755 | + die('Error: Switch rejected configuration: '.PHP_EOL.$config."\n"); |
|
| 756 | 756 | } |
| 757 | 757 | |
| 758 | 758 | /** |