Skip to content

Commit

Permalink
CLI-1093: slevomat/coding-standard 8.13.1 (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Jun 26, 2023
1 parent d936cc3 commit 667b3b5
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 189 deletions.
106 changes: 52 additions & 54 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 10 additions & 25 deletions src/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ public function getLocalDbHost(): string {

/**
* Initializes the command just after the input has been validated.
*
* @param InputInterface $input
* An InputInterface instance.
* @param OutputInterface $output
* An OutputInterface instance.
*/
protected function initialize(InputInterface $input, OutputInterface $output): void {
$this->input = $input;
Expand Down Expand Up @@ -594,8 +589,7 @@ protected function inferCloudAppFromLocalGitConfig(
/**
* Determine the Cloud environment.
*
* @return string
* The environment UUID.
* @return string The environment UUID.
*/
protected function determineCloudEnvironment(): string {
if ($this->input->hasArgument('environmentId') && $this->input->getArgument('environmentId')) {
Expand Down Expand Up @@ -769,8 +763,7 @@ protected function validateCwdIsValidDrupalProject(): void {
/**
* Determines if Acquia CLI is being run from within a Cloud IDE.
*
* @return bool
* TRUE if Acquia CLI is being run from within a Cloud IDE.
* @return bool TRUE if Acquia CLI is being run from within a Cloud IDE.
*/
public static function isAcquiaCloudIde(): bool {
return AcquiaDrupalEnvironmentDetector::isAhIdeEnv();
Expand Down Expand Up @@ -1034,12 +1027,9 @@ private function convertUserAliasToUuid(InputInterface $input, string $userUuidA
}

/**
* @param string $userUuidArgument
* User alias like uuid or email.
* @param string $orgUuidArgument
* Organization uuid.
* @return string
* User uuid from alias
* @param string $userUuidArgument User alias like uuid or email.
* @param string $orgUuidArgument Organization uuid.
* @return string User uuid from alias
*/
private function validateUserUuid(string $userUuidArgument, string $orgUuidArgument): string {
try {
Expand All @@ -1054,12 +1044,9 @@ private function validateUserUuid(string $userUuidArgument, string $orgUuidArgum
}

/**
* @param String $userAlias
* User alias like uuid or email.
* @param String $orgUuidArgument
* Organization uuid.
* @return string
* User uuid from alias
* @param String $userAlias User alias like uuid or email.
* @param String $orgUuidArgument Organization uuid.
* @return string User uuid from alias
*/
private function getUserUuidFromUserAlias(string $userAlias, string $orgUuidArgument): string {
$acquiaCloudClient = $this->cloudApiClientService->getClient();
Expand Down Expand Up @@ -1098,10 +1085,8 @@ protected function convertEnvironmentAliasToUuid(InputInterface $input, mixed $a
}

/**
* @param string $sshUrl
* The SSH URL to the server.
* @return string
* The sitegroup. E.g., eemgrasmick.
* @param string $sshUrl The SSH URL to the server.
* @return string The sitegroup. E.g., eemgrasmick.
*/
public static function getSiteGroupFromSshUrl(string $sshUrl): string {
$sshUrlParts = explode('.', $sshUrl);
Expand Down
Loading

0 comments on commit 667b3b5

Please sign in to comment.