@@ -31,7 +31,7 @@ |
||
31 | 31 | * Do the actual job by calling the appropiate backend |
32 | 32 | */ |
33 | 33 | public function perform() { |
34 | - echo "[-] PingJob starting" . PHP_EOL; |
|
34 | + echo "[-] PingJob starting".PHP_EOL; |
|
35 | 35 | $log = new DeploynautLogFile($this->args['logfile']); |
36 | 36 | |
37 | 37 | $ping = DNPing::get()->byID($this->args['pingID']); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | */ |
21 | 21 | public function perform() { |
22 | - echo "[-] CreateEnvJob starting" . PHP_EOL; |
|
22 | + echo "[-] CreateEnvJob starting".PHP_EOL; |
|
23 | 23 | // This is a bit icky, but there is no easy way of capturing a failed deploy by using the PHP Resque |
24 | 24 | try { |
25 | 25 | $envCreate = DNCreateEnvironment::get()->byId($this->args['createID']); |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | $envCreate->createEnvironment(); |
32 | 32 | |
33 | 33 | } catch(Exception $e) { |
34 | - echo "[-] CreateEnvJob failed" . PHP_EOL; |
|
34 | + echo "[-] CreateEnvJob failed".PHP_EOL; |
|
35 | 35 | throw $e; |
36 | 36 | } |
37 | 37 | $this->updateStatus('Finished'); |
38 | - echo "[-] CreateEnvJob finished" . PHP_EOL; |
|
38 | + echo "[-] CreateEnvJob finished".PHP_EOL; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | public function perform() { |
23 | - echo "[-] DataTransferJob starting" . PHP_EOL; |
|
23 | + echo "[-] DataTransferJob starting".PHP_EOL; |
|
24 | 24 | $log = new DeploynautLogFile($this->args['logfile']); |
25 | 25 | $dataTransfer = DNDataTransfer::get()->byID($this->args['dataTransferID']); |
26 | 26 | $environment = $dataTransfer->Environment(); |
@@ -83,12 +83,12 @@ discard block |
||
83 | 83 | } catch(RuntimeException $exc) { |
84 | 84 | $log->write($exc->getMessage()); |
85 | 85 | |
86 | - echo "[-] DataTransferJob failed" . PHP_EOL; |
|
86 | + echo "[-] DataTransferJob failed".PHP_EOL; |
|
87 | 87 | throw $exc; |
88 | 88 | } |
89 | 89 | |
90 | 90 | $this->updateStatus('Finished'); |
91 | - echo "[-] DataTransferJob finished" . PHP_EOL; |
|
91 | + echo "[-] DataTransferJob finished".PHP_EOL; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $path = $project->getLocalCVSPath(); |
24 | 24 | $env = $this->args['env']; |
25 | 25 | |
26 | - $log->write('Starting git fetch for project "' . $project->Name . '"'); |
|
26 | + $log->write('Starting git fetch for project "'.$project->Name.'"'); |
|
27 | 27 | |
28 | 28 | // if an alternate user has been configured for clone, run the command as that user |
29 | 29 | // @todo Gitonomy doesn't seem to have any way to prefix the command properly, if you |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * @return bool |
257 | 257 | */ |
258 | 258 | public function canRestore($member = null) { |
259 | - if ($this->allowedAny( |
|
259 | + if($this->allowedAny( |
|
260 | 260 | array( |
261 | 261 | DNRoot::ALLOW_PROD_SNAPSHOT, |
262 | 262 | DNRoot::ALLOW_NON_PROD_SNAPSHOT |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @return bool |
277 | 277 | */ |
278 | 278 | public function canBackup($member = null) { |
279 | - if ($this->allowedAny( |
|
279 | + if($this->allowedAny( |
|
280 | 280 | array( |
281 | 281 | DNRoot::ALLOW_PROD_SNAPSHOT, |
282 | 282 | DNRoot::ALLOW_NON_PROD_SNAPSHOT |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | * @return bool |
297 | 297 | */ |
298 | 298 | public function canUploadArchive($member = null) { |
299 | - if ($this->allowedAny( |
|
299 | + if($this->allowedAny( |
|
300 | 300 | array( |
301 | 301 | DNRoot::ALLOW_PROD_SNAPSHOT, |
302 | 302 | DNRoot::ALLOW_NON_PROD_SNAPSHOT |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @return bool |
317 | 317 | */ |
318 | 318 | public function canDownloadArchive($member = null) { |
319 | - if ($this->allowedAny( |
|
319 | + if($this->allowedAny( |
|
320 | 320 | array( |
321 | 321 | DNRoot::ALLOW_PROD_SNAPSHOT, |
322 | 322 | DNRoot::ALLOW_NON_PROD_SNAPSHOT |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | // Key-pair is available, use it. |
386 | 386 | $processEnv = array( |
387 | 387 | 'IDENT_KEY' => $this->getPrivateKeyPath(), |
388 | - 'GIT_SSH' => BASE_PATH . "/deploynaut/git-deploy.sh" |
|
388 | + 'GIT_SSH' => BASE_PATH."/deploynaut/git-deploy.sh" |
|
389 | 389 | ); |
390 | 390 | } else { |
391 | 391 | $processEnv = array(); |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | * @return bool |
647 | 647 | */ |
648 | 648 | public function repoExists() { |
649 | - return file_exists(DEPLOYNAUT_LOCAL_VCS_PATH . '/' . $this->Name.'/HEAD'); |
|
649 | + return file_exists(DEPLOYNAUT_LOCAL_VCS_PATH.'/'.$this->Name.'/HEAD'); |
|
650 | 650 | } |
651 | 651 | |
652 | 652 | /** |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | * @return string |
665 | 665 | */ |
666 | 666 | public function getLocalCVSPath() { |
667 | - return DEPLOYNAUT_LOCAL_VCS_PATH . '/' . $this->Name; |
|
667 | + return DEPLOYNAUT_LOCAL_VCS_PATH.'/'.$this->Name; |
|
668 | 668 | } |
669 | 669 | |
670 | 670 | /** |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | */ |
741 | 741 | public function getPublicKeyPath() { |
742 | 742 | if($privateKey = $this->getPrivateKeyPath()) { |
743 | - return $privateKey . '.pub'; |
|
743 | + return $privateKey.'.pub'; |
|
744 | 744 | } |
745 | 745 | return null; |
746 | 746 | } |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | if(!empty($keyDir)) { |
756 | 756 | $filter = FileNameFilter::create(); |
757 | 757 | $name = $filter->filter($this->Name); |
758 | - return $keyDir . '/' . $name; |
|
758 | + return $keyDir.'/'.$name; |
|
759 | 759 | } |
760 | 760 | return null; |
761 | 761 | } |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | $filter = FileNameFilter::create(); |
775 | 775 | $name = $filter->filter($this->Name); |
776 | 776 | |
777 | - return $this->DNData()->getKeyDir() . '/' . $name; |
|
777 | + return $this->DNData()->getKeyDir().'/'.$name; |
|
778 | 778 | } |
779 | 779 | |
780 | 780 | /** |
@@ -861,7 +861,7 @@ discard block |
||
861 | 861 | /* Look for each whitelisted hostname */ |
862 | 862 | foreach($interfaces as $host => $interface) { |
863 | 863 | /* See if the CVS Path is for this hostname, followed by some junk (maybe a port), then the path */ |
864 | - if(preg_match('{^[^.]*' . $host . '(.*?)([/a-zA-Z].+)}', $this->CVSPath, $match)) { |
|
864 | + if(preg_match('{^[^.]*'.$host.'(.*?)([/a-zA-Z].+)}', $this->CVSPath, $match)) { |
|
865 | 865 | |
866 | 866 | $path = $match[2]; |
867 | 867 | |
@@ -872,10 +872,10 @@ discard block |
||
872 | 872 | $components = explode('.', $host); |
873 | 873 | |
874 | 874 | foreach($regex as $pattern => $replacement) { |
875 | - $path = preg_replace('/' . $pattern . '/', $replacement, $path); |
|
875 | + $path = preg_replace('/'.$pattern.'/', $replacement, $path); |
|
876 | 876 | } |
877 | 877 | |
878 | - $uxurl = Controller::join_links($scheme . '://', $host, $path); |
|
878 | + $uxurl = Controller::join_links($scheme.'://', $host, $path); |
|
879 | 879 | |
880 | 880 | if(array_key_exists('commit', $interface) && $interface['commit'] == false) { |
881 | 881 | $commiturl = false; |
@@ -959,14 +959,14 @@ discard block |
||
959 | 959 | * @return bool |
960 | 960 | */ |
961 | 961 | public function allowedAny($codes, $member = null) { |
962 | - if (!$member) { |
|
962 | + if(!$member) { |
|
963 | 963 | $member = Member::currentUser(); |
964 | 964 | } |
965 | 965 | |
966 | 966 | if(Permission::checkMember($member, 'ADMIN')) return true; |
967 | 967 | |
968 | 968 | $hits = $this->whoIsAllowedAny($codes)->filter('Member.ID', $member->ID)->count(); |
969 | - return ($hits>0 ? true : false); |
|
969 | + return ($hits > 0 ? true : false); |
|
970 | 970 | } |
971 | 971 | |
972 | 972 | } |
@@ -87,9 +87,9 @@ |
||
87 | 87 | $fetch->write(); |
88 | 88 | $fetch->start(); |
89 | 89 | |
90 | - $location = Director::absoluteBaseURL() . $this->Link() . '/fetch/' . $fetch->ID; |
|
90 | + $location = Director::absoluteBaseURL().$this->Link().'/fetch/'.$fetch->ID; |
|
91 | 91 | $output = array( |
92 | - 'message' => 'Ping queued as job ' . $fetch->ResqueToken, |
|
92 | + 'message' => 'Ping queued as job '.$fetch->ResqueToken, |
|
93 | 93 | 'href' => $location, |
94 | 94 | ); |
95 | 95 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $path = $this->args['path']; |
19 | 19 | $repo = $this->args['repo']; |
20 | 20 | $env = $this->args['env']; |
21 | - $logfile = DEPLOYNAUT_LOG_PATH . '/clonegitrepo.log'; |
|
21 | + $logfile = DEPLOYNAUT_LOG_PATH.'/clonegitrepo.log'; |
|
22 | 22 | $fh = fopen($logfile, 'a'); |
23 | 23 | if(!$fh) { |
24 | 24 | throw new RuntimeException(sprintf('Can\'t open file "%s" for logging.', $logfile)); |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | } |
35 | 35 | $command[] = sprintf('rm -rf %s', $path); |
36 | 36 | |
37 | - fwrite($fh, sprintf('[%s] Cleaning up existing repository %s', date('Y-m-d H:i:s'), $path) . PHP_EOL); |
|
38 | - fwrite($fh, sprintf('[%s] Running command: %s', date('Y-m-d H:i:s'), implode(' ', $command)) . PHP_EOL); |
|
37 | + fwrite($fh, sprintf('[%s] Cleaning up existing repository %s', date('Y-m-d H:i:s'), $path).PHP_EOL); |
|
38 | + fwrite($fh, sprintf('[%s] Running command: %s', date('Y-m-d H:i:s'), implode(' ', $command)).PHP_EOL); |
|
39 | 39 | |
40 | 40 | $process = new \Symfony\Component\Process\Process(implode(' ', $command)); |
41 | 41 | $process->setEnv($env); |
@@ -46,12 +46,12 @@ discard block |
||
46 | 46 | '[%s] Error cleaning up existing repository: %s', |
47 | 47 | date('Y-m-d H:i:s'), |
48 | 48 | $process->getErrorOutput() |
49 | - ) . PHP_EOL); |
|
49 | + ).PHP_EOL); |
|
50 | 50 | throw new RuntimeException($process->getErrorOutput()); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | - fwrite($fh, sprintf('[%s] Cloning repository %s to %s', date('Y-m-d H:i:s'), $repo, $path) . PHP_EOL); |
|
54 | + fwrite($fh, sprintf('[%s] Cloning repository %s to %s', date('Y-m-d H:i:s'), $repo, $path).PHP_EOL); |
|
55 | 55 | |
56 | 56 | $command = array(); |
57 | 57 | if(!empty($user)) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | $command[] = sprintf('git clone --bare -q %s %s', $repo, $path); |
61 | 61 | |
62 | - fwrite($fh, sprintf('[%s] Running command: %s', date('Y-m-d H:i:s'), implode(' ', $command)) . PHP_EOL); |
|
62 | + fwrite($fh, sprintf('[%s] Running command: %s', date('Y-m-d H:i:s'), implode(' ', $command)).PHP_EOL); |
|
63 | 63 | |
64 | 64 | $process = new \Symfony\Component\Process\Process(implode(' ', $command)); |
65 | 65 | $process->setEnv($env); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $repo, |
73 | 73 | $path, |
74 | 74 | $process->getErrorOutput() |
75 | - ) . PHP_EOL); |
|
75 | + ).PHP_EOL); |
|
76 | 76 | throw new RuntimeException($process->getErrorOutput()); |
77 | 77 | } |
78 | 78 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | date('Y-m-d H:i:s'), |
82 | 82 | $repo, |
83 | 83 | $path |
84 | - ) . PHP_EOL); |
|
84 | + ).PHP_EOL); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | ) |
190 | 190 | ); |
191 | 191 | |
192 | - if (\Director::isDev()) { |
|
192 | + if(\Director::isDev()) { |
|
193 | 193 | \Requirements::javascript('deploynaut/static/bundle-debug.js'); |
194 | 194 | } else { |
195 | 195 | \Requirements::javascript('deploynaut/static/bundle.js'); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | } |
252 | 252 | |
253 | 253 | // Block framework jquery |
254 | - Requirements::block(FRAMEWORK_DIR . '/thirdparty/jquery/jquery.js'); |
|
254 | + Requirements::block(FRAMEWORK_DIR.'/thirdparty/jquery/jquery.js'); |
|
255 | 255 | |
256 | 256 | self::include_requirements(); |
257 | 257 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * @return \SS_HTTPResponse |
271 | 271 | */ |
272 | 272 | public function index(SS_HTTPRequest $request) { |
273 | - return $this->redirect($this->Link() . 'projects/'); |
|
273 | + return $this->redirect($this->Link().'projects/'); |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | /** |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | $form->disableSecurityToken(); |
429 | 429 | $form->addExtraClass('fields-wide'); |
430 | 430 | // Tweak the action so it plays well with our fake URL structure. |
431 | - $form->setFormAction($project->Link() . '/UploadSnapshotForm'); |
|
431 | + $form->setFormAction($project->Link().'/UploadSnapshotForm'); |
|
432 | 432 | |
433 | 433 | return $form; |
434 | 434 | } |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | $dataArchive->DataTransfers()->add($dataTransfer); |
479 | 479 | $form->saveInto($dataArchive); |
480 | 480 | $dataArchive->write(); |
481 | - $workingDir = TEMP_FOLDER . DIRECTORY_SEPARATOR . 'deploynaut-transfer-' . $dataTransfer->ID; |
|
481 | + $workingDir = TEMP_FOLDER.DIRECTORY_SEPARATOR.'deploynaut-transfer-'.$dataTransfer->ID; |
|
482 | 482 | |
483 | 483 | $cleanupFn = function() use($workingDir, $dataTransfer, $dataArchive) { |
484 | 484 | $process = new Process(sprintf('rm -rf %s', escapeshellarg($workingDir))); |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | $form->disableSecurityToken(); |
579 | 579 | $form->addExtraClass('fields-wide'); |
580 | 580 | // Tweak the action so it plays well with our fake URL structure. |
581 | - $form->setFormAction($project->Link() . '/PostSnapshotForm'); |
|
581 | + $form->setFormAction($project->Link().'/PostSnapshotForm'); |
|
582 | 582 | |
583 | 583 | return $form; |
584 | 584 | } |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | $branchName = $request->getVar('name'); |
717 | 717 | $branch = $project->DNBranchList()->byName($branchName); |
718 | 718 | if(!$branch) { |
719 | - return new SS_HTTPResponse("Branch '" . Convert::raw2xml($branchName) . "' not found.", 404); |
|
719 | + return new SS_HTTPResponse("Branch '".Convert::raw2xml($branchName)."' not found.", 404); |
|
720 | 720 | } |
721 | 721 | |
722 | 722 | return $this->render(array( |
@@ -950,7 +950,7 @@ discard block |
||
950 | 950 | ); |
951 | 951 | |
952 | 952 | // Tweak the action so it plays well with our fake URL structure. |
953 | - $form->setFormAction($project->Link() . '/CreateEnvironmentForm'); |
|
953 | + $form->setFormAction($project->Link().'/CreateEnvironmentForm'); |
|
954 | 954 | |
955 | 955 | return $form; |
956 | 956 | } |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | $job->write(); |
984 | 984 | $job->start(); |
985 | 985 | |
986 | - return $this->redirect($project->Link('createenv') . '/' . $job->ID); |
|
986 | + return $this->redirect($project->Link('createenv').'/'.$job->ID); |
|
987 | 987 | } |
988 | 988 | |
989 | 989 | /** |
@@ -1041,7 +1041,7 @@ discard block |
||
1041 | 1041 | */ |
1042 | 1042 | public function getPlatformSpecificStrings() { |
1043 | 1043 | $strings = $this->config()->platform_specific_strings; |
1044 | - if ($strings) { |
|
1044 | + if($strings) { |
|
1045 | 1045 | return new ArrayList($strings); |
1046 | 1046 | } |
1047 | 1047 | } |
@@ -1165,7 +1165,7 @@ discard block |
||
1165 | 1165 | return $body; |
1166 | 1166 | } |
1167 | 1167 | |
1168 | - $form->setFormAction($this->getRequest()->getURL() . '/DeployForm'); |
|
1168 | + $form->setFormAction($this->getRequest()->getURL().'/DeployForm'); |
|
1169 | 1169 | return $form; |
1170 | 1170 | } |
1171 | 1171 | |
@@ -1439,7 +1439,7 @@ discard block |
||
1439 | 1439 | $deployment->start(); |
1440 | 1440 | |
1441 | 1441 | return json_encode(array( |
1442 | - 'url' => Director::absoluteBaseURL() . $deployment->Link() |
|
1442 | + 'url' => Director::absoluteBaseURL().$deployment->Link() |
|
1443 | 1443 | ), JSON_PRETTY_PRINT); |
1444 | 1444 | } |
1445 | 1445 | |
@@ -1546,7 +1546,7 @@ discard block |
||
1546 | 1546 | ->addExtraClass('btn') |
1547 | 1547 | ) |
1548 | 1548 | ); |
1549 | - $form->setFormAction($this->getRequest()->getURL() . '/DataTransferForm'); |
|
1549 | + $form->setFormAction($this->getRequest()->getURL().'/DataTransferForm'); |
|
1550 | 1550 | |
1551 | 1551 | return $form; |
1552 | 1552 | } |
@@ -1748,7 +1748,7 @@ discard block |
||
1748 | 1748 | ->addExtraClass('btn') |
1749 | 1749 | ) |
1750 | 1750 | ); |
1751 | - $form->setFormAction($project->Link() . '/DataTransferRestoreForm'); |
|
1751 | + $form->setFormAction($project->Link().'/DataTransferRestoreForm'); |
|
1752 | 1752 | |
1753 | 1753 | return $form; |
1754 | 1754 | } |
@@ -1846,7 +1846,7 @@ discard block |
||
1846 | 1846 | ->addExtraClass('btn') |
1847 | 1847 | ) |
1848 | 1848 | ); |
1849 | - $form->setFormAction($project->Link() . '/DeleteForm'); |
|
1849 | + $form->setFormAction($project->Link().'/DeleteForm'); |
|
1850 | 1850 | |
1851 | 1851 | return $form; |
1852 | 1852 | } |
@@ -1952,7 +1952,7 @@ discard block |
||
1952 | 1952 | ->addExtraClass('btn') |
1953 | 1953 | ) |
1954 | 1954 | ); |
1955 | - $form->setFormAction($this->getCurrentProject()->Link() . '/MoveForm'); |
|
1955 | + $form->setFormAction($this->getCurrentProject()->Link().'/MoveForm'); |
|
1956 | 1956 | |
1957 | 1957 | return $form; |
1958 | 1958 | } |
@@ -2251,7 +2251,7 @@ discard block |
||
2251 | 2251 | */ |
2252 | 2252 | protected function project404Response() { |
2253 | 2253 | return new SS_HTTPResponse( |
2254 | - "Project '" . Convert::raw2xml($this->getRequest()->param('Project')) . "' not found.", |
|
2254 | + "Project '".Convert::raw2xml($this->getRequest()->param('Project'))."' not found.", |
|
2255 | 2255 | 404 |
2256 | 2256 | ); |
2257 | 2257 | } |
@@ -2261,7 +2261,7 @@ discard block |
||
2261 | 2261 | */ |
2262 | 2262 | protected function environment404Response() { |
2263 | 2263 | $envName = Convert::raw2xml($this->getRequest()->param('Environment')); |
2264 | - return new SS_HTTPResponse("Environment '" . $envName . "' not found.", 404); |
|
2264 | + return new SS_HTTPResponse("Environment '".$envName."' not found.", 404); |
|
2265 | 2265 | } |
2266 | 2266 | |
2267 | 2267 | /** |
@@ -2328,7 +2328,7 @@ discard block |
||
2328 | 2328 | public function AmbientMenu() { |
2329 | 2329 | $list = new ArrayList(); |
2330 | 2330 | |
2331 | - if (Member::currentUserID()) { |
|
2331 | + if(Member::currentUserID()) { |
|
2332 | 2332 | $list->push(new ArrayData(array( |
2333 | 2333 | 'Classes' => 'logout', |
2334 | 2334 | 'FaIcon' => 'sign-out', |
@@ -2434,7 +2434,7 @@ discard block |
||
2434 | 2434 | } else { |
2435 | 2435 | $form->sessionMessage('Unable to write the stack to the database.', 'bad'); |
2436 | 2436 | } |
2437 | - } catch (ValidationException $e) { |
|
2437 | + } catch(ValidationException $e) { |
|
2438 | 2438 | $form->sessionMessage($e->getMessage(), 'bad'); |
2439 | 2439 | } |
2440 | 2440 | return $this->redirectBack(); |
@@ -2514,7 +2514,7 @@ discard block |
||
2514 | 2514 | try { |
2515 | 2515 | $clone->perform(); |
2516 | 2516 | $canAccessRepo = true; |
2517 | - } catch (RuntimeException $e) { |
|
2517 | + } catch(RuntimeException $e) { |
|
2518 | 2518 | $canAccessRepo = false; |
2519 | 2519 | } |
2520 | 2520 | $data = ['canAccessRepo' => $canAccessRepo]; |