From f4e8bd8f8d58d91dc399f80956fd834973aa6e5a Mon Sep 17 00:00:00 2001 From: zhaixiaojian Date: Tue, 13 Aug 2024 16:35:59 +0800 Subject: [PATCH] * [task#125051,done,0.1h,0h] Adjust code format. --- module/repo/control.php | 2 +- module/repo/ui/log.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index adad2c1007..d50e88aa28 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -2000,7 +2000,7 @@ class repo extends control $retCommits = array(); if(!empty($commits)) { - foreach ($commits as $item) array_push($retCommits, array('commitID'=>$item->revision, 'shortID'=>substr($item->revision, 0, 10), 'message'=>$item->message)); + foreach ($commits as $item) array_push($retCommits, array('commitID' => $item->revision, 'shortID' => substr($item->revision, 0, 10), 'message' => $item->message)); } echo json_encode($retCommits); } diff --git a/module/repo/ui/log.html.php b/module/repo/ui/log.html.php index a685ca5653..cba00823c0 100644 --- a/module/repo/ui/log.html.php +++ b/module/repo/ui/log.html.php @@ -59,7 +59,7 @@ foreach($logs as $log) if(!empty($log->relations[$value])) { $log->designName .= html::commonButton($lang->repo->{$value} , '', 'btn size-sm mx-2'); - foreach($log->relations[$value] as $item) $log->designName .= html::a($item->url, '#'.$item->id, '_blank'); + foreach($log->relations[$value] as $item) $log->designName .= html::a($item->url, '#' . $item->id, '_blank'); } } }