@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class AbstractFormElement extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 18 | -{ |
|
| 17 | +class AbstractFormElement extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * |
@@ -59,74 +58,60 @@ discard block |
||
| 59 | 58 | */ |
| 60 | 59 | protected $maxIteration; |
| 61 | 60 | |
| 62 | - public function getUid() |
|
| 63 | - { |
|
| 61 | + public function getUid() { |
|
| 64 | 62 | return $this->uid; |
| 65 | 63 | } |
| 66 | 64 | |
| 67 | - public function setUid($uid) |
|
| 68 | - { |
|
| 65 | + public function setUid($uid) { |
|
| 69 | 66 | $this->uid = $uid; |
| 70 | 67 | } |
| 71 | 68 | |
| 72 | - public function getDisplayName() |
|
| 73 | - { |
|
| 69 | + public function getDisplayName() { |
|
| 74 | 70 | return $this->displayName; |
| 75 | 71 | } |
| 76 | 72 | |
| 77 | - public function setDisplayName($displayName) |
|
| 78 | - { |
|
| 73 | + public function setDisplayName($displayName) { |
|
| 79 | 74 | $this->displayName = $displayName; |
| 80 | 75 | } |
| 81 | 76 | |
| 82 | - public function getName() |
|
| 83 | - { |
|
| 77 | + public function getName() { |
|
| 84 | 78 | return $this->name; |
| 85 | 79 | } |
| 86 | 80 | |
| 87 | - public function setName($name) |
|
| 88 | - { |
|
| 81 | + public function setName($name) { |
|
| 89 | 82 | $this->name = $name; |
| 90 | 83 | } |
| 91 | 84 | |
| 92 | - public function getItems() |
|
| 93 | - { |
|
| 85 | + public function getItems() { |
|
| 94 | 86 | return $this->items; |
| 95 | 87 | } |
| 96 | 88 | |
| 97 | - public function addItem($item) |
|
| 98 | - { |
|
| 89 | + public function addItem($item) { |
|
| 99 | 90 | $uid = $item->getUid(); |
| 100 | 91 | $this->items[$uid][] = $item; |
| 101 | 92 | } |
| 102 | 93 | |
| 103 | - public function getMandatory() |
|
| 104 | - { |
|
| 94 | + public function getMandatory() { |
|
| 105 | 95 | return $this->mandatory; |
| 106 | 96 | } |
| 107 | 97 | |
| 108 | - public function setMandatory($mandatory) |
|
| 109 | - { |
|
| 98 | + public function setMandatory($mandatory) { |
|
| 110 | 99 | $this->mandatory = $mandatory; |
| 111 | 100 | } |
| 112 | 101 | |
| 113 | - public function getBackendOnly() |
|
| 114 | - { |
|
| 102 | + public function getBackendOnly() { |
|
| 115 | 103 | return $this->backendOnly; |
| 116 | 104 | } |
| 117 | 105 | |
| 118 | - public function setBackendOnly($backendOnly) |
|
| 119 | - { |
|
| 106 | + public function setBackendOnly($backendOnly) { |
|
| 120 | 107 | $this->backendOnly = $backendOnly; |
| 121 | 108 | } |
| 122 | 109 | |
| 123 | - public function getMaxIteration() |
|
| 124 | - { |
|
| 110 | + public function getMaxIteration() { |
|
| 125 | 111 | return $this->maxIteration; |
| 126 | 112 | } |
| 127 | 113 | |
| 128 | - public function setMaxIteration($maxIteration) |
|
| 129 | - { |
|
| 114 | + public function setMaxIteration($maxIteration) { |
|
| 130 | 115 | $this->maxIteration = $maxIteration; |
| 131 | 116 | } |
| 132 | 117 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @var \EWW\Dpf\Domain\Repository\DocumentRepository |
| 36 | 36 | * @inject |
| 37 | 37 | */ |
| 38 | - protected $documentRepository = null; |
|
| 38 | + protected $documentRepository = NULL; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * persistence manager |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @ignorevalidation $newDocument |
| 97 | 97 | * @return void |
| 98 | 98 | */ |
| 99 | - public function newAction(\EWW\Dpf\Domain\Model\Document $newDocument = null) |
|
| 99 | + public function newAction(\EWW\Dpf\Domain\Model\Document $newDocument = NULL) |
|
| 100 | 100 | { |
| 101 | 101 | $this->view->assign('newDocument', $newDocument); |
| 102 | 102 | } |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | $message, |
| 484 | 484 | '', |
| 485 | 485 | $severity, |
| 486 | - true |
|
| 486 | + TRUE |
|
| 487 | 487 | ); |
| 488 | 488 | |
| 489 | 489 | } |
@@ -14,11 +14,9 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormController extends AbstractDocumentFormController |
|
| 18 | -{ |
|
| 17 | +class DocumentFormController extends AbstractDocumentFormController { |
|
| 19 | 18 | |
| 20 | - protected function redirectToList($message = null) |
|
| 21 | - { |
|
| 19 | + protected function redirectToList($message = null) { |
|
| 22 | 20 | $this->redirect('list', 'DocumentForm', null, array('message' => $message)); |
| 23 | 21 | } |
| 24 | 22 | |
@@ -28,8 +26,7 @@ discard block |
||
| 28 | 26 | * @param \EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm |
| 29 | 27 | * @return void |
| 30 | 28 | */ |
| 31 | - public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) |
|
| 32 | - { |
|
| 29 | + public function createAction(\EWW\Dpf\Domain\Model\DocumentForm $newDocumentForm) { |
|
| 33 | 30 | foreach ($newDocumentForm->getNewFiles() as $newFile) { |
| 34 | 31 | $uid = $newFile->getUID(); |
| 35 | 32 | if (empty($uid)) { |
@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | class DocumentFormController extends AbstractDocumentFormController |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - protected function redirectToList($message = null) |
|
| 20 | + protected function redirectToList($message = NULL) |
|
| 21 | 21 | { |
| 22 | - $this->redirect('list', 'DocumentForm', null, array('message' => $message)); |
|
| 22 | + $this->redirect('list', 'DocumentForm', NULL, array('message' => $message)); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | foreach ($newDocumentForm->getNewFiles() as $newFile) { |
| 34 | 34 | $uid = $newFile->getUID(); |
| 35 | 35 | if (empty($uid)) { |
| 36 | - $newFile->setDownload(true); |
|
| 36 | + $newFile->setDownload(TRUE); |
|
| 37 | 37 | } |
| 38 | 38 | $files[] = $newFile; |
| 39 | 39 | } |