* Fix code style.

This commit is contained in:
xiawenlong
2021-11-17 15:40:11 +08:00
parent 8c1f8ea70c
commit ccfb8c4831
2 changed files with 11 additions and 4 deletions

View File

@@ -303,11 +303,17 @@ class gitlabModel extends model
$refList = array();
$branches = $this->apiGetBranches($gitlabID, $projectID);
if(is_array($branches)) foreach($branches as $branch) $refList[$branch->name] = "Branch::" . $branch->name;
if(is_array($branches))
{
foreach($branches as $branch) $refList[$branch->name] = "Branch::" . $branch->name;
}
$tags = $this->apiGetTags($gitlabID, $projectID);
if(is_array($tags)) foreach($tags as $tag) $refList[$tag->name] = "Tag::" . $tag->name;
if(is_array($tags))
{
foreach($tags as $tag) $refList[$tag->name] = "Tag::" . $tag->name;
}
return $refList;
}