@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | protected $workflow = [ |
| 82 | 82 | |
| 83 | - 'recruiter', |
|
| 83 | + 'recruiter', |
|
| 84 | 84 | ]; |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -218,13 +218,13 @@ discard block |
||
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | - * @return boolean |
|
| 222 | - * @since 0.27 |
|
| 223 | - */ |
|
| 224 | - public function getAllowSubsequentAttachmentUpload() |
|
| 225 | - { |
|
| 226 | - return $this->allowSubsequentAttachmentUpload; |
|
| 227 | - } |
|
| 221 | + * @return boolean |
|
| 222 | + * @since 0.27 |
|
| 223 | + */ |
|
| 224 | + public function getAllowSubsequentAttachmentUpload() |
|
| 225 | + { |
|
| 226 | + return $this->allowSubsequentAttachmentUpload; |
|
| 227 | + } |
|
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | 230 | * @param boolean $allowSubsequentAttachmentUpload |
@@ -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 | } |
@@ -121,11 +121,11 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | return str_replace( |
| 123 | 123 | array('#abort', |
| 124 | - '__file-uri__', |
|
| 125 | - '__file-name__', |
|
| 126 | - '__file-size__', |
|
| 127 | - 'fu-working', |
|
| 128 | - 'fa-file-o' |
|
| 124 | + '__file-uri__', |
|
| 125 | + '__file-name__', |
|
| 126 | + '__file-size__', |
|
| 127 | + 'fu-working', |
|
| 128 | + 'fa-file-o' |
|
| 129 | 129 | ), |
| 130 | 130 | array("$uri?do=delete", $uri, $name, $size, '', $icon), |
| 131 | 131 | $template |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
| 150 | 150 | . $this->getNonEmptyNotice() . '</div>'; |
| 151 | 151 | $emptynotice = '<div class="fu-empty-notice"' |
| 152 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
| 152 | + . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
| 153 | 153 | ' . $this->getEmptyNotice() . ' |
| 154 | 154 | </div>'; |
| 155 | 155 | |
@@ -238,90 +238,90 @@ discard block |
||
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | /** |
| 241 | - * @param string $emptyNotice |
|
| 242 | - * @return FormFileUpload |
|
| 243 | - * @since 0.27 |
|
| 244 | - */ |
|
| 245 | - public function setEmptyNotice($emptyNotice) |
|
| 246 | - { |
|
| 247 | - $this->emptyNotice = $emptyNotice; |
|
| 241 | + * @param string $emptyNotice |
|
| 242 | + * @return FormFileUpload |
|
| 243 | + * @since 0.27 |
|
| 244 | + */ |
|
| 245 | + public function setEmptyNotice($emptyNotice) |
|
| 246 | + { |
|
| 247 | + $this->emptyNotice = $emptyNotice; |
|
| 248 | 248 | |
| 249 | - return $this; |
|
| 250 | - } |
|
| 249 | + return $this; |
|
| 250 | + } |
|
| 251 | 251 | |
| 252 | 252 | /** |
| 253 | - * @return string |
|
| 254 | - * @since 0.27 |
|
| 255 | - */ |
|
| 256 | - protected function getEmptyNotice() |
|
| 257 | - { |
|
| 258 | - if (!isset($this->emptyNotice)) |
|
| 259 | - { |
|
| 260 | - $this->emptyNotice = ' |
|
| 253 | + * @return string |
|
| 254 | + * @since 0.27 |
|
| 255 | + */ |
|
| 256 | + protected function getEmptyNotice() |
|
| 257 | + { |
|
| 258 | + if (!isset($this->emptyNotice)) |
|
| 259 | + { |
|
| 260 | + $this->emptyNotice = ' |
|
| 261 | 261 | <div class="pull-left"> |
| 262 | 262 | <span class="yk-icon fa-files-o fa-5x"></span> |
| 263 | 263 | </div>' . $this->getDefaultNotice(); |
| 264 | - } |
|
| 264 | + } |
|
| 265 | 265 | |
| 266 | - return $this->emptyNotice; |
|
| 267 | - } |
|
| 266 | + return $this->emptyNotice; |
|
| 267 | + } |
|
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | - * @param string $nonEmptyNotice |
|
| 271 | - * @return FormFileUpload |
|
| 272 | - * @since 0.27 |
|
| 273 | - */ |
|
| 274 | - public function setNonEmptyNotice($nonEmptyNotice) |
|
| 275 | - { |
|
| 276 | - $this->nonEmptyNotice = $nonEmptyNotice; |
|
| 270 | + * @param string $nonEmptyNotice |
|
| 271 | + * @return FormFileUpload |
|
| 272 | + * @since 0.27 |
|
| 273 | + */ |
|
| 274 | + public function setNonEmptyNotice($nonEmptyNotice) |
|
| 275 | + { |
|
| 276 | + $this->nonEmptyNotice = $nonEmptyNotice; |
|
| 277 | 277 | |
| 278 | - return $this; |
|
| 279 | - } |
|
| 278 | + return $this; |
|
| 279 | + } |
|
| 280 | 280 | |
| 281 | 281 | /** |
| 282 | - * @return string |
|
| 283 | - * @since 0.27 |
|
| 284 | - */ |
|
| 285 | - protected function getNonEmptyNotice() |
|
| 286 | - { |
|
| 287 | - if (!isset($this->nonEmptyNotice)) |
|
| 288 | - { |
|
| 289 | - $this->nonEmptyNotice = $this->getDefaultNotice(); |
|
| 290 | - } |
|
| 282 | + * @return string |
|
| 283 | + * @since 0.27 |
|
| 284 | + */ |
|
| 285 | + protected function getNonEmptyNotice() |
|
| 286 | + { |
|
| 287 | + if (!isset($this->nonEmptyNotice)) |
|
| 288 | + { |
|
| 289 | + $this->nonEmptyNotice = $this->getDefaultNotice(); |
|
| 290 | + } |
|
| 291 | 291 | |
| 292 | - return $this->nonEmptyNotice; |
|
| 293 | - } |
|
| 292 | + return $this->nonEmptyNotice; |
|
| 293 | + } |
|
| 294 | 294 | |
| 295 | 295 | /** |
| 296 | - * @return string |
|
| 297 | - * @since 0.27 |
|
| 298 | - */ |
|
| 299 | - protected function getDefaultNotice() |
|
| 300 | - { |
|
| 301 | - return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>'; |
|
| 302 | - } |
|
| 296 | + * @return string |
|
| 297 | + * @since 0.27 |
|
| 298 | + */ |
|
| 299 | + protected function getDefaultNotice() |
|
| 300 | + { |
|
| 301 | + return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>'; |
|
| 302 | + } |
|
| 303 | 303 | |
| 304 | 304 | /** |
| 305 | - * @param boolean $allowRemove |
|
| 306 | - * @return FormFileUpload |
|
| 307 | - * @since 0.27 |
|
| 308 | - */ |
|
| 309 | - public function setAllowRemove($allowRemove) |
|
| 310 | - { |
|
| 311 | - $this->allowRemove = (bool)$allowRemove; |
|
| 305 | + * @param boolean $allowRemove |
|
| 306 | + * @return FormFileUpload |
|
| 307 | + * @since 0.27 |
|
| 308 | + */ |
|
| 309 | + public function setAllowRemove($allowRemove) |
|
| 310 | + { |
|
| 311 | + $this->allowRemove = (bool)$allowRemove; |
|
| 312 | 312 | |
| 313 | - return $this; |
|
| 314 | - } |
|
| 313 | + return $this; |
|
| 314 | + } |
|
| 315 | 315 | |
| 316 | 316 | /** |
| 317 | - * @param boolean $allowClickableDropZone |
|
| 318 | - * @return FormFileUpload |
|
| 319 | - * @since 0.27 |
|
| 320 | - */ |
|
| 321 | - public function setAllowClickableDropZone($allowClickableDropZone) |
|
| 322 | - { |
|
| 323 | - $this->allowClickableDropZone = (bool)$allowClickableDropZone; |
|
| 317 | + * @param boolean $allowClickableDropZone |
|
| 318 | + * @return FormFileUpload |
|
| 319 | + * @since 0.27 |
|
| 320 | + */ |
|
| 321 | + public function setAllowClickableDropZone($allowClickableDropZone) |
|
| 322 | + { |
|
| 323 | + $this->allowClickableDropZone = (bool)$allowClickableDropZone; |
|
| 324 | 324 | |
| 325 | - return $this; |
|
| 326 | - } |
|
| 325 | + return $this; |
|
| 326 | + } |
|
| 327 | 327 | } |
@@ -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 | } |