Skip to content

Commit

Permalink
elivs operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Jan 28, 2017
1 parent d7652e5 commit 0d81b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(array $options, HttpClientInterface $client, Message
$this->options = $options;
$this->client = $client;
$this->messageFactory = $messageFactory;
$this->encrypter = is_null($encrypter) === true ? new Encrypter($this->options['key']) : $encrypter;
$this->encrypter = $encrypter ?: new Encrypter($this->options['key']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Encrypter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Encrypter
public function __construct($key, AES $cipher = null)
{
$this->key = $key;
$this->cipher = is_null($cipher) === true ? new AES(AES::MODE_CBC) : $cipher;
$this->cipher = $cipher ?: new AES(AES::MODE_CBC);
}

/**
Expand Down

0 comments on commit 0d81b28

Please sign in to comment.