@@ -20,5 +20,5 @@ |
||
| 20 | 20 | class MetadataObjectRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository |
| 21 | 21 | { |
| 22 | 22 | |
| 23 | - protected $defaultOrderings = array("sorting" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING); |
|
| 23 | + protected $defaultOrderings = array ("sorting" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING); |
|
| 24 | 24 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * |
| 53 | 53 | * @var array |
| 54 | 54 | */ |
| 55 | - protected $accessRestrictionRoles = array(); |
|
| 55 | + protected $accessRestrictionRoles = array (); |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * |
@@ -351,7 +351,7 @@ |
||
| 351 | 351 | |
| 352 | 352 | foreach ($availableProperties as $propertyName) { |
| 353 | 353 | if (\TYPO3\CMS\Extbase\Reflection\ObjectAccess::isPropertySettable($newFile, $propertyName) |
| 354 | - && !in_array($propertyName, array('uid','pid'))) { |
|
| 354 | + && !in_array($propertyName, array ('uid', 'pid'))) { |
|
| 355 | 355 | |
| 356 | 356 | $propertyValue = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getProperty($fileToCopy, $propertyName); |
| 357 | 357 | \TYPO3\CMS\Extbase\Reflection\ObjectAccess::setProperty($newFile, $propertyName, $propertyValue); |
@@ -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 | |