@@ -37,7 +37,7 @@ |
||
37 | 37 | public function jsonSerialize() |
38 | 38 | { |
39 | 39 | $return = (array) $this; |
40 | - $return = array_filter($return, function ($value, $key) { |
|
40 | + $return = array_filter($return, function($value, $key) { |
|
41 | 41 | return !is_null($value); |
42 | 42 | }, ARRAY_FILTER_USE_BOTH); |
43 | 43 | return $return; |
@@ -149,7 +149,7 @@ |
||
149 | 149 | $return = (array) $this; |
150 | 150 | $return = array_filter( |
151 | 151 | $return, |
152 | - function ($value, $key) { |
|
152 | + function($value, $key) { |
|
153 | 153 | return !is_null($value) || empty($value); |
154 | 154 | }, |
155 | 155 | ARRAY_FILTER_USE_BOTH |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** @var JobComparisonInterface $jobComparisonBusinessCase */ |
58 | 58 | $jobComparisonBusinessCase = $this->getContainer()->get(JobComparisonInterface::DIC_NAME); |
59 | 59 | |
60 | - $jobs = [ $jobName ]; |
|
60 | + $jobs = [$jobName]; |
|
61 | 61 | |
62 | 62 | if (strpos($jobName, '*') !== false) { |
63 | 63 | $jobs = $this->getJobsMatchingWildcard($jobName); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | if ($key == 'container') { |
99 | 99 | $this->{$key} = new ContainerEntity($value); |
100 | 100 | } else if ($key == 'fetch') { |
101 | - foreach($value as $fetch) { |
|
101 | + foreach ($value as $fetch) { |
|
102 | 102 | $this->{$key}[] = new FetchEntity($fetch); |
103 | 103 | } |
104 | 104 | } else { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | unset($return["container"]["unknown_fields"]); |
167 | 167 | |
168 | 168 | $return["container"]["volumes"] = []; |
169 | - foreach($this->container->volumes as $volume) { |
|
169 | + foreach ($this->container->volumes as $volume) { |
|
170 | 170 | $fields = (array) $volume + (array) $volume->unknown_fields; |
171 | 171 | unset($fields["unknown_fields"]); |
172 | 172 | $return["container"]["volumes"][] = $fields; |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | |
176 | 176 | $return["fetch"] = []; |
177 | - foreach($this->fetch as $fetch) { |
|
177 | + foreach ($this->fetch as $fetch) { |
|
178 | 178 | $fields = (array) $fetch + (array) $fetch->unknown_fields; |
179 | 179 | unset($fields["unknown_fields"]); |
180 | 180 | $return["fetch"][] = $fields; |