@@ -150,13 +150,13 @@ |
||
| 150 | 150 | $nbn = strtolower($urn); |
| 151 | 151 | |
| 152 | 152 | // array of characters to match |
| 153 | - $search_pattern = array('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/', |
|
| 153 | + $search_pattern = array ('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/', |
|
| 154 | 154 | '/d/', '/e/', '/f/', '/g/', '/h/', '/i/', '/j/', '/k/', '/l/', '/m/', '/n/', '/o/', '/p/', '/q/', '/r/', '/s/', |
| 155 | 155 | '/t/', '/u/', '/v/', '/w/', '/x/', '/y/', '/z/', '/-/', '/:/'); |
| 156 | 156 | |
| 157 | 157 | // array of corresponding replacements, '9' will be temporarily replaced with placeholder '_' to prevent |
| 158 | 158 | // replacement of '41' with '52' |
| 159 | - $replacements = array('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29, |
|
| 159 | + $replacements = array ('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29, |
|
| 160 | 160 | 31, 12, 32, 33, 11, 34, 35, 36, 37, 38, 39, 17); |
| 161 | 161 | |
| 162 | 162 | // replace matching pattern in given nbn with corresponding replacement |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class UrnBuilder |
|
| 18 | -{ |
|
| 17 | +class UrnBuilder { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * Standard prefix of the URN for DNB (Deutsche Nationalbibliothek). |
@@ -46,8 +45,7 @@ discard block |
||
| 46 | 45 | * @throws InvalidArgumentException Thrown if at least one of the subnamespace parts contain other |
| 47 | 46 | * characters than characters. |
| 48 | 47 | */ |
| 49 | - public function __construct($snid1, $snid2) |
|
| 50 | - { |
|
| 48 | + public function __construct($snid1, $snid2) { |
|
| 51 | 49 | |
| 52 | 50 | if (0 === preg_match('/^[a-zA-Z]+$/', $snid1)) { |
| 53 | 51 | throw new \InvalidArgumentException('Used invalid first subnamespace identifier.'); |
@@ -67,8 +65,7 @@ discard block |
||
| 67 | 65 | * @throws InvalidArgumentException Thrown if the niss contains invalid characters. |
| 68 | 66 | * @return string The URN. |
| 69 | 67 | */ |
| 70 | - public function getUrn($niss) |
|
| 71 | - { |
|
| 68 | + public function getUrn($niss) { |
|
| 72 | 69 | |
| 73 | 70 | // regexp pattern for valid niss |
| 74 | 71 | if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) { |
@@ -89,8 +86,7 @@ discard block |
||
| 89 | 86 | * @throws InvalidArgumentException Thrown if the niss contains invalid characters. |
| 90 | 87 | * @return integer Check digit. |
| 91 | 88 | */ |
| 92 | - public function getCheckDigit($niss) |
|
| 93 | - { |
|
| 89 | + public function getCheckDigit($niss) { |
|
| 94 | 90 | |
| 95 | 91 | // regexp pattern for valid niss |
| 96 | 92 | if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) { |
@@ -140,8 +136,7 @@ discard block |
||
| 140 | 136 | * @param string $urn A partial URN with the checkdigit missing. |
| 141 | 137 | * @return string The given URN with all characters replaced by numbers. |
| 142 | 138 | */ |
| 143 | - private function replaceUrnChars($urn) |
|
| 144 | - { |
|
| 139 | + private function replaceUrnChars($urn) { |
|
| 145 | 140 | // However, the preg_replace function calls itself on the result of a previos run. In order to get |
| 146 | 141 | // the replacement right, characters and numbers in the arrays below have got a specific order to make |
| 147 | 142 | // it work. Be careful when changing those numbers! Tests may help ;) |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * @var array |
| 36 | 36 | */ |
| 37 | - protected $configuration = array( |
|
| 37 | + protected $configuration = array ( |
|
| 38 | 38 | 'itemsPerPage' => 10, |
| 39 | 39 | 'insertAbove' => false, |
| 40 | 40 | 'insertBelow' => true, |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | public function indexAction($currentPage = 1) |
| 93 | 93 | { |
| 94 | 94 | // set current page |
| 95 | - if(!empty($this->widgetConfiguration['currentPage'])) { |
|
| 95 | + if (!empty($this->widgetConfiguration['currentPage'])) { |
|
| 96 | 96 | $currentPage = $this->widgetConfiguration['currentPage']; |
| 97 | 97 | }; |
| 98 | 98 | $this->currentPage = (int) $currentPage; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $offset = ((int) ($itemsPerPage * ($this->currentPage - 1))); |
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | - $this->view->assign('contentArguments', array( |
|
| 113 | + $this->view->assign('contentArguments', array ( |
|
| 114 | 114 | $this->widgetConfiguration['as'] => $this->objects, |
| 115 | 115 | )); |
| 116 | 116 | $this->view->assign('configuration', $this->configuration); |
@@ -151,11 +151,11 @@ discard block |
||
| 151 | 151 | protected function buildPagination() |
| 152 | 152 | { |
| 153 | 153 | $this->calculateDisplayRange(); |
| 154 | - $pages = array(); |
|
| 154 | + $pages = array (); |
|
| 155 | 155 | for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) { |
| 156 | - $pages[] = array('number' => $i, 'isCurrent' => $i === $this->currentPage); |
|
| 156 | + $pages[] = array ('number' => $i, 'isCurrent' => $i === $this->currentPage); |
|
| 157 | 157 | } |
| 158 | - $pagination = array( |
|
| 158 | + $pagination = array ( |
|
| 159 | 159 | 'pages' => $pages, |
| 160 | 160 | 'current' => $this->currentPage, |
| 161 | 161 | 'numberOfPages' => $this->numberOfPages, |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | /* |
| 30 | 30 | * Class PaginateController |
| 31 | 31 | */ |
| 32 | -class PaginateController extends AbstractWidgetController |
|
| 33 | -{ |
|
| 32 | +class PaginateController extends AbstractWidgetController { |
|
| 34 | 33 | /** |
| 35 | 34 | * @var array |
| 36 | 35 | */ |
@@ -76,8 +75,7 @@ discard block |
||
| 76 | 75 | /** |
| 77 | 76 | * @return void |
| 78 | 77 | */ |
| 79 | - public function initializeAction() |
|
| 80 | - { |
|
| 78 | + public function initializeAction() { |
|
| 81 | 79 | $this->objects = $this->widgetConfiguration['objects']; |
| 82 | 80 | ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false); |
| 83 | 81 | $itemsPerPage = (int) $this->configuration['itemsPerPage']; |
@@ -89,8 +87,7 @@ discard block |
||
| 89 | 87 | * @param int $currentPage |
| 90 | 88 | * @return void |
| 91 | 89 | */ |
| 92 | - public function indexAction($currentPage = 1) |
|
| 93 | - { |
|
| 90 | + public function indexAction($currentPage = 1) { |
|
| 94 | 91 | // set current page |
| 95 | 92 | if(!empty($this->widgetConfiguration['currentPage'])) { |
| 96 | 93 | $currentPage = $this->widgetConfiguration['currentPage']; |
@@ -123,8 +120,7 @@ discard block |
||
| 123 | 120 | * |
| 124 | 121 | * @return void |
| 125 | 122 | */ |
| 126 | - protected function calculateDisplayRange() |
|
| 127 | - { |
|
| 123 | + protected function calculateDisplayRange() { |
|
| 128 | 124 | $maximumNumberOfLinks = $this->maximumNumberOfLinks; |
| 129 | 125 | if ($maximumNumberOfLinks > $this->numberOfPages) { |
| 130 | 126 | $maximumNumberOfLinks = $this->numberOfPages; |
@@ -148,8 +144,7 @@ discard block |
||
| 148 | 144 | * |
| 149 | 145 | * @return array |
| 150 | 146 | */ |
| 151 | - protected function buildPagination() |
|
| 152 | - { |
|
| 147 | + protected function buildPagination() { |
|
| 153 | 148 | $this->calculateDisplayRange(); |
| 154 | 149 | $pages = array(); |
| 155 | 150 | for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) { |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | protected $configuration = array( |
| 38 | 38 | 'itemsPerPage' => 10, |
| 39 | - 'insertAbove' => false, |
|
| 40 | - 'insertBelow' => true, |
|
| 39 | + 'insertAbove' => FALSE, |
|
| 40 | + 'insertBelow' => TRUE, |
|
| 41 | 41 | 'maximumNumberOfLinks' => 99, |
| 42 | 42 | 'addQueryStringMethod' => '', |
| 43 | 43 | 'section' => '', |
@@ -66,12 +66,12 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * @var int |
| 68 | 68 | */ |
| 69 | - protected $displayRangeStart = null; |
|
| 69 | + protected $displayRangeStart = NULL; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @var int |
| 73 | 73 | */ |
| 74 | - protected $displayRangeEnd = null; |
|
| 74 | + protected $displayRangeEnd = NULL; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @return void |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function initializeAction() |
| 80 | 80 | { |
| 81 | 81 | $this->objects = $this->widgetConfiguration['objects']; |
| 82 | - ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false); |
|
| 82 | + ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], FALSE); |
|
| 83 | 83 | $itemsPerPage = (int) $this->configuration['itemsPerPage']; |
| 84 | 84 | $this->numberOfPages = $itemsPerPage > 0 ? ceil($this->widgetConfiguration['total'] / $itemsPerPage) : 0; |
| 85 | 85 | $this->maximumNumberOfLinks = (int) $this->configuration['maximumNumberOfLinks']; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | if ($this->currentPage > $this->numberOfPages) { |
| 103 | 103 | // set $modifiedObjects to NULL if the page does not exist |
| 104 | - $modifiedObjects = null; |
|
| 104 | + $modifiedObjects = NULL; |
|
| 105 | 105 | } else { |
| 106 | 106 | // modify query |
| 107 | 107 | $itemsPerPage = (int) $this->configuration['itemsPerPage']; |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for DocumentTransferLogs |
| 19 | 19 | */ |
| 20 | -class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 21 | -{ |
|
| 20 | +class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 22 | 21 | |
| 23 | 22 | } |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for InputOptionLists |
| 19 | 19 | */ |
| 20 | -class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 21 | -{ |
|
| 20 | +class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 22 | 21 | |
| 23 | 22 | } |
@@ -17,16 +17,14 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for Clients |
| 19 | 19 | */ |
| 20 | -class ClientRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 21 | -{ |
|
| 20 | +class ClientRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * findAllByPid |
| 25 | 24 | * |
| 26 | 25 | * @return |
| 27 | 26 | */ |
| 28 | - public function findAllByPid($pid) |
|
| 29 | - { |
|
| 27 | + public function findAllByPid($pid) { |
|
| 30 | 28 | $query = $this->createQuery(); |
| 31 | 29 | $query->getQuerySettings()->setRespectStoragePage(false); |
| 32 | 30 | $query->matching($query->equals('pid', $pid)); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function findAllByPid($pid) |
| 29 | 29 | { |
| 30 | 30 | $query = $this->createQuery(); |
| 31 | - $query->getQuerySettings()->setRespectStoragePage(false); |
|
| 31 | + $query->getQuerySettings()->setRespectStoragePage(FALSE); |
|
| 32 | 32 | $query->matching($query->equals('pid', $pid)); |
| 33 | 33 | return $query->execute(); |
| 34 | 34 | } |
@@ -17,11 +17,9 @@ discard block |
||
| 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 | |
| 23 | - public function getSecondaryFilesByDocument(\EWW\Dpf\Domain\Model\document $document) |
|
| 24 | - { |
|
| 22 | + public function getSecondaryFilesByDocument(\EWW\Dpf\Domain\Model\document $document) { |
|
| 25 | 23 | |
| 26 | 24 | $query = $this->createQuery(); |
| 27 | 25 | $query->matching( |
@@ -34,8 +32,7 @@ discard block |
||
| 34 | 32 | return $query->execute(); |
| 35 | 33 | } |
| 36 | 34 | |
| 37 | - public function getPrimaryFileByDocument(\EWW\Dpf\Domain\Model\document $document) |
|
| 38 | - { |
|
| 35 | + public function getPrimaryFileByDocument(\EWW\Dpf\Domain\Model\document $document) { |
|
| 39 | 36 | |
| 40 | 37 | $query = $this->createQuery(); |
| 41 | 38 | $query->matching( |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $query->logicalAnd( |
| 29 | 29 | $query->equals("document", $document), |
| 30 | 30 | $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED)), |
| 31 | - $query->logicalNot($query->equals("primary_file", true)) |
|
| 31 | + $query->logicalNot($query->equals("primary_file", TRUE)) |
|
| 32 | 32 | )); |
| 33 | 33 | |
| 34 | 34 | return $query->execute(); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $query->matching( |
| 42 | 42 | $query->logicalAnd( |
| 43 | 43 | $query->equals("document", $document), |
| 44 | - $query->equals("primary_file", true), |
|
| 44 | + $query->equals("primary_file", TRUE), |
|
| 45 | 45 | $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED)) |
| 46 | 46 | )); |
| 47 | 47 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | return $file->current(); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - return null; |
|
| 54 | + return NULL; |
|
| 55 | 55 | |
| 56 | 56 | } |
| 57 | 57 | |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | * @var string ownerId |
| 34 | 34 | * @return array The found ProcessNumber Object |
| 35 | 35 | */ |
| 36 | - public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) |
|
| 36 | + public function getHighestProcessNumberByOwnerIdAndYear($ownerId, $year) |
|
| 37 | 37 | { |
| 38 | 38 | |
| 39 | 39 | $query = $this->createQuery(); |
| 40 | 40 | |
| 41 | - $constraints = array(); |
|
| 41 | + $constraints = array (); |
|
| 42 | 42 | $constraints[] = $query->equals('owner_id', $ownerId, false); |
| 43 | 43 | |
| 44 | 44 | $constraints[] = $query->equals('year', $year); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $query->matching($query->logicalAnd($constraints)); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - $query->setOrderings(array("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
| 50 | + $query->setOrderings(array ("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
| 51 | 51 | |
| 52 | 52 | $result = $query->execute(); |
| 53 | 53 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $query = $this->createQuery(); |
| 40 | 40 | |
| 41 | 41 | $constraints = array(); |
| 42 | - $constraints[] = $query->equals('owner_id', $ownerId, false); |
|
| 42 | + $constraints[] = $query->equals('owner_id', $ownerId, FALSE); |
|
| 43 | 43 | |
| 44 | 44 | $constraints[] = $query->equals('year', $year); |
| 45 | 45 | |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * The repository for ProcessNumbers |
| 24 | 24 | */ |
| 25 | -class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 26 | -{ |
|
| 25 | +class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 27 | 26 | |
| 28 | 27 | public function initializeObject() { |
| 29 | 28 | $querySettings = $this->objectManager->get(Typo3QuerySettings::class); |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * @var string ownerId |
| 39 | 38 | * @return array The found ProcessNumber Object |
| 40 | 39 | */ |
| 41 | - public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) |
|
| 42 | - { |
|
| 40 | + public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) { |
|
| 43 | 41 | |
| 44 | 42 | $query = $this->createQuery(); |
| 45 | 43 | |
@@ -68,8 +66,7 @@ discard block |
||
| 68 | 66 | * |
| 69 | 67 | * @return Connection |
| 70 | 68 | */ |
| 71 | - protected function getConnection() |
|
| 72 | - { |
|
| 69 | + protected function getConnection() { |
|
| 73 | 70 | return GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable( |
| 74 | 71 | "tx_dpf_domain_model_processnumber" |
| 75 | 72 | ); |
@@ -247,7 +247,7 @@ |
||
| 247 | 247 | |
| 248 | 248 | public function getNewFileNames() |
| 249 | 249 | { |
| 250 | - $fileNames = array(); |
|
| 250 | + $fileNames = array (); |
|
| 251 | 251 | foreach ($this->getNewFiles() as $file) { |
| 252 | 252 | $fileNames[] = $file->getTitle(); |
| 253 | 253 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @var boolean |
| 89 | 89 | */ |
| 90 | - protected $valid = false; |
|
| 90 | + protected $valid = FALSE; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentForm extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentForm extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * |
@@ -91,8 +90,7 @@ discard block |
||
| 91 | 90 | * |
| 92 | 91 | * @return integer |
| 93 | 92 | */ |
| 94 | - public function getDocumentUid() |
|
| 95 | - { |
|
| 93 | + public function getDocumentUid() { |
|
| 96 | 94 | return $this->documentUid; |
| 97 | 95 | } |
| 98 | 96 | |
@@ -100,8 +98,7 @@ discard block |
||
| 100 | 98 | * |
| 101 | 99 | * @param integer $documentUid |
| 102 | 100 | */ |
| 103 | - public function setDocumentUid($documentUid) |
|
| 104 | - { |
|
| 101 | + public function setDocumentUid($documentUid) { |
|
| 105 | 102 | $this->documentUid = $documentUid; |
| 106 | 103 | } |
| 107 | 104 | |
@@ -109,8 +106,7 @@ discard block |
||
| 109 | 106 | * |
| 110 | 107 | * @return boolean |
| 111 | 108 | */ |
| 112 | - public function getPrimaryFileMandatory() |
|
| 113 | - { |
|
| 109 | + public function getPrimaryFileMandatory() { |
|
| 114 | 110 | return $this->primaryFileMandatory; |
| 115 | 111 | } |
| 116 | 112 | |
@@ -118,8 +114,7 @@ discard block |
||
| 118 | 114 | * |
| 119 | 115 | * @param boolean $primaryFileMandatory |
| 120 | 116 | */ |
| 121 | - public function setPrimaryFileMandatory($primaryFileMandatory) |
|
| 122 | - { |
|
| 117 | + public function setPrimaryFileMandatory($primaryFileMandatory) { |
|
| 123 | 118 | $this->primaryFileMandatory = boolval($primaryFileMandatory); |
| 124 | 119 | } |
| 125 | 120 | |
@@ -127,8 +122,7 @@ discard block |
||
| 127 | 122 | * |
| 128 | 123 | * @return string |
| 129 | 124 | */ |
| 130 | - public function getFedoraPid() |
|
| 131 | - { |
|
| 125 | + public function getFedoraPid() { |
|
| 132 | 126 | return $this->fedoraPid; |
| 133 | 127 | } |
| 134 | 128 | |
@@ -136,8 +130,7 @@ discard block |
||
| 136 | 130 | * |
| 137 | 131 | * @param string $fedoraPid |
| 138 | 132 | */ |
| 139 | - public function setFedoraPid($fedoraPid) |
|
| 140 | - { |
|
| 133 | + public function setFedoraPid($fedoraPid) { |
|
| 141 | 134 | $this->fedoraPid = $fedoraPid; |
| 142 | 135 | } |
| 143 | 136 | |
@@ -145,8 +138,7 @@ discard block |
||
| 145 | 138 | * |
| 146 | 139 | * @param type \EWW\Dpf\Domain\Model\File $primaryFile |
| 147 | 140 | */ |
| 148 | - public function setPrimaryFile($primaryFile) |
|
| 149 | - { |
|
| 141 | + public function setPrimaryFile($primaryFile) { |
|
| 150 | 142 | $this->primaryFile = $primaryFile; |
| 151 | 143 | } |
| 152 | 144 | |
@@ -154,59 +146,49 @@ discard block |
||
| 154 | 146 | * |
| 155 | 147 | * @return \EWW\Dpf\Domain\Model\File |
| 156 | 148 | */ |
| 157 | - public function getPrimaryFile() |
|
| 158 | - { |
|
| 149 | + public function getPrimaryFile() { |
|
| 159 | 150 | return $this->primaryFile; |
| 160 | 151 | } |
| 161 | 152 | |
| 162 | - public function setSecondaryFiles($secondaryFiles) |
|
| 163 | - { |
|
| 153 | + public function setSecondaryFiles($secondaryFiles) { |
|
| 164 | 154 | $this->secondaryFiles = $secondaryFiles; |
| 165 | 155 | } |
| 166 | 156 | |
| 167 | - public function getSecondaryFiles() |
|
| 168 | - { |
|
| 157 | + public function getSecondaryFiles() { |
|
| 169 | 158 | return $this->secondaryFiles; |
| 170 | 159 | } |
| 171 | 160 | |
| 172 | - public function getDeletedFiles() |
|
| 173 | - { |
|
| 161 | + public function getDeletedFiles() { |
|
| 174 | 162 | return $this->deletedFiles; |
| 175 | 163 | } |
| 176 | 164 | |
| 177 | - public function setDeletedFiles($deletedFiles) |
|
| 178 | - { |
|
| 165 | + public function setDeletedFiles($deletedFiles) { |
|
| 179 | 166 | $this->deletedFiles = $deletedFiles; |
| 180 | 167 | } |
| 181 | 168 | |
| 182 | - public function getNewFiles() |
|
| 183 | - { |
|
| 169 | + public function getNewFiles() { |
|
| 184 | 170 | return $this->newFiles; |
| 185 | 171 | } |
| 186 | 172 | |
| 187 | - public function setNewFiles($newFiles) |
|
| 188 | - { |
|
| 173 | + public function setNewFiles($newFiles) { |
|
| 189 | 174 | $this->newFiles = $newFiles; |
| 190 | 175 | } |
| 191 | 176 | |
| 192 | 177 | /** |
| 193 | 178 | * @return bool |
| 194 | 179 | */ |
| 195 | - public function getValid() |
|
| 196 | - { |
|
| 180 | + public function getValid() { |
|
| 197 | 181 | return $this->valid; |
| 198 | 182 | } |
| 199 | 183 | |
| 200 | 184 | /** |
| 201 | 185 | * @param bool $valid |
| 202 | 186 | */ |
| 203 | - public function setValid($valid) |
|
| 204 | - { |
|
| 187 | + public function setValid($valid) { |
|
| 205 | 188 | $this->valid = boolval($valid); |
| 206 | 189 | } |
| 207 | 190 | |
| 208 | - public function getNewFileNames() |
|
| 209 | - { |
|
| 191 | + public function getNewFileNames() { |
|
| 210 | 192 | $fileNames = array(); |
| 211 | 193 | foreach ($this->getNewFiles() as $file) { |
| 212 | 194 | $fileNames[] = $file->getTitle(); |
@@ -219,8 +201,7 @@ discard block |
||
| 219 | 201 | * |
| 220 | 202 | * @return string |
| 221 | 203 | */ |
| 222 | - public function getProcessNumber() |
|
| 223 | - { |
|
| 204 | + public function getProcessNumber() { |
|
| 224 | 205 | return $this->processNumber; |
| 225 | 206 | } |
| 226 | 207 | |
@@ -229,8 +210,7 @@ discard block |
||
| 229 | 210 | * |
| 230 | 211 | * @param string $processNumber |
| 231 | 212 | */ |
| 232 | - public function setProcessNumber($processNumber) |
|
| 233 | - { |
|
| 213 | + public function setProcessNumber($processNumber) { |
|
| 234 | 214 | $this->processNumber = $processNumber; |
| 235 | 215 | } |
| 236 | 216 | |
@@ -239,8 +219,7 @@ discard block |
||
| 239 | 219 | * |
| 240 | 220 | * @return bool |
| 241 | 221 | */ |
| 242 | - public function isTemporary() |
|
| 243 | - { |
|
| 222 | + public function isTemporary() { |
|
| 244 | 223 | return $this->temporary; |
| 245 | 224 | } |
| 246 | 225 | |
@@ -248,24 +227,21 @@ discard block |
||
| 248 | 227 | * Sets if a document is a temporary document or not. |
| 249 | 228 | * @param bool $temporary |
| 250 | 229 | */ |
| 251 | - public function setTemporary($temporary) |
|
| 252 | - { |
|
| 230 | + public function setTemporary($temporary) { |
|
| 253 | 231 | $this->temporary = boolval($temporary); |
| 254 | 232 | } |
| 255 | 233 | |
| 256 | 234 | /** |
| 257 | 235 | * @return string |
| 258 | 236 | */ |
| 259 | - public function getComment() |
|
| 260 | - { |
|
| 237 | + public function getComment() { |
|
| 261 | 238 | return $this->comment; |
| 262 | 239 | } |
| 263 | 240 | |
| 264 | 241 | /** |
| 265 | 242 | * @param string $comment |
| 266 | 243 | */ |
| 267 | - public function setComment($comment) |
|
| 268 | - { |
|
| 244 | + public function setComment($comment) { |
|
| 269 | 245 | $this->comment = $comment; |
| 270 | 246 | } |
| 271 | 247 | |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormPage extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentFormPage extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | } |