@@ -171,7 +171,7 @@ |
||
| 171 | 171 | * Return all event parameters or a single event parameter. |
| 172 | 172 | * |
| 173 | 173 | * @param string $param Parameter name to retrieve, or null to get all. |
| 174 | - * @param mixed $efault Default value to use when the parameter is missing. |
|
| 174 | + * @param mixed $default Default value to use when the parameter is missing. |
|
| 175 | 175 | * @return mixed |
| 176 | 176 | * @throws RuntimeException |
| 177 | 177 | */ |
@@ -17,8 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * returns the number of years of the education or work experience |
| 19 | 19 | * |
| 20 | - * @param array $obj |
|
| 21 | - * @return string |
|
| 20 | + * @return double |
|
| 22 | 21 | */ |
| 23 | 22 | public function __invoke($array) |
| 24 | 23 | { |
@@ -25,13 +25,13 @@ |
||
| 25 | 25 | // calculate EndDate - StartDate = X Years. |
| 26 | 26 | // eg. 4.2 Years |
| 27 | 27 | |
| 28 | - $days=0; |
|
| 28 | + $days = 0; |
|
| 29 | 29 | foreach ($array as $obj) { |
| 30 | 30 | $date1 = new \DateTime($obj->endDate); |
| 31 | 31 | $date2 = new \DateTime($obj->startDate); |
| 32 | 32 | $interval = $date1->diff($date2); |
| 33 | - $days+=abs($interval->format('%R%a')); |
|
| 33 | + $days += abs($interval->format('%R%a')); |
|
| 34 | 34 | } |
| 35 | - return round($days/365, 1); |
|
| 35 | + return round($days / 365, 1); |
|
| 36 | 36 | } |
| 37 | 37 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * - injects the MvcEvent instance |
| 27 | 27 | * |
| 28 | 28 | * @param ServiceLocatorInterface $serviceLocator |
| 29 | - * @return \Core\View\Helper\Params |
|
| 29 | + * @return DateFormat |
|
| 30 | 30 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected $message; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param Status $status |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct($status, $message = '[System]') |
| 45 | 48 | { |
| 46 | 49 | if (!$status instanceof StatusInterface) { |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | /** |
| 674 | 674 | * Gets locations of a job posting |
| 675 | 675 | * |
| 676 | - * @return string |
|
| 676 | + * @return Collection |
|
| 677 | 677 | */ |
| 678 | 678 | public function getLocations() |
| 679 | 679 | { |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | /** |
| 716 | 716 | * Gets applications for a job posting |
| 717 | 717 | * |
| 718 | - * @return string |
|
| 718 | + * @return Status |
|
| 719 | 719 | */ |
| 720 | 720 | public function getStatus() |
| 721 | 721 | { |
@@ -286,14 +286,14 @@ discard block |
||
| 286 | 286 | { |
| 287 | 287 | $methods = array_filter( |
| 288 | 288 | get_class_methods($source), |
| 289 | - function ($v) { |
|
| 289 | + function($v) { |
|
| 290 | 290 | return 3 < strlen($v) && strpos($v, 'get') === 0; |
| 291 | 291 | } |
| 292 | 292 | ); |
| 293 | 293 | // these attributes don't need to get copied |
| 294 | 294 | $methods = array_diff($methods, array('getId', 'getHydrator', 'getHiringOrganizations')); |
| 295 | 295 | $methods = array_map( |
| 296 | - function ($v) { |
|
| 296 | + function($v) { |
|
| 297 | 297 | return lcfirst(substr($v, 3)); |
| 298 | 298 | }, |
| 299 | 299 | $methods |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | $element = $source->$attribute; |
| 303 | 303 | if (isset($element)) { |
| 304 | 304 | // when the parameter is rigid you can't assign an non-existing elements |
| 305 | - if (method_exists($target, 'set' . lcfirst($attribute))) { |
|
| 305 | + if (method_exists($target, 'set'.lcfirst($attribute))) { |
|
| 306 | 306 | $target->$attribute = $element; |
| 307 | 307 | } |
| 308 | 308 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @param ServiceLocatorInterface $serviceLocator |
| 29 | 29 | * |
| 30 | - * @return NewJobMailSender |
|
| 30 | + * @return MailSender |
|
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return string|\Zend\View\Helper\HelperInterface |
|
| 37 | + * @return string |
|
| 38 | 38 | */ |
| 39 | 39 | public function getViewHelper() |
| 40 | 40 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * Sets the job entity |
| 65 | 65 | * |
| 66 | 66 | * @param Job $jobEntity |
| 67 | - * @return MvcEvent |
|
| 67 | + * @return JobEvent |
|
| 68 | 68 | */ |
| 69 | 69 | public function setJobEntity(Job $jobEntity) |
| 70 | 70 | { |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | * Event is fired when a users has created a new job opening and accepted the |
| 35 | 35 | * terms and conditions |
| 36 | 36 | */ |
| 37 | - const EVENT_JOB_CREATED = 'job.created'; |
|
| 37 | + const EVENT_JOB_CREATED = 'job.created'; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Event is fired when the owner of the YAWIK installation has accepted the job |
| 41 | 41 | * opening |
| 42 | 42 | */ |
| 43 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 43 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * get all available names for publishing |
| 56 | 56 | */ |
| 57 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 57 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @var portals to be published |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Gets the unique key of a channel |
| 149 | 149 | * |
| 150 | - * @return string |
|
| 150 | + * @return integer |
|
| 151 | 151 | */ |
| 152 | 152 | public function getKey() |
| 153 | 153 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * Gets the unique key of a channel |
| 171 | 171 | * |
| 172 | - * @return string |
|
| 172 | + * @return integer |
|
| 173 | 173 | */ |
| 174 | 174 | public function getExternalkey() |
| 175 | 175 | { |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | /** |
| 253 | 253 | * Gets the tax for a price |
| 254 | 254 | * |
| 255 | - * @return string |
|
| 255 | + * @return integer |
|
| 256 | 256 | */ |
| 257 | 257 | public function getTax() |
| 258 | 258 | { |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | /** |
| 346 | 346 | * Gets the headline of the channel |
| 347 | 347 | * |
| 348 | - * @return mixed |
|
| 348 | + * @return string |
|
| 349 | 349 | */ |
| 350 | 350 | public function getHeadLine() |
| 351 | 351 | { |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
| 386 | - * @return mixed |
|
| 386 | + * @return string |
|
| 387 | 387 | */ |
| 388 | 388 | public function getLinkText() |
| 389 | 389 | { |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | } |
| 402 | 402 | |
| 403 | 403 | /** |
| 404 | - * @return mixed |
|
| 404 | + * @return string |
|
| 405 | 405 | */ |
| 406 | 406 | public function getRoute() |
| 407 | 407 | { |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | /** |
| 440 | 440 | * Gets the logo of a channel (Jobboard) |
| 441 | 441 | * |
| 442 | - * @return string|null |
|
| 442 | + * @return string |
|
| 443 | 443 | */ |
| 444 | 444 | public function getLogo() |
| 445 | 445 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @var int $publishDuration |
| 83 | 83 | */ |
| 84 | - protected $publishDuration=30; |
|
| 84 | + protected $publishDuration = 30; |
|
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * Category for this channel |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function setKey($key) |
| 142 | 142 | { |
| 143 | - $this->key=$key; |
|
| 143 | + $this->key = $key; |
|
| 144 | 144 | return $this; |
| 145 | 145 | } |
| 146 | 146 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function setExternalkey($key) |
| 164 | 164 | { |
| 165 | - $this->externalkey=$key; |
|
| 165 | + $this->externalkey = $key; |
|
| 166 | 166 | return $this; |
| 167 | 167 | } |
| 168 | 168 | |