@@ -180,19 +180,19 @@ |
||
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); |