@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @license MIT |
13 | 13 | */ |
14 | 14 | |
15 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
15 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
16 | 16 | |
17 | 17 | |
18 | 18 | return array( |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | 'doctrine' => $doctrineConfig, |
21 | 21 | |
22 | 22 | 'options' => [ |
23 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
23 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
24 | 24 | ], |
25 | 25 | |
26 | 26 | 'Core' => array( |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'name' => 'stream', |
41 | 41 | 'priority' => 1000, |
42 | 42 | 'options' => array( |
43 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
43 | + 'stream' => __DIR__.'/../../../log/yawik.log', |
|
44 | 44 | ), |
45 | 45 | ), |
46 | 46 | ), |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'name' => 'stream', |
52 | 52 | 'priority' => 1000, |
53 | 53 | 'options' => array( |
54 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
54 | + 'stream' => __DIR__.'/../../../log/mails.log', |
|
55 | 55 | ), |
56 | 56 | ), |
57 | 57 | ), |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | 'ErrorLogger' => array( |
60 | 60 | 'service' => 'Core/ErrorLogger', |
61 | 61 | 'config' => array( |
62 | - 'stream' => __DIR__ . '/../../../log/error.log', |
|
62 | + 'stream' => __DIR__.'/../../../log/error.log', |
|
63 | 63 | 'log_errors' => true, |
64 | 64 | 'log_exceptions' => true, |
65 | 65 | ), |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
78 | 78 | 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
79 | 79 | 'strict' => true, // bool = cause immediate death|int = matched against error severity |
80 | - 'log' => __DIR__ . '/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
80 | + 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
81 | 81 | 'email' => null, // in production mode notifies the recipient |
82 | 82 | 'email_snooze' => 900 // interval for sending email in seconds |
83 | 83 | ], |
@@ -231,17 +231,17 @@ discard block |
||
231 | 231 | 'translation_file_patterns' => array( |
232 | 232 | [ |
233 | 233 | 'type' => 'gettext', |
234 | - 'base_dir' => __DIR__ . '/../language', |
|
234 | + 'base_dir' => __DIR__.'/../language', |
|
235 | 235 | 'pattern' => '%s.mo', |
236 | 236 | ], |
237 | 237 | [ |
238 | 238 | 'type' => 'phparray', |
239 | - 'base_dir' => __DIR__ . '/../language', |
|
239 | + 'base_dir' => __DIR__.'/../language', |
|
240 | 240 | 'pattern' => 'Zend_Validate.%s.php', |
241 | 241 | ], |
242 | 242 | [ |
243 | 243 | 'type' => 'phparray', |
244 | - 'base_dir' => __DIR__ . '/../language', |
|
244 | + 'base_dir' => __DIR__.'/../language', |
|
245 | 245 | 'pattern' => 'Zend_Captcha.%s.php', |
246 | 246 | ] |
247 | 247 | ), |
@@ -310,32 +310,32 @@ discard block |
||
310 | 310 | 'exception_template' => 'error/index', |
311 | 311 | // Map template to files. Speeds up the lookup through the template stack. |
312 | 312 | 'template_map' => array( |
313 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
314 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
315 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
316 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
317 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
318 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
319 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
320 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
321 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
322 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
323 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
324 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
325 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
326 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
327 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
328 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
329 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
330 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
331 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
332 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
333 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
313 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
314 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
315 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
316 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
317 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
318 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
319 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
320 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
321 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
322 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
323 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
324 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
325 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
326 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
327 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
328 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
329 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
330 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
331 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
332 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
333 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
334 | 334 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
335 | 335 | ), |
336 | 336 | // Where to look for view templates not mapped above |
337 | 337 | 'template_path_stack' => array( |
338 | - __DIR__ . '/../view', |
|
338 | + __DIR__.'/../view', |
|
339 | 339 | ), |
340 | 340 | ), |
341 | 341 | 'view_helpers' => array( |
@@ -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 | } |
@@ -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) { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | public function prepareElement(FormInterface $form) |
146 | 146 | { |
147 | - $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single') . '-file-upload'); |
|
147 | + $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single').'-file-upload'); |
|
148 | 148 | $form->setAttribute('data-is-empty', null === $this->getValue()); |
149 | 149 | parent::prepareElement($form); |
150 | 150 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $entityName = $this->getName(); |
248 | 248 | |
249 | 249 | try { |
250 | - $fileEntity = $object->{"get" . $entityName}(); |
|
250 | + $fileEntity = $object->{"get".$entityName}(); |
|
251 | 251 | } catch (\OutOfBoundsException $e) { |
252 | 252 | return null; |
253 | 253 | } |
@@ -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; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function extract($value) |
18 | 18 | { |
19 | 19 | $result = null; |
20 | - if (method_exists($value,'templateValues')) { |
|
20 | + if (method_exists($value, 'templateValues')) { |
|
21 | 21 | $result = $value->getTemplateValues()->getTitle(); |
22 | 22 | } |
23 | 23 | return $result; |
@@ -460,10 +460,10 @@ discard block |
||
460 | 460 | public function getLocation() |
461 | 461 | { |
462 | 462 | if (null === $this->location) { |
463 | - $array=[]; |
|
464 | - if(null != $this->locations){ |
|
463 | + $array = []; |
|
464 | + if (null != $this->locations) { |
|
465 | 465 | foreach ($this->locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
466 | - $array[]=$location->getCity(); |
|
466 | + $array[] = $location->getCity(); |
|
467 | 467 | } |
468 | 468 | return implode(', ', $array); |
469 | 469 | } |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | if ($removePermissions) { |
519 | 519 | $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL); |
520 | 520 | } |
521 | - $this->user=null; |
|
521 | + $this->user = null; |
|
522 | 522 | } |
523 | 523 | |
524 | 524 | return $this; |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | $organization = $this->organization; |
769 | 769 | if (is_object($organization) && $organization->getImage()) { |
770 | 770 | $organizationImage = $organization->getImage(); |
771 | - return "/file/Organizations.OrganizationImage/" . $organizationImage->getId(); |
|
771 | + return "/file/Organizations.OrganizationImage/".$organizationImage->getId(); |
|
772 | 772 | } |
773 | 773 | return $this->logoRef; |
774 | 774 | } |