Skip to content

Commit

Permalink
change phpunit version, rearrance contruct to be more consistent with…
Browse files Browse the repository at this point in the history
… rest of class
  • Loading branch information
mchljams committed Sep 15, 2017
1 parent bc99763 commit 701bb85
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "5.7",
"phpunit/phpunit": "5.7.0",
"squizlabs/php_codesniffer": "2.8.0"
},
"autoload": {
Expand Down
28 changes: 14 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Gcia.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class Gcia
public function __construct($key = null)
{
// check to make sure input is a string
if (!is_string($key)) {
// if its not a string thow an exception
throw new \Exception('Your API key is required and must be a string.');
if (is_string($key)) {
// set the key property
$this->key = $key;
}
// set the key property
$this->key = $key;
// if its not a string thow an exception
throw new \Exception('Your API key is required and must be a string.');
}

/**
Expand Down

0 comments on commit 701bb85

Please sign in to comment.