mittwald/flow-metamorph — pull request #30 by martin-helmich (2014-10-12 15:14:13+00:00)
Title: Automatically refactor static utility calls

Static utility calls (like `\TYPO3\Core\Utility\GeneralUtility::intExplode(...)` should be refactored to calls on dynamically injected instances.

###### Expected input

class Test {
public function foo() {
$list = \TYPO3\Core\Utility\GeneralUtility::intExplode("1,2,3");
}
}

###### Expected output

class Test {
/**
* @var \Mw\T3Compat\Utility\GeneralUtility
* @Flow\Inject
*/
protected $generalUtility;

public function foo() {
$list = $this->generalUtility->intExplode("1,2,3");
}
}