Skip to content

Commit

Permalink
Prepare stable release, use only PrettyCI and fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalopin committed Oct 14, 2018
1 parent 77f834d commit 59f970f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Generator/KeyPairGenerator.php
Expand Up @@ -64,7 +64,7 @@ public function generateKeyPair($keySize = 4096)

$details = openssl_pkey_get_details($key);

if (!is_array($details)) {
if (!\is_array($details)) {
throw new KeyPairGenerationException(
sprintf(
'OpenSSL key parsing failed during generation with error: %s',
Expand Down
2 changes: 1 addition & 1 deletion Key.php
Expand Up @@ -47,7 +47,7 @@ public function getPEM()
public function getDER()
{
$lines = explode("\n", trim($this->keyPEM));
unset($lines[count($lines) - 1]);
unset($lines[\count($lines) - 1]);
unset($lines[0]);
$result = implode('', $lines);
$result = base64_decode($result);
Expand Down
2 changes: 1 addition & 1 deletion Parser/CertificateParser.php
Expand Up @@ -33,7 +33,7 @@ public function parse(Certificate $certificate)
{
$rawData = openssl_x509_parse($certificate->getPEM());

if (!is_array($rawData)) {
if (!\is_array($rawData)) {
throw new CertificateParsingException(
sprintf('Fail to parse certificate with error: %s', openssl_error_string())
);
Expand Down
2 changes: 1 addition & 1 deletion Parser/KeyParser.php
Expand Up @@ -40,7 +40,7 @@ public function parse(Key $key)

$rawData = openssl_pkey_get_details($resource);

if (!is_array($rawData)) {
if (!\is_array($rawData)) {
throw new KeyParsingException(sprintf('Fail to parse key with error: %s', openssl_error_string()));
}

Expand Down

0 comments on commit 59f970f

Please sign in to comment.