@@ -19,5 +19,5 @@ |
||
19 | 19 | { |
20 | 20 | protected $theme = 'light'; |
21 | 21 | |
22 | - protected $languagePath="/js/tinymce-lang/"; |
|
22 | + protected $languagePath = "/js/tinymce-lang/"; |
|
23 | 23 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Sets the converter |
72 | 72 | * |
73 | - * @param $converter |
|
73 | + * @param Converter $converter |
|
74 | 74 | * |
75 | 75 | * @return $this |
76 | 76 | */ |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | /** |
156 | 156 | * Gets the data of an element |
157 | 157 | * |
158 | - * @return mixed |
|
158 | + * @return Hidden |
|
159 | 159 | */ |
160 | 160 | public function getDataElement() |
161 | 161 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * Gets the name of an element |
167 | 167 | * |
168 | - * @return mixed |
|
168 | + * @return Text |
|
169 | 169 | */ |
170 | 170 | public function getNameElement() |
171 | 171 | { |
@@ -144,12 +144,12 @@ discard block |
||
144 | 144 | $id = str_replace(array('[', ']'), array('-', ''), $name); |
145 | 145 | $this->setAttribute('id', $id); |
146 | 146 | $this->nameElement->setName($name . '[name]') |
147 | - ->setAttribute('id', $id . '-name') |
|
148 | - ->setAttribute('class', 'form-control geolocation'); |
|
147 | + ->setAttribute('id', $id . '-name') |
|
148 | + ->setAttribute('class', 'form-control geolocation'); |
|
149 | 149 | $this->dataElement->setName($name . '[data]') |
150 | - ->setAttribute('id', $id . '-data'); |
|
150 | + ->setAttribute('id', $id . '-data'); |
|
151 | 151 | $this->typeElement->setName($name . '[type]') |
152 | - ->setAttribute('id', $id . '-type'); |
|
152 | + ->setAttribute('id', $id . '-type'); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -215,8 +215,8 @@ discard block |
||
215 | 215 | $lon = $lat = 0; |
216 | 216 | |
217 | 217 | foreach($lonLat as $k=>$v) { |
218 | - list($lon,$lat) = explode(',', $v, 2); |
|
219 | - $latLon[]=$lat.','.$lon; |
|
218 | + list($lon,$lat) = explode(',', $v, 2); |
|
219 | + $latLon[]=$lat.','.$lon; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | $value['data'] = [ |
@@ -143,13 +143,13 @@ discard block |
||
143 | 143 | $name = $this->getName(); |
144 | 144 | $id = str_replace(array('[', ']'), array('-', ''), $name); |
145 | 145 | $this->setAttribute('id', $id); |
146 | - $this->nameElement->setName($name . '[name]') |
|
147 | - ->setAttribute('id', $id . '-name') |
|
146 | + $this->nameElement->setName($name.'[name]') |
|
147 | + ->setAttribute('id', $id.'-name') |
|
148 | 148 | ->setAttribute('class', 'form-control geolocation'); |
149 | - $this->dataElement->setName($name . '[data]') |
|
150 | - ->setAttribute('id', $id . '-data'); |
|
151 | - $this->typeElement->setName($name . '[type]') |
|
152 | - ->setAttribute('id', $id . '-type'); |
|
149 | + $this->dataElement->setName($name.'[data]') |
|
150 | + ->setAttribute('id', $id.'-data'); |
|
151 | + $this->typeElement->setName($name.'[type]') |
|
152 | + ->setAttribute('id', $id.'-type'); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * |
205 | 205 | * @return $this |
206 | 206 | */ |
207 | - public function setValue($value, $type=null) |
|
207 | + public function setValue($value, $type = null) |
|
208 | 208 | { |
209 | 209 | if ($value instanceOf Location) { |
210 | 210 | $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue()); |
@@ -214,9 +214,9 @@ discard block |
||
214 | 214 | |
215 | 215 | $lon = $lat = 0; |
216 | 216 | |
217 | - foreach($lonLat as $k=>$v) { |
|
218 | - list($lon,$lat) = explode(',', $v, 2); |
|
219 | - $latLon[]=$lat.','.$lon; |
|
217 | + foreach ($lonLat as $k=>$v) { |
|
218 | + list($lon, $lat) = explode(',', $v, 2); |
|
219 | + $latLon[] = $lat.','.$lon; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | $value['data'] = [ |
@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | (float) $lon |
226 | 226 | ], |
227 | 227 | 'type'=>'Point', |
228 | - 'city' => substr($value['name'],0,strrpos($value['name'], ',' )), |
|
229 | - 'region' => substr($value['name'],strrpos($value['name'], ',' )+2), |
|
228 | + 'city' => substr($value['name'], 0, strrpos($value['name'], ',')), |
|
229 | + 'region' => substr($value['name'], strrpos($value['name'], ',') + 2), |
|
230 | 230 | 'postalcode' =>'', |
231 | 231 | 'country' => 'DE']; |
232 | 232 | } |
@@ -40,8 +40,8 @@ |
||
40 | 40 | |
41 | 41 | $plugin = new AcceptInvitationHandler(); |
42 | 42 | $plugin->setUserRepository($userRepository) |
43 | - ->setOrganizationRepository($organizationRepository) |
|
44 | - ->setAuthenticationService($authenticationService); |
|
43 | + ->setOrganizationRepository($organizationRepository) |
|
44 | + ->setAuthenticationService($authenticationService); |
|
45 | 45 | |
46 | 46 | return $plugin; |
47 | 47 | } |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -23,8 +23,8 @@ |
||
23 | 23 | { |
24 | 24 | |
25 | 25 | /** (non-PHPdoc) |
26 | - * @see \Zend\ServiceManager\FactoryInterface::createService() |
|
27 | - */ |
|
26 | + * @see \Zend\ServiceManager\FactoryInterface::createService() |
|
27 | + */ |
|
28 | 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
29 | 29 | { |
30 | 30 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
33 | 33 | $config = new PaginatorServiceConfig($configArray); |
34 | 34 | |
35 | - $service = new PaginatorService($serviceLocator, $config); |
|
35 | + $service = new PaginatorService($serviceLocator, $config); |
|
36 | 36 | |
37 | 37 | return $service; |
38 | 38 | } |
@@ -136,13 +136,13 @@ |
||
136 | 136 | { |
137 | 137 | $mail = $this->mailer->get('htmltemplate'); |
138 | 138 | $mail->setTemplate($template) |
139 | - ->setSubject($subject) |
|
140 | - ->setVariables( |
|
141 | - array( |
|
139 | + ->setSubject($subject) |
|
140 | + ->setVariables( |
|
141 | + array( |
|
142 | 142 | 'job' => $job, |
143 | 143 | 'siteName' => $this->options['siteName'], |
144 | 144 | ) |
145 | - ); |
|
145 | + ); |
|
146 | 146 | |
147 | 147 | if ($adminMail) { |
148 | 148 | $mail->setTo($this->options['adminEmail']); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $helper = new FormEditorLight(); |
45 | 45 | if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){ |
46 | - $helper->setOptions($config['view_helper_config']['form_editor']['light']); |
|
46 | + $helper->setOptions($config['view_helper_config']['form_editor']['light']); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $helper->setOption('theme' , 'modern'); |
@@ -42,16 +42,16 @@ |
||
42 | 42 | $lang = $event->getRouteMatch()->getParam('lang'); |
43 | 43 | |
44 | 44 | $helper = new FormEditorLight(); |
45 | - if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){ |
|
45 | + if (isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])) { |
|
46 | 46 | $helper->setOptions($config['view_helper_config']['form_editor']['light']); |
47 | 47 | } |
48 | 48 | |
49 | - $helper->setOption('theme' , 'modern'); |
|
50 | - $helper->setOption('selector' , 'div.tinymce_light'); |
|
49 | + $helper->setOption('theme', 'modern'); |
|
50 | + $helper->setOption('selector', 'div.tinymce_light'); |
|
51 | 51 | |
52 | - if (in_array($lang,['de','fr','it','es','hi','ar','ru','zh','tr'])) { |
|
52 | + if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) { |
|
53 | 53 | $helper->setOption('language', $lang); |
54 | - $helper->setOption('language_url', $basepath('/js/tinymce-lang/') . $lang .'.js'); |
|
54 | + $helper->setOption('language_url', $basepath('/js/tinymce-lang/').$lang.'.js'); |
|
55 | 55 | } |
56 | 56 | return $helper; |
57 | 57 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Gets the Job Titles of a certain user. |
69 | 69 | * |
70 | 70 | * @param $query |
71 | - * @param $userId |
|
71 | + * @param \Auth\Controller\Plugin\Auth $userId |
|
72 | 72 | * @return mixed |
73 | 73 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
74 | 74 | */ |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Look for an drafted Document of a given user |
93 | 93 | * |
94 | - * @param $user |
|
94 | + * @param \Auth\Entity\AnonymousUser $user |
|
95 | 95 | * @return \Jobs\Entity\Job|null |
96 | 96 | */ |
97 | 97 | public function findDraft($user) |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | { |
41 | 41 | $qb = $this->createQueryBuilder(); |
42 | 42 | $qb->hydrate(false) |
43 | - ->select('applyId') |
|
44 | - ->field('applyId')->equals($applyId); |
|
43 | + ->select('applyId') |
|
44 | + ->field('applyId')->equals($applyId); |
|
45 | 45 | |
46 | 46 | $result = $qb->getQuery()->execute(); |
47 | 47 | $count = $result->count(); |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | { |
76 | 76 | $qb = $this->createQueryBuilder(); |
77 | 77 | $qb->hydrate(false) |
78 | - ->select('title', 'applyId') |
|
79 | - ->field('permissions.view')->equals($userId) |
|
80 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
81 | - ->sort('title') |
|
82 | - ->limit(5); |
|
78 | + ->select('title', 'applyId') |
|
79 | + ->field('permissions.view')->equals($userId) |
|
80 | + ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
81 | + ->sort('title') |
|
82 | + ->limit(5); |
|
83 | 83 | |
84 | 84 | $result = $qb->getQuery()->execute(); |
85 | 85 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb = $this->createQueryBuilder(); |
145 | 145 | $qb->distinct('organization') |
146 | 146 | ->hydrate(true) |
147 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
147 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
148 | 148 | $q = $qb->getQuery(); |
149 | 149 | $r = $q->execute(); |
150 | 150 | $r = $r->toArray(); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | return $this->findBy( |
58 | 58 | array( |
59 | - 'permissions.assigned.' . $resourceId => array( |
|
59 | + 'permissions.assigned.'.$resourceId => array( |
|
60 | 60 | '$exists' => true |
61 | 61 | ) |
62 | 62 | ) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $qb->hydrate(false) |
78 | 78 | ->select('title', 'applyId') |
79 | 79 | ->field('permissions.view')->equals($userId) |
80 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
80 | + ->field('title')->equals(new \MongoRegex('/'.$query.'/i')) |
|
81 | 81 | ->sort('title') |
82 | 82 | ->limit(5); |
83 | 83 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb = $this->createQueryBuilder(); |
145 | 145 | $qb->distinct('organization') |
146 | 146 | ->hydrate(true) |
147 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
147 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
148 | 148 | $q = $qb->getQuery(); |
149 | 149 | $r = $q->execute(); |
150 | 150 | $r = $r->toArray(); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | */ |
159 | 159 | public function typeaheadAction() |
160 | 160 | { |
161 | - $query = $this->params()->fromQuery('q', '*'); |
|
161 | + $query = $this->params()->fromQuery('q', '*'); |
|
162 | 162 | |
163 | 163 | $return = array(); |
164 | 164 | foreach ($this->jobRepository->getTypeaheadResults($query, $this->auth('id')) as $id => $item) { |