@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param string $requestedName |
26 | 26 | * @param null|array $options |
27 | 27 | * |
28 | - * @return object |
|
28 | + * @return CheckPermissionsListener |
|
29 | 29 | * @throws ServiceNotFoundException if unable to resolve the service. |
30 | 30 | * @throws ServiceNotCreatedException if an exception is raised when |
31 | 31 | * creating a service. |
@@ -47,7 +47,6 @@ discard block |
||
47 | 47 | * |
48 | 48 | * - Injects the AuthenticationService |
49 | 49 | * |
50 | - * @param ServiceLocatorInterface $helpers |
|
51 | 50 | * @return \Auth\View\Helper\Auth |
52 | 51 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
53 | 52 | */ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | break; |
49 | 49 | } |
50 | 50 | |
51 | - $config = $container->get('Config'); |
|
51 | + $config = $container->get('Config'); |
|
52 | 52 | |
53 | 53 | if (isset($config['view_manager'])) { |
54 | 54 | if (isset($config['view_manager']['display_exceptions'])) { |
@@ -22,6 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param AttachableEntityManager $attachableEntityManager |
24 | 24 | * @throws \LogicException If attachable entity manager is already set |
25 | + * @return AttachableEntityTrait |
|
25 | 26 | */ |
26 | 27 | public function setAttachableEntityManager(AttachableEntityManager $attachableEntityManager); |
27 | 28 |
@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * @see AttachableEntityInterface::createAttachedEntity() |
80 | 80 | */ |
81 | - public function createAttachedEntity($entityClass, $values = [], $key=null) |
|
81 | + public function createAttachedEntity($entityClass, $values = [], $key = null) |
|
82 | 82 | { |
83 | 83 | return $this->getAttachableEntityManager()->createAttachedEntity($entityClass, $values, $key); |
84 | 84 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | private function fromEvent($name, $values) |
91 | 91 | { |
92 | - $event = $this->events->getEvent($name, $this, $values); |
|
92 | + $event = $this->events->getEvent($name, $this, $values); |
|
93 | 93 | $results = $this->events->triggerEvent($event); |
94 | 94 | |
95 | 95 | $snippets = []; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $content = $item['content']; |
139 | 139 | |
140 | 140 | foreach ($values as $key => $val) { |
141 | - $content = str_replace('%' . $key . '%', $val, $content); |
|
141 | + $content = str_replace('%'.$key.'%', $val, $content); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | return $content; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * </pre> |
103 | 103 | * |
104 | 104 | * @param string $subject |
105 | - * @param bool|mixed $translate |
|
105 | + * @param string $translate |
|
106 | 106 | * |
107 | 107 | * @since 0.19 |
108 | 108 | * @since 0.29 Add sprintf support for translation |
@@ -176,7 +176,7 @@ |
||
176 | 176 | * |
177 | 177 | * @param string $fullName |
178 | 178 | * |
179 | - * @return array|bool |
|
179 | + * @return string |
|
180 | 180 | */ |
181 | 181 | protected function getOptionsConfig($fullName) |
182 | 182 | { |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Gets all comments for the application. |
242 | 242 | * |
243 | - * @return ArrayCollection; |
|
243 | + * @return Collection |
|
244 | 244 | |
245 | 245 | */ |
246 | 246 | public function getComments(); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | /** |
272 | 272 | * Gets all attributes for an application. |
273 | 273 | * |
274 | - * @return ArrayCollection; |
|
274 | + * @return Attributes |
|
275 | 275 | |
276 | 276 | */ |
277 | 277 | public function getAttributes(); |
@@ -241,7 +241,6 @@ discard block |
||
241 | 241 | * Gets all comments for the application. |
242 | 242 | * |
243 | 243 | * @return ArrayCollection; |
244 | - |
|
245 | 244 | */ |
246 | 245 | public function getComments(); |
247 | 246 | |
@@ -272,7 +271,6 @@ discard block |
||
272 | 271 | * Gets all attributes for an application. |
273 | 272 | * |
274 | 273 | * @return ArrayCollection; |
275 | - |
|
276 | 274 | */ |
277 | 275 | public function getAttributes(); |
278 | 276 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * returns the number of years of the education or work experience |
19 | 19 | * |
20 | 20 | * @param array $array |
21 | - * @return string |
|
21 | + * @return double |
|
22 | 22 | */ |
23 | 23 | public function __invoke($array) |
24 | 24 | { |
@@ -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->getEndDate()); |
31 | 31 | $date2 = new \DateTime($obj->getStartDate()); |
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 | } |