Skip to content

Commit

Permalink
PHPCS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 26, 2014
1 parent 6555f3c commit 950f43e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Utility/Crypto/Mcrypt.php
Expand Up @@ -31,6 +31,7 @@ class Mcrypt {
* @param string $key Key to use as the encryption key for encrypted data.
* @param string $operation Operation to perform, encrypt or decrypt
* @throws \LogicException When there are errors.
* @return string Encrytped binary string data, or decrypted data depending on operation.
*/
public static function rijndael($text, $key, $operation) {
$algorithm = MCRYPT_RIJNDAEL_256;
Expand Down
6 changes: 3 additions & 3 deletions src/Utility/Crypto/OpenSsl.php
Expand Up @@ -28,13 +28,13 @@
class OpenSsl {

/**
* Encrypts/Decrypts a text using the given key using rijndael method.
* Not implemented
*
* @param string $text Encrypted string to decrypt, normal string to encrypt
* @param string $key Key to use as the encryption key for encrypted data.
* @param string $operation Operation to perform, encrypt or decrypt
* @throws \InvalidArgumentException When there are errors.
* @return string Encrypted/Decrypted string
* @throws \LogicException Rijndael compatibility does not exist with Openssl.
* @return void
*/
public static function rijndael($text, $key, $operation) {
throw new \LogicException('rijndael is not compatible with OpenSSL. Use mcrypt instead.');
Expand Down
1 change: 1 addition & 0 deletions src/Utility/Security.php
Expand Up @@ -102,6 +102,7 @@ public static function setHash($hash) {
*
* @param object $instance The crypto instance to use.
* @return object Crypto instance.
* @throws \InvalidArgumentException When no compatible crypto extension is available.
*/
public static function engine($instance = null) {
if ($instance === null && static::$_instance === null) {
Expand Down

0 comments on commit 950f43e

Please sign in to comment.