Skip to content

Commit

Permalink
Update SecLibGateway.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Sep 3, 2019
1 parent 84a6e14 commit 6bbc67d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/SecLibGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

namespace Collective\Remote;

use Illuminate\Filesystem\Filesystem;
use phpseclib\Crypt\RSA;
use phpseclib\Net\SFTP;
use phpseclib\Net\SSH2;
use phpseclib\Crypt\RSA;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use phpseclib\System\SSH\Agent;
use Illuminate\Filesystem\Filesystem;

class SecLibGateway implements GatewayInterface
{
Expand Down Expand Up @@ -77,7 +79,7 @@ public function __construct($host, array $auth, Filesystem $files, $timeout)
*/
protected function setHostAndPort($host)
{
if (!str_contains($host, ':')) {
if (!Str::contains($host, ':')) {
$this->host = $host;
} else {
list($this->host, $this->port) = explode(':', $host);
Expand Down Expand Up @@ -198,7 +200,7 @@ protected function loadRsaKey(array $auth)
*/
protected function getKey(array $auth)
{
with($key = $this->getNewKey())->setPassword(array_get($auth, 'keyphrase'));
with($key = $this->getNewKey())->setPassword(Arr::get($auth, 'keyphrase'));

return $key;
}
Expand Down

0 comments on commit 6bbc67d

Please sign in to comment.