@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * @return DeploymentStrategy |
217 | 217 | */ |
218 | 218 | public function getDeployStrategy(\SS_HTTPRequest $request) { |
219 | - return $this->Backend()->planDeploy($this, $request);; |
|
219 | + return $this->Backend()->planDeploy($this, $request); ; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | public function Menu() { |
@@ -408,10 +408,10 @@ discard block |
||
408 | 408 | } |
409 | 409 | // Must be logged in to check permissions |
410 | 410 | |
411 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
412 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_DEPLOYMENT, $member)) return true; |
|
411 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
412 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_DEPLOYMENT, $member)) return true; |
|
413 | 413 | } else { |
414 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_DEPLOYMENT, $member)) return true; |
|
414 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_DEPLOYMENT, $member)) return true; |
|
415 | 415 | } |
416 | 416 | |
417 | 417 | return $this->Deployers()->byID($member->ID) |
@@ -443,10 +443,10 @@ discard block |
||
443 | 443 | } |
444 | 444 | // Must be logged in to check permissions |
445 | 445 | |
446 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
447 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
446 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
447 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
448 | 448 | } else { |
449 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
449 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | return $this->CanRestoreMembers()->byID($member->ID) |
@@ -474,10 +474,10 @@ discard block |
||
474 | 474 | return false; |
475 | 475 | } |
476 | 476 | |
477 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
478 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
477 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
478 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
479 | 479 | } else { |
480 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
480 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
481 | 481 | } |
482 | 482 | |
483 | 483 | return $this->CanBackupMembers()->byID($member->ID) |
@@ -509,10 +509,10 @@ discard block |
||
509 | 509 | } |
510 | 510 | // Must be logged in to check permissions |
511 | 511 | |
512 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
513 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
512 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
513 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
514 | 514 | } else { |
515 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
515 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
516 | 516 | } |
517 | 517 | |
518 | 518 | return $this->ArchiveUploaders()->byID($member->ID) |
@@ -535,10 +535,10 @@ discard block |
||
535 | 535 | } |
536 | 536 | // Must be logged in to check permissions |
537 | 537 | |
538 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
539 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
538 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
539 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
540 | 540 | } else { |
541 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
541 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
542 | 542 | } |
543 | 543 | |
544 | 544 | return $this->ArchiveDownloaders()->byID($member->ID) |
@@ -604,10 +604,10 @@ discard block |
||
604 | 604 | } |
605 | 605 | // Must be logged in to check permissions |
606 | 606 | |
607 | - if ($this->Usage==='Production' || $this->Usage==='Unspecified') { |
|
608 | - if ($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
607 | + if($this->Usage === 'Production' || $this->Usage === 'Unspecified') { |
|
608 | + if($this->Project()->allowed(DNRoot::ALLOW_PROD_SNAPSHOT, $member)) return true; |
|
609 | 609 | } else { |
610 | - if ($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
610 | + if($this->Project()->allowed(DNRoot::ALLOW_NON_PROD_SNAPSHOT, $member)) return true; |
|
611 | 611 | } |
612 | 612 | |
613 | 613 | return $this->ArchiveDeleters()->byID($member->ID) |