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
/system/tests/kohana/request/ClientTest.php:5031json_encode(['body' => Arr::get($data'body''ok'), 'rq_headers' => $this->request->headers( ), 'rq_body' => $this->request->body( ), 'rq_method' => $this->request->method( ),  ])
/system/tests/kohana/request/ClientTest.php:1561$response Request::factory($this->_dummy_redirect_uri(301), ['follow' => TRUE'follow_headers' => ['Authorization''X-Follow-With-Value']])->headers(['Authorization' => 'follow''X-Follow-With-Value' => 'follow''X-Not-In-Follow' => 'no-follow'])->execute( )
/system/tests/kohana/request/ClientTest.php:4601$request Request::factory($this->_dummy_uri(302, ['Location' => $this->_dummy_uri('200', ['X-cb' => '1'], 'followed')], 'not-followed'), ['follow' => TRUE'header_callbacks' => ['x-cb' => [$this'callback_assert_params'], 'location' => 'Request_Client::on_header_location',  ], 'callback_params' => ['constructor_param' => 'foo']])
/system/tests/kohana/RequestTest.php:4811$result = [[new Request('http://www.google.com'), 'http://www.google.com'], [new Request('http://www.google.com/'), 'http://www.google.com/'], [new Request('foo/bar/'), 'foo/bar'], [new Request('foo/bar'), 'foo/bar'], [new Request('/0'), '0'], [new Request('0'), '0'], [new Request('/'), '/'], [new Request(''), '/']]
/system/tests/kohana/ArrTest.php:4081$array = ['foobar' => ['definition' => 'lost'], 'kohana' => 'awesome''users' => [=> ['name' => 'matt'], => ['name' => 'john''interests' => ['hocky' => ['length' => 2], 'football' => [ ]]], => 'frank',  ], 'object' => new ArrayObject(['iterator' => TRUE]),  ]
/modules/codebench/classes/Kohana/Codebench.php:701$codebench = ['class' => get_class($this), 'description' => $this->description'loops' => ['base' => (int) $this->loops'total' => (int) $this->loops count($this->subjects) * count($methods),  ], 'subjects' => $this->subjects'benchmarks' => [ ],  ]
/modules/userguide/vendor/markdown/markdown.php:4581$text preg_replace_callback('{(?>
            (?>
                (?<=\n\n)        # Starting after a blank line
                |                # or
                \A\n?            # the beginning of the doc
            )
            (                        # save in $1

              # Match from `\n<tag>` to `</tag>\n`, handling nested tags 
              # in between.
                    
                        [ ]{0,' 
$less_than_tab '}
                        <(' 
$block_tags_b_re ')# start tag = $2
                        ' 
$attr '>            # attributes followed by > and \n
                        ' 
$content '        # content, support nesting
                        </\2>                # the matching end tag
                        [ ]*                # trailing spaces/tabs
                        (?=\n+|\Z)    # followed by a newline or end of document

            | # Special version for tags of group a.

                        [ ]{0,' 
$less_than_tab '}
                        <(' 
$block_tags_a_re ')# start tag = $3
                        ' 
$attr '>[ ]*\n    # attributes followed by >
                        ' 
$content2 '        # content, support nesting
                        </\3>                # the matching end tag
                        [ ]*                # trailing spaces/tabs
                        (?=\n+|\Z)    # followed by a newline or end of document
                    
            | # Special case just for <hr />. It was easier to make a special 
              # case than to make the other regex more complicated.
            
                        [ ]{0,' 
$less_than_tab '}
                        <(hr)                # start tag = $2
                        ' 
$attr '            # attributes
                        /?>                    # the matching end tag
                        [ ]*
                        (?=\n{2,}|\Z)        # followed by a blank line or end of document
            
            | # Special case for standalone HTML comments:
            
                    [ ]{0,' 
$less_than_tab '}
                    (?s:
                        <!-- .*? -->
                    )
                    [ ]*
                    (?=\n{2,}|\Z)        # followed by a blank line or end of document
            
            | # PHP and ASP-style processor instructions (<? and <%)
            
                    [ ]{0,' 
$less_than_tab '}
                    (?s:
                        <([?%])            # $2
                        .*?
                        \2>
                    )
                    [ ]*
                    (?=\n{2,}|\Z)        # followed by a blank line or end of document
                    
            )
            )}Sxmi'
, [&$this'_hashHTMLBlocks_callback'], $text)
/system/classes/Kohana/Debug.php:4511$output[] = ['function' => $function'args' => isset($args) ? $args NULL'file' => isset($file) ? $file NULL'line' => isset($line) ? $line NULL'source' => isset($source) ? $source NULL,  ]
/system/classes/Kohana/Log.php:1571$this->_messages[] = ['time' => time( ), 'level' => $level'body' => $message'trace' => $trace'file' => isset($trace[0]['file']) ? $trace[0]['file'] : NULL'line' => isset($trace[0]['line']) ? $trace[0]['line'] : NULL'class' => isset($trace[0]['class']) ? $trace[0]['class'] : NULL'function' => isset($trace[0]['function']) ? $trace[0]['function'] : NULL'additional' => $additional,  ]
/modules/database/classes/Kohana/Session/Database.php:1491$query DB::update($this->_table)->value($this->_columns['last_active'], ':active')->value($this->_columns['contents'], ':contents')->where($this->_columns['session_id'], '='':old_id')
/modules/database/classes/Kohana/Session/Database.php:1191$query DB::select($this->_columns['session_id'])->from($this->_table)->where($this->_columns['session_id'], '='':id')->limit(1)->bind(':id'$id)
/modules/database/classes/Kohana/Session/Database.php:931$result DB::select([$this->_columns['contents'], 'contents'])->from($this->_table)->where($this->_columns['session_id'], '='':id')->limit(1)->param(':id'$id)->execute($this->_db)
/modules/userguide/classes/Kohana/Controller/Userguide.php:2851$this->template->scripts = [$media->uri(['file' => 'js/jquery.min.js']), $media->uri(['file' => 'js/jquery.cookie.js']), $media->uri(['file' => 'js/kodoc.js']), $media->uri(['file' => 'js/shCore.js']), $media->uri(['file' => 'js/shBrushPhp.js']),  ]
/modules/userguide/classes/Kohana/Controller/Userguide.php:2761$this->template->styles = [$media->uri(['file' => 'css/print.css']) => 'print'$media->uri(['file' => 'css/screen.css']) => 'screen'$media->uri(['file' => 'css/kodoc.css']) => 'screen'$media->uri(['file' => 'css/shCore.css']) => 'screen'$media->uri(['file' => 'css/shThemeKodoc.css']) => 'screen',  ]
/modules/userguide/classes/Kohana/Controller/Userguide.php:741$this->template->breadcrumb = [$this->guide->uri( ) => 'User Guide'$this->guide->uri(['module' => $module]) => Kohana::$config->load('userguide.modules.' $module '.name'), 'Error']
/modules/userguide/vendor/markdown/markdown.php:18301$block_tag_re '{
                (                    # $2: Capture hole tag.
                    </?                    # Any opening or closing tag.
                        (?>                # Tag name.
                            ' 
$this->block_tags_re '            |
                            ' 
$this->context_block_tags_re '    |
                            ' 
$this->clean_tags_re '            |
                            (?!\s)' 
$enclosing_tag_re '
                        )
                        (?:
                            (?=[\s"\'/a-zA-Z0-9])    # Allowed characters after tag name.
                            (?>
                                ".*?"        |    # Double quotes (can contain `>`)
                                \'.*?\'       |    # Single quotes (can contain `>`)
                                .+?                # Anything but quotes and `>`.
                            )*?
                        )?
                    >                    # End of tag.
                |
                    <!--    .*?     -->    # HTML Comment
                |
                    <\?.*?\?> | <%.*?%>    # Processing instruction
                |
                    <!\[CDATA\[.*?\]\]>    # CData Block
                |
                    # Code span marker
                    `+
                ' 
. (!$span ' # If not in span.
                |
                    # Indented code block
                    (?> ^[ ]*\n? | \n[ ]*\n )
                    [ ]{' 
. ($indent 4) . '}[^\n]* \n
                    (?>
                        (?: [ ]{' 
. ($indent 4) . '}[^\n]* | [ ]* ) \n
                    )*
                |
                    # Fenced code block marker
                    (?> ^ | \n )
                    [ ]{' 
. ($indent) . '}~~~+[ ]*\n
                ' 
'') . ' # End (if not is span).
                )
            }xs'
/modules/orm/classes/Kohana/ORM.php:18251$records $this->_db_builder->from([$this->_table_name$this->_object_name])->select([DB::expr('COUNT(' $this->_db->quote_column($this->_object_name '.' $this->_primary_key) . ')'), 'records_found'])->execute($this->_db)->get('records_found')
/modules/orm/classes/Kohana/ORM.php:17181$count = (int) DB::select([DB::expr('COUNT(*)'), 'records_found'])->from($this->_has_many[$alias]['through'])->where($this->_has_many[$alias]['foreign_key'], '='$this->pk( ))->where($this->_has_many[$alias]['far_key'], 'IN'$far_keys)->execute($this->_db)->get('records_found')
/modules/orm/classes/ORM/Behavior/Guid.php:891$current_guid sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x'mt_rand(00xffff), mt_rand(00xffff), mt_rand(00xffff), mt_rand(00x0fff) | 0x4000mt_rand(00x3fff) | 0x8000mt_rand(00xffff), mt_rand(00xffff), mt_rand(00xffff))
/modules/orm/classes/ORM/Behavior/Slug.php:881$query DB::select( )->from($model->table_name( ))->where($this->_slug_column'='':slug')->where($model->primary_key( ), '!='$model->pk( ))->limit(1)
/system/utf8/to_unicode.php:1081if(((== $m_bytes) AND ($m_ucs4 0x0080)) OR ((== $m_bytes) AND ($m_ucs4 0x0800)) OR ((== $m_bytes) AND ($m_ucs4 0x10000)) OR ($m_bytes) OR (($m_ucs4 0xFFFFF800) == 0xD800) OR ($m_ucs4 0x10FFFF)) { /**/ }
/modules/cache/classes/Kohana/Cache/Memcache.php:1561if(!$this->_memcache->addServer($server['host'], $server['port'], $server['persistent'], $server['weight'], $server['timeout'], $server['retry_interval'], $server['status'], $server['failure_callback'])) { /**/ }
/system/classes/Kohana/Request.php:751if((!empty($_SERVER['HTTPS']) AND filter_var($_SERVER['HTTPS'], FILTER_VALIDATE_BOOLEAN)) OR (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) AND $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') AND in_array($_SERVER['REMOTE_ADDR'], Request::$trusted_proxies)) { /**/ }