Completed
Pull Request — master (#806)
by Stig
03:37
created
code/api/DeploynautAPIFormatter.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.