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/View/Helper/PaginatorHelper.php:744 | 1 | array_map([$this->Number, 'format'], ['page' => $paging['page'], 'pages' => $paging['pageCount'], 'current' => $paging['current'], 'count' => $paging['count'], 'start' => $paging['start'], 'end' => $paging['end'], ]) |
/src/ORM/Association/HasOne.php:132 | 2 | $loader = new SelectLoader(['alias' => $this->getAlias( ), 'sourceAlias' => $this->getSource( )->getAlias( ), 'targetAlias' => $this->getTarget( )->getAlias( ), 'foreignKey' => $this->getForeignKey( ), 'bindingKey' => $this->getBindingKey( ), 'strategy' => $this->getStrategy( ), 'associationType' => $this->type( ), 'finder' => [$this, 'find'], ]) |
/src/ORM/Association/BelongsToMany.php:556 | 1 | $loader = new SelectWithPivotLoader(['alias' => $this->getAlias( ), 'sourceAlias' => $this->getSource( )->getAlias( ), 'targetAlias' => $this->getTarget( )->getAlias( ), 'foreignKey' => $this->getForeignKey( ), 'bindingKey' => $this->getBindingKey( ), 'strategy' => $this->getStrategy( ), 'associationType' => $this->type( ), 'sort' => $this->getSort( ), 'junctionAssociationName' => $name, 'junctionProperty' => $this->_junctionProperty, 'junctionAssoc' => $this->getTarget( )->getAssociation($name), 'junctionConditions' => $this->junctionConditions( ), 'finder' => function ( ) { /**/ } , ]) |
/src/ORM/EagerLoader.php:734 | 1 | $map[] = ['alias' => $assoc, 'instance' => $instance, 'canBeJoined' => $canBeJoined, 'entityClass' => $instance->getTarget( )->getEntityClass( ), 'nestKey' => $canBeJoined ? $assoc : $meta->aliasPath( ), 'matching' => $forMatching ?? $matching, 'targetProperty' => $meta->targetProperty( ), ] |
/src/ORM/Association.php:722 | 1 | $options += ['includeFields' => true, 'foreignKey' => $this->getForeignKey( ), 'conditions' => [ ], 'fields' => [ ], 'type' => $joinType, 'table' => $table, 'finder' => $this->getFinder( ), ] |
/src/Routing/RouteBuilder.php:358 | 1 | $options += ['connectOptions' => [ ], 'inflect' => 'dasherize', 'id' => static::ID . '|' . static::UUID, 'only' => [ ], 'actions' => [ ], 'map' => [ ], 'prefix' => null, 'path' => null, ] |
/src/ORM/EagerLoader.php:509 | 1 | $config = ['associations' => [ ], 'instance' => $instance, 'config' => array_diff_key($options, $extra), 'aliasPath' => trim($paths['aliasPath'], '.'), 'propertyPath' => trim($paths['propertyPath'], '.'), 'targetProperty' => $instance->getProperty( ), ] |
/src/Routing/Router.php:498 | 1 | $plainString = (strpos($url, 'javascript:') === 0 || strpos($url, 'mailto:') === 0 || strpos($url, 'tel:') === 0 || strpos($url, 'sms:') === 0 || strpos($url, '#') === 0 || strpos($url, '?') === 0 || strpos($url, '//') === 0 || strpos($url, '://') !== false) |
/src/ORM/Behavior/TreeBehavior.php:844 | 1 | $query = $this->_scope($this->_table->query( ))->select([$aliasedPrimaryKey])->where([$this->_table->aliasField($parent) . ' IS' => $parentId])->order($order)->disableHydration( ) |
/src/ORM/Behavior/TreeBehavior.php:802 | 1 | $node = $this->_scope($this->_table->find( ))->select($fields)->where([$this->_table->aliasField($primaryKey) => $id])->first( ) |
/src/ORM/Behavior/TreeBehavior.php:747 | 1 | $targetNode = $this->_scope($this->_table->find( ))->select([$left, $right])->where(["$parent IS" => $nodeParent])->where(function ($exp) use ($config, $nodeRight) { /**/ } )->orderDesc($config['leftField'])->limit(1)->first( ) |
/src/ORM/Behavior/TreeBehavior.php:733 | 1 | $targetNode = $this->_scope($this->_table->find( ))->select([$left, $right])->where(["$parent IS" => $nodeParent])->where(function ($exp) use ($config, $nodeRight) { /**/ } )->orderAsc($config['leftField'])->offset($number - 1)->limit(1)->first( ) |
/src/ORM/Behavior/TreeBehavior.php:655 | 1 | $targetNode = $this->_scope($this->_table->find( ))->select([$left, $right])->where(["$parent IS" => $nodeParent])->where(function ($exp) use ($config, $nodeLeft) { /**/ } )->orderAsc($config['leftField'])->limit(1)->first( ) |
/src/ORM/Behavior/TreeBehavior.php:641 | 1 | $targetNode = $this->_scope($this->_table->find( ))->select([$left, $right])->where(["$parent IS" => $nodeParent])->where(function ($exp) use ($config, $nodeLeft) { /**/ } )->orderDesc($config['leftField'])->offset($number - 1)->limit(1)->first( ) |
/src/Command/I18nExtractCommand.php:734 | 1 | while ($count < $target && ($this->_tokens[$position] === ',' || $this->_tokens[$position][0] === T_CONSTANT_ENCAPSED_STRING || $this->_tokens[$position][0] === T_LNUMBER)) { /**/ } |
/src/ORM/Behavior/CounterCacheBehavior.php:245 | 1 | if(isset($this->_ignoreDirty[$assoc->getTarget( )->getRegistryAlias( )][$field]) && $this->_ignoreDirty[$assoc->getTarget( )->getRegistryAlias( )][$field] === true) { /**/ } |
/src/ORM/Marshaller.php:574 | 1 | if((is_scalar($value) && $original === $value) || ($value === null && $original === $value) || (is_object($value) && !($value instanceof EntityInterface) && $original == $value)) { /**/ } |
/src/View/Helper/PaginatorHelper.php:563 | 1 | if(isset($paging['sortDefault'], $paging['directionDefault'], $options['sort'], $options['direction']) && $options['sort'] === $paging['sortDefault'] && strtolower($options['direction']) === strtolower($paging['directionDefault'])) { /**/ } |
/src/Console/ConsoleOutput.php:169 | 1 | if((DIRECTORY_SEPARATOR === '\\' && strpos(strtolower(php_uname('v')), 'windows 10') === false && strpos(strtolower((string) env('SHELL')), 'bash.exe') === false && !(bool) env('ANSICON') && env('ConEmuANSI') !== 'ON') || (function_exists('posix_isatty') && !posix_isatty($this->_output)) || (env('NO_COLOR') !== null)) { /**/ } |
/src/Database/Driver.php:378 | 1 | if((is_int($value) || $value === '0') || (is_numeric($value) && strpos($value, ',') === false && substr($value, 0, 1) !== '0' && strpos($value, 'e') === false)) { /**/ } |
/src/Error/Debug/ConsoleFormatter.php:67 | 1 | if(DIRECTORY_SEPARATOR === '\\' && strpos(strtolower(php_uname('v')), 'windows 10') === false && strpos(strtolower((string) env('SHELL')), 'bash.exe') === false && !(bool) env('ANSICON') && env('ConEmuANSI') !== 'ON') { /**/ } |
/src/Utility/Hash.php:290 | 1 | elseif(($op === '=' && $prop != $val) || ($op === '!=' && $prop == $val) || ($op === '>' && $prop <= $val) || ($op === '<' && $prop >= $val) || ($op === '>=' && $prop < $val) || ($op === '<=' && $prop > $val)) { /**/ } |
/src/Database/Schema/SqliteSchemaDialect.php:469 | 1 | if($data['type'] === TableSchema::CONSTRAINT_PRIMARY && count($data['columns']) === 1 && $schema->getColumn($data['columns'][0])['type'] === TableSchema::TYPE_INTEGER) { /**/ } |
/src/I18n/RelativeTimeFormatter.php:156 | 1 | $aboutAgo = ['second' => __d('cake', 'about a second ago'), 'minute' => __d('cake', 'about a minute ago'), 'hour' => __d('cake', 'about an hour ago'), 'day' => __d('cake', 'about a day ago'), 'week' => __d('cake', 'about a week ago'), 'month' => __d('cake', 'about a month ago'), 'year' => __d('cake', 'about a year ago'), ] |
/src/I18n/RelativeTimeFormatter.php:173 | 1 | $aboutIn = ['second' => __d('cake', 'in about a second'), 'minute' => __d('cake', 'in about a minute'), 'hour' => __d('cake', 'in about an hour'), 'day' => __d('cake', 'in about a day'), 'week' => __d('cake', 'in about a week'), 'month' => __d('cake', 'in about a month'), 'year' => __d('cake', 'in about a year'), ] |
/src/Database/Schema/SqlserverSchemaDialect.php:333 | 1 | $data = ['type' => TableSchema::CONSTRAINT_FOREIGN, 'columns' => [$row['column']], 'references' => [$row['reference_table'], $row['reference_column']], 'update' => $this->_convertOnClause($row['update_type']), 'delete' => $this->_convertOnClause($row['delete_type']), ] |
/src/Database/Driver/Sqlserver.php:418 | 1 | $over = $q->newExpr('ROW_NUMBER() OVER')->add('(PARTITION BY')->add($q->newExpr( )->add($distinct)->setConjunction(','))->add($order)->add(')')->setConjunction(' ') |
/src/Utility/Text.php:299 | 1 | $kleenex = sprintf('/(%s%s%s%s|%s%s%s%s)/', preg_quote($options['before'], '/'), $clean['word'], preg_quote($options['after'], '/'), $clean['gap'], $clean['gap'], preg_quote($options['before'], '/'), $clean['word'], preg_quote($options['after'], '/')) |
/src/I18n/RelativeTimeFormatter.php:403 | 1 | $options += ['from' => $class::now( ), 'timezone' => null, 'format' => $class::$wordFormat, 'accuracy' => $class::$wordAccuracy, 'end' => $class::$wordEnd, 'relativeString' => __d('cake', '%s ago'), 'absoluteString' => __d('cake', 'on %s'), ] |
/src/Controller/Component/AuthComponent.php:449 | 1 | $defaults = ['authenticate' => ['Form'], 'flash' => ['element' => 'error', 'key' => 'flash', 'params' => ['class' => 'error'], ], 'loginAction' => ['controller' => 'Users', 'action' => 'login', 'plugin' => null, ], 'logoutRedirect' => $this->_config['loginAction'], 'authError' => __d('cake', 'You are not authorized to access that location.'), ] |
/src/Database/Schema/PostgresSchemaDialect.php:347 | 1 | $data = ['type' => TableSchema::CONSTRAINT_FOREIGN, 'columns' => $row['column_name'], 'references' => [$row['references_table'], $row['references_field']], 'update' => $this->_convertOnClause($row['on_update']), 'delete' => $this->_convertOnClause($row['on_delete']), ] |
/src/Database/Schema/MysqlSchemaDialect.php:278 | 1 | $data = ['type' => TableSchema::CONSTRAINT_FOREIGN, 'columns' => [$row['COLUMN_NAME']], 'references' => [$row['REFERENCED_TABLE_NAME'], $row['REFERENCED_COLUMN_NAME']], 'update' => $this->_convertOnClause($row['UPDATE_RULE']), 'delete' => $this->_convertOnClause($row['DELETE_RULE']), ] |
/src/Http/Middleware/CsrfProtectionMiddleware.php:326 | 1 | $cookie = Cookie::create($this->_config['cookieName'], $value, ['expires' => $this->_config['expiry'] ?: null, 'path' => $request->getAttribute('webroot'), 'secure' => $this->_config['secure'], 'httponly' => $this->_config['httponly'], 'samesite' => $this->_config['samesite'], ]) |
/src/Database/Connection.php:398 | 1 | $this->_schemaCollection = new CachedCollection(new SchemaCollection($this), empty($this->_config['cacheKeyPrefix']) ? $this->configName( ) : $this->_config['cacheKeyPrefix'], $this->getCacher( )) |
/src/Database/Schema/SqliteSchemaDialect.php:487 | 1 | $clause = sprintf(' REFERENCES %s (%s) ON UPDATE %s ON DELETE %s', $this->_driver->quoteIdentifier($data['references'][0]), $this->_convertConstraintColumns($data['references'][1]), $this->_foreignOnClause($data['update']), $this->_foreignOnClause($data['delete'])) |
/src/Database/Schema/SqlserverSchemaDialect.php:184 | 1 | $field = $this->_convertColumn($row['type'], $row['char_length'] !== null ? (int) $row['char_length'] : null, $row['precision'] !== null ? (int) $row['precision'] : null, $row['scale'] !== null ? (int) $row['scale'] : null) |
/src/Database/Schema/MysqlSchemaDialect.php:329 | 1 | $typeMap = [TableSchema::TYPE_TINYINTEGER => ' TINYINT', TableSchema::TYPE_SMALLINTEGER => ' SMALLINT', TableSchema::TYPE_INTEGER => ' INTEGER', TableSchema::TYPE_BIGINTEGER => ' BIGINT', TableSchema::TYPE_BINARY_UUID => ' BINARY(16)', TableSchema::TYPE_BOOLEAN => ' BOOLEAN', TableSchema::TYPE_FLOAT => ' FLOAT', TableSchema::TYPE_DECIMAL => ' DECIMAL', TableSchema::TYPE_DATE => ' DATE', TableSchema::TYPE_TIME => ' TIME', TableSchema::TYPE_DATETIME => ' DATETIME', TableSchema::TYPE_DATETIME_FRACTIONAL => ' DATETIME', TableSchema::TYPE_TIMESTAMP => ' TIMESTAMP', TableSchema::TYPE_TIMESTAMP_FRACTIONAL => ' TIMESTAMP', TableSchema::TYPE_TIMESTAMP_TIMEZONE => ' TIMESTAMP', TableSchema::TYPE_CHAR => ' CHAR', TableSchema::TYPE_UUID => ' CHAR(36)', TableSchema::TYPE_JSON => $nativeJson ? ' JSON' : ' LONGTEXT', ] |
/src/Database/Schema/SqliteSchemaDialect.php:301 | 1 | $data = ['type' => TableSchema::CONSTRAINT_FOREIGN, 'columns' => [$row['from']], 'references' => [$row['table'], $row['to']], 'update' => $this->_convertOnClause($update), 'delete' => $this->_convertOnClause($delete), ] |
/src/Http/ServerRequest.php:222 | 1 | $config += ['params' => $this->params, 'query' => [ ], 'post' => [ ], 'files' => [ ], 'cookies' => [ ], 'environment' => [ ], 'url' => '', 'uri' => null, 'base' => '', 'webroot' => '', 'input' => null, ] |
/src/Error/Debug/HtmlFormatter.php:222 | 1 | $out .= $this->style('punct', 'object(') . $this->style('class', $var->getValue( )) . $this->style('punct', ') id:') . $this->style('number', (string) $var->getId( )) . $this->style('punct', ' {') . '<samp class="cake-dbg-object-props">' |
/src/Error/Debug/ConsoleFormatter.php:198 | 1 | $out = $this->style('punct', 'object(') . $this->style('class', $var->getValue( )) . $this->style('punct', ') id:') . $this->style('number', (string) $var->getId( )) . $this->style('punct', ' {') |
/src/View/Widget/RadioWidget.php:201 | 1 | $input = $this->_templates->format('radio', ['name' => $radio['name'], 'value' => $escape ? h($radio['value']) : $radio['value'], 'templateVars' => $radio['templateVars'], 'attrs' => $this->_templates->formatAttributes($radio + $data, ['name', 'value', 'text', 'options', 'label', 'val', 'type']), ]) |
/src/Http/ServerRequestFactory.php:165 | 1 | $parsedBody = Hash::insert($parsedBody, (string) $key, ['tmp_name' => $tmpName, 'error' => $error, 'name' => $file->getClientFilename( ), 'type' => $file->getClientMediaType( ), 'size' => $file->getSize( ), ]) |
/src/Http/ServerRequestFactory.php:74 | 1 | $request = new ServerRequest(['environment' => $server, 'uri' => $uri, 'cookies' => $cookies ?: $_COOKIE, 'query' => $query ?: $_GET, 'webroot' => $uri->webroot, 'base' => $uri->base, 'session' => $session, 'input' => $server['CAKEPHP_INPUT'] ?? null, ]) |
/src/Http/Session.php:139 | 1 | $defaults = ['php' => ['ini' => ['session.use_trans_sid' => 0, ], ], 'cake' => ['ini' => ['session.use_trans_sid' => 0, 'session.serialize_handler' => 'php', 'session.use_cookies' => 1, 'session.save_path' => $tmp . 'sessions', 'session.save_handler' => 'files', ], ], 'cache' => ['ini' => ['session.use_trans_sid' => 0, 'session.use_cookies' => 1, ], 'handler' => ['engine' => 'CacheSession', 'config' => 'default', ], ], 'database' => ['ini' => ['session.use_trans_sid' => 0, 'session.use_cookies' => 1, 'session.serialize_handler' => 'php', ], 'handler' => ['engine' => 'DatabaseSession', ], ], ] |
/src/Http/Client.php:443 | 1 | $locationUrl = $this->buildUrl($location, [ ], ['host' => $url->getHost( ), 'port' => $url->getPort( ), 'scheme' => $url->getScheme( ), 'protocolRelative' => true, ]) |
/src/View/Helper/FormHelper.php:1482 | 1 | $hiddenOptions = ['name' => $options['name'], 'value' => $options['hiddenField'] !== true && $options['hiddenField'] !== '_split' ? $options['hiddenField'] : '0', 'form' => $options['form'] ?? null, 'secure' => false, ] |
/src/View/Helper/PaginatorHelper.php:1266 | 1 | $out .= $this->Form->control('limit', $options + ['type' => 'select', 'label' => __('View'), 'default' => $default, 'value' => $this->_View->getRequest( )->getQuery('limit'), 'options' => $limits, 'onChange' => 'this.form.submit()', ]) |
/src/View/Helper/PaginatorHelper.php:1136 | 1 | $out .= $this->templater( )->format('last', ['url' => $this->generateUrl(['page' => $params['pageCount']], $options['model'], $options['url']), 'text' => $last, ]) |
/src/View/Helper/PaginatorHelper.php:1129 | 2 | $out .= $this->templater( )->format('number', ['url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']), 'text' => $this->Number->format($i), ]) |
/src/View/Widget/SelectBoxWidget.php:294 | 1 | $out[] = $this->_templates->format('option', ['value' => $escape ? h($optAttrs['value']) : $optAttrs['value'], 'text' => $escape ? h($optAttrs['text']) : $optAttrs['text'], 'templateVars' => $optAttrs['templateVars'], 'attrs' => $this->_templates->formatAttributes($optAttrs, ['text', 'value']), ]) |
/src/View/Widget/MultiCheckboxWidget.php:197 | 1 | $input = $this->_templates->format('checkbox', ['name' => $checkbox['name'] . '[]', 'value' => $checkbox['escape'] ? h($checkbox['value']) : $checkbox['value'], 'templateVars' => $checkbox['templateVars'], 'attrs' => $this->_templates->formatAttributes($checkbox, ['name', 'value', 'text', 'options', 'label', 'val', 'type']), ]) |
/src/View/Helper/BreadcrumbsHelper.php:301 | 1 | $templateParams = ['attrs' => $templater->formatAttributes($options, ['templateVars']), 'innerAttrs' => $templater->formatAttributes($optionsLink), 'title' => $title, 'url' => $url, 'separator' => '', 'templateVars' => $options['templateVars'] ?? [ ], ] |
/src/View/Helper/HtmlHelper.php:138 | 1 | $types = ['rss' => ['type' => 'application/rss+xml', 'rel' => 'alternate', 'title' => $type, 'link' => $content], 'atom' => ['type' => 'application/atom+xml', 'title' => $type, 'link' => $content], 'icon' => ['type' => 'image/x-icon', 'rel' => 'icon', 'link' => $content], 'keywords' => ['name' => 'keywords', 'content' => $content], 'description' => ['name' => 'description', 'content' => $content], 'robots' => ['name' => 'robots', 'content' => $content], 'viewport' => ['name' => 'viewport', 'content' => $content], 'canonical' => ['rel' => 'canonical', 'link' => $content], 'next' => ['rel' => 'next', 'link' => $content], 'prev' => ['rel' => 'prev', 'link' => $content], 'first' => ['rel' => 'first', 'link' => $content], 'last' => ['rel' => 'last', 'link' => $content], ] |
/src/ORM/Behavior/TreeBehavior.php:1017 | 1 | $query = $this->_table->find('all')->where([$config['left'] . ' <' => $entity[$config['left']], $config['right'] . ' >' => $entity[$config['right']], ]) |
/src/ORM/Behavior/Translate/EavStrategy.php:285 | 1 | $preexistent = $this->translationTable->find( )->select(['id', 'field'])->where(['field IN' => $fields, 'locale' => $locale, 'foreign_key' => $key, 'model' => $model, ])->disableBufferedResults( )->all( )->indexBy('field') |
/src/Validation/Validation.php:1119 | 1 | $regex = '/^(?:(?:https?|ftps?|sftp|file|news|gopher):\/\/)' . ($strict ? '' : '?') . '(?:' . static::$_pattern['IPv4'] . '|\[' . static::$_pattern['IPv6'] . '\]|' . static::$_pattern['hostname'] . ')(?::[1-9][0-9]{0,4})?' . '(?:\/' . $path . '*)?' . '(?:\?' . $fragmentAndQuery . '*)?' . '(?:#' . $fragmentAndQuery . '*)?$/iu' |
/src/Console/ConsoleOptionParser.php:248 | 1 | $result = ['command' => $this->_command, 'arguments' => $this->_args, 'options' => $this->_options, 'subcommands' => $this->_subcommands, 'description' => $this->_description, 'epilog' => $this->_epilog, ] |
/src/View/ViewBuilder.php:552 | 1 | $data = ['name' => $this->_name, 'templatePath' => $this->_templatePath, 'template' => $this->_template, 'plugin' => $this->_plugin, 'theme' => $this->_theme, 'layout' => $this->_layout, 'autoLayout' => $this->_autoLayout, 'layoutPath' => $this->_layoutPath, 'helpers' => $this->_helpers, 'viewVars' => $vars + $this->_vars, ] |
/src/View/Helper/PaginatorHelper.php:744 | 1 | $map = array_map([$this->Number, 'format'], ['page' => $paging['page'], 'pages' => $paging['pageCount'], 'current' => $paging['current'], 'count' => $paging['count'], 'start' => $paging['start'], 'end' => $paging['end'], ]) |
/src/View/Helper/PaginatorHelper.php:1006 | 1 | $out .= $templater->format('current', ['text' => $this->Number->format($params['page']), 'url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']), ]) |
/src/View/Helper/PaginatorHelper.php:1069 | 2 | $out .= $this->templater( )->format('number', ['url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']), 'text' => $this->Number->format($i), ]) |
/src/ORM/Association/HasMany.php:658 | 1 | $loader = new SelectLoader(['alias' => $this->getAlias( ), 'sourceAlias' => $this->getSource( )->getAlias( ), 'targetAlias' => $this->getTarget( )->getAlias( ), 'foreignKey' => $this->getForeignKey( ), 'bindingKey' => $this->getBindingKey( ), 'strategy' => $this->getStrategy( ), 'associationType' => $this->type( ), 'sort' => $this->getSort( ), 'finder' => [$this, 'find'], ]) |
/src/ORM/Association/BelongsTo.php:189 | 2 | $loader = new SelectLoader(['alias' => $this->getAlias( ), 'sourceAlias' => $this->getSource( )->getAlias( ), 'targetAlias' => $this->getTarget( )->getAlias( ), 'foreignKey' => $this->getForeignKey( ), 'bindingKey' => $this->getBindingKey( ), 'strategy' => $this->getStrategy( ), 'associationType' => $this->type( ), 'finder' => [$this, 'find'], ]) |