@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Chapi\Service\JobValidator\PropertyValidator; |
11 | 11 | |
12 | 12 | |
13 | -use Chapi\Entity\Chronos\JobEntity; |
|
14 | 13 | use Chapi\Entity\JobEntityInterface; |
15 | 14 | use Chapi\Service\JobValidator\PropertyValidatorInterface; |
16 | 15 |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | namespace Chapi\Service\JobValidator\PropertyValidator; |
12 | 12 | |
13 | -use Chapi\Entity\Chronos\JobEntity; |
|
14 | 13 | use Chapi\Entity\JobEntityInterface; |
15 | 14 | use Chapi\Service\JobValidator\PropertyValidatorInterface; |
16 | 15 |
@@ -26,8 +26,7 @@ |
||
26 | 26 | $this->{$_sKey} = $_mValue; |
27 | 27 | } |
28 | 28 | } |
29 | - } |
|
30 | - else |
|
29 | + } else |
|
31 | 30 | { |
32 | 31 | throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__)); |
33 | 32 | } |
@@ -94,15 +94,13 @@ discard block |
||
94 | 94 | if ($_sKey == 'container') |
95 | 95 | { |
96 | 96 | $this->{$_sKey} = new ContainerEntity($_mValue); |
97 | - } |
|
98 | - else |
|
97 | + } else |
|
99 | 98 | { |
100 | 99 | $this->{$_sKey} = $_mValue; |
101 | 100 | } |
102 | 101 | } |
103 | 102 | } |
104 | - } |
|
105 | - else |
|
103 | + } else |
|
106 | 104 | { |
107 | 105 | throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__)); |
108 | 106 | } |
@@ -150,8 +148,7 @@ discard block |
||
150 | 148 | if (!empty($this->schedule)) |
151 | 149 | { |
152 | 150 | unset($_aReturn['parents']); |
153 | - } |
|
154 | - else |
|
151 | + } else |
|
155 | 152 | { |
156 | 153 | unset($_aReturn['schedule']); |
157 | 154 | unset($_aReturn['scheduleTimeZone']); |
@@ -40,14 +40,14 @@ |
||
40 | 40 | |
41 | 41 | if (isset($mData["docker"])) |
42 | 42 | { |
43 | - $this->docker = new Docker((array)$mData["docker"]); |
|
43 | + $this->docker = new Docker((array) $mData["docker"]); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | if (isset($mData["volumes"])) |
47 | 47 | { |
48 | 48 | foreach ($mData["volumes"] as $volume) |
49 | 49 | { |
50 | - $this->volumes[] = new ContainerVolume((array)$volume); |
|
50 | + $this->volumes[] = new ContainerVolume((array) $volume); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 |
@@ -45,9 +45,9 @@ |
||
45 | 45 | } |
46 | 46 | MarathonEntityUtils::setAllPossibleProperties($oData, $this); |
47 | 47 | |
48 | - if(isset($oData["command"])) |
|
48 | + if (isset($oData["command"])) |
|
49 | 49 | { |
50 | - $this->command = new HealthCheckCommand((array)$oData["command"]); |
|
50 | + $this->command = new HealthCheckCommand((array) $oData["command"]); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | return; |
29 | 29 | } |
30 | 30 | MarathonEntityUtils::setAllPossibleProperties($oData, $this); |
31 | - if(isset($oData["labels"])) |
|
31 | + if (isset($oData["labels"])) |
|
32 | 32 | { |
33 | 33 | $this->labels = $oData["labels"]; |
34 | 34 | } |
@@ -43,17 +43,17 @@ |
||
43 | 43 | |
44 | 44 | if (isset($oData["portMappings"])) |
45 | 45 | { |
46 | - foreach($oData["portMappings"] as $portMapping) |
|
46 | + foreach ($oData["portMappings"] as $portMapping) |
|
47 | 47 | { |
48 | - $this->portMappings[] = new DockerPortMapping((array)$portMapping); |
|
48 | + $this->portMappings[] = new DockerPortMapping((array) $portMapping); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | |
52 | 52 | if (isset($oData["parameters"])) |
53 | 53 | { |
54 | - foreach($oData["parameters"] as $parameter) |
|
54 | + foreach ($oData["parameters"] as $parameter) |
|
55 | 55 | { |
56 | - $this->parameters[] = new DockerParameters((array)$parameter); |
|
56 | + $this->parameters[] = new DockerParameters((array) $parameter); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | } |
30 | 30 | MarathonEntityUtils::setAllPossibleProperties($oData, $this); |
31 | 31 | |
32 | - if(isset($oData["groups"])) |
|
32 | + if (isset($oData["groups"])) |
|
33 | 33 | { |
34 | 34 | $this->groups = $oData["groups"]; |
35 | 35 | } |