@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $this->setConf( |
| 61 | 61 | unserialize( |
| 62 | 62 | $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey], |
| 63 | - [ 'allowed_classes' => false ] |
|
| 63 | + ['allowed_classes' => false] |
|
| 64 | 64 | ) |
| 65 | 65 | ); |
| 66 | 66 | } |
@@ -164,8 +164,8 @@ discard block |
||
| 164 | 164 | $siteName = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; |
| 165 | 165 | |
| 166 | 166 | return str_replace( |
| 167 | - [ '###sitename###', '###context###' ], |
|
| 168 | - [ $siteName, $this->contextName ], |
|
| 167 | + ['###sitename###', '###context###'], |
|
| 168 | + [$siteName, $this->contextName], |
|
| 169 | 169 | $this->conf['bannerTemplate'] |
| 170 | 170 | ); |
| 171 | 171 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | public function renderToolbarItem(): string |
| 179 | 179 | { |
| 180 | - $backgroundColor = $this->toolbarIconBackgroundColors[$this->contextName] ?? ''; |
|
| 180 | + $backgroundColor = $this->toolbarIconBackgroundColors[$this->contextName] ?? ''; |
|
| 181 | 181 | |
| 182 | 182 | return '<span style="color: #000000; background-color: ' . $backgroundColor . |
| 183 | 183 | '" class="toolbar-item-link" title="Application context">' . strtoupper($this->contextName) . '</span>'; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (!defined ('TYPO3_MODE')) { |
|
| 3 | +if (!defined('TYPO3_MODE')) { |
|
| 4 | 4 | die ('Access denied.'); |
| 5 | 5 | } |
| 6 | 6 | |
@@ -1,31 +1,31 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | $EM_CONF[$_EXTKEY] = array ( |
| 3 | - 'title' => 'Context Banner', |
|
| 4 | - 'description' => 'Adds a small Banner in both FE and BE and changes title tag to easier distinct development, testing and production context', |
|
| 5 | - 'category' => 'misc', |
|
| 6 | - 'shy' => 1, |
|
| 7 | - 'version' => '1.0.0', |
|
| 8 | - 'dependencies' => '', |
|
| 9 | - 'conflicts' => '', |
|
| 10 | - 'priority' => '', |
|
| 11 | - 'loadOrder' => '', |
|
| 12 | - 'module' => '', |
|
| 13 | - 'state' => 'stable', |
|
| 14 | - 'uploadfolder' => 1, |
|
| 15 | - 'createDirs' => '', |
|
| 16 | - 'modify_tables' => '', |
|
| 17 | - 'clearcacheonload' => 1, |
|
| 18 | - 'lockType' => '', |
|
| 19 | - 'author' => 'Carsten Windler', |
|
| 20 | - 'author_email' => '[email protected]', |
|
| 21 | - 'author_company' => '', |
|
| 22 | - 'CGLcompliance' => '', |
|
| 23 | - 'CGLcompliance_note' => '', |
|
| 24 | - 'constraints' => |
|
| 25 | - array ( |
|
| 3 | + 'title' => 'Context Banner', |
|
| 4 | + 'description' => 'Adds a small Banner in both FE and BE and changes title tag to easier distinct development, testing and production context', |
|
| 5 | + 'category' => 'misc', |
|
| 6 | + 'shy' => 1, |
|
| 7 | + 'version' => '1.0.0', |
|
| 8 | + 'dependencies' => '', |
|
| 9 | + 'conflicts' => '', |
|
| 10 | + 'priority' => '', |
|
| 11 | + 'loadOrder' => '', |
|
| 12 | + 'module' => '', |
|
| 13 | + 'state' => 'stable', |
|
| 14 | + 'uploadfolder' => 1, |
|
| 15 | + 'createDirs' => '', |
|
| 16 | + 'modify_tables' => '', |
|
| 17 | + 'clearcacheonload' => 1, |
|
| 18 | + 'lockType' => '', |
|
| 19 | + 'author' => 'Carsten Windler', |
|
| 20 | + 'author_email' => '[email protected]', |
|
| 21 | + 'author_company' => '', |
|
| 22 | + 'CGLcompliance' => '', |
|
| 23 | + 'CGLcompliance_note' => '', |
|
| 24 | + 'constraints' => |
|
| 25 | + array ( |
|
| 26 | 26 | 'depends' => |
| 27 | 27 | array ( |
| 28 | - 'typo3' => '9.5.0-8.7.99', |
|
| 28 | + 'typo3' => '9.5.0-8.7.99', |
|
| 29 | 29 | ), |
| 30 | 30 | 'conflicts' => |
| 31 | 31 | array ( |
@@ -33,22 +33,22 @@ discard block |
||
| 33 | 33 | 'suggests' => |
| 34 | 34 | array ( |
| 35 | 35 | ), |
| 36 | - ), |
|
| 37 | - 'suggests' => |
|
| 38 | - array ( |
|
| 39 | - ), |
|
| 40 | - 'autoload' => |
|
| 41 | - array ( |
|
| 36 | + ), |
|
| 37 | + 'suggests' => |
|
| 38 | + array ( |
|
| 39 | + ), |
|
| 40 | + 'autoload' => |
|
| 41 | + array ( |
|
| 42 | 42 | 'psr-4' => |
| 43 | 43 | array ( |
| 44 | - 'CarstenWindler\\ContextBanner\\' => 'Classes', |
|
| 44 | + 'CarstenWindler\\ContextBanner\\' => 'Classes', |
|
| 45 | + ), |
|
| 45 | 46 | ), |
| 46 | - ), |
|
| 47 | - 'autoload-dev' => |
|
| 48 | - array ( |
|
| 47 | + 'autoload-dev' => |
|
| 48 | + array ( |
|
| 49 | 49 | 'psr-4' => |
| 50 | 50 | array ( |
| 51 | - 'CarstenWindler\\ContextBanner\\Tests\\' => 'Tests', |
|
| 51 | + 'CarstenWindler\\ContextBanner\\Tests\\' => 'Tests', |
|
| 52 | + ), |
|
| 52 | 53 | ), |
| 53 | - ), |
|
| 54 | 54 | ); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -$EM_CONF[$_EXTKEY] = array ( |
|
| 2 | +$EM_CONF[$_EXTKEY] = array( |
|
| 3 | 3 | 'title' => 'Context Banner', |
| 4 | 4 | 'description' => 'Adds a small Banner in both FE and BE and changes title tag to easier distinct development, testing and production context', |
| 5 | 5 | 'category' => 'misc', |
@@ -22,32 +22,32 @@ discard block |
||
| 22 | 22 | 'CGLcompliance' => '', |
| 23 | 23 | 'CGLcompliance_note' => '', |
| 24 | 24 | 'constraints' => |
| 25 | - array ( |
|
| 25 | + array( |
|
| 26 | 26 | 'depends' => |
| 27 | - array ( |
|
| 27 | + array( |
|
| 28 | 28 | 'typo3' => '9.5.0-8.7.99', |
| 29 | 29 | ), |
| 30 | 30 | 'conflicts' => |
| 31 | - array ( |
|
| 31 | + array( |
|
| 32 | 32 | ), |
| 33 | 33 | 'suggests' => |
| 34 | - array ( |
|
| 34 | + array( |
|
| 35 | 35 | ), |
| 36 | 36 | ), |
| 37 | 37 | 'suggests' => |
| 38 | - array ( |
|
| 38 | + array( |
|
| 39 | 39 | ), |
| 40 | 40 | 'autoload' => |
| 41 | - array ( |
|
| 41 | + array( |
|
| 42 | 42 | 'psr-4' => |
| 43 | - array ( |
|
| 43 | + array( |
|
| 44 | 44 | 'CarstenWindler\\ContextBanner\\' => 'Classes', |
| 45 | 45 | ), |
| 46 | 46 | ), |
| 47 | 47 | 'autoload-dev' => |
| 48 | - array ( |
|
| 48 | + array( |
|
| 49 | 49 | 'psr-4' => |
| 50 | - array ( |
|
| 50 | + array( |
|
| 51 | 51 | 'CarstenWindler\\ContextBanner\\Tests\\' => 'Tests', |
| 52 | 52 | ), |
| 53 | 53 | ), |