Enabled PHPMD for src and tests

This commit is contained in:
Junade Ali
2017-10-13 15:18:08 +01:00
parent f0213ecf92
commit ca9e5bbc28
11 changed files with 64 additions and 35 deletions

View File

@@ -43,7 +43,7 @@ class ZoneLockdown implements API
string $zoneID,
array $urls,
\Cloudflare\API\Configurations\ZoneLockdown $configuration,
string $id = null,
string $lockdownID = null,
string $description = null
): bool {
$options = [
@@ -51,8 +51,8 @@ class ZoneLockdown implements API
'configurations' => $configuration->getArray()
];
if ($id !== null) {
$options['id'] = $id;
if ($lockdownID !== null) {
$options['id'] = $lockdownID;
}
if ($description !== null) {