@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @var string |
| 54 | 54 | */ |
| 55 | - protected $options="Cv/Options"; |
|
| 55 | + protected $options = "Cv/Options"; |
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ->setIsDescriptionsEnabled(true) |
| 78 | 78 | ->setDescription( |
| 79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
| 80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
| 80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
| 81 | 81 | ) |
| 82 | 82 | ->setParam('return', 'file-uri') |
| 83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | use EmptySummaryAwareTrait; |
| 15 | 15 | |
| 16 | - private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
| 16 | + private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Type of Application Options |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function getEmptySummaryNotice() |
| 52 | 52 | { |
| 53 | - if (! isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
| 53 | + if (!isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
| 54 | 54 | $this->emptySummaryNotice = $this->defaultEmptySummaryNotice; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -97,10 +97,10 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | $router = $e->getRouter(); |
| 100 | - $basePath=$router->getBaseUrl(); |
|
| 100 | + $basePath = $router->getBaseUrl(); |
|
| 101 | 101 | $match = []; |
| 102 | 102 | |
| 103 | - if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
| 103 | + if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
| 104 | 104 | /* It seems we have already a language in the URI |
| 105 | 105 | * Now there are two possibilities: |
| 106 | 106 | * |
@@ -182,8 +182,8 @@ discard block |
||
| 182 | 182 | setlocale( |
| 183 | 183 | LC_ALL, |
| 184 | 184 | array( |
| 185 | - $locale . ".utf8", |
|
| 186 | - $locale . ".iso88591", |
|
| 185 | + $locale.".utf8", |
|
| 186 | + $locale.".iso88591", |
|
| 187 | 187 | $locale, |
| 188 | 188 | substr($locale, 0, 2), |
| 189 | 189 | 'de_DE.utf8', |
@@ -78,12 +78,12 @@ discard block |
||
| 78 | 78 | 'exception_template' => 'error/index', |
| 79 | 79 | // Map template to files. Speeds up the lookup through the template stack. |
| 80 | 80 | 'template_map' => array( |
| 81 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
| 82 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
| 81 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
| 82 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
| 83 | 83 | ), |
| 84 | 84 | // Where to look for view templates not mapped above |
| 85 | 85 | 'template_path_stack' => array( |
| 86 | - __DIR__ . '/../view', |
|
| 86 | + __DIR__.'/../view', |
|
| 87 | 87 | ), |
| 88 | 88 | ), |
| 89 | 89 | |
@@ -91,13 +91,13 @@ discard block |
||
| 91 | 91 | 'translation_file_patterns' => array( |
| 92 | 92 | array( |
| 93 | 93 | 'type' => 'gettext', |
| 94 | - 'base_dir' => __DIR__ . '/../language', |
|
| 94 | + 'base_dir' => __DIR__.'/../language', |
|
| 95 | 95 | 'pattern' => '%s.mo', |
| 96 | 96 | 'text_domain' => 'Install', |
| 97 | 97 | ), |
| 98 | 98 | [ |
| 99 | 99 | 'type' => 'phparray', |
| 100 | - 'base_dir' => __DIR__ . '/../../Core/language', |
|
| 100 | + 'base_dir' => __DIR__.'/../../Core/language', |
|
| 101 | 101 | 'pattern' => 'Zend_Validate.%s.php', |
| 102 | 102 | 'text_domain' => 'default', |
| 103 | 103 | ], |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
| 64 | 64 | { |
| 65 | 65 | $title = $application->getJob()->getTitle(); |
| 66 | - $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
|
| 66 | + $title .= ' ('.$view->dateFormat($application->getDateCreated()).')'; |
|
| 67 | 67 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
| 68 | 68 | $items[] = new ListItem($title, $url); |
| 69 | 69 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) /* @var $job \Jobs\Entity\Job */ |
| 64 | 64 | { |
| 65 | 65 | $title = $job->getTitle() ?: $view->translate('untitled'); |
| 66 | - $title .= ' ('. $view->dateFormat($job->getDateCreated(), 'short', 'none') . ')'; |
|
| 66 | + $title .= ' ('.$view->dateFormat($job->getDateCreated(), 'short', 'none').')'; |
|
| 67 | 67 | $url = $view->url('lang/jobs/manage', ['action' => 'edit'], [ |
| 68 | 68 | 'query' => [ |
| 69 | 69 | 'id' => $job->getId() |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | protected function attachDefaultListeners() |
| 58 | 58 | { |
| 59 | - $this->getEventManager()->attach(static::EVENT_REMOVE_ITEMS, function (EventInterface $event) { |
|
| 59 | + $this->getEventManager()->attach(static::EVENT_REMOVE_ITEMS, function(EventInterface $event) { |
|
| 60 | 60 | $user = $event->getParam('user'); |
| 61 | 61 | foreach ($this->getLists() as $list) { |
| 62 | 62 | foreach ($list->getEntities($user) as $entity) { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @var array $attachmentsMimeType |
| 37 | 37 | */ |
| 38 | - protected $attachmentsMimeType = array('image','applications/pdf', |
|
| 38 | + protected $attachmentsMimeType = array('image', 'applications/pdf', |
|
| 39 | 39 | 'application/x-pdf', |
| 40 | 40 | 'application/acrobat', |
| 41 | 41 | 'applications/vnd.pdf', |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload) |
| 235 | 235 | { |
| 236 | - $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload; |
|
| 236 | + $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload; |
|
| 237 | 237 | |
| 238 | 238 | return $this; |
| 239 | 239 | } |