@@ -17,6 +17,5 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for Files |
| 19 | 19 | */ |
| 20 | -class FileRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 21 | -{ |
|
| 20 | +class FileRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 22 | 21 | } |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * MetadataObject |
| 19 | 19 | */ |
| 20 | -class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface |
|
| 21 | -{ |
|
| 20 | +class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * name |
@@ -229,8 +228,7 @@ discard block |
||
| 229 | 228 | * |
| 230 | 229 | * @return string $name |
| 231 | 230 | */ |
| 232 | - public function getName() |
|
| 233 | - { |
|
| 231 | + public function getName() { |
|
| 234 | 232 | return $this->name; |
| 235 | 233 | } |
| 236 | 234 | |
@@ -240,8 +238,7 @@ discard block |
||
| 240 | 238 | * @param string $name |
| 241 | 239 | * @return void |
| 242 | 240 | */ |
| 243 | - public function setName($name) |
|
| 244 | - { |
|
| 241 | + public function setName($name) { |
|
| 245 | 242 | $this->name = $name; |
| 246 | 243 | } |
| 247 | 244 | |
@@ -250,8 +247,7 @@ discard block |
||
| 250 | 247 | * |
| 251 | 248 | * @return string $displayName |
| 252 | 249 | */ |
| 253 | - public function getDisplayName() |
|
| 254 | - { |
|
| 250 | + public function getDisplayName() { |
|
| 255 | 251 | return $this->displayName; |
| 256 | 252 | } |
| 257 | 253 | |
@@ -261,8 +257,7 @@ discard block |
||
| 261 | 257 | * @param string $displayName |
| 262 | 258 | * @return void |
| 263 | 259 | */ |
| 264 | - public function setDisplayName($displayName) |
|
| 265 | - { |
|
| 260 | + public function setDisplayName($displayName) { |
|
| 266 | 261 | $this->displayName = $displayName; |
| 267 | 262 | } |
| 268 | 263 | |
@@ -271,8 +266,7 @@ discard block |
||
| 271 | 266 | * |
| 272 | 267 | * @return integer $maxIteration |
| 273 | 268 | */ |
| 274 | - public function getMaxIteration() |
|
| 275 | - { |
|
| 269 | + public function getMaxIteration() { |
|
| 276 | 270 | if ($this->isRepeatable()) { |
| 277 | 271 | return $this->maxIteration; |
| 278 | 272 | } |
@@ -285,8 +279,7 @@ discard block |
||
| 285 | 279 | * @param integer $maxIteration |
| 286 | 280 | * @return void |
| 287 | 281 | */ |
| 288 | - public function setMaxIteration($maxIteration) |
|
| 289 | - { |
|
| 282 | + public function setMaxIteration($maxIteration) { |
|
| 290 | 283 | if ($this->isRepeatable()) { |
| 291 | 284 | $this->maxIteration = $maxIteration; |
| 292 | 285 | } else { |
@@ -299,8 +292,7 @@ discard block |
||
| 299 | 292 | * |
| 300 | 293 | * @return string $mandatory |
| 301 | 294 | */ |
| 302 | - public function getMandatory() |
|
| 303 | - { |
|
| 295 | + public function getMandatory() { |
|
| 304 | 296 | return $this->mandatory; |
| 305 | 297 | } |
| 306 | 298 | |
@@ -310,8 +302,7 @@ discard block |
||
| 310 | 302 | * @param string $mandatory |
| 311 | 303 | * @return void |
| 312 | 304 | */ |
| 313 | - public function setMandatory($mandatory) |
|
| 314 | - { |
|
| 305 | + public function setMandatory($mandatory) { |
|
| 315 | 306 | $this->mandatory = $mandatory; |
| 316 | 307 | } |
| 317 | 308 | |
@@ -320,8 +311,7 @@ discard block |
||
| 320 | 311 | * |
| 321 | 312 | * @return boolean $modsExtension |
| 322 | 313 | */ |
| 323 | - public function getModsExtension() |
|
| 324 | - { |
|
| 314 | + public function getModsExtension() { |
|
| 325 | 315 | return $this->modsExtension; |
| 326 | 316 | } |
| 327 | 317 | |
@@ -331,8 +321,7 @@ discard block |
||
| 331 | 321 | * @param boolean $modsExtension |
| 332 | 322 | * @return void |
| 333 | 323 | */ |
| 334 | - public function setModsExtension($modsExtension) |
|
| 335 | - { |
|
| 324 | + public function setModsExtension($modsExtension) { |
|
| 336 | 325 | $this->modsExtension = boolval($modsExtension); |
| 337 | 326 | } |
| 338 | 327 | |
@@ -341,8 +330,7 @@ discard block |
||
| 341 | 330 | * |
| 342 | 331 | * @return boolean |
| 343 | 332 | */ |
| 344 | - public function isModsExtension() |
|
| 345 | - { |
|
| 333 | + public function isModsExtension() { |
|
| 346 | 334 | return $this->modsExtension; |
| 347 | 335 | } |
| 348 | 336 | |
@@ -351,8 +339,7 @@ discard block |
||
| 351 | 339 | * |
| 352 | 340 | * @return string $mapping |
| 353 | 341 | */ |
| 354 | - public function getMapping() |
|
| 355 | - { |
|
| 342 | + public function getMapping() { |
|
| 356 | 343 | return $this->mapping; |
| 357 | 344 | } |
| 358 | 345 | |
@@ -362,8 +349,7 @@ discard block |
||
| 362 | 349 | * @param string $mapping |
| 363 | 350 | * @return void |
| 364 | 351 | */ |
| 365 | - public function setMapping($mapping) |
|
| 366 | - { |
|
| 352 | + public function setMapping($mapping) { |
|
| 367 | 353 | $this->mapping = $mapping; |
| 368 | 354 | } |
| 369 | 355 | |
@@ -372,8 +358,7 @@ discard block |
||
| 372 | 358 | * |
| 373 | 359 | * @return string $relativeMapping |
| 374 | 360 | */ |
| 375 | - public function getRelativeMapping() |
|
| 376 | - { |
|
| 361 | + public function getRelativeMapping() { |
|
| 377 | 362 | return trim($this->mapping, " /"); |
| 378 | 363 | } |
| 379 | 364 | |
@@ -382,8 +367,7 @@ discard block |
||
| 382 | 367 | * |
| 383 | 368 | * @return integer $inputField |
| 384 | 369 | */ |
| 385 | - public function getInputField() |
|
| 386 | - { |
|
| 370 | + public function getInputField() { |
|
| 387 | 371 | return $this->inputField; |
| 388 | 372 | } |
| 389 | 373 | |
@@ -393,8 +377,7 @@ discard block |
||
| 393 | 377 | * @param integer $inputField |
| 394 | 378 | * @return void |
| 395 | 379 | */ |
| 396 | - public function setInputField($inputField) |
|
| 397 | - { |
|
| 380 | + public function setInputField($inputField) { |
|
| 398 | 381 | $this->inputField = $inputField; |
| 399 | 382 | } |
| 400 | 383 | |
@@ -403,8 +386,7 @@ discard block |
||
| 403 | 386 | * |
| 404 | 387 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 405 | 388 | */ |
| 406 | - public function getChildren() |
|
| 407 | - { |
|
| 389 | + public function getChildren() { |
|
| 408 | 390 | return null; |
| 409 | 391 | } |
| 410 | 392 | |
@@ -413,8 +395,7 @@ discard block |
||
| 413 | 395 | * |
| 414 | 396 | * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 415 | 397 | */ |
| 416 | - public function getInputOptionList() |
|
| 417 | - { |
|
| 398 | + public function getInputOptionList() { |
|
| 418 | 399 | return $this->inputOptionList; |
| 419 | 400 | } |
| 420 | 401 | |
@@ -424,8 +405,7 @@ discard block |
||
| 424 | 405 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 425 | 406 | * @return void |
| 426 | 407 | */ |
| 427 | - public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) |
|
| 428 | - { |
|
| 408 | + public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList) { |
|
| 429 | 409 | $this->inputOptionList = $inputOptionList; |
| 430 | 410 | } |
| 431 | 411 | |
@@ -434,8 +414,7 @@ discard block |
||
| 434 | 414 | * |
| 435 | 415 | * @return string $fillOutService |
| 436 | 416 | */ |
| 437 | - public function getFillOutService() |
|
| 438 | - { |
|
| 417 | + public function getFillOutService() { |
|
| 439 | 418 | return $this->fillOutService; |
| 440 | 419 | } |
| 441 | 420 | |
@@ -445,8 +424,7 @@ discard block |
||
| 445 | 424 | * @param string $fillOutService |
| 446 | 425 | * @return void |
| 447 | 426 | */ |
| 448 | - public function setFillOutService($fillOutService) |
|
| 449 | - { |
|
| 427 | + public function setFillOutService($fillOutService) { |
|
| 450 | 428 | $this->fillOutService = $fillOutService; |
| 451 | 429 | } |
| 452 | 430 | |
@@ -455,8 +433,7 @@ discard block |
||
| 455 | 433 | * |
| 456 | 434 | * @return array $accessRestrictionRoles |
| 457 | 435 | */ |
| 458 | - public function getAccessRestrictionRoles() |
|
| 459 | - { |
|
| 436 | + public function getAccessRestrictionRoles() { |
|
| 460 | 437 | if ($this->accessRestrictionRoles) { |
| 461 | 438 | return array_map('trim', explode(',', $this->accessRestrictionRoles)); |
| 462 | 439 | } else { |
@@ -470,8 +447,7 @@ discard block |
||
| 470 | 447 | * @param array $accessRestrictionRoles |
| 471 | 448 | * @return void |
| 472 | 449 | */ |
| 473 | - public function setAccessRestrictionRoles($accessRestrictionRoles) |
|
| 474 | - { |
|
| 450 | + public function setAccessRestrictionRoles($accessRestrictionRoles) { |
|
| 475 | 451 | $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles); |
| 476 | 452 | } |
| 477 | 453 | |
@@ -480,8 +456,7 @@ discard block |
||
| 480 | 456 | * |
| 481 | 457 | * @return boolean $consent |
| 482 | 458 | */ |
| 483 | - public function getConsent() |
|
| 484 | - { |
|
| 459 | + public function getConsent() { |
|
| 485 | 460 | return $this->consent; |
| 486 | 461 | } |
| 487 | 462 | |
@@ -491,8 +466,7 @@ discard block |
||
| 491 | 466 | * @param boolean $consent |
| 492 | 467 | * @return void |
| 493 | 468 | */ |
| 494 | - public function setConsent($consent) |
|
| 495 | - { |
|
| 469 | + public function setConsent($consent) { |
|
| 496 | 470 | $this->consent = boolval($consent); |
| 497 | 471 | } |
| 498 | 472 | |
@@ -501,8 +475,7 @@ discard block |
||
| 501 | 475 | * |
| 502 | 476 | * @return string $defaultValue |
| 503 | 477 | */ |
| 504 | - public function getDefaultValue() |
|
| 505 | - { |
|
| 478 | + public function getDefaultValue() { |
|
| 506 | 479 | return $this->defaultValue; |
| 507 | 480 | } |
| 508 | 481 | |
@@ -512,8 +485,7 @@ discard block |
||
| 512 | 485 | * @param string $defaultValue |
| 513 | 486 | * @return void |
| 514 | 487 | */ |
| 515 | - public function setDefaultValue($defaultValue) |
|
| 516 | - { |
|
| 488 | + public function setDefaultValue($defaultValue) { |
|
| 517 | 489 | $this->defaultValue = $defaultValue; |
| 518 | 490 | } |
| 519 | 491 | |
@@ -522,8 +494,7 @@ discard block |
||
| 522 | 494 | * |
| 523 | 495 | * @return string $validation |
| 524 | 496 | */ |
| 525 | - public function getValidation() |
|
| 526 | - { |
|
| 497 | + public function getValidation() { |
|
| 527 | 498 | return $this->validation; |
| 528 | 499 | } |
| 529 | 500 | |
@@ -533,8 +504,7 @@ discard block |
||
| 533 | 504 | * @param string $validation |
| 534 | 505 | * @return void |
| 535 | 506 | */ |
| 536 | - public function setValidation($validation) |
|
| 537 | - { |
|
| 507 | + public function setValidation($validation) { |
|
| 538 | 508 | $this->validation = $validation; |
| 539 | 509 | } |
| 540 | 510 | |
@@ -543,8 +513,7 @@ discard block |
||
| 543 | 513 | * |
| 544 | 514 | * @return string $dataType |
| 545 | 515 | */ |
| 546 | - public function getDataType() |
|
| 547 | - { |
|
| 516 | + public function getDataType() { |
|
| 548 | 517 | return $this->dataType; |
| 549 | 518 | } |
| 550 | 519 | |
@@ -554,32 +523,28 @@ discard block |
||
| 554 | 523 | * @param string $dataType |
| 555 | 524 | * @return void |
| 556 | 525 | */ |
| 557 | - public function setDataType($dataType) |
|
| 558 | - { |
|
| 526 | + public function setDataType($dataType) { |
|
| 559 | 527 | $this->dataType = $dataType; |
| 560 | 528 | } |
| 561 | 529 | |
| 562 | 530 | /** |
| 563 | 531 | * @return string |
| 564 | 532 | */ |
| 565 | - public function getGndFieldUid() |
|
| 566 | - { |
|
| 533 | + public function getGndFieldUid() { |
|
| 567 | 534 | return $this->gndFieldUid; |
| 568 | 535 | } |
| 569 | 536 | |
| 570 | 537 | /** |
| 571 | 538 | * @param string $gndFieldUid |
| 572 | 539 | */ |
| 573 | - public function setGndFieldUid($gndFieldUid) |
|
| 574 | - { |
|
| 540 | + public function setGndFieldUid($gndFieldUid) { |
|
| 575 | 541 | $this->gndFieldUid = $gndFieldUid; |
| 576 | 542 | } |
| 577 | 543 | |
| 578 | 544 | /** |
| 579 | 545 | * @return integer |
| 580 | 546 | */ |
| 581 | - public function getMaxInputLength() |
|
| 582 | - { |
|
| 547 | + public function getMaxInputLength() { |
|
| 583 | 548 | if ($this->maxInputLength == 0) { |
| 584 | 549 | if ($this->inputField == self::input) { |
| 585 | 550 | return 255; |
@@ -594,8 +559,7 @@ discard block |
||
| 594 | 559 | /** |
| 595 | 560 | * @return integer |
| 596 | 561 | */ |
| 597 | - public function setMaxInputLength($maxInputLength) |
|
| 598 | - { |
|
| 562 | + public function setMaxInputLength($maxInputLength) { |
|
| 599 | 563 | $this->maxInputLength = $maxInputLength; |
| 600 | 564 | } |
| 601 | 565 | |
@@ -610,8 +574,7 @@ discard block |
||
| 610 | 574 | /** |
| 611 | 575 | * @param bool $embargo |
| 612 | 576 | */ |
| 613 | - public function setEmbargo(bool $embargo) |
|
| 614 | - { |
|
| 577 | + public function setEmbargo(bool $embargo) { |
|
| 615 | 578 | $this->embargo = boolval($embargo); |
| 616 | 579 | } |
| 617 | 580 | |
@@ -658,8 +621,7 @@ discard block |
||
| 658 | 621 | /** |
| 659 | 622 | * @param string $rorMapping |
| 660 | 623 | */ |
| 661 | - public function setRorMapping(string $rorMapping) |
|
| 662 | - { |
|
| 624 | + public function setRorMapping(string $rorMapping) { |
|
| 663 | 625 | $this->rorMapping = $rorMapping; |
| 664 | 626 | } |
| 665 | 627 | |
@@ -797,32 +759,28 @@ discard block |
||
| 797 | 759 | /** |
| 798 | 760 | * @return bool |
| 799 | 761 | */ |
| 800 | - public function isUploadField() |
|
| 801 | - { |
|
| 762 | + public function isUploadField() { |
|
| 802 | 763 | return $this->getInputField() == self::FILE_UPLOAD; |
| 803 | 764 | } |
| 804 | 765 | |
| 805 | 766 | /** |
| 806 | 767 | * @return bool |
| 807 | 768 | */ |
| 808 | - public function isFileLabelField() |
|
| 809 | - { |
|
| 769 | + public function isFileLabelField() { |
|
| 810 | 770 | return $this->getObjectType() == 'fileLabel'; |
| 811 | 771 | } |
| 812 | 772 | |
| 813 | 773 | /** |
| 814 | 774 | * @return bool |
| 815 | 775 | */ |
| 816 | - public function isFileDownloadField() |
|
| 817 | - { |
|
| 776 | + public function isFileDownloadField() { |
|
| 818 | 777 | return $this->getObjectType() == 'fileDownload'; |
| 819 | 778 | } |
| 820 | 779 | |
| 821 | 780 | /** |
| 822 | 781 | * @return bool |
| 823 | 782 | */ |
| 824 | - public function isFileArchiveField() |
|
| 825 | - { |
|
| 783 | + public function isFileArchiveField() { |
|
| 826 | 784 | return $this->getObjectType() == 'fileArchive'; |
| 827 | 785 | } |
| 828 | 786 | |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormGroup extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentFormGroup extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * infoText |
@@ -49,8 +48,7 @@ discard block |
||
| 49 | 48 | * |
| 50 | 49 | * @return string $infoText |
| 51 | 50 | */ |
| 52 | - public function getInfoText() |
|
| 53 | - { |
|
| 51 | + public function getInfoText() { |
|
| 54 | 52 | return $this->infoText; |
| 55 | 53 | } |
| 56 | 54 | |
@@ -60,24 +58,21 @@ discard block |
||
| 60 | 58 | * @param string $infoText |
| 61 | 59 | * @return void |
| 62 | 60 | */ |
| 63 | - public function setInfoText($infoText) |
|
| 64 | - { |
|
| 61 | + public function setInfoText($infoText) { |
|
| 65 | 62 | $this->infoText = $infoText; |
| 66 | 63 | } |
| 67 | 64 | |
| 68 | 65 | /** |
| 69 | 66 | * @return mixed |
| 70 | 67 | */ |
| 71 | - public function getGroupType() |
|
| 72 | - { |
|
| 68 | + public function getGroupType() { |
|
| 73 | 69 | return $this->groupType; |
| 74 | 70 | } |
| 75 | 71 | |
| 76 | 72 | /** |
| 77 | 73 | * @param mixed $groupType |
| 78 | 74 | */ |
| 79 | - public function setGroupType($groupType) |
|
| 80 | - { |
|
| 75 | + public function setGroupType($groupType) { |
|
| 81 | 76 | $this->groupType = $groupType; |
| 82 | 77 | } |
| 83 | 78 | |
@@ -132,8 +127,7 @@ discard block |
||
| 132 | 127 | /** |
| 133 | 128 | * @param mixed $groupType |
| 134 | 129 | */ |
| 135 | - public function isPrimaryFileGroup() |
|
| 136 | - { |
|
| 130 | + public function isPrimaryFileGroup() { |
|
| 137 | 131 | return $this->groupType == 'primary_file'; |
| 138 | 132 | } |
| 139 | 133 | |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * MetadataGroup |
| 19 | 19 | */ |
| 20 | -class MetadataGroup extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface |
|
| 21 | -{ |
|
| 20 | +class MetadataGroup extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements MetadataMandatoryInterface { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * name |
@@ -124,8 +123,7 @@ discard block |
||
| 124 | 123 | /** |
| 125 | 124 | * __construct |
| 126 | 125 | */ |
| 127 | - public function __construct() |
|
| 128 | - { |
|
| 126 | + public function __construct() { |
|
| 129 | 127 | //Do not remove the next line: It would break the functionality |
| 130 | 128 | $this->initStorageObjects(); |
| 131 | 129 | } |
@@ -135,8 +133,7 @@ discard block |
||
| 135 | 133 | * |
| 136 | 134 | * @return void |
| 137 | 135 | */ |
| 138 | - protected function initStorageObjects() |
|
| 139 | - { |
|
| 136 | + protected function initStorageObjects() { |
|
| 140 | 137 | $this->metadataObject = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); |
| 141 | 138 | } |
| 142 | 139 | |
@@ -145,8 +142,7 @@ discard block |
||
| 145 | 142 | * |
| 146 | 143 | * @return string $name |
| 147 | 144 | */ |
| 148 | - public function getName() |
|
| 149 | - { |
|
| 145 | + public function getName() { |
|
| 150 | 146 | return $this->name; |
| 151 | 147 | } |
| 152 | 148 | |
@@ -156,8 +152,7 @@ discard block |
||
| 156 | 152 | * @param string $name |
| 157 | 153 | * @return void |
| 158 | 154 | */ |
| 159 | - public function setName($name) |
|
| 160 | - { |
|
| 155 | + public function setName($name) { |
|
| 161 | 156 | $this->name = $name; |
| 162 | 157 | } |
| 163 | 158 | |
@@ -166,8 +161,7 @@ discard block |
||
| 166 | 161 | * |
| 167 | 162 | * @return string $displayName |
| 168 | 163 | */ |
| 169 | - public function getDisplayName() |
|
| 170 | - { |
|
| 164 | + public function getDisplayName() { |
|
| 171 | 165 | return $this->displayName; |
| 172 | 166 | } |
| 173 | 167 | |
@@ -177,8 +171,7 @@ discard block |
||
| 177 | 171 | * @param string $displayName |
| 178 | 172 | * @return void |
| 179 | 173 | */ |
| 180 | - public function setDisplayName($displayName) |
|
| 181 | - { |
|
| 174 | + public function setDisplayName($displayName) { |
|
| 182 | 175 | $this->displayName = $displayName; |
| 183 | 176 | } |
| 184 | 177 | |
@@ -187,8 +180,7 @@ discard block |
||
| 187 | 180 | * |
| 188 | 181 | * @return string $mandatory |
| 189 | 182 | */ |
| 190 | - public function getMandatory() |
|
| 191 | - { |
|
| 183 | + public function getMandatory() { |
|
| 192 | 184 | return $this->mandatory; |
| 193 | 185 | } |
| 194 | 186 | |
@@ -198,8 +190,7 @@ discard block |
||
| 198 | 190 | * @param string $mandatory |
| 199 | 191 | * @return void |
| 200 | 192 | */ |
| 201 | - public function setMandatory($mandatory) |
|
| 202 | - { |
|
| 193 | + public function setMandatory($mandatory) { |
|
| 203 | 194 | $this->mandatory = $mandatory; |
| 204 | 195 | } |
| 205 | 196 | |
@@ -208,8 +199,7 @@ discard block |
||
| 208 | 199 | * |
| 209 | 200 | * @return string $mapping |
| 210 | 201 | */ |
| 211 | - public function getMapping() |
|
| 212 | - { |
|
| 202 | + public function getMapping() { |
|
| 213 | 203 | return $this->mapping; |
| 214 | 204 | } |
| 215 | 205 | |
@@ -219,8 +209,7 @@ discard block |
||
| 219 | 209 | * @param string $mapping |
| 220 | 210 | * @return void |
| 221 | 211 | */ |
| 222 | - public function setMapping($mapping) |
|
| 223 | - { |
|
| 212 | + public function setMapping($mapping) { |
|
| 224 | 213 | $this->mapping = $mapping; |
| 225 | 214 | } |
| 226 | 215 | |
@@ -229,8 +218,7 @@ discard block |
||
| 229 | 218 | * |
| 230 | 219 | * @return string $mappingForReading |
| 231 | 220 | */ |
| 232 | - public function getMappingForReading() |
|
| 233 | - { |
|
| 221 | + public function getMappingForReading() { |
|
| 234 | 222 | return $this->mappingForReading; |
| 235 | 223 | } |
| 236 | 224 | |
@@ -240,8 +228,7 @@ discard block |
||
| 240 | 228 | * @param string $mappingForReading |
| 241 | 229 | * @return void |
| 242 | 230 | */ |
| 243 | - public function setMappingForReading($mappingForReading) |
|
| 244 | - { |
|
| 231 | + public function setMappingForReading($mappingForReading) { |
|
| 245 | 232 | $this->mappingForReading = $mappingForReading; |
| 246 | 233 | } |
| 247 | 234 | |
@@ -250,8 +237,7 @@ discard block |
||
| 250 | 237 | * |
| 251 | 238 | * @return bool |
| 252 | 239 | */ |
| 253 | - public function hasMappingForReading() |
|
| 254 | - { |
|
| 240 | + public function hasMappingForReading() { |
|
| 255 | 241 | $mapping = trim($this->mappingForReading); |
| 256 | 242 | return !empty($mapping); |
| 257 | 243 | } |
@@ -262,8 +248,7 @@ discard block |
||
| 262 | 248 | * @param $mapping |
| 263 | 249 | * @return string $relativeMapping |
| 264 | 250 | */ |
| 265 | - protected function relativeMapping($mapping) |
|
| 266 | - { |
|
| 251 | + protected function relativeMapping($mapping) { |
|
| 267 | 252 | return trim($mapping, " /"); |
| 268 | 253 | } |
| 269 | 254 | |
@@ -272,8 +257,7 @@ discard block |
||
| 272 | 257 | * |
| 273 | 258 | * @return string $relativeMappingForWriting |
| 274 | 259 | */ |
| 275 | - public function getRelativeMapping() |
|
| 276 | - { |
|
| 260 | + public function getRelativeMapping() { |
|
| 277 | 261 | return $this->relativeMapping($this->mapping); |
| 278 | 262 | } |
| 279 | 263 | |
@@ -282,8 +266,7 @@ discard block |
||
| 282 | 266 | * |
| 283 | 267 | * @return string $relativeMappingForReading |
| 284 | 268 | */ |
| 285 | - public function getRelativeMappingForReading() |
|
| 286 | - { |
|
| 269 | + public function getRelativeMappingForReading() { |
|
| 287 | 270 | return $this->relativeMapping($this->mappingForReading); |
| 288 | 271 | } |
| 289 | 272 | |
@@ -292,8 +275,7 @@ discard block |
||
| 292 | 275 | * |
| 293 | 276 | * @return string $absoluteMappingForWriting |
| 294 | 277 | */ |
| 295 | - public function getAbsoluteMapping() |
|
| 296 | - { |
|
| 278 | + public function getAbsoluteMapping() { |
|
| 297 | 279 | return "/data/" . $this->getRelativeMapping(); |
| 298 | 280 | } |
| 299 | 281 | |
@@ -302,8 +284,7 @@ discard block |
||
| 302 | 284 | * |
| 303 | 285 | * @return string $absoluteMappingForReading |
| 304 | 286 | */ |
| 305 | - public function getAbsoluteMappingForReading() |
|
| 306 | - { |
|
| 287 | + public function getAbsoluteMappingForReading() { |
|
| 307 | 288 | return "/data/" . $this->getRelativeMappingForReading(); |
| 308 | 289 | } |
| 309 | 290 | |
@@ -312,8 +293,7 @@ discard block |
||
| 312 | 293 | * |
| 313 | 294 | * @return string $modsExtensionMapping |
| 314 | 295 | */ |
| 315 | - public function getModsExtensionMapping() |
|
| 316 | - { |
|
| 296 | + public function getModsExtensionMapping() { |
|
| 317 | 297 | return $this->modsExtensionMapping; |
| 318 | 298 | } |
| 319 | 299 | |
@@ -323,8 +303,7 @@ discard block |
||
| 323 | 303 | * @param string $modsExtensionMapping |
| 324 | 304 | * @return void |
| 325 | 305 | */ |
| 326 | - public function setModsExtensionMapping($modsExtensionMapping) |
|
| 327 | - { |
|
| 306 | + public function setModsExtensionMapping($modsExtensionMapping) { |
|
| 328 | 307 | $this->modsExtensionMapping = $modsExtensionMapping; |
| 329 | 308 | } |
| 330 | 309 | |
@@ -333,8 +312,7 @@ discard block |
||
| 333 | 312 | * |
| 334 | 313 | * @return string $relativeModsExtensionMapping |
| 335 | 314 | */ |
| 336 | - public function getRelativeModsExtensionMapping() |
|
| 337 | - { |
|
| 315 | + public function getRelativeModsExtensionMapping() { |
|
| 338 | 316 | // $modsRegExp = "/^.*?mods:mods/i"; |
| 339 | 317 | // $mapping = preg_replace($modsRegExp, "", $this->modsExtensionMapping); |
| 340 | 318 | return trim($this->modsExtensionMapping, " /"); |
@@ -345,8 +323,7 @@ discard block |
||
| 345 | 323 | * |
| 346 | 324 | * @return string $absoluteModsExtensionMapping |
| 347 | 325 | */ |
| 348 | - public function getAbsoluteModsExtensionMapping() |
|
| 349 | - { |
|
| 326 | + public function getAbsoluteModsExtensionMapping() { |
|
| 350 | 327 | return "/data/" . $this->getRelativeModsExtensionMapping(); |
| 351 | 328 | } |
| 352 | 329 | |
@@ -356,8 +333,7 @@ discard block |
||
| 356 | 333 | * @param string $modsExtensionReference |
| 357 | 334 | * @return void |
| 358 | 335 | */ |
| 359 | - public function setModsExtensionReference($modsExtensionReference) |
|
| 360 | - { |
|
| 336 | + public function setModsExtensionReference($modsExtensionReference) { |
|
| 361 | 337 | $this->modsExtensionReference = $modsExtensionReference; |
| 362 | 338 | } |
| 363 | 339 | |
@@ -366,8 +342,7 @@ discard block |
||
| 366 | 342 | * |
| 367 | 343 | * @return string $modsExtensionReference |
| 368 | 344 | */ |
| 369 | - public function getModsExtensionReference() |
|
| 370 | - { |
|
| 345 | + public function getModsExtensionReference() { |
|
| 371 | 346 | return $this->modsExtensionReference; |
| 372 | 347 | } |
| 373 | 348 | |
@@ -376,8 +351,7 @@ discard block |
||
| 376 | 351 | * |
| 377 | 352 | * @return integer $maxIteration |
| 378 | 353 | */ |
| 379 | - public function getMaxIteration() |
|
| 380 | - { |
|
| 354 | + public function getMaxIteration() { |
|
| 381 | 355 | if ($this->isPrimaryFileGroup()) { |
| 382 | 356 | return 1; |
| 383 | 357 | } |
@@ -390,8 +364,7 @@ discard block |
||
| 390 | 364 | * @param integer $maxIteration |
| 391 | 365 | * @return void |
| 392 | 366 | */ |
| 393 | - public function setMaxIteration($maxIteration) |
|
| 394 | - { |
|
| 367 | + public function setMaxIteration($maxIteration) { |
|
| 395 | 368 | if ($this->isPrimaryFileGroup()) { |
| 396 | 369 | $maxIteration = 1; |
| 397 | 370 | } |
@@ -404,8 +377,7 @@ discard block |
||
| 404 | 377 | * @param \EWW\Dpf\Domain\Model\MetadataObject $metadataObject |
| 405 | 378 | * @return void |
| 406 | 379 | */ |
| 407 | - public function addMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObject) |
|
| 408 | - { |
|
| 380 | + public function addMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObject) { |
|
| 409 | 381 | $this->metadataObject->attach($metadataObject); |
| 410 | 382 | } |
| 411 | 383 | |
@@ -415,8 +387,7 @@ discard block |
||
| 415 | 387 | * @param \EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove The MetadataObject to be removed |
| 416 | 388 | * @return void |
| 417 | 389 | */ |
| 418 | - public function removeMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove) |
|
| 419 | - { |
|
| 390 | + public function removeMetadataObject(\EWW\Dpf\Domain\Model\MetadataObject $metadataObjectToRemove) { |
|
| 420 | 391 | $this->metadataObject->detach($metadataObjectToRemove); |
| 421 | 392 | } |
| 422 | 393 | |
@@ -425,8 +396,7 @@ discard block |
||
| 425 | 396 | * |
| 426 | 397 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 427 | 398 | */ |
| 428 | - public function getMetadataObject() |
|
| 429 | - { |
|
| 399 | + public function getMetadataObject() { |
|
| 430 | 400 | return $this->metadataObject; |
| 431 | 401 | } |
| 432 | 402 | |
@@ -436,8 +406,7 @@ discard block |
||
| 436 | 406 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 437 | 407 | * @return void |
| 438 | 408 | */ |
| 439 | - public function setMetadataObject(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataObject) |
|
| 440 | - { |
|
| 409 | + public function setMetadataObject(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $metadataObject) { |
|
| 441 | 410 | $this->metadataObject = $metadataObject; |
| 442 | 411 | } |
| 443 | 412 | |
@@ -446,8 +415,7 @@ discard block |
||
| 446 | 415 | * |
| 447 | 416 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject |
| 448 | 417 | */ |
| 449 | - public function getChildren() |
|
| 450 | - { |
|
| 418 | + public function getChildren() { |
|
| 451 | 419 | return $this->getMetadataObject(); |
| 452 | 420 | } |
| 453 | 421 | |
@@ -456,8 +424,7 @@ discard block |
||
| 456 | 424 | * |
| 457 | 425 | * @return array $accessRestrictionRoles |
| 458 | 426 | */ |
| 459 | - public function getAccessRestrictionRoles() |
|
| 460 | - { |
|
| 427 | + public function getAccessRestrictionRoles() { |
|
| 461 | 428 | if ($this->accessRestrictionRoles) { |
| 462 | 429 | return array_map('trim', explode(',', $this->accessRestrictionRoles)); |
| 463 | 430 | } else { |
@@ -471,8 +438,7 @@ discard block |
||
| 471 | 438 | * @param array $accessRestrictionRoles |
| 472 | 439 | * @return void |
| 473 | 440 | */ |
| 474 | - public function setAccessRestrictionRoles($accessRestrictionRoles) |
|
| 475 | - { |
|
| 441 | + public function setAccessRestrictionRoles($accessRestrictionRoles) { |
|
| 476 | 442 | $this->accessRestrictionRoles = implode(',', $accessRestrictionRoles); |
| 477 | 443 | } |
| 478 | 444 | |
@@ -481,8 +447,7 @@ discard block |
||
| 481 | 447 | * |
| 482 | 448 | * @return string $infoText |
| 483 | 449 | */ |
| 484 | - public function getInfoText() |
|
| 485 | - { |
|
| 450 | + public function getInfoText() { |
|
| 486 | 451 | return $this->infoText; |
| 487 | 452 | } |
| 488 | 453 | |
@@ -492,8 +457,7 @@ discard block |
||
| 492 | 457 | * @param string $infoText |
| 493 | 458 | * @return void |
| 494 | 459 | */ |
| 495 | - public function setInfoText($infoText) |
|
| 496 | - { |
|
| 460 | + public function setInfoText($infoText) { |
|
| 497 | 461 | $this->infoText = $infoText; |
| 498 | 462 | } |
| 499 | 463 | |
@@ -508,23 +472,19 @@ discard block |
||
| 508 | 472 | /** |
| 509 | 473 | * @param string $groupType |
| 510 | 474 | */ |
| 511 | - public function setGroupType(string $groupType) |
|
| 512 | - { |
|
| 475 | + public function setGroupType(string $groupType) { |
|
| 513 | 476 | $this->groupType = $groupType; |
| 514 | 477 | } |
| 515 | 478 | |
| 516 | - public function isFileGroup() |
|
| 517 | - { |
|
| 479 | + public function isFileGroup() { |
|
| 518 | 480 | return $this->isPrimaryFileGroup() || $this->isSecondaryFileGroup(); |
| 519 | 481 | } |
| 520 | 482 | |
| 521 | - public function isPrimaryFileGroup() |
|
| 522 | - { |
|
| 483 | + public function isPrimaryFileGroup() { |
|
| 523 | 484 | return $this->getGroupType() == 'primary_file'; |
| 524 | 485 | } |
| 525 | 486 | |
| 526 | - public function isSecondaryFileGroup() |
|
| 527 | - { |
|
| 487 | + public function isSecondaryFileGroup() { |
|
| 528 | 488 | return $this->getGroupType() == 'secondary_file'; |
| 529 | 489 | } |
| 530 | 490 | |
@@ -30,8 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | use TYPO3\CMS\Extbase\Persistence\ObjectStorage; |
| 32 | 32 | |
| 33 | -class DocumentFormBackofficeController extends AbstractDocumentFormController |
|
| 34 | -{ |
|
| 33 | +class DocumentFormBackofficeController extends AbstractDocumentFormController { |
|
| 35 | 34 | /** |
| 36 | 35 | * documentTransferManager |
| 37 | 36 | * |
@@ -81,8 +80,7 @@ discard block |
||
| 81 | 80 | /** |
| 82 | 81 | * DocumentController constructor. |
| 83 | 82 | */ |
| 84 | - public function __construct() |
|
| 85 | - { |
|
| 83 | + public function __construct() { |
|
| 86 | 84 | parent::__construct(); |
| 87 | 85 | |
| 88 | 86 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class); |
@@ -129,8 +127,7 @@ discard block |
||
| 129 | 127 | $activeGroup = '', |
| 130 | 128 | $activeGroupIndex = 0, |
| 131 | 129 | $addCurrentFeUser = true |
| 132 | - ) |
|
| 133 | - { |
|
| 130 | + ) { |
|
| 134 | 131 | /** @var \EWW\Dpf\Domain\Model\Document $document */ |
| 135 | 132 | $document = $this->documentRepository->findByUid($documentForm->getDocumentUid()); |
| 136 | 133 | |
@@ -179,8 +176,7 @@ discard block |
||
| 179 | 176 | * @param \EWW\Dpf\Domain\Model\DocumentForm $documentForm |
| 180 | 177 | * @param bool $restore |
| 181 | 178 | */ |
| 182 | - public function createSuggestionDocumentAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm, $restore = FALSE) |
|
| 183 | - { |
|
| 179 | + public function createSuggestionDocumentAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm, $restore = FALSE) { |
|
| 184 | 180 | $documentMapper = $this->objectManager->get(DocumentMapper::class); |
| 185 | 181 | |
| 186 | 182 | $workingCopy = $this->documentRepository->findByUid($documentForm->getDocumentUid()); |
@@ -288,8 +284,7 @@ discard block |
||
| 288 | 284 | } |
| 289 | 285 | |
| 290 | 286 | |
| 291 | - public function updateAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm) |
|
| 292 | - { |
|
| 287 | + public function updateAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm) { |
|
| 293 | 288 | if ($this->request->getArgument('documentData')['suggestMod']) { |
| 294 | 289 | $restore = $this->request->getArgument('documentData')['suggestRestore']; |
| 295 | 290 | $this->forward('createSuggestionDocument', null, null, ['documentForm' => $documentForm, 'restore' => $restore]); |
@@ -326,8 +321,7 @@ discard block |
||
| 326 | 321 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException |
| 327 | 322 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException |
| 328 | 323 | */ |
| 329 | - public function updateDocumentAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm, $saveMode = null, $backToList = false) |
|
| 330 | - { |
|
| 324 | + public function updateDocumentAction(\EWW\Dpf\Domain\Model\DocumentForm $documentForm, $saveMode = null, $backToList = false) { |
|
| 331 | 325 | try { |
| 332 | 326 | /** @var \EWW\Dpf\Domain\Model\Document $document */ |
| 333 | 327 | $document = $this->documentRepository->findByUid($documentForm->getDocumentUid()); |
@@ -517,8 +511,7 @@ discard block |
||
| 517 | 511 | } |
| 518 | 512 | } |
| 519 | 513 | |
| 520 | - public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) |
|
| 521 | - { |
|
| 514 | + public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) { |
|
| 522 | 515 | /** @var \EWW\Dpf\Helper\DocumentMapper $documentMapper */ |
| 523 | 516 | $documentMapper = $this->objectManager->get(DocumentMapper::class); |
| 524 | 517 | |
@@ -584,8 +577,7 @@ discard block |
||
| 584 | 577 | * |
| 585 | 578 | * @return void |
| 586 | 579 | */ |
| 587 | - public function cancelEditAction($documentUid = 0, $backToList = false) |
|
| 588 | - { |
|
| 580 | + public function cancelEditAction($documentUid = 0, $backToList = false) { |
|
| 589 | 581 | if (empty($documentUid) || $backToList) { |
| 590 | 582 | $this->redirectToDocumentList(); |
| 591 | 583 | } |
@@ -603,14 +595,12 @@ discard block |
||
| 603 | 595 | * |
| 604 | 596 | * @return void |
| 605 | 597 | */ |
| 606 | - public function cancelNewAction() |
|
| 607 | - { |
|
| 598 | + public function cancelNewAction() { |
|
| 608 | 599 | $this->redirect('list'); |
| 609 | 600 | } |
| 610 | 601 | |
| 611 | 602 | |
| 612 | - public function initializeAction() |
|
| 613 | - { |
|
| 603 | + public function initializeAction() { |
|
| 614 | 604 | $this->authorizationChecker->denyAccessUnlessLoggedIn(); |
| 615 | 605 | |
| 616 | 606 | parent::initializeAction(); |
@@ -624,8 +614,7 @@ discard block |
||
| 624 | 614 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException |
| 625 | 615 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException |
| 626 | 616 | */ |
| 627 | - protected function redirectToDocumentList($message = null) |
|
| 628 | - { |
|
| 617 | + protected function redirectToDocumentList($message = null) { |
|
| 629 | 618 | list($action, $controller, $redirectUri) = $this->session->getStoredAction(); |
| 630 | 619 | |
| 631 | 620 | if ($redirectUri) { |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * GetFileController |
| 52 | 52 | */ |
| 53 | -class GetFileController extends \EWW\Dpf\Controller\AbstractController |
|
| 54 | -{ |
|
| 53 | +class GetFileController extends \EWW\Dpf\Controller\AbstractController { |
|
| 55 | 54 | |
| 56 | 55 | /** |
| 57 | 56 | * documentRepository |
@@ -69,8 +68,7 @@ discard block |
||
| 69 | 68 | */ |
| 70 | 69 | protected $clientConfigurationManager; |
| 71 | 70 | |
| 72 | - public function attachmentAction() |
|
| 73 | - { |
|
| 71 | + public function attachmentAction() { |
|
| 74 | 72 | |
| 75 | 73 | $piVars = GeneralUtility::_GP('tx_dpf'); // get GET params from powermail |
| 76 | 74 | |
@@ -293,8 +291,7 @@ discard block |
||
| 293 | 291 | |
| 294 | 292 | } |
| 295 | 293 | |
| 296 | - private static function sanitizeFilename($filename) |
|
| 297 | - { |
|
| 294 | + private static function sanitizeFilename($filename) { |
|
| 298 | 295 | // remove anything which isn't a word, whitespace, number or any of the following caracters -_~,;[](). |
| 299 | 296 | $filename = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $filename); |
| 300 | 297 | // turn diacritical characters to ASCII |
@@ -306,8 +303,7 @@ discard block |
||
| 306 | 303 | return $filename; |
| 307 | 304 | } |
| 308 | 305 | |
| 309 | - private function buildMetsXml($document) |
|
| 310 | - { |
|
| 306 | + private function buildMetsXml($document) { |
|
| 311 | 307 | $parserGenerator = new ParserGenerator(); |
| 312 | 308 | $parserGenerator->setXML($document->getXmlData()); |
| 313 | 309 | |
@@ -323,8 +319,7 @@ discard block |
||
| 323 | 319 | return $XSLTransformator->getTransformedOutputXML($document); |
| 324 | 320 | } |
| 325 | 321 | |
| 326 | - private function isForbidden($action) |
|
| 327 | - { |
|
| 322 | + private function isForbidden($action) { |
|
| 328 | 323 | $allowed = |
| 329 | 324 | array_key_exists('allowedActions', $this->settings) |
| 330 | 325 | && is_array($this->settings['allowedActions']) |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * DocumentFormController |
| 24 | 24 | */ |
| 25 | -class AjaxDocumentFormController extends \EWW\Dpf\Controller\AbstractController |
|
| 26 | -{ |
|
| 25 | +class AjaxDocumentFormController extends \EWW\Dpf\Controller\AbstractController { |
|
| 27 | 26 | |
| 28 | 27 | /** |
| 29 | 28 | * metadataGroupRepository |
@@ -56,8 +55,7 @@ discard block |
||
| 56 | 55 | * @param integer $groupIndex |
| 57 | 56 | * @return void |
| 58 | 57 | */ |
| 59 | - public function groupAction($pageUid, $groupUid, $groupIndex) |
|
| 60 | - { |
|
| 58 | + public function groupAction($pageUid, $groupUid, $groupIndex) { |
|
| 61 | 59 | /** @var MetadataGroup $group */ |
| 62 | 60 | $group = $this->metadataGroupRepository->findByUid($groupUid); |
| 63 | 61 | |
@@ -116,8 +114,7 @@ discard block |
||
| 116 | 114 | * @param integer $fieldIndex |
| 117 | 115 | * @return void |
| 118 | 116 | */ |
| 119 | - public function fieldAction($pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex) |
|
| 120 | - { |
|
| 117 | + public function fieldAction($pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex) { |
|
| 121 | 118 | |
| 122 | 119 | $field = $this->metadataObjectRepository->findByUid($fieldUid); |
| 123 | 120 | |
@@ -151,8 +148,7 @@ discard block |
||
| 151 | 148 | * |
| 152 | 149 | * @return void |
| 153 | 150 | */ |
| 154 | - public function uploadAction($groupIndex) |
|
| 155 | - { |
|
| 151 | + public function uploadAction($groupIndex) { |
|
| 156 | 152 | } |
| 157 | 153 | |
| 158 | 154 | /** |
@@ -160,8 +156,7 @@ discard block |
||
| 160 | 156 | * @param integer $groupIndex |
| 161 | 157 | * @return void |
| 162 | 158 | */ |
| 163 | - public function secondaryUploadAction($groupIndex) |
|
| 164 | - { |
|
| 159 | + public function secondaryUploadAction($groupIndex) { |
|
| 165 | 160 | $this->view->assign('groupIndex', $groupIndex); |
| 166 | 161 | //$this->view->assign('displayName','Sekundärdatei'); |
| 167 | 162 | } |
@@ -175,8 +170,7 @@ discard block |
||
| 175 | 170 | * @param int $fieldIndex |
| 176 | 171 | * @param int $isPrimary |
| 177 | 172 | */ |
| 178 | - public function deleteFileAction($fileUid, $pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex, $isPrimary = 0) |
|
| 179 | - { |
|
| 173 | + public function deleteFileAction($fileUid, $pageUid, $groupUid, $groupIndex, $fieldUid, $fieldIndex, $isPrimary = 0) { |
|
| 180 | 174 | $field = $this->metadataObjectRepository->findByUid($fieldUid); |
| 181 | 175 | |
| 182 | 176 | $fieldItem = new \EWW\Dpf\Domain\Model\DocumentFormField(); |
@@ -212,8 +206,7 @@ discard block |
||
| 212 | 206 | * @param string $fedoraPid |
| 213 | 207 | * @return string |
| 214 | 208 | */ |
| 215 | - public function fillOutAction($fedoraPid) |
|
| 216 | - { |
|
| 209 | + public function fillOutAction($fedoraPid) { |
|
| 217 | 210 | try { |
| 218 | 211 | $urnService = $this->objectManager->get(Urn::class); |
| 219 | 212 | |
@@ -18,11 +18,9 @@ discard block |
||
| 18 | 18 | use EWW\Dpf\Helper\DocumentMapper; |
| 19 | 19 | use EWW\Dpf\Services\Email\Notifier; |
| 20 | 20 | |
| 21 | -class DocumentFormController extends AbstractDocumentFormController |
|
| 22 | -{ |
|
| 21 | +class DocumentFormController extends AbstractDocumentFormController { |
|
| 23 | 22 | |
| 24 | - protected function redirectToList($message = null) |
|
| 25 | - { |
|
| 23 | + protected function redirectToList($message = null) { |
|
| 26 | 24 | $this->redirect('list', 'DocumentForm', null, array('message' => $message)); |
| 27 | 25 | } |
| 28 | 26 | |
@@ -34,8 +32,7 @@ discard block |
||
| 34 | 32 | * @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("newDocumentForm") |
| 35 | 33 | * @return void |
| 36 | 34 | */ |
| 37 | - public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null, $returnDocumentId = 0) |
|
| 38 | - { |
|
| 35 | + public function newAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm = null, $returnDocumentId = 0) { |
|
| 39 | 36 | $this->view->assign('documentForm', $newDocumentForm); |
| 40 | 37 | } |
| 41 | 38 | |
@@ -45,8 +42,7 @@ discard block |
||
| 45 | 42 | * @param \EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm |
| 46 | 43 | * @return void |
| 47 | 44 | */ |
| 48 | - public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) |
|
| 49 | - { |
|
| 45 | + public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) { |
|
| 50 | 46 | foreach ($newDocumentForm->getFiles() as $file) { |
| 51 | 47 | $uid = $file->getUID(); |
| 52 | 48 | if (empty($uid)) { |
@@ -16,8 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | use TYPO3\CMS\Extbase\Persistence\ObjectStorage; |
| 18 | 18 | |
| 19 | -class FileId |
|
| 20 | -{ |
|
| 19 | +class FileId { |
|
| 21 | 20 | |
| 22 | 21 | protected $id = 0; |
| 23 | 22 | |
@@ -25,8 +24,7 @@ discard block |
||
| 25 | 24 | * FileId constructor. |
| 26 | 25 | * @param ObjectStorage $documentFiles |
| 27 | 26 | */ |
| 28 | - public function __construct(ObjectStorage $documentFiles) |
|
| 29 | - { |
|
| 27 | + public function __construct(ObjectStorage $documentFiles) { |
|
| 30 | 28 | $idList = array(); |
| 31 | 29 | $this->id = 0; |
| 32 | 30 | |
@@ -47,8 +45,7 @@ discard block |
||
| 47 | 45 | |
| 48 | 46 | } |
| 49 | 47 | |
| 50 | - public function getId($file) |
|
| 51 | - { |
|
| 48 | + public function getId($file) { |
|
| 52 | 49 | |
| 53 | 50 | $fileId = $file->getDatastreamIdentifier(); |
| 54 | 51 | if (empty($fileId)) { |