Completed
Push — master ( acb692...846403 )
by Mateusz
03:38
created
code/control/DNRoot.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
 		Requirements::javascript('deploynaut/javascript/material.js');
195 195
 
196 196
 		// Load the buildable dependencies only if not loaded centrally.
197
-		if (!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) {
198
-			if (\Director::isDev()) {
197
+		if(!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) {
198
+			if(\Director::isDev()) {
199 199
 				\Requirements::javascript('deploynaut/static/bundle-debug.js');
200 200
 			} else {
201 201
 				\Requirements::javascript('deploynaut/static/bundle.js');
@@ -1054,7 +1054,7 @@  discard block
 block discarded – undo
1054 1054
 	 */
1055 1055
 	public function getPlatformSpecificStrings() {
1056 1056
 		$strings = $this->config()->platform_specific_strings;
1057
-		if ($strings) {
1057
+		if($strings) {
1058 1058
 			return new ArrayList($strings);
1059 1059
 		}
1060 1060
 	}
@@ -1118,7 +1118,7 @@  discard block
 block discarded – undo
1118 1118
 
1119 1119
 				$isCurrentEnvironment = false;
1120 1120
 				if($project && $currentEnvironment) {
1121
-					$isCurrentEnvironment = (bool) $project->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1121
+					$isCurrentEnvironment = (bool)$project->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1122 1122
 				}
1123 1123
 
1124 1124
 				$navigation->push(array(
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
 			if(!$activeProject && $currentProject) {
1134 1134
 				$isCurrentEnvironment = false;
1135 1135
 				if($currentEnvironment) {
1136
-					$isCurrentEnvironment = (bool) $activeProject->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1136
+					$isCurrentEnvironment = (bool)$activeProject->DNEnvironmentList()->find('ID', $currentEnvironment->ID);
1137 1137
 				}
1138 1138
 
1139 1139
 				$navigation->unshift(array(
@@ -2357,7 +2357,7 @@  discard block
 block discarded – undo
2357 2357
 	public function AmbientMenu() {
2358 2358
 		$list = new ArrayList();
2359 2359
 
2360
-		if (Member::currentUserID()) {
2360
+		if(Member::currentUserID()) {
2361 2361
 			$list->push(new ArrayData(array(
2362 2362
 				'Classes' => 'logout',
2363 2363
 				'FaIcon' => 'sign-out',
@@ -2462,7 +2462,7 @@  discard block
 block discarded – undo
2462 2462
 			} else {
2463 2463
 				$form->sessionMessage('Unable to write the stack to the database.', 'bad');
2464 2464
 			}
2465
-		} catch (ValidationException $e) {
2465
+		} catch(ValidationException $e) {
2466 2466
 			$form->sessionMessage($e->getMessage(), 'bad');
2467 2467
 		}
2468 2468
 		return $this->redirectBack();
@@ -2537,7 +2537,7 @@  discard block
 block discarded – undo
2537 2537
 			try {
2538 2538
 				$fetch->perform();
2539 2539
 				$canAccessRepo = true;
2540
-			} catch (RuntimeException $e) {
2540
+			} catch(RuntimeException $e) {
2541 2541
 				$canAccessRepo = false;
2542 2542
 			}
2543 2543
 			$data = ['canAccessRepo' => $canAccessRepo];
Please login to merge, or discard this patch.