Skip to content

Commit

Permalink
Merge pull request #405 from Nyholm/bugfix
Browse files Browse the repository at this point in the history
Typos and bugfix
  • Loading branch information
cursedcoder authored Jul 29, 2016
2 parents aaaaf52 + 956f363 commit b77da21
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Github/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,16 @@ protected function addPlugin(Plugin $plugin)
}

/**
* Remove a plugin by its fqn.
* Remove a plugin by its fully qualified class name (FQCN).
*
* @param string $fqn
* @param string $fqcn
*/
protected function removePlugin($fqn)
protected function removePlugin($fqcn)
{
foreach ($this->plugins as $idx => $plugin) {
if ($plugin instanceof $fqn) {
if ($plugin instanceof $fqcn) {
unset($this->plugins[$idx]);
$this->httpClientModified = true;
}
}
}
Expand Down

0 comments on commit b77da21

Please sign in to comment.