Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from arloopa/analysis-8AyJOK
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mhamlet authored Jan 16, 2017
2 parents 420a933 + c97c77d commit 3c5bd1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Vuforia/Exceptions/ResourceNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

class ResourceNotFoundException extends \Exception
{

}
1 change: 0 additions & 1 deletion src/Vuforia/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ private function call($method, string $path, $body = null):ResponseInterface
try {
return $this->guzzleClient()->send($request);
} catch (\Exception $e) {

if ($e->getCode() == 404) {
throw new ResourceNotFoundException("Your requested resource ({$method} {$url}) not found.");
}
Expand Down
5 changes: 2 additions & 3 deletions src/Vuforia/Vuforia.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public static function config($access_key, $secret_key)
{
if (is_null(self::$instance)) {
self::$instance = new self($access_key, $secret_key);
}
else {
} else {
self::$instance->reconfigure($access_key, $secret_key);
}
}
Expand All @@ -95,7 +94,7 @@ public static function instance()
*/
public function getRequestAttribute()
{
$hash = md5($this->access_key . $this->secret_key);
$hash = md5($this->access_key.$this->secret_key);

if (!array_key_exists($hash, $this->request_instances)) {
$this->request_instances[$hash] = new Request($this->access_key, $this->secret_key);
Expand Down

0 comments on commit 3c5bd1a

Please sign in to comment.