IcingaCommand: Fix strict standards violation: Only variables should be passed by reference

This commit is contained in:
Eric Lippmann 2014-10-16 15:37:07 +02:00
parent f9e7e6d888
commit d475ccd569
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}