From d475ccd56954a844e070311e0e6c0fa916e2d4d4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 16 Oct 2014 15:37:07 +0200 Subject: [PATCH] IcingaCommand: Fix strict standards violation: Only variables should be passed by reference --- .../monitoring/library/Monitoring/Command/IcingaCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Command/IcingaCommand.php b/modules/monitoring/library/Monitoring/Command/IcingaCommand.php index d88f8dba0..3b569de8e 100644 --- a/modules/monitoring/library/Monitoring/Command/IcingaCommand.php +++ b/modules/monitoring/library/Monitoring/Command/IcingaCommand.php @@ -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 } }