Skip to content
Snippets Groups Projects
Commit d2ff875c authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3408386 by Xiaohua Guan, yas: Comply with Drupal coding standards (3) (phpcs)

parent 97cb7d77
No related branches found
No related tags found
1 merge request!38Issue #3408386: Comply with Drupal coding standards (phpcs)
Pipeline #63830 passed with warnings
......@@ -15,5 +15,8 @@
"support": {
"issues": "https://drupal.org/project/issues/facade",
"source": "https://git.drupalcode.org/project/facade"
},
"require": {
"drupal/cloud": "6.x-dev"
}
}
......@@ -157,5 +157,4 @@ function openstack_provider_update_9106(): void {
'openstack_provider'
);
}
......@@ -5,6 +5,8 @@
* Contains openstack_provider.module.
*/
use Drupal\aws_cloud\Service\Route53\Route53Service;
use Drupal\aws_cloud\Service\Route53\Route53ServiceException;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Database\Query\AlterableInterface;
......@@ -19,8 +21,6 @@ use Drupal\Core\Locale\CountryManager;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\aws_cloud\Service\Route53\Route53ServiceException;
use Drupal\aws_cloud\Service\Route53\Route53Service;
/**
* Implements hook_query_TAG_alter().
......@@ -118,7 +118,7 @@ function openstack_provider_validate_subdomain_function(array &$form, FormStateI
/**
* Helper function to check if a DNS record exists.
*
* @param Route53Service $route53_service
* @param \Drupal\aws_cloud\Service\Route53\Route53Service $route53_service
* Route53 service.
* @param string $zone_id
* Zone id.
......@@ -152,12 +152,13 @@ function openstack_provider_resource_record_exists(Route53Service $route53_servi
/**
* Helper function to get the zone_id.
*
* @param Route53Service $route53_service
* @param \Drupal\aws_cloud\Service\Route53\Route53Service $route53_service
* Route53 service.
* @param string $dns_name
* The DNS name to search for.
*
* @return string|null
* The zone ID.
*
* @throws \Exception
* Throw an exception if there is an error during the API call.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment