@@ -16,8 +16,8 @@ |
||
| 16 | 16 | * @param integer $port The port to use |
| 17 | 17 | */ |
| 18 | 18 | public function __construct($host, $username, $password, $port = 22) { |
| 19 | - $config = new Configuration($host,$port); |
|
| 19 | + $config = new Configuration($host, $port); |
|
| 20 | 20 | $auth = new Password($username, $password); |
| 21 | - $this->session = new Session($config,$auth); |
|
| 21 | + $this->session = new Session($config, $auth); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | \ No newline at end of file |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * Gets the SSH session executor |
| 17 | 17 | * @return \Ssh\Exec |
| 18 | 18 | */ |
| 19 | - public function getExec(){ |
|
| 19 | + public function getExec() { |
|
| 20 | 20 | return $this->session->getExec(); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * Throws an Exception because you cannot boot a powered down machine from ssh |
| 25 | 25 | * @return void |
| 26 | 26 | */ |
| 27 | - public function boot(){ |
|
| 27 | + public function boot() { |
|
| 28 | 28 | throw new MethodNotAllowedException("You cannot use SSH to boot a powered down server."); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * Executes a Reboot command |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function reboot(){ |
|
| 35 | + public function reboot() { |
|
| 36 | 36 | $exec = $this->getExec(); |
| 37 | 37 | $exec->run('reboot'); |
| 38 | 38 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * Executes a Shutdown command |
| 42 | 42 | * @return void |
| 43 | 43 | */ |
| 44 | - public function shutdown(){ |
|
| 44 | + public function shutdown() { |
|
| 45 | 45 | $exec = $this->getExec(); |
| 46 | 46 | $exec->run('shutdown -P now'); |
| 47 | 47 | } |