private function getReplacementCommand($fromText, $toText)
    {
        $characters = ["'", ";", "\\", "/"];
        $escaped = ["\\'", "\\;", "\\\\", "\\/"];
        return sprintf(
            's/%s/%s/g',
            str_replace($characters, $escaped, $fromText),
            str_replace($characters, $escaped, $toText)
        );
    }
private function getReplacementCommand($fromText, $toText)
    {
        $characters = ["'", ";", "\\", "/"];
        $escaped = ["\\'", "\\;", "\\\\", "\\/"];
        return sprintf(
            's/%s/%s/g',
            str_replace($characters, $escaped, $fromText),
            str_replace($characters, $escaped, $toText)
        );
    }
private function getReplacementCommand ( $ fromText , $ toText ) { $ characters = [ "'" , ";" , "\\" , "/" ] ; $ escaped = [ "\\'" , "\\;" , "\\\\" , "\\/" ] ; return sprintf ( 's/%s/%s/g' , str_replace ( $ characters , $ escaped , $ fromText ) , str_replace ( $ characters , $ escaped , $ toText ) ) ; }
Get the string replacement command for a single item

@param string $fromText
@param string $toText

@return string
Get the string replacement command for a single item