@@ -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,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-9.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 | ), |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->setConf( |
70 | 70 | unserialize( |
71 | 71 | $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey], |
72 | - [ 'allowed_classes' => false ] |
|
72 | + ['allowed_classes' => false] |
|
73 | 73 | ) |
74 | 74 | ); |
75 | 75 | } |
@@ -173,8 +173,8 @@ discard block |
||
173 | 173 | $siteName = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; |
174 | 174 | |
175 | 175 | return str_replace( |
176 | - [ '###sitename###', '###context###' ], |
|
177 | - [ $siteName, $this->contextName ], |
|
176 | + ['###sitename###', '###context###'], |
|
177 | + [$siteName, $this->contextName], |
|
178 | 178 | $this->conf['bannerTemplate'] |
179 | 179 | ); |
180 | 180 | } |
@@ -193,8 +193,8 @@ discard block |
||
193 | 193 | $siteName = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; |
194 | 194 | |
195 | 195 | return str_replace( |
196 | - [ '###sitename###', '###context###' ], |
|
197 | - [ $siteName, $this->getShortContextName() ], |
|
196 | + ['###sitename###', '###context###'], |
|
197 | + [$siteName, $this->getShortContextName()], |
|
198 | 198 | $this->conf['pageTitleTemplate'] |
199 | 199 | ); |
200 | 200 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | public function renderToolbarItem(): string |
208 | 208 | { |
209 | - $backgroundColor = $this->toolbarIconBackgroundColors[$this->contextName] ?? ''; |
|
209 | + $backgroundColor = $this->toolbarIconBackgroundColors[$this->contextName] ?? ''; |
|
210 | 210 | |
211 | 211 | return '<span style="color: #000000; background-color: ' . $backgroundColor . |
212 | 212 | '" class="toolbar-item-link" title="Application context">' . strtoupper($this->contextName) . '</span>'; |