Test Setup Failed
Push — master ( 50c390...e6b850 )
by Joe
02:32
created
class.cisco.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.