Skip to content

Commit

Permalink
Fixup namespaces of runtime exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
moesjarraf committed Dec 30, 2015
1 parent 29c69e6 commit d8491bc
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 d8491bc

Please sign in to comment.