[CLEANUP] Remove unnecessary early return in GeneralUtility::instantiateClass 34/35934/2
authorFrederic Gaus <gaus@flagbit.de>
Fri, 9 Jan 2015 15:50:06 +0000 (16:50 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 9 Jan 2015 15:55:53 +0000 (16:55 +0100)
Remove unnecessary early return statement in
\TYPO3\CMS\Core\Utility\GeneralUtility::instantiateClass

Change-Id: Ia03687ad22493b9d00d64ae688c0c933a90546fa
Resolves: #64219
Releases: master
Reviewed-on: http://review.typo3.org/35934
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index dfc53b2..8f68b64 100755 (executable)
@@ -4418,7 +4418,6 @@ Connection: close
                                $class = new \ReflectionClass($className);
                                array_shift($arguments);
                                $instance = $class->newInstanceArgs($arguments);
-                               return $instance;
                }
                return $instance;
        }