@@ -145,7 +145,7 @@ |
||
145 | 145 | */ |
146 | 146 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
147 | 147 | { |
148 | - return $this($serviceLocator,$requestedName); |
|
148 | + return $this($serviceLocator,$requestedName); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
@@ -81,10 +81,10 @@ discard block |
||
81 | 81 | $queryBuilder->find($this->getEntityClassName($requestedName)); |
82 | 82 | |
83 | 83 | $filterManager = $services->get('FilterManager'); |
84 | - $filterName = 'PaginationQuery/' . $requestedName; |
|
84 | + $filterName = 'PaginationQuery/'.$requestedName; |
|
85 | 85 | |
86 | 86 | if ($filterManager->has($filterName)) { |
87 | - $filter = $filterManager->get('PaginationQuery/' . $requestedName); |
|
87 | + $filter = $filterManager->get('PaginationQuery/'.$requestedName); |
|
88 | 88 | $queryBuilder = $filter->filter($this->options, $queryBuilder); |
89 | 89 | } |
90 | 90 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param array|null $options |
109 | 109 | * @return bool |
110 | 110 | */ |
111 | - public function canCreate(ContainerInterface $container, $requestedName, array $options=null) |
|
111 | + public function canCreate(ContainerInterface $container, $requestedName, array $options = null) |
|
112 | 112 | { |
113 | 113 | $class = $this->getEntityClassName($requestedName); |
114 | 114 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
133 | 133 | { |
134 | - return $this->canCreate($serviceLocator,$requestedName); |
|
134 | + return $this->canCreate($serviceLocator, $requestedName); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
147 | 147 | { |
148 | - return $this($serviceLocator,$requestedName); |
|
148 | + return $this($serviceLocator, $requestedName); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function getConsoleBanner(Console $console) |
40 | 40 | { |
41 | 41 | $version = `git describe 2>/dev/null`; |
42 | - $name = 'YAWIK ' . trim($version); |
|
42 | + $name = 'YAWIK '.trim($version); |
|
43 | 43 | $width = $console->getWidth(); |
44 | 44 | return sprintf( |
45 | 45 | "==%1\$s==\n%2\$s%3\$s\n**%1\$s**\n", |
@@ -82,12 +82,12 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | if (!\Zend\Console\Console::isConsole()) { |
85 | - $redirectCallback = function () use ($e) { |
|
85 | + $redirectCallback = function() use ($e) { |
|
86 | 86 | $routeMatch = $e->getRouteMatch(); |
87 | 87 | $lang = $routeMatch ? $routeMatch->getParam('lang', 'en') : 'en'; |
88 | - $uri = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error'; |
|
88 | + $uri = $e->getRouter()->getBaseUrl().'/'.$lang.'/error'; |
|
89 | 89 | |
90 | - header('Location: ' . $uri); |
|
90 | + header('Location: '.$uri); |
|
91 | 91 | }; |
92 | 92 | |
93 | 93 | if (!$tracyConfig['enabled']) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | $eventManager->attach( |
127 | 127 | MvcEvent::EVENT_DISPATCH_ERROR, |
128 | - function ($event) { |
|
128 | + function($event) { |
|
129 | 129 | $application = $event->getApplication(); |
130 | 130 | if ($application::ERROR_EXCEPTION == $event->getError()) { |
131 | 131 | $ex = $event->getParam('exception'); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ); |
140 | 140 | $eventManager->attach( |
141 | 141 | MvcEvent::EVENT_DISPATCH, |
142 | - function ($event) use ($eventManager) { |
|
142 | + function($event) use ($eventManager) { |
|
143 | 143 | $eventManager->trigger('postDispatch', $event); |
144 | 144 | }, |
145 | 145 | -150 |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public function getConfig() |
156 | 156 | { |
157 | - $config = include __DIR__ . '/config/module.config.php'; |
|
157 | + $config = include __DIR__.'/config/module.config.php'; |
|
158 | 158 | return $config; |
159 | 159 | } |
160 | 160 | |
@@ -167,13 +167,13 @@ discard block |
||
167 | 167 | { |
168 | 168 | return array( |
169 | 169 | 'Zend\Loader\ClassMapAutoloader' => [ |
170 | - __DIR__ . '/src/autoload_classmap.php' |
|
170 | + __DIR__.'/src/autoload_classmap.php' |
|
171 | 171 | ], |
172 | 172 | 'Zend\Loader\StandardAutoloader' => array( |
173 | 173 | 'namespaces' => array( |
174 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
175 | - 'CoreTest' => __DIR__ . '/test/' . 'CoreTest', |
|
176 | - 'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils', |
|
174 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
175 | + 'CoreTest' => __DIR__.'/test/'.'CoreTest', |
|
176 | + 'CoreTestUtils' => __DIR__.'/test/CoreTestUtils', |
|
177 | 177 | ), |
178 | 178 | ), |
179 | 179 | ); |
@@ -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 | { |
@@ -53,6 +53,6 @@ |
||
53 | 53 | */ |
54 | 54 | public function createService(ServiceLocatorInterface $serviceLocator) |
55 | 55 | { |
56 | - return $this($serviceLocator,InvitationHandler::class); |
|
56 | + return $this($serviceLocator, InvitationHandler::class); |
|
57 | 57 | } |
58 | 58 | } |
@@ -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 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $entity = $value; |
24 | 24 | $value = array(); |
25 | 25 | foreach ($entity->getSearchableProperties() as $name) { |
26 | - $result = $entity->{'get' .$name}(); |
|
26 | + $result = $entity->{'get'.$name}(); |
|
27 | 27 | if (is_array($result)) { |
28 | 28 | $value = array_merge($value, $result); |
29 | 29 | } else { |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | $innerPattern = StringUtils::hasPcreUnicodeSupport() |
49 | 49 | ? '[^\p{L}]' |
50 | 50 | : '[^a-z0-9ßäöü ]'; |
51 | - $pattern = '~' . $innerPattern . '~isu'; |
|
52 | - $stripPattern = '~^' . $innerPattern . '+|' . $innerPattern . '+$~isu'; |
|
51 | + $pattern = '~'.$innerPattern.'~isu'; |
|
52 | + $stripPattern = '~^'.$innerPattern.'+|'.$innerPattern.'+$~isu'; |
|
53 | 53 | $parts = array(); |
54 | 54 | $textParts = explode(' ', $string); |
55 | 55 | foreach ($textParts as $part) { |
@@ -49,11 +49,11 @@ |
||
49 | 49 | $properties = $refl->getProperties(); |
50 | 50 | |
51 | 51 | foreach ($properties as $property) { |
52 | - $name = $property->getName(); |
|
52 | + $name = $property->getName(); |
|
53 | 53 | if ('_' == $name{0}) { |
54 | 54 | continue; |
55 | 55 | } |
56 | - $value = $rating->{'get' . $name}(); |
|
56 | + $value = $rating->{'get'.$name}(); |
|
57 | 57 | $input = array( |
58 | 58 | 'type' => 'Core/Rating', |
59 | 59 | 'name' => $name, |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | /* @var \Jobs\Entity\Job $value */ |
20 | 20 | $result = null; |
21 | - if (method_exists($value,'getTemplateValues')) { |
|
21 | + if (method_exists($value, 'getTemplateValues')) { |
|
22 | 22 | $result = $value->getTemplateValues()->getQualifications(); |
23 | 23 | } |
24 | 24 | return $result; |