Skip to content

Apply fixes from StyleCI #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion performance/KeyFactory/KeyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function usingThePurePhpMethod()
public function usingOpenSSL()
{
$key = openssl_pkey_new([
'curve_name' => 'prime256v1',
'curve_name' => 'prime256v1',
'private_key_type' => OPENSSL_KEYTYPE_EC,
]);
$res = openssl_pkey_export($key, $out);
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Encryption/Algorithm/KeyEncryption/ECDHES.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private function getCurve(string $crv): Curve
*/
private function convertBase64ToGmp(string $value): \GMP
{
$value = unpack('H*', Base64Url::decode($value));;
$value = unpack('H*', Base64Url::decode($value));

return gmp_init($value[1], 16);
}
Expand Down Expand Up @@ -349,7 +349,7 @@ private static function createECKeyUsingPurePhp(string $curve): array
private static function createECKeyUsingOpenSSL(string $curve): array
{
$key = openssl_pkey_new([
'curve_name' => self::getOpensslCurveName($curve),
'curve_name' => self::getOpensslCurveName($curve),
'private_key_type' => OPENSSL_KEYTYPE_EC,
]);
$res = openssl_pkey_export($key, $out);
Expand Down
2 changes: 1 addition & 1 deletion src/Component/KeyManagement/JWKFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static function createECKeyUsingPurePhp(string $curve): array
private static function createECKeyUsingOpenSSL(string $curve): array
{
$key = openssl_pkey_new([
'curve_name' => self::getOpensslCurveName($curve),
'curve_name' => self::getOpensslCurveName($curve),
'private_key_type' => OPENSSL_KEYTYPE_EC,
]);
$res = openssl_pkey_export($key, $out);
Expand Down