}
protected function getDefaultParams() {
- return array(
+ return [
'cipher' => $this->config['cipher'],
'secret' => count( $this->config['secrets'] ) - 1
- );
+ ];
}
public function crypt( $password ) {
$this->hash = openssl_encrypt(
$underlyingPassword->toString(), $this->params['cipher'], $secret, 0, $iv );
- $this->args = array( base64_encode( $iv ) );
+ $this->args = [ base64_encode( $iv ) ];
}
/**
0,
$iv
) );
- $this->args = array( base64_encode( $iv ) );
+ $this->args = [ base64_encode( $iv ) ];
return true;
}