Skip to content

Commit

Permalink
IcingaCommand: Fix strict standards violation: Only variables should …
Browse files Browse the repository at this point in the history
…be passed by reference
  • Loading branch information
lippserd committed Oct 16, 2014
1 parent f9e7e6d commit d475ccd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@ abstract class IcingaCommand
*/
public function getName()
{
return substr_replace(end(explode('\\', get_called_class())), '', -7); // Remove 'Command' Suffix
$nsParts = explode('\\', get_called_class());
return substr_replace(end($nsParts), '', -7); // Remove 'Command' Suffix
}
}

0 comments on commit d475ccd

Please sign in to comment.