@@ -12,8 +12,8 @@ |
||
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public function __get($name) { |
| 15 | - if (method_exists($this, 'get' . $name)) { |
|
| 16 | - return $this->{'get' . $name}(); |
|
| 15 | + if (method_exists($this, 'get'.$name)) { |
|
| 16 | + return $this->{'get'.$name}(); |
|
| 17 | 17 | } |
| 18 | 18 | return $this->$name; |
| 19 | 19 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | substr($sha, 0, 8), |
| 95 | 95 | $branch->LastUpdated()->TimeDiff() |
| 96 | 96 | ); |
| 97 | - $branches[$sha . '-' . $name] = $branchValue; |
|
| 97 | + $branches[$sha.'-'.$name] = $branchValue; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | // Tags |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | substr($sha, 0, 8), |
| 108 | 108 | $branch->LastUpdated()->TimeDiff() |
| 109 | 109 | ); |
| 110 | - $tags[$sha . '-' . $name] = $tagValue; |
|
| 110 | + $tags[$sha.'-'.$name] = $tagValue; |
|
| 111 | 111 | } |
| 112 | 112 | $tags = array_reverse($tags); |
| 113 | 113 | |
@@ -117,7 +117,6 @@ |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * Return data about a particular {@link Member} of the stack for use in API response. |
| 120 | - |
|
| 121 | 120 | * Notes: |
| 122 | 121 | * 1) This method returns null instead of an array if the member doesn't exists anymore |
| 123 | 122 | * 2) 'role' can be null in the response. This is the case of an admin, or an operations |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $startedNice = null; |
| 41 | 41 | $startedAgo = null; |
| 42 | 42 | // we check first, before we do a expensive ->Nice() and ->Ago() |
| 43 | - if(!$deployment->DeployStarted) { |
|
| 43 | + if (!$deployment->DeployStarted) { |
|
| 44 | 44 | $started = $deployment->Created; |
| 45 | 45 | $startedNice = $deployment->obj('Created')->Nice(); |
| 46 | 46 | $startedAgo = $deployment->obj('Created')->Ago(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | self::$_cache_members[$memberID] = \DataObject::get_by_id("Member", $memberID); |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - if(!self::$_cache_members[$memberID]) { |
|
| 148 | + if (!self::$_cache_members[$memberID]) { |
|
| 149 | 149 | return null; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -82,11 +82,11 @@ |
||
| 82 | 82 | |
| 83 | 83 | $base = Director::absoluteBaseURL(); |
| 84 | 84 | return [ |
| 85 | - 'basename' => Director::baseURL() . $this->getCurrentEnvironment()->Link(self::ACTION_OVERVIEW), |
|
| 85 | + 'basename' => Director::baseURL().$this->getCurrentEnvironment()->Link(self::ACTION_OVERVIEW), |
|
| 86 | 86 | 'dispatchers' => [ |
| 87 | - 'git' => $base . $this->getCurrentProject()->Link('git'), |
|
| 88 | - 'deploys' => $base . $this->getCurrentEnvironment()->Link('deploys'), |
|
| 89 | - 'approvals' => $base . $this->getCurrentEnvironment()->Link('approvals') |
|
| 87 | + 'git' => $base.$this->getCurrentProject()->Link('git'), |
|
| 88 | + 'deploys' => $base.$this->getCurrentEnvironment()->Link('deploys'), |
|
| 89 | + 'approvals' => $base.$this->getCurrentEnvironment()->Link('approvals') |
|
| 90 | 90 | ], |
| 91 | 91 | 'api_auth' => [ |
| 92 | 92 | 'name' => $this->getSecurityToken()->getName(), |