Skip to content

Commit

Permalink
Merge pull request #4 from martinusso/visibility
Browse files Browse the repository at this point in the history
explicitly declare the visibility for methods
  • Loading branch information
martinusso authored Oct 24, 2017
2 parents c1e1ba8 + 1e78a56 commit e18bc57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenCrypt/OpenCrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
$this->secretIV = substr(hash('sha256', $secretIV), 0, 16);
}

function encrypt($value) {
public function encrypt($value) {
$output = openssl_encrypt(
$value,
$this->encryptMethod,
Expand All @@ -29,7 +29,7 @@ function encrypt($value) {
return base64_encode($output);
}

function decrypt($value) {
public function decrypt($value) {
return openssl_decrypt(
base64_decode($value),
$this->encryptMethod,
Expand Down

0 comments on commit e18bc57

Please sign in to comment.