mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user