original_string: public static function unpack(string $releaseName): bool
      {
          try {
              $p = new \PharData(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName));
              $p->extractTo(Utilities::getBasePath());
  
              if (!unlink(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName))) {
                  printf('ERROR: Can not remove the decompressed archive%s', PHP_EOL);
                  return false;
              }
          } catch (\PharException $e) {
              printf('ERROR: Can not unpack the archive%s%s', PHP_EOL, $e);
              return false;
          }
  
          return true;
      }
code: public static function unpack(string $releaseName): bool
      {
          try {
              $p = new \PharData(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName));
              $p->extractTo(Utilities::getBasePath());
  
              if (!unlink(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName))) {
                  printf('ERROR: Can not remove the decompressed archive%s', PHP_EOL);
                  return false;
              }
          } catch (\PharException $e) {
              printf('ERROR: Can not unpack the archive%s%s', PHP_EOL, $e);
              return false;
          }
  
          return true;
      }
code_tokens: public static function unpack ( string $ releaseName ) : bool { try { $ p = new \ PharData ( sprintf ( "%s/%s.tar" , Utilities :: getBasePath ( ) , $ releaseName ) ) ; $ p -> extractTo ( Utilities :: getBasePath ( ) ) ; if ( ! unlink ( sprintf ( "%s/%s.tar" , Utilities :: getBasePath ( ) , $ releaseName ) ) ) { printf ( 'ERROR: Can not remove the decompressed archive%s' , PHP_EOL ) ; return false ; } } catch ( \ PharException $ e ) { printf ( 'ERROR: Can not unpack the archive%s%s' , PHP_EOL , $ e ) ; return false ; } return true ; }
docstring: unpacks the release archive
docstring_tokens: unpacks the release archive