@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Controller; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\ContextMenu; |
4 | 4 | |
5 | 5 | /* |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param string $context |
40 | 40 | * @return array |
41 | 41 | */ |
42 | - public function getItems(string $table, string $identifier, string $context=''): array |
|
42 | + public function getItems(string $table, string $identifier, string $context = ''): array |
|
43 | 43 | { |
44 | 44 | $items = []; |
45 | 45 | $itemsProviders = $this->getAvailableProviders($table, $identifier, $context); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\ContextMenu\ItemProviders; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\ContextMenu\ItemProviders; |
4 | 4 | |
5 | 5 | /* |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $identifier |
87 | 87 | * @param string $context |
88 | 88 | */ |
89 | - public function __construct(string $table, string $identifier, string $context='') |
|
89 | + public function __construct(string $table, string $identifier, string $context = '') |
|
90 | 90 | { |
91 | 91 | $this->table = $table; |
92 | 92 | $this->identifier = $identifier; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function initDisabledItems() |
145 | 145 | { |
146 | - $TSkey = $this->table . ($this->context ? '.' . $this->context : ''); |
|
146 | + $TSkey = $this->table . ($this->context ? '.' . $this->context : ''); |
|
147 | 147 | $this->disabledItems = GeneralUtility::trimExplode(',', $this->backendUser->getTSConfigVal('options.contextMenu.table.' . $TSkey . '.disableItems'), true); |
148 | 148 | } |
149 | 149 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\ContextMenu\ItemProviders; |
4 | 4 | |
5 | 5 | /* |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | protected function canBeDeleted(): bool |
488 | 488 | { |
489 | 489 | $disableDeleteTS = $this->backendUser->getTSConfig('options.disableDelete'); |
490 | - $disableDelete = (bool) trim(isset($disableDeleteTS['properties'][$this->table]) ? $disableDeleteTS['properties'][$this->table] : (string)$disableDeleteTS['value']); |
|
490 | + $disableDelete = (bool)trim(isset($disableDeleteTS['properties'][$this->table]) ? $disableDeleteTS['properties'][$this->table] : (string)$disableDeleteTS['value']); |
|
491 | 491 | return !$disableDelete && $this->canBeEdited(); |
492 | 492 | } |
493 | 493 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Impexp\ContextMenu; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Beuser\ContextMenu; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Filelist\ContextMenu\ItemProviders; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\ContextMenu\ItemProviders; |
4 | 4 | |
5 | 5 | /* |