Skip to content

Commit 5270fdf

Browse files
committed
[CLS] README & mixed
1 parent 183f2be commit 5270fdf

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Classes/Service/RegExRepService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function process(string $html): string
3232
}
3333
}
3434

35-
ksort($config[$section], SORT_NATURAL); // for safety only
35+
ksort($config[$section], \SORT_NATURAL); // for safety only
3636
}
3737

3838
if (\TYPO3\CMS\Core\Core\Environment::getContext()->isDevelopment()) {

Configuration/RequestMiddlewares.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
return [
46
'frontend' => [
57
'html/sourceopt/clean-html' => [

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ composer install jweiland/replacer
137137
```bash
138138
composer install jweiland/replacer
139139
```
140-
& replace `plugin.fereplace.pairs` to `config.tx_replacer` .. ah .. and one
141-
142-
regex replace `(\n\s*)(\d+)(?:{\s+|\.)old\s*=\s*([^\n]+).+?new\s*=\s*([^\n]+)` to `$1search.$2 = $3$1replace.$2 = $4`
140+
& replace `plugin.fereplace.pairs` to `config.tx_replacer` .. ah .. and one regex
141+
- search `(\n\s*)(\d+)(?:{\s+|\.)old\s*=\s*([^\n]+).+?new\s*=\s*([^\n]+)`
142+
- replace `$1search.$2 = $3\n$1replace.$2 = $4`
143143

144144
</details>
145145
<details><summary>

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"extra": {
4141
"typo3/cms": {
4242
"extension-key": "sourceopt",
43-
"cms-package-dir": "{$vendor-dir}/typo3/cms",
4443
"web-dir": ".Build/Web"
4544
}
4645
},

ext_localconf.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
defined('TYPO3_MODE') || defined('TYPO3') || die();
1+
<?php defined('TYPO3_MODE') || defined('TYPO3') || die();
42

53
// SvgStore Cache
64
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['svgstore'])) {

0 commit comments

Comments
 (0)