@@ -9,8 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace Chapi\Service\JobValidator; |
| 11 | 11 | |
| 12 | -use Chapi\Component\DatePeriod\DatePeriodFactoryInterface; |
|
| 13 | -use Chapi\Entity\Chronos\JobEntity; |
|
| 14 | 12 | use Chapi\Entity\JobEntityInterface; |
| 15 | 13 | use Chapi\Entity\JobValidator\ValidationResult; |
| 16 | 14 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
| 56 | - protected function preCompareModifications(JobEntityInterface &$localJob, JobEntityInterface &$remoteJob) |
|
| 56 | + protected function preCompareModifications(JobEntityInterface & $localJob, JobEntityInterface & $remoteJob) |
|
| 57 | 57 | { |
| 58 | 58 | // no modification needed |
| 59 | 59 | return; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $this->diffCompare = $diffCompare; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - protected function preCompareModifications(JobEntityInterface &$localJob, JobEntityInterface &$remoteJob) |
|
| 36 | + protected function preCompareModifications(JobEntityInterface & $localJob, JobEntityInterface & $remoteJob) |
|
| 37 | 37 | { |
| 38 | 38 | if (!$localJob instanceof MarathonAppEntity || |
| 39 | 39 | !$remoteJob instanceof MarathonAppEntity |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | * @param JobEntityInterface $remoteJob |
| 208 | 208 | * @return null |
| 209 | 209 | */ |
| 210 | - abstract protected function preCompareModifications(JobEntityInterface &$localJob, JobEntityInterface &$remoteJob); |
|
| 210 | + abstract protected function preCompareModifications(JobEntityInterface & $localJob, JobEntityInterface & $remoteJob); |
|
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | 213 | * Gets entity for each system with defaults set |
@@ -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); |