Skip to content

Commit

Permalink
Merge pull request #6 from legalthings/fixup-namespaces
Browse files Browse the repository at this point in the history
Fixup namespaces of runtime exceptions
  • Loading branch information
moesjarraf committed Dec 30, 2015
2 parents 29c69e6 + d8491bc commit fcd7423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Authorizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected static function generateChecksum($allowedResource, $timeStart, $timeEn
public static function getPublicKey()
{
if (!isset(self::$publicKeyPath)) {
throw new RuntimeException('Path to the authorizer public key is not set');
throw new \RuntimeException('Path to the authorizer public key is not set');
}

$publicKey = file_get_contents(self::$publicKeyPath);
Expand All @@ -129,7 +129,7 @@ public static function getPublicKey()
protected static function getPrivateKey()
{
if (!isset(self::$privateKeyPath)) {
throw new RuntimeException('Path to the authorizer private key is not set');
throw new \RuntimeException('Path to the authorizer private key is not set');
}

$privateKey = file_get_contents(self::$privateKeyPath);
Expand Down Expand Up @@ -167,7 +167,7 @@ protected static function downloadSigningKey($url, $options = [])
protected static function assertIsValidKey($type, $key, $path)
{
if (!preg_match('/^-----BEGIN (RSA |DSA )?' . strtoupper($type) . ' KEY-----/', $key)) {
throw new RuntimeException("Invalid $type key: $path");
throw new \RuntimeException("Invalid $type key: $path");
}
}
}

0 comments on commit fcd7423

Please sign in to comment.