private function replaceDummyInFile($filePath)
    {
        $fileSource = File::get($filePath);
        $fileContent = str_replace(array_keys($this->dummyReplacements), array_values($this->dummyReplacements), $fileSource);
        $writeFile = File::put($filePath, $fileContent);
        if ($writeFile === false) {
            throw new \Exception("Error writing to file " . $filePath);
        }
    }
private function replaceDummyInFile($filePath)
    {
        $fileSource = File::get($filePath);
        $fileContent = str_replace(array_keys($this->dummyReplacements), array_values($this->dummyReplacements), $fileSource);
        $writeFile = File::put($filePath, $fileContent);
        if ($writeFile === false) {
            throw new \Exception("Error writing to file " . $filePath);
        }
    }
private function replaceDummyInFile ( $ filePath ) { $ fileSource = File :: get ( $ filePath ) ; $ fileContent = str_replace ( array_keys ( $ this -> dummyReplacements ) , array_values ( $ this -> dummyReplacements ) , $ fileSource ) ; $ writeFile = File :: put ( $ filePath , $ fileContent ) ; if ( $ writeFile === false ) { throw new \ Exception ( "Error writing to file " . $ filePath ) ; } }
Replace dummy content in a file

@param $filePath
Replace dummy content in a file