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:314 | 1 | 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/Mail/Email.php:411 | 1 | $this->headers = ['From' => $this->sender, 'Return-Path' => $this->sender, 'Reply-To' => $this->sender, 'Date' => (new \DateTime( ))->format('r'), 'Message-ID' => '<' . sha1(microtime( )) . '@' . substr($this->sender, strpos($this->sender, '@') + 1) . '>', 'User-Agent' => 'vxPHP SmtpMailer', 'X-Mailer' => 'PHP' . PHP_VERSION, 'MIME-Version' => '1.0'] |
/src/Template/SimpleTemplate.php:95 | 1 | $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:313 | 1 | $this->db = DatabaseInterfaceFactory::create($config->type ?? 'mysql', ['host' => $config->host, 'dbname' => $config->name, 'user' => $config->user, 'password' => $config->pass, ]) |
/src/Http/Request.php:314 | 1 | $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:137 | 1 | $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:120 | 1 | $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:129 | 1 | $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:1586 | 1 | $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:99 | 1 | $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:346 | 1 | $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:45 | 1 | $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:106 | 1 | $path = ($config->paths['tpl_path']['absolute'] ? '' : rtrim(Application::getInstance( )->getRootPath( ), DIRECTORY_SEPARATOR)) . $config->paths['tpl_path']['subdir'] |
/src/Debug/ExceptionHandler.php:172 | 1 | $content .= sprintf($rowTpl, $ndx, $level['file'], $level['line'], (isset($level['class']) ? ($level['class'] . $level['type'] . $level['function']) : $level['function']) . '()') |
/src/Database/Adapter/Mysql.php:205 | 1 | $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:277 | 1 | $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:1244 | 1 | while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) { /**/ } |
/src/Http/Response.php:1263 | 1 | if(false !== stripos($this->headers->get('Content-Disposition'), 'attachment') && 1 === 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:391 | 1 | if($this->primeQuery(sprintf(" INSERT INTO %s (%s%s%s) VALUES (%s) ", static::QUOTE_CHAR . $tableName . static::QUOTE_CHAR, static::QUOTE_CHAR, implode(static::QUOTE_CHAR . ', ' . static::QUOTE_CHAR, $names), static::QUOTE_CHAR, $valuePlaceholders), $values)->execute( )) { /**/ } |
/src/Database/AbstractPdoAdapter.php:532 | 1 | if($this->primeQuery(sprintf(" INSERT INTO %s (%s%s%s) VALUES %s ", static::QUOTE_CHAR . $tableName . static::QUOTE_CHAR, static::QUOTE_CHAR, implode(static::QUOTE_CHAR . ', ' . static::QUOTE_CHAR, $names), static::QUOTE_CHAR, implode(',', array_fill(0, count($rowsData), $valuePlaceholders))), $values)->execute( )) { /**/ } |
/src/Database/AbstractPdoAdapter.php:711 | 1 | if($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:421 | 1 | if(($routeSatisfiedPlaceholderCount - count($route->getPlaceholderNames( ))) === ($foundRouteSatisfiedPlaceholderCount - count($foundRoute->getPlaceholderNames( ))) && count($route->getPlaceholderNames( )) > count($foundRoute->getPlaceholderNames( ))) { /**/ } |
/src/Form/HtmlForm.php:396 | 1 | if(preg_match('/^' . $name . '\\[(.*?)\\]$/', $k, $m) && isset($this->elements[$name][$m[1]]) && $this->elements[$name][$m[1]]->canSubmit( )) { /**/ } |
/src/Form/HtmlForm.php:526 | 1 | if(($e->canSubmit( ) && !$getSubmits) || !$e->isValid( ) || ($e instanceof CheckboxElement && !$this->requestValues->get($name))) { /**/ } |
/src/Form/HtmlForm.php:1299 | 1 | if(((!$last['condition'] && $last['else']) || ($last['condition'] && !$last['else'])) && (!isset($last['parentCond']) || $last['parentCond'])) { /**/ } |
/src/Form/HtmlForm.php:1313 | 1 | if(($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:149 | 1 | if(!isset($config->menus[$id]) || (!count($config->menus[$id]->getEntries( )) && $config->menus[$id]->getType( ) === 'static')) { /**/ } |