Completed
Pull Request — 1.1 (#490)
by Mateusz
15:50
created
code/model/DNEnvironment.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -180,19 +180,19 @@
 block discarded – undo
180 180
 		$backends = array_keys($this->config()->get('allowed_backends', Config::FIRST_SET));
181 181
 		switch(sizeof($backends)) {
182 182
 		// Nothing allowed, use the default value "DeploymentBackend"
183
-		case 0:
184
-			$backend = "DeploymentBackend";
185
-			break;
186
-
187
-		// Only 1 thing allowed, use that
188
-		case 1:
189
-			$backend = $backends[0];
190
-			break;
191
-
192
-		// Multiple choices, use our choice if it's legal, otherwise default to the first item on the list
193
-		default:
194
-			$backend = $this->BackendIdentifier;
195
-			if(!in_array($backend, $backends)) $backend = $backends[0];
183
+			case 0:
184
+				$backend = "DeploymentBackend";
185
+				break;
186
+
187
+			// Only 1 thing allowed, use that
188
+			case 1:
189
+				$backend = $backends[0];
190
+				break;
191
+
192
+			// Multiple choices, use our choice if it's legal, otherwise default to the first item on the list
193
+			default:
194
+				$backend = $this->BackendIdentifier;
195
+				if(!in_array($backend, $backends)) $backend = $backends[0];
196 196
 		}
197 197
 
198 198
 		return Injector::inst()->get($backend);
Please login to merge, or discard this patch.