Completed
Push — master ( 846403...4aa1cd )
by Sean
03:10
created
code/control/DNRoot.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
 		Requirements::javascript('deploynaut/javascript/material.js');
193 193
 
194 194
 		// Load the buildable dependencies only if not loaded centrally.
195
-		if (!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) {
196
-			if (\Director::isDev()) {
195
+		if(!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) {
196
+			if(\Director::isDev()) {
197 197
 				\Requirements::javascript('deploynaut/static/bundle-debug.js');
198 198
 			} else {
199 199
 				\Requirements::javascript('deploynaut/static/bundle.js');
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
 	 */
1053 1053
 	public function getPlatformSpecificStrings() {
1054 1054
 		$strings = $this->config()->platform_specific_strings;
1055
-		if ($strings) {
1055
+		if($strings) {
1056 1056
 			return new ArrayList($strings);
1057 1057
 		}
1058 1058
 	}
@@ -1117,7 +1117,7 @@  discard block
 block discarded – undo
1117 1117
 
1118 1118
 				$isCurrentEnvironment = false;
1119 1119
 				if($project && $currentEnvironment) {
1120
-					$isCurrentEnvironment = (bool) $project->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1120
+					$isCurrentEnvironment = (bool)$project->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1121 1121
 				}
1122 1122
 
1123 1123
 				$navigation->push(array(
@@ -2350,7 +2350,7 @@  discard block
 block discarded – undo
2350 2350
 	public function AmbientMenu() {
2351 2351
 		$list = new ArrayList();
2352 2352
 
2353
-		if (Member::currentUserID()) {
2353
+		if(Member::currentUserID()) {
2354 2354
 			$list->push(new ArrayData(array(
2355 2355
 				'Classes' => 'logout',
2356 2356
 				'FaIcon' => 'sign-out',
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
 			} else {
2456 2456
 				$form->sessionMessage('Unable to write the stack to the database.', 'bad');
2457 2457
 			}
2458
-		} catch (ValidationException $e) {
2458
+		} catch(ValidationException $e) {
2459 2459
 			$form->sessionMessage($e->getMessage(), 'bad');
2460 2460
 		}
2461 2461
 		return $this->redirectBack();
@@ -2530,7 +2530,7 @@  discard block
 block discarded – undo
2530 2530
 			try {
2531 2531
 				$fetch->perform();
2532 2532
 				$canAccessRepo = true;
2533
-			} catch (RuntimeException $e) {
2533
+			} catch(RuntimeException $e) {
2534 2534
 				$canAccessRepo = false;
2535 2535
 			}
2536 2536
 			$data = ['canAccessRepo' => $canAccessRepo];
Please login to merge, or discard this patch.