Skip to content

Commit

Permalink
Fix Scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
faizshukri committed Feb 1, 2016
1 parent 9499e64 commit b595927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function initialize()
/**
* Set translations to be used
*
* @param array $translation
* @param array $translations
* @return $this
*/
public function translation($translations)
Expand Down Expand Up @@ -80,7 +80,7 @@ public function get($args)
$xmlFile = $this->firstMatchAvailableTranslation($translation);
}

if (!$xmlFile) {
if ($xmlFile === false) {
throw new TranslationNotExists("Translation " . $translation . " didn't exists. Please check your config.");
}

Expand Down

0 comments on commit b595927

Please sign in to comment.