@@ -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,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,33 +22,33 @@ 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' => '7.6.0-9.5.99', |
29 | 29 | 'php' => '7.0.0-7.2.99', |
30 | 30 | ), |
31 | 31 | 'conflicts' => |
32 | - array ( |
|
32 | + array( |
|
33 | 33 | ), |
34 | 34 | 'suggests' => |
35 | - array ( |
|
35 | + array( |
|
36 | 36 | ), |
37 | 37 | ), |
38 | 38 | 'suggests' => |
39 | - array ( |
|
39 | + array( |
|
40 | 40 | ), |
41 | 41 | 'autoload' => |
42 | - array ( |
|
42 | + array( |
|
43 | 43 | 'psr-4' => |
44 | - array ( |
|
44 | + array( |
|
45 | 45 | 'CarstenWindler\\ContextBanner\\' => 'Classes', |
46 | 46 | ), |
47 | 47 | ), |
48 | 48 | 'autoload-dev' => |
49 | - array ( |
|
49 | + array( |
|
50 | 50 | 'psr-4' => |
51 | - array ( |
|
51 | + array( |
|
52 | 52 | 'CarstenWindler\\ContextBanner\\Tests\\' => 'Tests', |
53 | 53 | ), |
54 | 54 | ), |