src/CodeGeneration/Filesystem/File/FindReplace.php
public function findReplace(string $find, string $replace)
    {
        $contents = $this->file->getContents();
        $contents = \str_replace($find, $replace, $contents);
        $this->file->setContents($contents);

        return $this;
    }
public function findReplace(string $find, string $replace)
    {
        $contents = $this->file->getContents();
        $contents = \str_replace($find, $replace, $contents);
        $this->file->setContents($contents);

        return $this;
    }
public function findReplace ( string $ find , string $ replace ) { $ contents = $ this -> file -> getContents ( ) ; $ contents = \ str_replace ( $ find , $ replace , $ contents ) ; $ this -> file -> setContents ( $ contents ) ; return $ this ; }
Find and replace using simple case sensitive str_replace

@param string $find
@param string $replace

@return FindReplace
Find and replace using simple case sensitive str_replace