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(),
            ];
        }
    }
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(),
            ];
        }
    }
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 ( ) , ] ; } }
Adds information about single version to result array

@param Version $version
@param array   $result
Adds information about single version to result array