@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | public function getShortInfo(): string |
| 58 | 58 | { |
| 59 | - $errorsAndWarnings = array_filter(InMemoryLogWriter::$log, function (LogRecord $entry) { |
|
| 59 | + $errorsAndWarnings = array_filter(InMemoryLogWriter::$log, function(LogRecord $entry) { |
|
| 60 | 60 | return LogLevel::normalizeLevel($entry->getLevel()) <= 4; |
| 61 | 61 | }); |
| 62 | 62 | return sprintf($this->getLanguageService()->sL( |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $intScripts = $GLOBALS['TSFE']->config['INTincScript'] ?? []; |
| 86 | 86 | |
| 87 | 87 | foreach ($intScripts as $intScriptName => $intScriptConf) { |
| 88 | - $info = isset($intScriptConf['type']) ? ['TYPE' => $intScriptConf['type']] : []; |
|
| 88 | + $info = isset($intScriptConf['type']) ? ['TYPE' => $intScriptConf['type']] : []; |
|
| 89 | 89 | foreach ($intScriptConf['conf'] as $key => $conf) { |
| 90 | 90 | if (is_array($conf)) { |
| 91 | 91 | $conf = ArrayUtility::flatten($conf); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | 'storagePid' => implode(',', $this->getStorageFolders()), |
| 154 | 154 | 'permaloginStatus' => $this->getPermaloginStatus(), |
| 155 | 155 | 'redirectURL' => $this->redirectHandler->getLoginFormRedirectUrl($this->configuration, $this->isRedirectDisabled()), |
| 156 | - 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer'): '', |
|
| 156 | + 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer') : '', |
|
| 157 | 157 | 'referer' => $this->requestHandler->getPropertyFromGetAndPost('referer'), |
| 158 | 158 | 'noRedirect' => $this->isRedirectDisabled(), |
| 159 | 159 | ] |
@@ -132,28 +132,28 @@ |
||
| 132 | 132 | |
| 133 | 133 | $html = []; |
| 134 | 134 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 135 | - $html[] = $fieldInformationHtml; |
|
| 136 | - $html[] = '<div class="form-control-wrap">'; |
|
| 137 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 138 | - $html[] = '<div class="form-wizards-element">'; |
|
| 139 | - $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
| 140 | - $html[] = htmlspecialchars($value); |
|
| 141 | - $html[] = '</textarea>'; |
|
| 142 | - $html[] = '</div>'; |
|
| 135 | + $html[] = $fieldInformationHtml; |
|
| 136 | + $html[] = '<div class="form-control-wrap">'; |
|
| 137 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 138 | + $html[] = '<div class="form-wizards-element">'; |
|
| 139 | + $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
| 140 | + $html[] = htmlspecialchars($value); |
|
| 141 | + $html[] = '</textarea>'; |
|
| 142 | + $html[] = '</div>'; |
|
| 143 | 143 | if (!empty($fieldControlHtml)) { |
| 144 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 145 | - $html[] = '<div class="btn-group">'; |
|
| 146 | - $html[] = $fieldControlHtml; |
|
| 147 | - $html[] = '</div>'; |
|
| 148 | - $html[] = '</div>'; |
|
| 144 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 145 | + $html[] = '<div class="btn-group">'; |
|
| 146 | + $html[] = $fieldControlHtml; |
|
| 147 | + $html[] = '</div>'; |
|
| 148 | + $html[] = '</div>'; |
|
| 149 | 149 | } |
| 150 | 150 | if (!empty($fieldWizardHtml)) { |
| 151 | 151 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 152 | 152 | $html[] = $fieldWizardHtml; |
| 153 | 153 | $html[] = '</div>'; |
| 154 | 154 | } |
| 155 | - $html[] = '</div>'; |
|
| 156 | - $html[] = '</div>'; |
|
| 155 | + $html[] = '</div>'; |
|
| 156 | + $html[] = '</div>'; |
|
| 157 | 157 | $html[] = '</div>'; |
| 158 | 158 | |
| 159 | 159 | $resultArray['html'] = implode(LF, $html); |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | ]; |
| 139 | 139 | while ($row = $statement->fetch()) { |
| 140 | 140 | $result[$row['link_type']] = $row['amount']; |
| 141 | - $result['total']+= $row['amount']; |
|
| 141 | + $result['total'] += $row['amount']; |
|
| 142 | 142 | } |
| 143 | 143 | return $result; |
| 144 | 144 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | $dump = self::ansiEscapeWrap('"' . implode(PHP_EOL . str_repeat(self::PLAINTEXT_INDENT, $level + 1), str_split($croppedValue, 76)) . '"', '33', $ansiColors) . ' (' . strlen($value) . ' chars)'; |
| 95 | 95 | } else { |
| 96 | 96 | $lines = str_split($croppedValue, 76); |
| 97 | - $lines = array_map(static function (string $line): string { |
|
| 97 | + $lines = array_map(static function(string $line): string { |
|
| 98 | 98 | return htmlspecialchars($line, ENT_COMPAT); |
| 99 | 99 | }, $lines); |
| 100 | 100 | $dump = sprintf('\'<span class="extbase-debug-string">%s</span>\' (%s chars)', implode('<br />' . str_repeat(self::HTML_INDENT, $level + 1), $lines), strlen($value)); |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | { |
| 102 | 102 | $position = 0; |
| 103 | 103 | |
| 104 | - $parameters = array_filter($this->getParameters(), function (MethodParameter $parameter) use ($position) { |
|
| 104 | + $parameters = array_filter($this->getParameters(), function(MethodParameter $parameter) use ($position) { |
|
| 105 | 105 | return $parameter->getPosition() === $position; |
| 106 | 106 | }); |
| 107 | 107 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | $annotations = $annotationReader->getPropertyAnnotations($reflectionProperty); |
| 220 | 220 | |
| 221 | 221 | /** @var array|Validate[] $validateAnnotations */ |
| 222 | - $validateAnnotations = array_filter($annotations, function ($annotation) { |
|
| 222 | + $validateAnnotations = array_filter($annotations, function($annotation) { |
|
| 223 | 223 | return $annotation instanceof Validate; |
| 224 | 224 | }); |
| 225 | 225 | |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | $annotations = $annotationReader->getMethodAnnotations($reflectionMethod); |
| 317 | 317 | |
| 318 | 318 | /** @var array|Validate[] $validateAnnotations */ |
| 319 | - $validateAnnotations = array_filter($annotations, function ($annotation) { |
|
| 319 | + $validateAnnotations = array_filter($annotations, function($annotation) { |
|
| 320 | 320 | return $annotation instanceof Validate; |
| 321 | 321 | }); |
| 322 | 322 | |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | |
| 351 | 351 | $parameterName = $reflectionParameter->getName(); |
| 352 | 352 | |
| 353 | - $ignoreValidationParameters = array_filter($annotations, function ($annotation) use ($parameterName) { |
|
| 353 | + $ignoreValidationParameters = array_filter($annotations, function($annotation) use ($parameterName) { |
|
| 354 | 354 | return $annotation instanceof IgnoreValidation && $annotation->argumentName === $parameterName; |
| 355 | 355 | }); |
| 356 | 356 | |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | */ |
| 632 | 632 | public function getInjectMethods(): array |
| 633 | 633 | { |
| 634 | - return array_filter($this->buildMethodObjects(), function ($method) { |
|
| 634 | + return array_filter($this->buildMethodObjects(), function($method) { |
|
| 635 | 635 | /** @var Method $method */ |
| 636 | 636 | return $method->isInjectMethod(); |
| 637 | 637 | }); |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | */ |
| 643 | 643 | public function getInjectProperties(): array |
| 644 | 644 | { |
| 645 | - return array_filter($this->buildPropertyObjects(), static function ($property) { |
|
| 645 | + return array_filter($this->buildPropertyObjects(), static function($property) { |
|
| 646 | 646 | /** @var Property $property */ |
| 647 | 647 | return $property->isInjectProperty(); |
| 648 | 648 | }); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | $accessor = self::createAccessor(); |
| 228 | 228 | $propertyNames = array_keys($classSchema->getProperties()); |
| 229 | - $accessiblePropertyNames = array_filter($propertyNames, function ($propertyName) use ($accessor, $object) { |
|
| 229 | + $accessiblePropertyNames = array_filter($propertyNames, function($propertyName) use ($accessor, $object) { |
|
| 230 | 230 | return $accessor->isReadable($object, $propertyName); |
| 231 | 231 | }); |
| 232 | 232 | |
@@ -282,11 +282,11 @@ discard block |
||
| 282 | 282 | } else { |
| 283 | 283 | $classSchema = GeneralUtility::makeInstance(ReflectionService::class)->getClassSchema($object); |
| 284 | 284 | |
| 285 | - $propertyNames = array_filter(array_keys($classSchema->getProperties()), function ($methodName) use ($accessor, $object) { |
|
| 285 | + $propertyNames = array_filter(array_keys($classSchema->getProperties()), function($methodName) use ($accessor, $object) { |
|
| 286 | 286 | return $accessor->isWritable($object, $methodName); |
| 287 | 287 | }); |
| 288 | 288 | |
| 289 | - $setters = array_filter(array_keys($classSchema->getMethods()), function ($methodName) use ($object) { |
|
| 289 | + $setters = array_filter(array_keys($classSchema->getMethods()), function($methodName) use ($object) { |
|
| 290 | 290 | return StringUtility::beginsWith($methodName, 'set') && is_callable([$object, $methodName]); |
| 291 | 291 | }); |
| 292 | 292 | |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | */ |
| 438 | 438 | private static function convertToArrayPropertyPath(PropertyPath $propertyPath): PropertyPath |
| 439 | 439 | { |
| 440 | - $segments = array_map(function ($segment) { |
|
| 440 | + $segments = array_map(function($segment) { |
|
| 441 | 441 | return static::wrap($segment); |
| 442 | 442 | }, $propertyPath->getElements()); |
| 443 | 443 | |