@@ -59,19 +59,19 @@ |
||
| 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, |