original_string: protected function getPackageInfo(Version $version, &$result)
      {
          $date           = new \DateTime($version->getTime());
          $packageVersion = $version->getVersion();
          if ($packageVersion === PackageHelperInterface::DEFAULT_BRANCH_VERSION) {
              $result[$packageVersion] = [
                  'version'     => $packageVersion,
                  'date'        => $date->format('Y-m-d H:i:s'),
                  'authors'     => $version->getAuthors(),
                  'description' => $version->getDescription(),
                  'homepage'    => $version->getHomepage(),
                  'license'     => $version->getLicense(),
              ];
          }
      }
code: protected function getPackageInfo(Version $version, &$result)
      {
          $date           = new \DateTime($version->getTime());
          $packageVersion = $version->getVersion();
          if ($packageVersion === PackageHelperInterface::DEFAULT_BRANCH_VERSION) {
              $result[$packageVersion] = [
                  'version'     => $packageVersion,
                  'date'        => $date->format('Y-m-d H:i:s'),
                  'authors'     => $version->getAuthors(),
                  'description' => $version->getDescription(),
                  'homepage'    => $version->getHomepage(),
                  'license'     => $version->getLicense(),
              ];
          }
      }
code_tokens: protected function getPackageInfo ( Version $ version , & $ result ) { $ date = new \ DateTime ( $ version -> getTime ( ) ) ; $ packageVersion = $ version -> getVersion ( ) ; if ( $ packageVersion === PackageHelperInterface :: DEFAULT_BRANCH_VERSION ) { $ result [ $ packageVersion ] = [ 'version' => $ packageVersion , 'date' => $ date -> format ( 'Y-m-d H:i:s' ) , 'authors' => $ version -> getAuthors ( ) , 'description' => $ version -> getDescription ( ) , 'homepage' => $ version -> getHomepage ( ) , 'license' => $ version -> getLicense ( ) , ] ; } }
docstring: Adds information about single version to result array
  
  @param Version $version
  @param array   $result
docstring_tokens: Adds information about single version to result array