Completed
Push — master ( bac082...9a0021 )
by Stig
05:39 queued 02:07
created
code/control/DeployDispatcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
 		$data = [];
60 60
 		$list = $this->DeployHistory();
61 61
 		$page = $request->getVar('page') ?: 1;
62
-		if ($page > $list->TotalPages()) {
62
+		if($page > $list->TotalPages()) {
63 63
 			$page = 1;
64 64
 		}
65
-		if ($page < 1) {
65
+		if($page < 1) {
66 66
 			$page = 1;
67 67
 		}
68 68
 		$start = ($page - 1) * $list->getPageLength();
69
-		$list->setPageStart((int) $start);
70
-		if (empty($list)) {
69
+		$list->setPageStart((int)$start);
70
+		if(empty($list)) {
71 71
 			return $this->getAPIResponse(['message' => 'No deploy history'], 404);
72 72
 		}
73 73
 
74
-		foreach ($list as $deployment) {
74
+		foreach($list as $deployment) {
75 75
 			$data[] = [
76 76
 				'CreatedDate' => $deployment->Created,
77 77
 				'Branch' => $deployment->Branch,
Please login to merge, or discard this patch.