Skip to content

Commit bad8f65

Browse files
committed
Clean code to pass phpcs
1 parent 1f1d088 commit bad8f65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Saml2/Utils.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,17 +659,17 @@ public static function calculateX509Fingerprint($x509cert, $alg='sha1')
659659
$data .= $line;
660660
}
661661
}
662-
$decoded_data = base64_decode($data);
662+
$decodedData = base64_decode($data);
663663

664664
switch ($alg) {
665665
case 'sha512':
666666
case 'sha384':
667667
case 'sha256':
668-
$fingerprint = hash($alg, $decoded_data, FALSE);
668+
$fingerprint = hash($alg, $decodedData, FALSE);
669669
break;
670670
case 'sha1':
671671
default:
672-
$fingerprint = strtolower(sha1($decoded_data));
672+
$fingerprint = strtolower(sha1($decodedData));
673673
break;
674674
}
675675
return $fingerprint;

0 commit comments

Comments
 (0)