src/BackslashFixer/Fixer/FileEditor.php
private function removeUseFunctionsFromBackslashing(FileGenerator $generator, array $functions)
    {
        foreach ($generator->getUses() as $namespacedFunction) {
            list($functionOrClass) = $namespacedFunction;

            if (\function_exists($functionOrClass)) {
                $function = \explode("\\", $functionOrClass);
                $function = \array_pop($function);

                if (!empty($functions[$function])) {
                    unset($functions[$function]);
                }
            }
        }

        return $functions;
    }
private function removeUseFunctionsFromBackslashing(FileGenerator $generator, array $functions)
    {
        foreach ($generator->getUses() as $namespacedFunction) {
            list($functionOrClass) = $namespacedFunction;

            if (\function_exists($functionOrClass)) {
                $function = \explode("\\", $functionOrClass);
                $function = \array_pop($function);

                if (!empty($functions[$function])) {
                    unset($functions[$function]);
                }
            }
        }

        return $functions;
    }
private function removeUseFunctionsFromBackslashing ( FileGenerator $ generator , array $ functions ) { foreach ( $ generator -> getUses ( ) as $ namespacedFunction ) { list ( $ functionOrClass ) = $ namespacedFunction ; if ( \ function_exists ( $ functionOrClass ) ) { $ function = \ explode ( "\\" , $ functionOrClass ) ; $ function = \ array_pop ( $ function ) ; if ( ! empty ( $ functions [ $ function ] ) ) { unset ( $ functions [ $ function ] ) ; } } } return $ functions ; }
If a method exists under a namespace and has been aliased, or has been imported, don't replace.

@param FileGenerator $generator
@param array         $functions

@return array
If a method exists under a namespace and has been aliased or has been imported don t replace .