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
/includes/functions-html.php:6441yourls_apply_filter('table_head_cells', array('shorturl' => yourls__('Short URL'), 'longurl' => yourls__('Original URL'), 'date' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'), 'actions' => yourls__('Actions')))
/includes/functions-html.php:5381$actions = array('stats' => array('href' => $statlink'id' => "statlink-$id"'title' => yourls_esc_attr__('Stats'), 'anchor' => yourls__('Stats'),  ), 'share' => array('href' => '''id' => "share-button-$id"'title' => yourls_esc_attr__('Share'), 'anchor' => yourls__('Share'), 'onclick' => "toggle_share('$id');return false;",  ), 'edit' => array('href' => $edit_link'id' => "edit-button-$id"'title' => yourls_esc_attr__('Edit'), 'anchor' => yourls__('Edit'), 'onclick' => "edit_link_display('$id');return false;",  ), 'delete' => array('href' => $delete_link'id' => "delete-button-$id"'title' => yourls_esc_attr__('Delete'), 'anchor' => yourls__('Delete'), 'onclick' => "remove_link('$id');return false;",  ))
/includes/functions-html.php:5871$cells = array('keyword' => array('template' => '<a href="%shorturl%">%keyword_html%</a>''shorturl' => yourls_esc_url($shorturl), 'keyword_html' => yourls_esc_html($keyword),  ), 'url' => array('template' => '<a href="%long_url%" title="%title_attr%">%title_html%</a><br/><small>%warning%<a href="%long_url%">%long_url_html%</a></small>''long_url' => yourls_esc_url($url), 'title_attr' => yourls_esc_attr($title), 'title_html' => yourls_esc_html(yourls_trim_long_string($title)), 'long_url_html' => yourls_esc_html(yourls_trim_long_string(urldecode($url))), 'warning' => $protocol_warning,  ), 'timestamp' => array('template' => '<span class="timestamp" aria-hidden="true">%timestamp%</span> %date%''timestamp' => $timestamp'date' => yourls_date_i18n(yourls_get_datetime_format('M d, Y H:i'), yourls_get_timestamp($timestamp)),  ), 'ip' => array('template' => '%ip%''ip' => $ip,  ), 'clicks' => array('template' => '%clicks%''clicks' => yourls_number_format_i18n($clicks0''''),  ), 'actions' => array('template' => '%actions% <input type="hidden" id="keyword_%id%" value="%keyword%"/>''actions' => $action_links'id' => $id'keyword' => $keyword,  ),  )
/includes/functions-html.php:6441$cells yourls_apply_filter('table_head_cells', array('shorturl' => yourls__('Short URL'), 'longurl' => yourls__('Original URL'), 'date' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'), 'actions' => yourls__('Actions')))
/includes/vendor/rmccue/requests/library/Requests.php:5031$defaults = array('timeout' => 10'connect_timeout' => 10'useragent' => 'php-requests/' self::VERSION'protocol_version' => 1.1'redirected' => 0'redirects' => 10'follow_redirects' => true'blocking' => true'type' => self::GET'filename' => false'auth' => false'proxy' => false'cookies' => false'max_bytes' => false'idn' => true'hooks' => null'transport' => null'verify' => Requests::get_certificate_path( ), 'verifyname' => true,  )
/includes/functions-http.php:2881$stuff = array('md5' => md5(YOURLS_SITE YOURLS_ABSPATH), 'failed_attempts' => $checks->failed_attempts'yourls_site' => defined('YOURLS_SITE') ? yourls_get_yourls_site( ) : 'unknown''yourls_version' => defined('YOURLS_VERSION') ? YOURLS_VERSION 'unknown''php_version' => PHP_VERSION'mysql_version' => yourls_get_db( )->mysql_version( ), 'locale' => yourls_get_locale( ), 'db_driver' => defined('YOURLS_DB_DRIVER') ? YOURLS_DB_DRIVER 'unset''db_ext_pdo' => extension_loaded('PDO') ? 0'db_ext_mysql' => extension_loaded('mysql') ? 0'db_ext_mysqli' => extension_loaded('mysqli') ? 0'ext_curl' => extension_loaded('curl') ? 0'num_users' => count($yourls_user_passwords), 'config_location' => $conf_loc'yourls_private' => defined('YOURLS_PRIVATE') && YOURLS_PRIVATE 0'yourls_unique' => defined('YOURLS_UNIQUE_URLS') && YOURLS_UNIQUE_URLS 0'yourls_url_convert' => defined('YOURLS_URL_CONVERT') ? YOURLS_URL_CONVERT 'unknown''num_active_plugins' => yourls_has_active_plugins( ), 'num_pages' => defined('YOURLS_PAGEDIR') ? count((array) glob(YOURLS_PAGEDIR '/*.php')) : 0,  )
/includes/functions-shorturls.php:5521$return = array('statusCode' => 200'message' => 'success''link' => array('shorturl' => yourls_link($res->keyword), 'url' => $res->url'title' => $res->title'timestamp' => $res->timestamp'ip' => $res->ip'clicks' => $res->clicks,  ))
/includes/functions-html.php:2501$_options = array('keyword' => yourls__('Short URL'), 'url' => yourls__('URL'), 'title' => yourls__('Title'), 'timestamp' => yourls__('Date'), 'ip' => yourls__('IP'), 'clicks' => yourls__('Clicks'),  )
/includes/functions-html.php:5041$return = <<<RETURN
<tr id="edit-$id" class="edit-row"><td colspan="5" class="edit-row"><strong>%s</strong>:<input type="text" id="edit-url-$id" name="edit-url-$id" value="$safe_url" class="text" size="70" /><br/><strong>%s</strong>: $www<input type="text" id="edit-keyword-$id" name="edit-keyword-$id" value="$safe_keyword" class="text" size="10" /><br/><strong>%s</strong>: <input type="text" id="edit-title-$id" name="edit-title-$id" value="$safe_title" class="text" size="60" /></td><td colspan="1"><input type="button" id="edit-submit-$id" name="edit-submit-$id" value="%s" title="%s" class="button" onclick="edit_link_save('$id');" />&nbsp;<input type="button" id="edit-close-$id" name="edit-close-$id" value="%s" title="%s" class="button" onclick="edit_link_hide('$id');" /><input type="hidden" id="old_keyword_$id" value="$safe_keyword"/><input type="hidden" id="nonce_$id" value="$nonce"/></td></tr>
RETURN
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:7981$c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80
/admin/index.php:3271$params = array('search' => $search'search_text' => $search_text'search_in' => $search_in'sort_by' => $sort_by'sort_order' => $sort_order'page' => $page'perpage' => $perpage'click_filter' => $click_filter'click_limit' => $click_limit'total_pages' => $total_pages'date_filter' => $date_filter'date_first' => $date_first'date_second' => $date_second,  )
/includes/vendor/rmccue/requests/library/Requests/IRI.php:7361$return $this->set_scheme($parsed['scheme']) && $this->set_authority($parsed['authority']) && $this->set_path($parsed['path']) && $this->set_query($parsed['query']) && $this->set_fragment($parsed['fragment'])
/includes/vendor/symfony/polyfill-php72/Php72.php:1822$s = \chr(0xF0 $code >> 18) . \chr(0x80 $code >> 12 0x3F) . \chr(0x80 $code >> 0x3F) . \chr(0x80 $code 0x3F)
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:6711$info = array('internal_encoding' => self::$internalEncoding'http_output' => 'pass''http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)''func_overload' => 0'func_overload_list' => 'no overload''mail_charset' => 'UTF-8''mail_header_encoding' => 'BASE64''mail_body_encoding' => 'BASE64''illegal_chars' => 0'encoding_translation' => 'Off''language' => self::$language'detect_order' => self::$encodingList'substitute_character' => 'none''strict_detection' => 'Off',  )
/includes/vendor/symfony/polyfill-mbstring/Mbstring.php:7402$s = \chr(0xF0 $code >> 18) . \chr(0x80 $code >> 12 0x3F) . \chr(0x80 $code >> 0x3F) . \chr(0x80 $code 0x3F)
/includes/functions-formatting.php:6641$result strtr(rawurlencode($result), array('%3B' => ';''%2C' => ',''%2F' => '/''%3F' => '?''%3A' => ':''%40' => '@''%26' => '&''%3D' => '=''%2B' => '+''%24' => '$''%21' => '!''%2A' => '*''%27' => '\'''%28' => '(''%29' => ')''%23' => '#',  ))
/includes/functions.php:4421$binds = ['now' => date('Y-m-d H:i:s'), 'keyword' => yourls_sanitize_keyword($keyword), 'referrer' => substr(yourls_get_referrer( ), 0200), 'ua' => substr(yourls_get_user_agent( ), 0255), 'ip' => $ip'location' => yourls_geo_ip_to_countrycode($ip),  ]
/includes/functions.php:1411$return['links']['link_' $i++] = ['shorturl' => yourls_link($res->keyword), 'url' => $res->url'title' => $res->title'timestamp' => $res->timestamp'ip' => $res->ip'clicks' => $res->clicks,  ]
/includes/functions-http.php:4061if(!empty($checks->last_result) AND (($checks->failed_attempts == && ((time( ) - $checks->last_attempt) < 24 3600)) OR ($checks->failed_attempts && ((time( ) - $checks->last_attempt) < 3600))) AND ($checks->version_checked == YOURLS_VERSION))  /**/
/includes/vendor/composer/ca-bundle/src/CaBundle.php:2791if(count($output) === && $output[0] === sprintf('string(%d) "%s"'strlen(PHP_VERSION), PHP_VERSION) && $output[1] === 'string(27) "stefan.esser@sektioneins.de"' && $output[2] === 'int(-1)' && preg_match('{openssl_x509_parse\(\): illegal (?:ASN1 data type for|length in) timestamp in - on line \d+}'$errorOutput)) { /**/ }
/includes/vendor/rmccue/requests/library/Requests/IRI.php:6891if($this->ipath !== '' && ($isauthority && $this->ipath[0] !== '/' || ($this->scheme === null && !$isauthority && strpos($this->ipath':') !== false && (strpos($this->ipath'/') === false true strpos($this->ipath':') < strpos($this->ipath'/'))))) { /**/ }
/includes/vendor/rmccue/requests/library/Requests/IRI.php:6131if(!$valid || $length && $character <= 0x7F || $length && $character <= 0x7FF || $length && $character <= 0xFFFF || $character 0x2D || $character 0xEFFFD || ($character 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || $character === 0x2F || $character 0x39 && $character 0x41 || $character 0x5A && $character 0x61 || $character 0x7A && $character 0x7E || $character 0x7E && $character 0xA0 || $character 0xD7FF && $character 0xF900) { /**/ } else { /**/ }
/includes/vendor/rmccue/requests/library/Requests/IRI.php:4931if(!$valid || $length && $character <= 0x7F || $length && $character <= 0x7FF || $length && $character <= 0xFFFF || ($character 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || ($character 0xD7FF && $character 0xF900 || $character 0xA0 || $character 0xEFFFD) && (!$iprivate || $character 0xE000 || $character 0x10FFFD)) { /**/ }
/includes/vendor/rmccue/requests/library/Requests/IDNAEncoder.php:1931if($length && $character <= 0x7F || $length && $character <= 0x7FF || $length && $character <= 0xFFFF || ($character 0xFFFE) === 0xFFFE || $character >= 0xFDD0 && $character <= 0xFDEF || ($character 0xD7FF && $character 0xF900 || $character 0x20 || $character 0x7E && $character 0xA0 || $character 0xEFFFD)) { /**/ }