IcingaCommand: Fix strict standards violation: Only variables should be passed by reference
This commit is contained in:
parent
f9e7e6d888
commit
d475ccd569
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue