@@ -27,21 +27,21 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function getCommand($hostConnection = true) |
| 29 | 29 | { |
| 30 | - if(is_null($this->username)) |
|
| 30 | + if (is_null($this->username)) |
|
| 31 | 31 | throw new \InvalidArgumentException("You must specify a SSH username"); |
| 32 | 32 | |
| 33 | - if(is_null($this->host)) |
|
| 33 | + if (is_null($this->host)) |
|
| 34 | 34 | throw new \InvalidArgumentException("You must specify a SSH host to connect"); |
| 35 | 35 | |
| 36 | 36 | $command = new ShellCommand($this->executable); |
| 37 | 37 | |
| 38 | - if($this->port != 22) |
|
| 38 | + if ($this->port != 22) |
|
| 39 | 39 | $command->addArgument("p", $this->port); |
| 40 | 40 | |
| 41 | - if(!is_null($this->publicKey)) |
|
| 41 | + if (!is_null($this->publicKey)) |
|
| 42 | 42 | $command->addArgument("i", $this->publicKey); |
| 43 | 43 | |
| 44 | - if($hostConnection) |
|
| 44 | + if ($hostConnection) |
|
| 45 | 45 | $command->addParameter($this->getHostConnection()); |
| 46 | 46 | |
| 47 | 47 | return $command; |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * @var CommandChain $rosterListCommand |
| 132 | 132 | */ |
| 133 | - $rosterListCommand =$this->getRosterListCommand(); |
|
| 133 | + $rosterListCommand = $this->getRosterListCommand(); |
|
| 134 | 134 | |
| 135 | 135 | list( |
| 136 | 136 | $status, |