original_string: protected function replace($from, $to)
      {
          if ($this->file->getExtension() === 'json') {
              $from = addslashes($from);
          }
  
          file_put_contents(
              $this->file->getRealPath(),
              str_replace($from, $to, $this->file->getContents())
          );
      }
code: protected function replace($from, $to)
      {
          if ($this->file->getExtension() === 'json') {
              $from = addslashes($from);
          }
  
          file_put_contents(
              $this->file->getRealPath(),
              str_replace($from, $to, $this->file->getContents())
          );
      }
code_tokens: protected function replace ( $ from , $ to ) { if ( $ this -> file -> getExtension ( ) === 'json' ) { $ from = addslashes ( $ from ) ; } file_put_contents ( $ this -> file -> getRealPath ( ) , str_replace ( $ from , $ to , $ this -> file -> getContents ( ) ) ) ; }
docstring: Replaces strings in file content.
  
  @param  string $from
  @param  string $to
  
  @return void
docstring_tokens: Replaces strings in file content .