Skip to content
Snippets Groups Projects
Commit 984577e7 authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3080953 by yas: Comply with Drupal coding standard (8)

parent 618e82cb
No related branches found
No related tags found
No related merge requests found
......@@ -14,22 +14,67 @@ use Symfony\Component\Validator\Constraint;
*/
class IpPermissionDataConstraint extends Constraint {
/**
* A message: "The To Port is not numeric".
*
* @var string
*/
public $toPortNotNumeric = "The To Port is not numeric.";
/**
* A message: "The From Port is not numeric".
*
* @var string
*/
public $fromPortNotNumeric = "The From Port is not numeric.";
/**
* A message: "CIDR IP is empty".
*
* @var string
*/
public $ip4IsEmpty = "CIDR IP is empty.";
/**
* A message: "CIDR IP is not valid".
*
* @var string
*/
public $ip4Value = "CIDR IP is not valid. Single IP addresses must be in x.x.x.x/32 notation.";
/**
* A message: "CIDR IPv6 is not valid.".
*
* @var string
*/
public $ip6Value = "CIDR IPv6 is not valid. Single IP addresses must be in x.x.x.x/32 notation.";
/**
* A message: "CIDR IPv6 is empty".
*
* @var string
*/
public $ip6IsEmpty = "CIDR IPv6 is empty.";
/**
* A message: "Group ID is empty".
*
* @var string
*/
public $groupIdIsEmpty = "Group ID is empty.";
/**
* A message: "No security group found".
*
* @var string
*/
public $noSecurityGroup = "No security group found.";
/**
* A message: "From Port is greater than To Port".
*
* @var string
*/
public $toPortGreater = "From Port is greater than To Port.";
}
......@@ -14,6 +14,11 @@ use Symfony\Component\Validator\Constraint;
*/
class TagsDataConstraint extends Constraint {
/**
* The tag with key %value already exists.
*
* @var string
*/
public $keyExists = "The tag with key %value already exists.";
}
......@@ -36,12 +36,32 @@ abstract class AwsCloudTestCase extends BrowserTestBase {
*/
protected $profile = 'minimal';
/**
* The random object.
*
* @var string
*/
protected $random;
/**
* The cloud context.
*
* @var string
*/
protected $cloudContext;
/**
* The region.
*
* @var string
*/
protected $cloudRegion;
/**
* The latest template variables.
*
* @var array
*/
protected $latestTemplateVars;
/**
......
......@@ -38,6 +38,11 @@ class AwsCloudConfigTest extends BrowserTestBase {
*/
protected $profile = 'minimal';
/**
* The random string.
*
* @var string
*/
protected $random;
/**
......
......@@ -8,6 +8,12 @@ use Drupal\aws_cloud\Service\AwsEc2Service;
* Mock class for AwsEc2Service.
*/
class AwsEc2ServiceMock extends AwsEc2Service {
/**
* Availability zones for test.
*
* @var array
*/
private $zones;
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment