@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $this->registryService->get($locale) |
| 116 | 116 | ); |
| 117 | 117 | } |
| 118 | - usort($this->languages, function ($a, $b) { |
|
| 118 | + usort($this->languages, function($a, $b) { |
|
| 119 | 119 | /** @var $a \TYPO3\CMS\Lang\Domain\Model\Language */ |
| 120 | 120 | /** @var $b \TYPO3\CMS\Lang\Domain\Model\Language */ |
| 121 | 121 | if ($a->getLabel() == $b->getLabel()) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $path = ExtensionManagementUtility::extPath($extensionPath); |
| 173 | 173 | if (strpos($path, '/sysext/') !== false) { |
| 174 | 174 | // This is a system extension and the package URL should be adapted |
| 175 | - list($majorVersion, ) = explode('.', TYPO3_branch); |
|
| 175 | + list($majorVersion,) = explode('.', TYPO3_branch); |
|
| 176 | 176 | // Typical non sysext path, mind the additional version part, French |
| 177 | 177 | // http://my.mirror/ter/b/a/backend-l10n/backend-l10n-fr.v7.zip |
| 178 | 178 | $packageUrl = $extensionPath[0] . '/' . $extensionPath[1] . '/' . $extensionPath . |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | while (($zipEntry = zip_read($zip)) !== false) { |
| 210 | 210 | $zipEntryName = zip_entry_name($zipEntry); |
| 211 | 211 | if (strpos($zipEntryName, '/') !== false) { |
| 212 | - $zipEntryPathSegments = explode('/', $zipEntryName); |
|
| 212 | + $zipEntryPathSegments = explode('/', $zipEntryName); |
|
| 213 | 213 | $fileName = array_pop($zipEntryPathSegments); |
| 214 | 214 | // It is a folder, because the last segment is empty, let's create it |
| 215 | 215 | if (empty($fileName)) { |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | */ |
| 166 | 166 | protected function getBParamDataAttributes() |
| 167 | 167 | { |
| 168 | - list($fieldRef, $rteParams, $rteConfig, , $irreObjectId, $irreCheckUniqueAction, $irreAddAction, $irreInsertAction) = explode('|', $this->bparams); |
|
| 168 | + list($fieldRef, $rteParams, $rteConfig,, $irreObjectId, $irreCheckUniqueAction, $irreAddAction, $irreInsertAction) = explode('|', $this->bparams); |
|
| 169 | 169 | |
| 170 | 170 | return [ |
| 171 | 171 | 'data-this-script-url' => strpos($this->thisScript, '?') === false ? $this->thisScript . '?' : $this->thisScript . '&', |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | abstract class AbstractElementBrowser |
| 33 | 33 | { |
| 34 | 34 | /** |
| 35 | - * @var DocumentTemplate |
|
| 36 | - */ |
|
| 35 | + * @var DocumentTemplate |
|
| 36 | + */ |
|
| 37 | 37 | protected $doc; |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $this->setTemporaryDbMounts(); |
| 82 | 82 | |
| 83 | - list(, , , $allowedTables) = explode('|', $this->bparams); |
|
| 83 | + list(,,, $allowedTables) = explode('|', $this->bparams); |
|
| 84 | 84 | $backendUser = $this->getBackendUser(); |
| 85 | 85 | |
| 86 | 86 | // Making the browsable pagetree: |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | protected function renderTableRecords($tables) |
| 195 | 195 | { |
| 196 | 196 | $backendUser = $this->getBackendUser(); |
| 197 | - if ($this->expandPage === null || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) { |
|
| 197 | + if ($this->expandPage === null || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) { |
|
| 198 | 198 | return ''; |
| 199 | 199 | } |
| 200 | 200 | // Set array with table names to list: |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @var string[] |
| 36 | 36 | */ |
| 37 | - protected $linkAttributes = [ 'target', 'title', 'class', 'params', 'rel' ]; |
|
| 37 | + protected $linkAttributes = ['target', 'title', 'class', 'params', 'rel']; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @var bool |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function splitIntoBlock($tag, $content, $eliminateExtraEndTags = false) |
| 52 | 52 | { |
| 53 | 53 | $tags = array_unique(GeneralUtility::trimExplode(',', $tag, true)); |
| 54 | - array_walk($tags, function (&$tag) { |
|
| 54 | + array_walk($tags, function(&$tag) { |
|
| 55 | 55 | $tag = preg_quote($tag, '/'); |
| 56 | 56 | }); |
| 57 | 57 | $regexStr = '/\\<\\/?(' . implode('|', $tags) . ')(\\s*\\>|\\s[^\\>]*\\>)/si'; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function splitTags($tag, $content) |
| 158 | 158 | { |
| 159 | 159 | $tags = GeneralUtility::trimExplode(',', $tag, true); |
| 160 | - array_walk($tags, function (&$tag) { |
|
| 160 | + array_walk($tags, function(&$tag) { |
|
| 161 | 161 | $tag = preg_quote($tag, '/'); |
| 162 | 162 | }); |
| 163 | 163 | $regexStr = '/\\<(' . implode('|', $tags) . ')(\\s[^>]*)?\\/?>/si'; |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | if ($cacheKey && isset($this->caseShift_cache[$cacheKey])) { |
| 833 | 833 | $str = $this->caseShift_cache[$cacheKey]; |
| 834 | 834 | } else { |
| 835 | - array_walk($str, function (&$value) { |
|
| 835 | + array_walk($str, function(&$value) { |
|
| 836 | 836 | $value = strtoupper($value); |
| 837 | 837 | }); |
| 838 | 838 | if ($cacheKey) { |
@@ -871,7 +871,7 @@ |
||
| 871 | 871 | while (!feof($fh)) { |
| 872 | 872 | $line = fgets($fh, 4096); |
| 873 | 873 | // Has a lot of info |
| 874 | - list($char, $name, $cat, , , $decomp, , , $num, , , , $upper, $lower, $title, ) = explode(';', rtrim($line)); |
|
| 874 | + list($char, $name, $cat,,, $decomp,,, $num,,,, $upper, $lower, $title,) = explode(';', rtrim($line)); |
|
| 875 | 875 | $ord = hexdec($char); |
| 876 | 876 | if ($ord > 65535) { |
| 877 | 877 | // Only process the BMP |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | // PHP 7.0 onward is delivered minimum OPcache 7.0.6-dev |
| 43 | 43 | 'canInvalidate' => true, |
| 44 | 44 | 'error' => false, |
| 45 | - 'clearCallback' => function ($fileAbsPath) { |
|
| 45 | + 'clearCallback' => function($fileAbsPath) { |
|
| 46 | 46 | if ($fileAbsPath !== null) { |
| 47 | 47 | opcache_invalidate($fileAbsPath); |
| 48 | 48 | } else { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace TYPO3\CMS\Core\Crypto; |
| 4 | 4 | |
| 5 | 5 | /* |