original_string: protected function addFile(
          Phar $phar,
          SplFileInfo $file,
          $strip = true
      ) {
          $path = strtr(str_replace(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR, '', $file->getRealPath()), '\\', '/');
          $content = file_get_contents($file);
          if ($strip) {
              $content = $this->stripWhitespace($content);
          } elseif ('LICENSE' === basename($file)) {
              $content = "\n" . $content . "\n";
          }
  
          if ($path === 'src/Composer/Composer.php') {
              $content = str_replace('@package_version@', $this->version, $content);
              $content = str_replace('@release_date@', $this->versionDate, $content);
          }
  
          $phar->addFromString($path, $content);
  
          return $this;
      }
code: protected function addFile(
          Phar $phar,
          SplFileInfo $file,
          $strip = true
      ) {
          $path = strtr(str_replace(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR, '', $file->getRealPath()), '\\', '/');
          $content = file_get_contents($file);
          if ($strip) {
              $content = $this->stripWhitespace($content);
          } elseif ('LICENSE' === basename($file)) {
              $content = "\n" . $content . "\n";
          }
  
          if ($path === 'src/Composer/Composer.php') {
              $content = str_replace('@package_version@', $this->version, $content);
              $content = str_replace('@release_date@', $this->versionDate, $content);
          }
  
          $phar->addFromString($path, $content);
  
          return $this;
      }
code_tokens: protected function addFile ( Phar $ phar , SplFileInfo $ file , $ strip = true ) { $ path = strtr ( str_replace ( dirname ( dirname ( dirname ( __DIR__ ) ) ) . DIRECTORY_SEPARATOR , '' , $ file -> getRealPath ( ) ) , '\\' , '/' ) ; $ content = file_get_contents ( $ file ) ; if ( $ strip ) { $ content = $ this -> stripWhitespace ( $ content ) ; } elseif ( 'LICENSE' === basename ( $ file ) ) { $ content = "\n" . $ content . "\n" ; } if ( $ path === 'src/Composer/Composer.php' ) { $ content = str_replace ( '@package_version@' , $ this -> version , $ content ) ; $ content = str_replace ( '@release_date@' , $ this -> versionDate , $ content ) ; } $ phar -> addFromString ( $ path , $ content ) ; return $ this ; }
docstring: Add a file into the phar package
  
  @param Phar        $phar  Phar object
  @param SplFileInfo $file  File to add
  @param bool        $strip strip
  
  @return Compiler self Object
docstring_tokens: Add a file into the phar package