Skip to content

Commit

Permalink
Merge pull request #200 from iranianpep/analysis-qowbjP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
iranianpep committed Aug 29, 2017
2 parents 07dc4b9 + 8b12fb7 commit d39232b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Botonomous/Slackbot.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public function respond($message = null)
$action = $command->getAction();
if (!method_exists($pluginClass, $action)) {
$className = get_class($pluginClass);

throw new \Exception("Action / function: '{$action}' does not exist in '{$className}'");
}

Expand Down Expand Up @@ -253,6 +254,7 @@ private function getPluginClassByCommand(Command $command)
// check class is valid
if (!$pluginClass instanceof AbstractPlugin) {
$className = get_class($pluginClass);

throw new \Exception("Couldn't create class: '{$className}'");
}

Expand Down

0 comments on commit d39232b

Please sign in to comment.