for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Dcrypt;
use Exception;
class Openssl
{
private $cipher, $algo, $key;
/**
* Openssl constructor.
*
* @param string $cipher
* @param string $algo
* @param string $key
*/
public function __construct(string $cipher, string $algo, string $key)
$cipher
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$algo
$key
[$this->cipher, $this->algo, $this->key] = func_get_args();
}
* @param string $data
* @return string
* @throws Exception
public function decrypt(string $data): string
return OpensslStatic::decrypt($data, $this->key, $this->cipher, $this->algo);
public function encrypt(string $data): string
return OpensslStatic::encrypt($data, $this->key, $this->cipher, $this->algo);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.