$remoteCloneUrl = $remoteTitle = null;
if (count($arRemoteCloneUrls)) {
reset($arRemoteCloneUrls);
- list($remoteCloneUrl, $remoteTitle) = each($arRemoteCloneUrls);
+ $remoteCloneUrl = key($arRemoteCloneUrls);
+ $remoteTitle = current($arRemoteCloneUrls);
}
$remoteid = 'fork-' . uniqid();
//check if we already know this remote
if (array_sum($GLOBALS['phorkie']['cfgfiles']) == 0) {
//no config file loaded
reset($GLOBALS['phorkie']['cfgfiles']);
- list($cfgFilePath, ) = each($GLOBALS['phorkie']['cfgfiles']);
+ $cfgFilePath = key($GLOBALS['phorkie']['cfgfiles']);
$cfgFilePath = Tools::foldPath($cfgFilePath);
$cfgFileTemplate = htmlspecialchars(