@@ -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'); |
@@ -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) { |
@@ -98,12 +98,12 @@ discard block |
||
| 98 | 98 | </a> |
| 99 | 99 | <div class="fu-errors input-error"> |
| 100 | 100 | <ul class="errors"> |
| 101 | - <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain) . '</li> |
|
| 102 | - <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain) . '</li> |
|
| 101 | + <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain).'</li> |
|
| 102 | + <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain).'</li> |
|
| 103 | 103 | <li class="fu-error-count">' . sprintf( |
| 104 | 104 | $translator->translate('You may only upload %d files', $textDomain), |
| 105 | 105 | $element->getAttribute('data-maxfilecount') |
| 106 | -) . '</li><li class="fu-error-general">' . $translator->translate('An unknown error occured.') . '</li> |
|
| 106 | +).'</li><li class="fu-error-general">'.$translator->translate('An unknown error occured.').'</li> |
|
| 107 | 107 | </ul> |
| 108 | 108 | </div> |
| 109 | 109 | </li>'; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /* @var $basepath \Zend\View\Helper\BasePath */ |
| 112 | 112 | $renderer = $this->getView(); |
| 113 | 113 | $basepath = $renderer->plugin('basepath'); |
| 114 | - $createFileDisplay = function ($file) use ($template, $basepath) { |
|
| 114 | + $createFileDisplay = function($file) use ($template, $basepath) { |
|
| 115 | 115 | /* @var $file \Core\Entity\FileInterface */ |
| 116 | 116 | $uri = $basepath($file->getUri()); |
| 117 | 117 | $name = $file->getName(); |
@@ -146,11 +146,11 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | $nonemptynotice = |
| 149 | - '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
|
| 150 | - . $this->getNonEmptyNotice() . '</div>'; |
|
| 149 | + '<div class="fu-nonempty-notice"'.('' == trim($preview) ? ' style="display:none;"' : '').'>' |
|
| 150 | + . $this->getNonEmptyNotice().'</div>'; |
|
| 151 | 151 | $emptynotice = '<div class="fu-empty-notice"' |
| 152 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
| 153 | - ' . $this->getEmptyNotice() . ' |
|
| 152 | + . ('' == trim($preview) ? '' : ' style="display: none;"').'> |
|
| 153 | + ' . $this->getEmptyNotice().' |
|
| 154 | 154 | </div>'; |
| 155 | 155 | |
| 156 | 156 | $markup = ' |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | protected function getDefaultNotice() |
| 300 | 300 | { |
| 301 | - return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>'; |
|
| 301 | + return '<small>'.$this->getTranslator()->translate('Click here to add files or use drag and drop.').'</small>'; |
|
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | /** |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | public function setAllowRemove($allowRemove) |
| 310 | 310 | { |
| 311 | - $this->allowRemove = (bool)$allowRemove; |
|
| 311 | + $this->allowRemove = (bool) $allowRemove; |
|
| 312 | 312 | |
| 313 | 313 | return $this; |
| 314 | 314 | } |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | */ |
| 321 | 321 | public function setAllowClickableDropZone($allowClickableDropZone) |
| 322 | 322 | { |
| 323 | - $this->allowClickableDropZone = (bool)$allowClickableDropZone; |
|
| 323 | + $this->allowClickableDropZone = (bool) $allowClickableDropZone; |
|
| 324 | 324 | |
| 325 | 325 | return $this; |
| 326 | 326 | } |
@@ -146,18 +146,18 @@ |
||
| 146 | 146 | $size = $this->getLength(); |
| 147 | 147 | |
| 148 | 148 | if ($size >= 1073741824) { |
| 149 | - return round($size / 1073741824, 2) . ' GB'; |
|
| 149 | + return round($size / 1073741824, 2).' GB'; |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | if ($size >= 1048576) { |
| 153 | - return round($size / 1048576, 2) . ' MB'; |
|
| 153 | + return round($size / 1048576, 2).' MB'; |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | if ($size >= 1024) { |
| 157 | - return round($size / 1024, 2) . ' kB'; |
|
| 157 | + return round($size / 1024, 2).' kB'; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - return (string)$size; |
|
| 160 | + return (string) $size; |
|
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |