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 |
---|---|---|
/lib/auth.php:54 | 1 | array_merge(['@' . $this->args['id'] . '==?' . ($this->func ? '' : ' AND @' . $this->args['pw'] . '==?') . (isset($this->args['realm']) ? (' AND @' . $this->args['realm'] . '==?') : ''), $id], ($this->func ? [ ] : [$pw]), (isset($this->args['realm']) ? [$realm] : [ ])) |
/lib/auth.php:104 | 1 | array_merge([$this->args['id'] . '=?' . ($this->func ? '' : ' AND ' . $this->args['pw'] . '=?') . (isset($this->args['realm']) ? (' AND ' . $this->args['realm'] . '=?') : ''), $id], ($this->func ? [ ] : [$pw]), (isset($this->args['realm']) ? [$realm] : [ ])) |
/lib/base.php:2441 | 1 | $this->hive += ['AGENT' => $this->agent( ), 'AJAX' => $this->ajax( ), 'ALIAS' => NULL, 'ALIASES' => [ ], 'AUTOLOAD' => './', 'BASE' => $base, 'BITMASK' => ENT_COMPAT, 'BODY' => NULL, 'CACHE' => FALSE, 'CASELESS' => TRUE, 'CLI' => $cli, 'CORS' => ['headers' => '', 'origin' => FALSE, 'credentials' => FALSE, 'expose' => FALSE, 'ttl' => 0], 'DEBUG' => 0, 'DIACRITICS' => [ ], 'DNSBL' => '', 'EMOJI' => [ ], 'ENCODING' => $charset, 'ERROR' => NULL, 'ESCAPE' => TRUE, 'EXCEPTION' => NULL, 'EXEMPT' => NULL, 'FALLBACK' => $this->fallback, 'FORMATS' => [ ], 'FRAGMENT' => isset($uri['fragment']) ? $uri['fragment'] : '', 'HALT' => TRUE, 'HIGHLIGHT' => FALSE, 'HOST' => $_SERVER['SERVER_NAME'], 'IP' => $this->ip( ), 'JAR' => $jar, 'LANGUAGE' => isset($headers['Accept-Language']) ? $this->language($headers['Accept-Language']) : $this->fallback, 'LOCALES' => './', 'LOCK' => LOCK_EX, 'LOGGABLE' => '*', 'LOGS' => './', 'MB' => extension_loaded('mbstring'), 'ONERROR' => NULL, 'ONREROUTE' => NULL, 'PACKAGE' => self::PACKAGE, 'PARAMS' => [ ], 'PATH' => $path, 'PATTERN' => NULL, 'PLUGINS' => $this->fixslashes(__DIR__) . '/', 'PORT' => $port, 'PREFIX' => NULL, 'PREMAP' => '', 'QUERY' => isset($uri['query']) ? $uri['query'] : '', 'QUIET' => FALSE, 'RAW' => FALSE, 'REALM' => $scheme . '://' . $_SERVER['SERVER_NAME'] . ($port && !in_array($port, [80, 443]) ? (':' . $port) : '') . $_SERVER['REQUEST_URI'], 'RESPONSE' => '', 'ROOT' => $_SERVER['DOCUMENT_ROOT'], 'ROUTES' => [ ], 'SCHEME' => $scheme, 'SEED' => $this->hash($_SERVER['SERVER_NAME'] . $base), 'SERIALIZER' => extension_loaded($ext = 'igbinary') ? $ext : 'php', 'TEMP' => 'tmp/', 'TIME' => &$_SERVER['REQUEST_TIME_FLOAT'], 'TZ' => @date_default_timezone_get( ), 'UI' => './', 'UNLOAD' => NULL, 'UPLOADS' => './', 'URI' => &$_SERVER['REQUEST_URI'], 'VERB' => &$_SERVER['REQUEST_METHOD'], 'VERSION' => self::VERSION, 'XFRAME' => 'SAMEORIGIN'] |
/lib/base.php:2424 | 1 | $jar = ['expire' => 0, 'lifetime' => 0, 'path' => $base ?: '/', 'domain' => is_int(strpos($_SERVER['SERVER_NAME'], '.')) && !filter_var($_SERVER['SERVER_NAME'], FILTER_VALIDATE_IP) ? $_SERVER['SERVER_NAME'] : '', 'secure' => ($scheme == 'https'), 'httponly' => TRUE, 'samesite' => 'Lax', ] |
/lib/base.php:1516 | 1 | $url = $this->build($this->hive['ALIASES'][$parts[1]], isset($parts[2]) ? $this->parse($parts[2]) : [ ]) . (isset($parts[3]) ? $parts[3] : '') . (isset($parts[4]) ? $parts[4] : '') |
/lib/auth.php:100 | 1 | $success = (bool) call_user_func_array([$this->mapper, 'load'], [array_merge([$this->args['id'] . '=?' . ($this->func ? '' : ' AND ' . $this->args['pw'] . '=?') . (isset($this->args['realm']) ? (' AND ' . $this->args['realm'] . '=?') : ''), $id], ($this->func ? [ ] : [$pw]), (isset($this->args['realm']) ? [$realm] : [ ]))]) |
/lib/auth.php:80 | 1 | $success = (bool) $this->mapper->load([$this->args['id'] => $id] + ($this->func ? [ ] : [$this->args['pw'] => $pw]) + (isset($this->args['realm']) ? [$this->args['realm'] => $realm] : [ ])) |
/lib/auth.php:50 | 1 | $success = (bool) call_user_func_array([$this->mapper, 'load'], [array_merge(['@' . $this->args['id'] . '==?' . ($this->func ? '' : ' AND @' . $this->args['pw'] . '==?') . (isset($this->args['realm']) ? (' AND @' . $this->args['realm'] . '==?') : ''), $id], ($this->func ? [ ] : [$pw]), (isset($this->args['realm']) ? [$realm] : [ ]))]) |
/lib/template.php:313 | 1 | $node['@attrib'][$kv[1] ?: $kv[2]] = (isset($kv[3]) && $kv[3] !== '' ? $kv[3] : (isset($kv[4]) && $kv[4] !== '' ? $kv[4] : NULL)) |
/lib/web/geo.php:37 | 1 | $out = ['offset' => $ref->getOffset(new \DateTime('now', new \DateTimeZone('UTC'))) / 3600, 'country' => $loc['country_code'], 'latitude' => $loc['latitude'], 'longitude' => $loc['longitude'], 'dst' => $trn[0]['isdst']] |
/lib/db/sql.php:324 | 1 | $cmd = ['sqlite2?' => ['PRAGMA table_info(`' . $table . '`)', 'name', 'type', 'dflt_value', 'notnull', 0, 'pk', TRUE], 'mysql' => ['SHOW columns FROM `' . $this->dbname . '`.`' . $table . '`', 'Field', 'Type', 'Default', 'Null', 'YES', 'Key', 'PRI'], 'mssql|sqlsrv|sybase|dblib|pgsql|odbc' => ['SELECT ' . 'C.COLUMN_NAME AS field,' . 'C.DATA_TYPE AS type,' . 'C.COLUMN_DEFAULT AS defval,' . 'C.IS_NULLABLE AS nullable,' . 'T.CONSTRAINT_TYPE AS pkey ' . 'FROM INFORMATION_SCHEMA.COLUMNS AS C ' . 'LEFT OUTER JOIN ' . 'INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS K ' . 'ON ' . 'C.TABLE_NAME=K.TABLE_NAME AND ' . 'C.COLUMN_NAME=K.COLUMN_NAME AND ' . 'C.TABLE_SCHEMA=K.TABLE_SCHEMA ' . ($this->dbname ? ('AND C.TABLE_CATALOG=K.TABLE_CATALOG ') : '') . 'LEFT OUTER JOIN ' . 'INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS T ON ' . 'K.TABLE_NAME=T.TABLE_NAME AND ' . 'K.CONSTRAINT_NAME=T.CONSTRAINT_NAME AND ' . 'K.TABLE_SCHEMA=T.TABLE_SCHEMA ' . ($this->dbname ? ('AND K.TABLE_CATALOG=T.TABLE_CATALOG ') : '') . 'WHERE ' . 'C.TABLE_NAME=' . $this->quote($table) . ($this->dbname ? (' AND C.TABLE_CATALOG=' . $this->quote($this->dbname)) : ''), 'field', 'type', 'defval', 'nullable', 'YES', 'pkey', 'PRIMARY KEY'], 'oci' => ['SELECT c.column_name AS field, ' . 'c.data_type AS type, ' . 'c.data_default AS defval, ' . 'c.nullable AS nullable, ' . '(SELECT t.constraint_type ' . 'FROM all_cons_columns acc ' . 'LEFT OUTER JOIN all_constraints t ' . 'ON acc.constraint_name=t.constraint_name ' . 'WHERE acc.table_name=' . $this->quote($table) . ' ' . 'AND acc.column_name=c.column_name ' . 'AND constraint_type=' . $this->quote('P') . ') AS pkey ' . 'FROM all_tab_cols c ' . 'WHERE c.table_name=' . $this->quote($table), 'FIELD', 'TYPE', 'DEFVAL', 'NULLABLE', 'Y', 'PKEY', 'P']] |
/lib/db/sql.php:393 | 1 | $rows[$row[$val[1]]] = ['type' => $row[$val[2]], 'pdo_type' => $type, 'default' => is_string($row[$val[3]]) ? preg_replace('/^\s*([\'"])(.*)\1\s*/', '\2', $row[$val[3]]) : $row[$val[3]], 'nullable' => $row[$val[4]] == $val[5], 'pkey' => $row[$val[6]] == $val[7]] |
/lib/base.php:3000 | 1 | $str = ((empty($this->filter[$cmd = $func]) && function_exists($cmd)) || is_string($cmd = $this->filter($func))) ? $cmd . '(' . $str . ')' : 'Base::instance()->' . 'call($this->filter(\'' . $func . '\'),[' . $str . '])' |
/lib/web.php:278 | 1 | $file = ['name' => $dir . ($slug && preg_match('/(.+?)(\.\w+)?$/', $base, $parts) ? (is_callable($slug) ? $slug($base) : ($this->slug($parts[1]) . (isset($parts[2]) ? $parts[2] : ''))) : $base), 'tmp_name' => $tmp, 'type' => $this->mime($base), 'size' => filesize($tmp)] |
/lib/web.php:312 | 1 | $file['name'] = $dir . ($slug && preg_match('/(.+?)(\.\w+)?$/', $base, $parts) ? (is_callable($slug) ? $slug($base, $name) : ($this->slug($parts[1]) . (isset($parts[2]) ? $parts[2] : ''))) : $base) |
/lib/web.php:599 | 1 | $url = $fw->SCHEME . '://' . $fw->HOST . (in_array($fw->PORT, [80, 443]) ? '' : (':' . $fw->PORT)) . ($url[0] != '/' ? ($fw->BASE . '/') : '') . $url |
/lib/db/sql/mapper.php:473 | 1 | $lID = $this->db->exec((preg_match('/mssql|dblib|sqlsrv/', $this->engine) && array_intersect(array_keys($pkeys), $ckeys) ? 'SET IDENTITY_INSERT ' . $this->table . ' ON;' : '') . 'INSERT INTO ' . $this->table . ' (' . $fields . ') ' . 'VALUES (' . $values . ')' . $add, $args) |
/lib/db/mongo/mapper.php:138 | 1 | $cached = $cache->exists($hash = $fw->hash($this->db->dsn( ) . $fw->stringify([$fields, $filter, $options])) . ($tag ? '.' . $tag : '') . '.mongo', $result) |
/lib/db/mongo/mapper.php:321 | 1 | $result = $this->legacy ? $this->collection->remove(['_id' => $this->document['_id']]) : $this->collection->deleteone(['_id' => $this->document['_id']]) |
/lib/db/jig/mapper.php:176 | 1 | $cached = $cache->exists($hash = $fw->hash($this->db->dir( ) . $fw->stringify([$filter, $options])) . ($tag ? '.' . $tag : '') . '.jig', $data) |
/lib/db/mongo/mapper.php:138 | 1 | if(!($cached = $cache->exists($hash = $fw->hash($this->db->dsn( ) . $fw->stringify([$fields, $filter, $options])) . ($tag ? '.' . $tag : '') . '.mongo', $result)) || !$ttl || $cached[0] + $ttl < microtime(TRUE)) { /**/ } |
/lib/db/sql.php:316 | 1 | if($fw->CACHE && $ttl && ($cached = $cache->exists($hash = $fw->hash($this->dsn . $table) . '.schema', $result)) && $cached[0] + $ttl > microtime(TRUE)) /**/ |
/lib/db/sql.php:188 | 1 | if($fw->CACHE && $ttl && ($cached = $cache->exists($hash = $fw->hash($this->dsn . $cmd . $fw->stringify($arg)) . ($tag ? '.' . $tag : '') . '.sql', $result)) && $cached[0] + $ttl > microtime(TRUE)) { /**/ } elseif(is_object($query = $this->pdo->prepare($cmd))) { /**/ } elseif(($error = $this->errorinfo( )) && $error[0] != \PDO::ERR_NONE) { /**/ } |
/lib/web/openid.php:57 | 1 | if($type && preg_match('/application\/xrds\+xml|text\/xml/', $type[0]) && ($sxml = simplexml_load_string($req['body'])) && ($xrds = json_decode(json_encode($sxml), TRUE)) && isset($xrds['XRD'])) { /**/ } else { /**/ } |
/lib/web/pingback.php:127 | 1 | if((empty($parts['scheme']) || $parts['host'] == $fw->HOST) && preg_match('/^' . preg_quote($path, '/') . '/' . ($fw->CASELESS ? 'i' : ''), $parts['path']) && $this->enabled($permalink)) { /**/ } |
/lib/web.php:702 | 1 | if($fw->CACHE && ($cached = $cache->exists($hash = $fw->hash($save) . '.' . $ext[0], $data)) && $cached[0] > filemtime($save)) /**/ else { /**/ } |
/lib/base.php:1352 | 1 | if($highlight = !$this->hive['CLI'] && !$this->hive['AJAX'] && $this->hive['HIGHLIGHT'] && is_file($css = __DIR__ . '/' . self::CSS)) /**/ |
/lib/auth.php:136 | 1 | if($dc && ldap_set_option($dc, LDAP_OPT_PROTOCOL_VERSION, 3) && ldap_set_option($dc, LDAP_OPT_REFERRALS, 0) && ldap_bind($dc, $this->args['rdn'], $this->args['pw']) && ($result = ldap_search($dc, $this->args['base_dn'], $filter, $this->args['attr'])) && ldap_count_entries($dc, $result) && ($info = ldap_get_entries($dc, $result)) && $info['count'] == 1 && @ldap_bind($dc, $info[0]['dn'], $pw) && @ldap_close($dc)) { /**/ } |
/lib/db/jig/mapper.php:176 | 1 | if(!$fw->CACHE || !$ttl || !($cached = $cache->exists($hash = $fw->hash($this->db->dir( ) . $fw->stringify([$filter, $options])) . ($tag ? '.' . $tag : '') . '.jig', $data)) || $cached[0] + $ttl < microtime(TRUE)) { /**/ } |
/lib/db/mongo/mapper.php:227 | 1 | if(!($cached = $cache->exists($hash = $fw->hash($fw->stringify([$filter])) . ($tag ? '.' . $tag : '') . '.mongo', $result)) || !$ttl || $cached[0] + $ttl < microtime(TRUE)) { /**/ } |