@@ -14,13 +14,13 @@ |
||
| 14 | 14 | |
| 15 | 15 | class Typo3Mode |
| 16 | 16 | { |
| 17 | - static public function isBackendMode(): bool |
|
| 18 | - { |
|
| 19 | - return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend(); |
|
| 20 | - } |
|
| 17 | + static public function isBackendMode(): bool |
|
| 18 | + { |
|
| 19 | + return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend(); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - static public function isFrontendMode(): bool |
|
| 23 | - { |
|
| 24 | - return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend(); |
|
| 25 | - } |
|
| 22 | + static public function isFrontendMode(): bool |
|
| 23 | + { |
|
| 24 | + return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend(); |
|
| 25 | + } |
|
| 26 | 26 | } |