Function handle
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
public function handle(?AbstractCallback $callback = null, ?Model $model = null): string
{
$output = '';
$reflection = $callback->getParameters()[static::PARAM_REF];
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring.
Configuration $configuration,
FormConfiguration $formConfiguration,
Settings $settings,
PageRenderer $pageRenderer,
Typo3Version $typo3Version
Similar blocks of code found in 2 locations. Consider refactoring.
for (let i = 0; i < elements.length; i++) {
elements[i].addEventListener('mousedown', this.startDraxx);
}
Resources/Private/krexx/src/View/Skins/TypeScript/Eventhandler.ts on lines 59..61 Similar blocks of code found in 2 locations. Consider refactoring.
for (let i = 0; i < elements.length; i++) {
elements[i].addEventListener('click', this.handle);
}
Resources/Private/krexx/src/View/Skins/TypeScript/Draxx.ts on lines 99..101 Function parse
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
protected function parse(string $string = "\n"): string
{
switch ($result = $this->read(1)) {
case 'N':
Function assignResultsToModel
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
protected function assignResultsToModel(array $values, Model $model, AbstractCallback $callback): void
{
$params = $callback->getParameters();
$reflectionMethod = $params[static::PARAM_ADDITIONAL][static::PARAM_REFLECTION_METHOD];
Function isAllowedDebugCall
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function isAllowedDebugCall(object $data, string $method): bool
{
foreach ($this->classBlacklist as $classname) {
if ($data instanceof $classname) {
Function addPropertyDumper
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
protected function addPropertyDumper(array &$stuffToDump): void
{
$isInScope = $this->pool->scope->isInScope();
$config = $this->pool->config;
Function processGroups
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
protected function processGroups(array &$moduleSettings): array
{
$result = [];
$validation = Krexx::$pool->config->validation;
Function retrieveLengthAndEncoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
protected function retrieveLengthAndEncoding(string $data): int
{
$encoding = $this->pool->encodingService->mbDetectEncoding($data);
$messages = $this->pool->messages;
Similar blocks of code found in 2 locations. Consider refactoring.
<?php
/**
* kreXX: Krumo eXXtended
*
Resources/Private/krexx/src/View/Skins/SmokyGrey/SingleEditableChild.php on lines 1..80 Similar blocks of code found in 2 locations. Consider refactoring.
<?php
/**
* kreXX: Krumo eXXtended
*
Resources/Private/krexx/src/View/Skins/SmokyGrey/Recursion.php on lines 1..78 Function retrieveSql
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function retrieveSql($query): string
{
try {
if ($query instanceof QueryInterface) {
$query = GeneralUtility::makeInstance(Typo3DbQueryParser::class)
Function handleUndeclaredProperties
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function handleUndeclaredProperties(
array &$refProps,
$data,
array $publicProps,
ReflectionClass $ref
Function getCurrentUrl
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function getCurrentUrl(): string
{
$server = $this->pool->getServer();
Function populateGetterLists
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function populateGetterLists(ReflectionMethod $method, ReflectionClass $ref): void
{
Function retrieveDeclaringClassFromTraits
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function retrieveDeclaringClassFromTraits(
array $traits,
ReflectionProperty $refProperty,
ReflectionClass $originalRef
): ?ReflectionClass {
Function generateName
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function generateName(ReflectionClass $ref): string
{
$result = '';
$messages = $this->pool->messages;
Function translateDefaultValue
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function translateDefaultValue($default)
{
if (is_string($default)) {
$default = '\'' . str_replace('\'', '\\\'', $default) . '\'';
} elseif (is_array($default)) {