@@ -41,6 +41,9 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected $message; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param StatusInterface $status |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct($status, $message = '[System]') |
| 45 | 48 | { |
| 46 | 49 | if (!$status instanceof StatusInterface) { |
@@ -116,7 +119,7 @@ discard block |
||
| 116 | 119 | /** |
| 117 | 120 | * Sets the history message |
| 118 | 121 | * |
| 119 | - * @param $message |
|
| 122 | + * @param string $message |
|
| 120 | 123 | * |
| 121 | 124 | * @return $this |
| 122 | 125 | */ |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | case "days": |
| 42 | 42 | $date = new \DateTime(); |
| 43 | - $date->modify('-' . (int) $value. ' day'); |
|
| 43 | + $date->modify('-' . (int) $value . ' day'); |
|
| 44 | 44 | $q = array('$lt' => $date); |
| 45 | 45 | if (isset($query['datePublishStart.date'])) { |
| 46 | - $query['datePublishStart.date']= array_merge( |
|
| 46 | + $query['datePublishStart.date'] = array_merge( |
|
| 47 | 47 | $query['datePublishStart.date'], |
| 48 | 48 | $q |
| 49 | 49 | ); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | $query['status.name'] = 'active'; |
| 61 | 61 | |
| 62 | - $jobs = $jobsRepo->findBy($query,null,$limit); |
|
| 62 | + $jobs = $jobsRepo->findBy($query, null, $limit); |
|
| 63 | 63 | $count = count($jobs); |
| 64 | 64 | |
| 65 | 65 | if (0 === $count) { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | echo "$count jobs found, which have to expire ...\n"; |
| 75 | 75 | |
| 76 | - $progress = new ProgressBar( |
|
| 76 | + $progress = new ProgressBar( |
|
| 77 | 77 | new ConsoleAdapter( |
| 78 | 78 | array( |
| 79 | 79 | 'elements' => array( |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | continue; |
| 134 | 134 | } |
| 135 | 135 | try { |
| 136 | - $group = $user->getGroup($job->getCompany()); |
|
| 136 | + $group = $user->getGroup($job->getCompany()); |
|
| 137 | 137 | } catch (\Exception $e) { |
| 138 | 138 | continue; |
| 139 | 139 | } |