@@ -377,7 +377,7 @@ |
||
| 377 | 377 | if ($this->accessRestrictionRoles) { |
| 378 | 378 | return array_map('trim', explode(',', $this->accessRestrictionRoles)); |
| 379 | 379 | } else { |
| 380 | - return array(); |
|
| 380 | + return array (); |
|
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | 383 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | protected function redirectToList($message = null) |
| 24 | 24 | { |
| 25 | - $this->redirect('list', 'DocumentForm', null, array('message' => $message)); |
|
| 25 | + $this->redirect('list', 'DocumentForm', null, array ('message' => $message)); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $notifier = $this->objectManager->get(Notifier::class); |
| 68 | 68 | $notifier->sendNewDocumentNotification($newDocument); |
| 69 | 69 | |
| 70 | - if (key_exists('afterDocSavedRedirectPage',$this->settings) && $this->settings['afterDocSavedRedirectPage']) { |
|
| 70 | + if (key_exists('afterDocSavedRedirectPage', $this->settings) && $this->settings['afterDocSavedRedirectPage']) { |
|
| 71 | 71 | $uri = $this->uriBuilder |
| 72 | 72 | ->setTargetPageUid($this->settings['afterDocSavedRedirectPage']) |
| 73 | 73 | ->build(); |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | $message[] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf'); |
| 89 | 89 | |
| 90 | - $this->addFlashMessage(implode(" ", $message), '', $severity,true); |
|
| 91 | - $this->forward('new', 'DocumentForm', null, array('newDocumentForm' => $newDocumentForm)); |
|
| 90 | + $this->addFlashMessage(implode(" ", $message), '', $severity, true); |
|
| 91 | + $this->forward('new', 'DocumentForm', null, array ('newDocumentForm' => $newDocumentForm)); |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | - protected $attributes = array(); |
|
| 35 | + protected $attributes = array (); |
|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | public function denyAccessUnlessGranted($attribute, $subject = NULL) |
| 60 | 60 | { |
| 61 | - if($this->isGranted($attribute, $subject)) { |
|
| 61 | + if ($this->isGranted($attribute, $subject)) { |
|
| 62 | 62 | return; |
| 63 | 63 | } else { |
| 64 | 64 | header('Temporary-Header: True', true, 403); |
@@ -377,7 +377,7 @@ |
||
| 377 | 377 | if ($this->accessRestrictionRoles) { |
| 378 | 378 | return array_map('trim', explode(',', $this->accessRestrictionRoles)); |
| 379 | 379 | } else { |
| 380 | - return array(); |
|
| 380 | + return array (); |
|
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | 383 | |
@@ -377,7 +377,7 @@ |
||
| 377 | 377 | if ($this->accessRestrictionRoles) { |
| 378 | 378 | return array_map('trim', explode(',', $this->accessRestrictionRoles)); |
| 379 | 379 | } else { |
| 380 | - return array(); |
|
| 380 | + return array (); |
|
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | 383 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | protected function getFields() |
| 135 | 135 | { |
| 136 | 136 | |
| 137 | - $fields = array(); |
|
| 137 | + $fields = array (); |
|
| 138 | 138 | |
| 139 | 139 | if (is_array($this->formData['metadata'])) { |
| 140 | 140 | foreach ($this->formData['metadata'] as $key => $value) { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | protected function getDeletedFiles() |
| 150 | 150 | { |
| 151 | - $deletedFiles = array(); |
|
| 151 | + $deletedFiles = array (); |
|
| 152 | 152 | |
| 153 | 153 | if (is_array($this->formData['deleteFile'])) { |
| 154 | 154 | foreach ($this->formData['deleteFile'] as $key => $value) { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK); |
| 174 | 174 | $fullTextLabel = $frameworkConfiguration['settings']['defaultValue']['fullTextLabel']; |
| 175 | 175 | |
| 176 | - $newFiles = array(); |
|
| 176 | + $newFiles = array (); |
|
| 177 | 177 | |
| 178 | 178 | // Primary file |
| 179 | 179 | if ($this->formData['primaryFile'] && $this->formData['primaryFile']['error'] != UPLOAD_ERR_NO_FILE) { |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | $documentForm->setComment($this->formData['comment']); |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | - $documentData = array(); |
|
| 336 | + $documentData = array (); |
|
| 337 | 337 | |
| 338 | 338 | foreach ($fields as $field) { |
| 339 | 339 | $pageUid = $field->getPageUid(); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected static function getAttributes() |
| 77 | 77 | { |
| 78 | - return array( |
|
| 78 | + return array ( |
|
| 79 | 79 | self::CREATE, |
| 80 | 80 | self::CREATE_REGISTER, |
| 81 | 81 | self::UPDATE, |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | { |
| 462 | 462 | if ($this->security->getUserRole() === Security::ROLE_RESEARCHER) { |
| 463 | 463 | |
| 464 | - $objectManager =GeneralUtility::makeInstance(ObjectManager::class); |
|
| 464 | + $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
|
| 465 | 465 | $documentRepository = $objectManager->get(DocumentRepository::class); |
| 466 | 466 | |
| 467 | 467 | $linkedDocument = $documentRepository->findOneByLinkedUid($document->getUid()); |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | */ |
| 562 | 562 | protected function isDocumentLocked($document) |
| 563 | 563 | { |
| 564 | - $identifier = $document->getObjectIdentifier()? $document->getObjectIdentifier() : $document->getUid(); |
|
| 564 | + $identifier = $document->getObjectIdentifier() ? $document->getObjectIdentifier() : $document->getUid(); |
|
| 565 | 565 | return $this->editingLockService->isLocked($identifier, $this->security->getUser()->getUid()); |
| 566 | 566 | } |
| 567 | 567 | |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $query = $this->createQuery(); |
| 31 | 31 | |
| 32 | - $dateTimeObj= new \DateTime(); |
|
| 33 | - $dateTimeObj->sub(new \DateInterval("PT".$timeout."S")); |
|
| 32 | + $dateTimeObj = new \DateTime(); |
|
| 33 | + $dateTimeObj->sub(new \DateInterval("PT" . $timeout . "S")); |
|
| 34 | 34 | |
| 35 | 35 | $query->matching( |
| 36 | 36 | $query->lessThan('tstamp', $dateTimeObj->getTimestamp()) |