@@ -58,9 +58,9 @@ discard block  | 
                                                    ||
| 58 | 58 | }  | 
                                                        
| 59 | 59 | |
| 60 | 60 |          $date = new \DateTime('today'); | 
                                                        
| 61 | -        $date->sub(new \DateInterval('P' . $days . 'D')); | 
                                                        |
| 61 | +        $date->sub(new \DateInterval('P'.$days.'D')); | 
                                                        |
| 62 | 62 | |
| 63 | - $query = [  | 
                                                        |
| 63 | + $query = [  | 
                                                        |
| 64 | 64 | '$and' => [  | 
                                                        
| 65 | 65 | ['status.name' => StatusInterface::ACTIVE],  | 
                                                        
| 66 | 66 | ['$or' => [  | 
                                                        
@@ -89,7 +89,7 @@ discard block  | 
                                                    ||
| 89 | 89 |          if ($info) { | 
                                                        
| 90 | 90 | $output = count($jobs).' Jobs';  | 
                                                        
| 91 | 91 |              if ($offset) { | 
                                                        
| 92 | - $output .= ' starting from ' . $offset;  | 
                                                        |
| 92 | + $output .= ' starting from '.$offset;  | 
                                                        |
| 93 | 93 | }  | 
                                                        
| 94 | 94 | $console->writeLine($output, ConsoleColor::YELLOW);  | 
                                                        
| 95 | 95 | $this->listExpiredJobs($jobs);  | 
                                                        
@@ -102,7 +102,7 @@ discard block  | 
                                                    ||
| 102 | 102 | //  | 
                                                        
| 103 | 103 |          $console->writeLine("$count jobs found, which have to expire ...\n", ConsoleColor::GREEN); | 
                                                        
| 104 | 104 | |
| 105 | - $progress = new ProgressBar(  | 
                                                        |
| 105 | + $progress = new ProgressBar(  | 
                                                        |
| 106 | 106 | new ConsoleAdapter(  | 
                                                        
| 107 | 107 | array(  | 
                                                        
| 108 | 108 | 'elements' => array(  | 
                                                        
@@ -125,7 +125,7 @@ discard block  | 
                                                    ||
| 125 | 125 | |
| 126 | 126 | /* @var \Jobs\Entity\Job $job */  | 
                                                        
| 127 | 127 |          foreach ($jobs as $job) { | 
                                                        
| 128 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count);  | 
                                                        |
| 128 | + $progress->update($i++, 'Job '.$i.' / '.$count);  | 
                                                        |
| 129 | 129 | |
| 130 | 130 |              $job->changeStatus('expired'); | 
                                                        
| 131 | 131 | |
@@ -153,7 +153,7 @@ discard block  | 
                                                    ||
| 153 | 153 | $i = 0;  | 
                                                        
| 154 | 154 | /* @var Job $job */  | 
                                                        
| 155 | 155 |          foreach ($jobs as $job) { | 
                                                        
| 156 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count);  | 
                                                        |
| 156 | + $progress->update($i++, 'Job '.$i.' / '.$count);  | 
                                                        |
| 157 | 157 | |
| 158 | 158 | $permissions = $job->getPermissions();  | 
                                                        
| 159 | 159 | $user = $job->getUser();  | 
                                                        
@@ -161,7 +161,7 @@ discard block  | 
                                                    ||
| 161 | 161 | continue;  | 
                                                        
| 162 | 162 | }  | 
                                                        
| 163 | 163 |              try { | 
                                                        
| 164 | - $group = $user->getGroup($job->getCompany());  | 
                                                        |
| 164 | + $group = $user->getGroup($job->getCompany());  | 
                                                        |
| 165 | 165 |              } catch (\Exception $e) { | 
                                                        
| 166 | 166 | continue;  | 
                                                        
| 167 | 167 | }  | 
                                                        
@@ -201,10 +201,10 @@ discard block  | 
                                                    ||
| 201 | 201 | $org = $job->getCompany();  | 
                                                        
| 202 | 202 | }  | 
                                                        
| 203 | 203 | |
| 204 | -            $publishStart = is_null($job->getDatePublishStart()) ? 'N/A':$job->getDatePublishStart()->format('Y-m-d'); | 
                                                        |
| 205 | -            $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A':$job->getDatePublishEnd()->format('Y-m-d'); | 
                                                        |
| 204 | +            $publishStart = is_null($job->getDatePublishStart()) ? 'N/A' : $job->getDatePublishStart()->format('Y-m-d'); | 
                                                        |
| 205 | +            $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A' : $job->getDatePublishEnd()->format('Y-m-d'); | 
                                                        |
| 206 | 206 | $output = sprintf(  | 
                                                        
| 207 | - '%s %s %s %-30s %-20s' . PHP_EOL,  | 
                                                        |
| 207 | + '%s %s %s %-30s %-20s'.PHP_EOL,  | 
                                                        |
| 208 | 208 | $id,  | 
                                                        
| 209 | 209 | $publishStart,  | 
                                                        
| 210 | 210 | $publishEnd,  | 
                                                        
@@ -64,9 +64,9 @@ discard block  | 
                                                    ||
| 64 | 64 | $controller = $this->target;  | 
                                                        
| 65 | 65 |          $controller->method('params') | 
                                                        
| 66 | 66 | ->willReturnMap([  | 
                                                        
| 67 | - ['days',30],  | 
                                                        |
| 68 | - ['limit',10],  | 
                                                        |
| 69 | - ['info',true]  | 
                                                        |
| 67 | + ['days', 30],  | 
                                                        |
| 68 | + ['limit', 10],  | 
                                                        |
| 69 | + ['info', true]  | 
                                                        |
| 70 | 70 | ]);  | 
                                                        
| 71 | 71 | |
| 72 | 72 | $job = new Job();  | 
                                                        
@@ -76,14 +76,14 @@ discard block  | 
                                                    ||
| 76 | 76 | |
| 77 | 77 | $jobRepo->expects($this->once())  | 
                                                        
| 78 | 78 |              ->method('findBy') | 
                                                        
| 79 | -            ->with($this->isType('array'),null,10,0) | 
                                                        |
| 79 | +            ->with($this->isType('array'), null, 10, 0) | 
                                                        |
| 80 | 80 | ->willReturn([$job]);  | 
                                                        
| 81 | 81 | |
| 82 | 82 | $console->expects($this->exactly(2))  | 
                                                        
| 83 | 83 |              ->method('writeLine') | 
                                                        
| 84 | 84 | ->withConsecutive(  | 
                                                        
| 85 | - ['1 Jobs',4,null],  | 
                                                        |
| 86 | -                [$this->stringContains('some-id'),3,null] | 
                                                        |
| 85 | + ['1 Jobs', 4, null],  | 
                                                        |
| 86 | +                [$this->stringContains('some-id'), 3, null] | 
                                                        |
| 87 | 87 | );  | 
                                                        
| 88 | 88 | |
| 89 | 89 | $controller->expireJobsAction();  |