Complex expressions

Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.

Literal arrays are omitted.

File Count Expression
/src/Http/Request.php:3141array_replace(['SERVER_NAME' => 'localhost''SERVER_PORT' => 80'HTTP_HOST' => 'localhost''HTTP_USER_AGENT' => 'Symfony''HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8''HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5''HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7''REMOTE_ADDR' => '127.0.0.1''SCRIPT_NAME' => '''SCRIPT_FILENAME' => '''SERVER_PROTOCOL' => 'HTTP/1.1''REQUEST_TIME' => time( ),  ], $server)
/src/Mail/Email.php:4111$this->headers = ['From' => $this->sender'Return-Path' => $this->sender'Reply-To' => $this->sender'Date' => (new \DateTime( ))->format('r'), 'Message-ID' => '<' sha1(microtime( )) . '@' substr($this->senderstrpos($this->sender'@') + 1) . '>''User-Agent' => 'vxPHP SmtpMailer''X-Mailer' => 'PHP' PHP_VERSION'MIME-Version' => '1.0']
/src/Template/SimpleTemplate.php:951$this->defaultFilters = [strtolower(AnchorHref::class) => new AnchorHref( ), strtolower(ImageCache::class) => new ImageCache( ), strtolower(LocalizedPhrases::class) => new LocalizedPhrases( ), strtolower(Spaceless::class) => new Spaceless( )]
/src/Application/Application.php:3131$this->db DatabaseInterfaceFactory::create($config->type ?? 'mysql', ['host' => $config->host'dbname' => $config->name'user' => $config->user'password' => $config->pass,  ])
/src/Http/Request.php:3141$server array_replace(['SERVER_NAME' => 'localhost''SERVER_PORT' => 80'HTTP_HOST' => 'localhost''HTTP_USER_AGENT' => 'Symfony''HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8''HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5''HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7''REMOTE_ADDR' => '127.0.0.1''SCRIPT_NAME' => '''SCRIPT_FILENAME' => '''SERVER_PROTOCOL' => 'HTTP/1.1''REQUEST_TIME' => time( ),  ], $server)
/src/Http/FileBag.php:1371$files[$key] = $this->fixPhpFilesArray(['error' => $data['error'][$key], 'name' => $name'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key],  ])
/src/Webpage/Menu/Renderer/SimpleListRenderer.php:1201$markup sprintf('<li class="active %s">%s<span>%s</span>%s'preg_replace('~[^\w]~''_'$entry->getPath( )) . (isset($this->parameters['liClass']) ? (' ' $this->parameters['liClass']) : ''), $this->openingTags, empty($this->parameters['rawText']) ? htmlspecialchars($text) : $text$this->closingTags)
/src/Webpage/Menu/Renderer/SimpleListRenderer.php:1291$markup sprintf('<li class="active %s">%s<a href="%s">%s</a>%s'preg_replace('~[^\w]~''_'$entry->getPath( )) . (isset($this->parameters['liClass']) ? (' ' $this->parameters['liClass']) : ''), $this->openingTags$entry->getHref( ), empty($this->parameters['rawText']) ? htmlspecialchars($text) : $text$this->closingTags)
/src/Form/HtmlForm.php:15861$this->html sprintf('<form action="%s" method="%s" %s %s>%s%s%s'$this->action$this->method$this->encType ? ('enctype="' $this->encType '"') : ''implode(' '$attr), $this->enableAntiSpam $this->renderAntiSpam( ) : ''$this->enableCsrfToken $this->renderCsrfToken( ) : ''$this->html)
/src/Webpage/Menu/Renderer/SimpleListRenderer.php:991$markup sprintf('<li class="%s">%s<a href="%s">%s</a>%s'preg_replace('~[^\w]~''_'$entry->getPath( )) . (isset($this->parameters['liClass']) ? (' ' $this->parameters['liClass']) : ''), $this->openingTags$entry->getHref( ), empty($this->parameters['rawText']) ? htmlspecialchars($text) : $text$this->closingTags)
/src/Application/Application.php:3461$this->vxPDOInstances[$name] = DatabaseInterfaceFactory::create($dsConfig->driver, ['dsn' => $dsConfig->dsn'host' => $dsConfig->host'port' => $dsConfig->port'dbname' => $dsConfig->dbname'user' => $dsConfig->user'password' => $dsConfig->password'name' => $name])
/src/Constraint/Validator/Ip.php:451$allowedVersions = ['all' => null'v4' => FILTER_FLAG_IPV4'v6' => FILTER_FLAG_IPV6'all_no_priv_range' => FILTER_FLAG_NO_PRIV_RANGE'v4_no_priv_range' => FILTER_FLAG_IPV4 FILTER_FLAG_NO_PRIV_RANGE'v6_no_priv_range' => FILTER_FLAG_IPV6 FILTER_FLAG_NO_PRIV_RANGE'all_no_res_range' => FILTER_FLAG_NO_RES_RANGE'v4_no_res_range' => FILTER_FLAG_IPV4 FILTER_FLAG_NO_RES_RANGE'v6_no_res_range' => FILTER_FLAG_IPV6 FILTER_FLAG_NO_RES_RANGE'all_no_public_range' => FILTER_FLAG_NO_PRIV_RANGE FILTER_FLAG_NO_RES_RANGE'v4_no_public_range' => FILTER_FLAG_IPV4 FILTER_FLAG_NO_PRIV_RANGE FILTER_FLAG_NO_RES_RANGE'v6_no_public_range' => FILTER_FLAG_IPV6 FILTER_FLAG_NO_PRIV_RANGE FILTER_FLAG_NO_RES_RANGE,  ]
/src/Debug/ExceptionHandler.php:1061$path = ($config->paths['tpl_path']['absolute'] ? '' rtrim(Application::getInstance( )->getRootPath( ), DIRECTORY_SEPARATOR)) . $config->paths['tpl_path']['subdir']
/src/Debug/ExceptionHandler.php:1721$content .= sprintf($rowTpl$ndx$level['file'], $level['line'], (isset($level['class']) ? ($level['class'] . $level['type'] . $level['function']) : $level['function']) . '()')
/src/Database/Adapter/Mysql.php:2051$options = [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_STRINGIFY_FETCHES => false, \PDO::ATTR_CASE => \PDO::CASE_LOWER, \PDO::ATTR_EMULATE_PREPARES => version_compare($this->connection->getAttribute(\PDO::ATTR_SERVER_VERSION), '5.1.17''<')]
/src/Database/Adapter/Mysql.php:2771$columns[strtolower($column['column_name'])] = ['columnName' => $column['column_name'], 'columnKey' => $column['column_key'], 'columnDefault' => $column['column_default'], 'isNullable' => strtoupper($column['is_nullable']) === 'YES''dataType' => $column['data_type'], 'columnType' => $column['column_type']]
/src/Http/Response.php:12441while ($level-- > $targetLevel && ($s $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags $s['del'])) { /**/ }
/src/Http/Response.php:12631if(false !== stripos($this->headers->get('Content-Disposition'), 'attachment') && === preg_match('/MSIE (.*?);/i'$request->server->get('HTTP_USER_AGENT'), $match) && true === $request->isSecure( ) && (int) preg_replace('/(MSIE )(.*?);/''$2'$match[0]) < 9) { /**/ }
/src/Database/AbstractPdoAdapter.php:3911if($this->primeQuery(sprintf("
                        INSERT INTO
                            %s
                        (%s%s%s)
                        VALUES
                        (%s)
                        "
, static::QUOTE_CHAR $tableName . static::QUOTE_CHAR, static::QUOTE_CHARimplode(static::QUOTE_CHAR ', ' . static::QUOTE_CHAR$names), static::QUOTE_CHAR$valuePlaceholders), $values)->execute( )) { /**/ }
/src/Database/AbstractPdoAdapter.php:5321if($this->primeQuery(sprintf("
                    INSERT INTO
                        %s
                            (%s%s%s)
                        VALUES
                            %s
                    "
, static::QUOTE_CHAR $tableName . static::QUOTE_CHAR, static::QUOTE_CHARimplode(static::QUOTE_CHAR ', ' . static::QUOTE_CHAR$names), static::QUOTE_CHARimplode(','array_fill(0count($rowsData), $valuePlaceholders))), $values)->execute( )) { /**/ }
/src/Database/AbstractPdoAdapter.php:7111if($this->primeQuery(sprintf("
                                DELETE FROM
                                    %s
                                WHERE
                                    %s = ?
                            "
, static::QUOTE_CHAR $tableName . static::QUOTE_CHAR, static::QUOTE_CHAR $columns['_primaryKeyColumns'][0] . static::QUOTE_CHAR), [$keyValue])->execute( )) { /**/ }
/src/Routing/Router.php:4211if(($routeSatisfiedPlaceholderCount count($route->getPlaceholderNames( ))) === ($foundRouteSatisfiedPlaceholderCount count($foundRoute->getPlaceholderNames( ))) && count($route->getPlaceholderNames( )) > count($foundRoute->getPlaceholderNames( ))) { /**/ }
/src/Form/HtmlForm.php:3961if(preg_match('/^' $name '\\[(.*?)\\]$/'$k$m) && isset($this->elements[$name][$m[1]]) && $this->elements[$name][$m[1]]->canSubmit( )) { /**/ }
/src/Form/HtmlForm.php:5261if(($e->canSubmit( ) && !$getSubmits) || !$e->isValid( ) || ($e instanceof CheckboxElement && !$this->requestValues->get($name))) { /**/ }
/src/Form/HtmlForm.php:12991if(((!$last['condition'] && $last['else']) || ($last['condition'] && !$last['else'])) && (!isset($last['parentCond']) || $last['parentCond'])) { /**/ }
/src/Form/HtmlForm.php:13131if(($stack[$nesting 1]['condition'] && $stack[$nesting 1]['else']) || (!$stack[$nesting 1]['condition'] && !$stack[$nesting 1]['else']) || ($stack[$nesting 1]['parentCond'] === false)) { /**/ } else { /**/ }
/src/Webpage/MenuGenerator.php:1491if(!isset($config->menus[$id]) || (!count($config->menus[$id]->getEntries( )) && $config->menus[$id]->getType( ) === 'static')) { /**/ }