@@ -961,7 +961,7 @@ |
||
| 961 | 961 | * @param array $data |
| 962 | 962 | * @param Form $form |
| 963 | 963 | * |
| 964 | - * @return bool|HTMLText|SS_HTTPResponse |
|
| 964 | + * @return SS_HTTPResponse|null |
|
| 965 | 965 | */ |
| 966 | 966 | public function doCreateEnvironment($data, Form $form) { |
| 967 | 967 | $this->setCurrentActionType(self::ACTION_ENVIRONMENTS); |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | Requirements::javascript('deploynaut/javascript/material.js'); |
| 187 | 187 | |
| 188 | 188 | // Load the buildable dependencies only if not loaded centrally. |
| 189 | - if (!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) { |
|
| 190 | - if (\Director::isDev()) { |
|
| 189 | + if(!is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'static')) { |
|
| 190 | + if(\Director::isDev()) { |
|
| 191 | 191 | \Requirements::javascript('deploynaut/static/bundle-debug.js'); |
| 192 | 192 | } else { |
| 193 | 193 | \Requirements::javascript('deploynaut/static/bundle.js'); |
@@ -1046,7 +1046,7 @@ discard block |
||
| 1046 | 1046 | */ |
| 1047 | 1047 | public function getPlatformSpecificStrings() { |
| 1048 | 1048 | $strings = $this->config()->platform_specific_strings; |
| 1049 | - if ($strings) { |
|
| 1049 | + if($strings) { |
|
| 1050 | 1050 | return new ArrayList($strings); |
| 1051 | 1051 | } |
| 1052 | 1052 | } |
@@ -1111,7 +1111,7 @@ discard block |
||
| 1111 | 1111 | |
| 1112 | 1112 | $isCurrentEnvironment = false; |
| 1113 | 1113 | if($project && $currentEnvironment) { |
| 1114 | - $isCurrentEnvironment = (bool) $project->DNEnvironmentList()->find('ID', $currentEnvironment->ID); |
|
| 1114 | + $isCurrentEnvironment = (bool)$project->DNEnvironmentList()->find('ID', $currentEnvironment->ID); |
|
| 1115 | 1115 | } |
| 1116 | 1116 | |
| 1117 | 1117 | $navigation->push(array( |
@@ -2345,7 +2345,7 @@ discard block |
||
| 2345 | 2345 | public function AmbientMenu() { |
| 2346 | 2346 | $list = new ArrayList(); |
| 2347 | 2347 | |
| 2348 | - if (Member::currentUserID()) { |
|
| 2348 | + if(Member::currentUserID()) { |
|
| 2349 | 2349 | $list->push(new ArrayData(array( |
| 2350 | 2350 | 'Classes' => 'logout', |
| 2351 | 2351 | 'FaIcon' => 'sign-out', |