Skip to content

Commit

Permalink
Add missing else statement for config spoof
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Dec 4, 2016
1 parent 6b047ae commit 775bd7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Helpers/ConfigRetriever.php
Expand Up @@ -156,9 +156,9 @@ private function getFromEnv($key)
$item = $providerKey;

SocialiteWasCalled::$spoofedConfig = true;
} else {
throw new MissingConfigException("Configuration for $providerKey is missing.");
}

throw new MissingConfigException("Configuration for $providerKey is missing.");
}

return $item;
Expand Down Expand Up @@ -186,9 +186,10 @@ protected function getConfigFromServicesArray($providerName)
];

SocialiteWasCalled::$spoofedConfig = true;
} else {
throw new MissingConfigException("There is no services entry for $providerName");
}

throw new MissingConfigException("There is no services entry for $providerName");
}

$this->servicesArray = $configArray;
Expand Down

0 comments on commit 775bd7f

Please sign in to comment.