@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @param string $description |
80 | + * @param double[] $params |
|
80 | 81 | * |
81 | 82 | * @return $this |
82 | 83 | */ |
@@ -258,7 +259,7 @@ discard block |
||
258 | 259 | } |
259 | 260 | |
260 | 261 | /** |
261 | - * @param $spec |
|
262 | + * @param string $spec |
|
262 | 263 | * |
263 | 264 | * @return $this |
264 | 265 | */ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return $this |
82 | 82 | */ |
83 | - public function setDescription($description,$params = null) |
|
83 | + public function setDescription($description, $params = null) |
|
84 | 84 | { |
85 | 85 | $this->options['description'] = $description; |
86 | 86 | $this->options['description_params'] = $params; |
@@ -350,9 +350,9 @@ discard block |
||
350 | 350 | if (!$inputExists && $required) { |
351 | 351 | $fieldsetName = ''; |
352 | 352 | if ($fieldset->hasAttribute('name')) { |
353 | - $fieldsetName = 'in Fieldset "' . $fieldset->getAttribute('name') . '" '; |
|
353 | + $fieldsetName = 'in Fieldset "'.$fieldset->getAttribute('name').'" '; |
|
354 | 354 | } |
355 | - throw new \RuntimeException('input for "' . $name . '" ' . $fieldsetName . 'is required but a input-field with this name is not defined'); |
|
355 | + throw new \RuntimeException('input for "'.$name.'" '.$fieldsetName.'is required but a input-field with this name is not defined'); |
|
356 | 356 | } |
357 | 357 | } |
358 | 358 | } |
@@ -24,8 +24,8 @@ |
||
24 | 24 | * @author Mathias Gelhausen <[email protected]> |
25 | 25 | */ |
26 | 26 | class Form extends ZendForm implements DescriptionAwareFormInterface, |
27 | - DisableElementsCapableInterface, |
|
28 | - FormParentInterface |
|
27 | + DisableElementsCapableInterface, |
|
28 | + FormParentInterface |
|
29 | 29 | { |
30 | 30 | |
31 | 31 | use EventManagerAwareTrait, HydratorStrategyAwareTrait; |
@@ -32,7 +32,6 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @param mixed $value$organizationImageEntity |
|
36 | 35 | * |
37 | 36 | * @return mixed |
38 | 37 | */ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function setLabelQualifications($labelQualifications) |
83 | 83 | { |
84 | - $this->labelQualifications=$labelQualifications; |
|
84 | + $this->labelQualifications = $labelQualifications; |
|
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function setLabelBenefits($labelBenefits) |
106 | 106 | { |
107 | - $this->labelBenefits=$labelBenefits; |
|
107 | + $this->labelBenefits = $labelBenefits; |
|
108 | 108 | return $this; |
109 | 109 | } |
110 | 110 |
@@ -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 LocationInterface) { |
210 | 210 | $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue()); |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | |
222 | 222 | $lon = $lat = 0; |
223 | 223 | |
224 | - foreach($lonLat as $k=>$v) { |
|
225 | - list($lon,$lat) = explode(',', $v, 2); |
|
226 | - $latLon[]=$lat.','.$lon; |
|
224 | + foreach ($lonLat as $k=>$v) { |
|
225 | + list($lon, $lat) = explode(',', $v, 2); |
|
226 | + $latLon[] = $lat.','.$lon; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | $value['data'] = [ |
@@ -232,8 +232,8 @@ discard block |
||
232 | 232 | (float) $lon |
233 | 233 | ], |
234 | 234 | 'type'=>'Point', |
235 | - 'city' => substr($value['name'],0,strrpos($value['name'], ',' )), |
|
236 | - 'region' => substr($value['name'],strrpos($value['name'], ',' )+2), |
|
235 | + 'city' => substr($value['name'], 0, strrpos($value['name'], ',')), |
|
236 | + 'region' => substr($value['name'], strrpos($value['name'], ',') + 2), |
|
237 | 237 | 'postalcode' =>'', |
238 | 238 | 'country' => 'DE']; |
239 | 239 | } |
@@ -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']); |