@@ -10,7 +10,7 @@ |
||
10 | 10 | } |
11 | 11 | |
12 | 12 | protected function sendEmailToApprover(DNDeployment $deployment) { |
13 | - if (!$deployment->Approver()->exists()) { |
|
13 | + if(!$deployment->Approver()->exists()) { |
|
14 | 14 | return false; |
15 | 15 | } |
16 | 16 |
@@ -87,9 +87,9 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | public function getMachine() { |
90 | -<<<<<<< Updated upstream |
|
90 | +<< << << < Updated upstream |
|
91 | 91 | return $this->stateMachineFactory->forDNDeployment($this); |
92 | -||||||| merged common ancestors |
|
92 | +|| || || | merged common ancestors |
|
93 | 93 | $loader = new Finite\Loader\ArrayLoader([ |
94 | 94 | 'class' => 'DNDeployment', |
95 | 95 | 'states' => [ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | public function onAbort() { |
159 | 159 | // 2 is SIGINT - we can't use SIGINT constant in the mod_apache context. |
160 | 160 | DeployJob::set_signal($this, 2); |
161 | -======= |
|
161 | +=== === = |
|
162 | 162 | $notificationService = Injector::inst()->get('DeploymentNotificationService'); |
163 | 163 | |
164 | 164 | $loader = new Finite\Loader\ArrayLoader([ |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | public function onAbort() { |
231 | 231 | // 2 is SIGINT - we can't use SIGINT constant in the mod_apache context. |
232 | 232 | DeployJob::set_signal($this, 2); |
233 | ->>>>>>> Stashed changes |
|
233 | +>> >> >> > Stashed changes |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | public function Link() { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | } |
239 | 239 | |
240 | 240 | public function LogLink() { |
241 | - return $this->Link() . '/log'; |
|
241 | + return $this->Link().'/log'; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | public function canView($member = null) { |
@@ -357,12 +357,12 @@ discard block |
||
357 | 357 | */ |
358 | 358 | public function getFullDeployMessages() { |
359 | 359 | $strategy = $this->getDeploymentStrategy(); |
360 | - if ($strategy->getActionCode()!=='full') return null; |
|
360 | + if($strategy->getActionCode() !== 'full') return null; |
|
361 | 361 | |
362 | 362 | $changes = $strategy->getChangesModificationNeeded(); |
363 | 363 | $messages = []; |
364 | - foreach ($changes as $change => $details) { |
|
365 | - if ($change==='Code version') continue; |
|
364 | + foreach($changes as $change => $details) { |
|
365 | + if($change === 'Code version') continue; |
|
366 | 366 | |
367 | 367 | $messages[] = [ |
368 | 368 | 'Flag' => sprintf( |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | ]; |
374 | 374 | } |
375 | 375 | |
376 | - if (empty($messages)) { |
|
376 | + if(empty($messages)) { |
|
377 | 377 | $messages[] = [ |
378 | 378 | 'Flag' => '', |
379 | 379 | 'Text' => '<i>Environment changes have been made.</i>' |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | |
423 | 423 | // if there is a compare URL, and a description or a change (something actually changed) |
424 | 424 | // then show the URL. Otherwise don't show anything, as there is no comparison to be made. |
425 | - if ($changed || $description) { |
|
425 | + if($changed || $description) { |
|
426 | 426 | $compareUrl = isset($change['compareUrl']) ? $change['compareUrl'] : ''; |
427 | 427 | } |
428 | 428 |