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
/src/View/Helper/PaginatorHelper.php:7441array_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:1322$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:5561$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:7341$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:7221$options += ['includeFields' => true'foreignKey' => $this->getForeignKey( ), 'conditions' => [ ], 'fields' => [ ], 'type' => $joinType'table' => $table'finder' => $this->getFinder( ),  ]
/src/Routing/RouteBuilder.php:3581$options += ['connectOptions' => [ ], 'inflect' => 'dasherize''id' => static::ID '|' . static::UUID'only' => [ ], 'actions' => [ ], 'map' => [ ], 'prefix' => null'path' => null,  ]
/src/ORM/EagerLoader.php:5091$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:4981$plainString = (strpos($url'javascript:') === || strpos($url'mailto:') === || strpos($url'tel:') === || strpos($url'sms:') === || strpos($url'#') === || strpos($url'?') === || strpos($url'//') === || strpos($url'://') !== false)
/src/ORM/Behavior/TreeBehavior.php:8441$query $this->_scope($this->_table->query( ))->select([$aliasedPrimaryKey])->where([$this->_table->aliasField($parent) . ' IS' => $parentId])->order($order)->disableHydration( )
/src/ORM/Behavior/TreeBehavior.php:8021$node $this->_scope($this->_table->find( ))->select($fields)->where([$this->_table->aliasField($primaryKey) => $id])->first( )
/src/ORM/Behavior/TreeBehavior.php:7471$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:7331$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:6551$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:6411$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:7341while ($count $target && ($this->_tokens[$position] === ',' || $this->_tokens[$position][0] === T_CONSTANT_ENCAPSED_STRING || $this->_tokens[$position][0] === T_LNUMBER)) { /**/ }
/src/ORM/Behavior/CounterCacheBehavior.php:2451if(isset($this->_ignoreDirty[$assoc->getTarget( )->getRegistryAlias( )][$field]) && $this->_ignoreDirty[$assoc->getTarget( )->getRegistryAlias( )][$field] === true) { /**/ }
/src/ORM/Marshaller.php:5741if((is_scalar($value) && $original === $value) || ($value === null && $original === $value) || (is_object($value) && !($value instanceof EntityInterface) && $original == $value)) { /**/ }
/src/View/Helper/PaginatorHelper.php:5631if(isset($paging['sortDefault'], $paging['directionDefault'], $options['sort'], $options['direction']) && $options['sort'] === $paging['sortDefault'] && strtolower($options['direction']) === strtolower($paging['directionDefault'])) { /**/ }
/src/Console/ConsoleOutput.php:1691if((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:3781if((is_int($value) || $value === '0') || (is_numeric($value) && strpos($value',') === false && substr($value01) !== '0' && strpos($value'e') === false)) { /**/ }
/src/Error/Debug/ConsoleFormatter.php:671if(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:2901elseif(($op === '=' && $prop != $val) || ($op === '!=' && $prop == $val) || ($op === '>' && $prop <= $val) || ($op === '<' && $prop >= $val) || ($op === '>=' && $prop $val) || ($op === '<=' && $prop $val)) { /**/ }
/src/Database/Schema/SqliteSchemaDialect.php:4691if($data['type'] === TableSchema::CONSTRAINT_PRIMARY && count($data['columns']) === && $schema->getColumn($data['columns'][0])['type'] === TableSchema::TYPE_INTEGER) { /**/ }
/src/I18n/RelativeTimeFormatter.php:1561$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:1731$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:3331$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:4181$over $q->newExpr('ROW_NUMBER() OVER')->add('(PARTITION BY')->add($q->newExpr( )->add($distinct)->setConjunction(','))->add($order)->add(')')->setConjunction(' ')
/src/Utility/Text.php:2991$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:4031$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:4491$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:3471$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:2781$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:3261$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:3981$this->_schemaCollection = new CachedCollection(new SchemaCollection($this), empty($this->_config['cacheKeyPrefix']) ? $this->configName( ) : $this->_config['cacheKeyPrefix'], $this->getCacher( ))
/src/Database/Schema/SqliteSchemaDialect.php:4871$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:1841$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:3291$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:3011$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:2221$config += ['params' => $this->params'query' => [ ], 'post' => [ ], 'files' => [ ], 'cookies' => [ ], 'environment' => [ ], 'url' => '''uri' => null'base' => '''webroot' => '''input' => null,  ]
/src/Error/Debug/HtmlFormatter.php:2221$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:1981$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:2011$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:1651$parsedBody Hash::insert($parsedBody, (string) $key, ['tmp_name' => $tmpName'error' => $error'name' => $file->getClientFilename( ), 'type' => $file->getClientMediaType( ), 'size' => $file->getSize( ),  ])
/src/Http/ServerRequestFactory.php:741$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:1391$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:4431$locationUrl $this->buildUrl($location, [ ], ['host' => $url->getHost( ), 'port' => $url->getPort( ), 'scheme' => $url->getScheme( ), 'protocolRelative' => true,  ])
/src/View/Helper/FormHelper.php:14821$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:12661$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:11361$out .= $this->templater( )->format('last', ['url' => $this->generateUrl(['page' => $params['pageCount']], $options['model'], $options['url']), 'text' => $last,  ])
/src/View/Helper/PaginatorHelper.php:11292$out .= $this->templater( )->format('number', ['url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']), 'text' => $this->Number->format($i),  ])
/src/View/Widget/SelectBoxWidget.php:2941$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:1971$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:3011$templateParams = ['attrs' => $templater->formatAttributes($options, ['templateVars']), 'innerAttrs' => $templater->formatAttributes($optionsLink), 'title' => $title'url' => $url'separator' => '''templateVars' => $options['templateVars'] ?? [ ],  ]
/src/View/Helper/HtmlHelper.php:1381$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:10171$query $this->_table->find('all')->where([$config['left'] . ' <' => $entity[$config['left']], $config['right'] . ' >' => $entity[$config['right']],  ])
/src/ORM/Behavior/Translate/EavStrategy.php:2851$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:11191$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:2481$result = ['command' => $this->_command'arguments' => $this->_args'options' => $this->_options'subcommands' => $this->_subcommands'description' => $this->_description'epilog' => $this->_epilog,  ]
/src/View/ViewBuilder.php:5521$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:7441$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:10061$out .= $templater->format('current', ['text' => $this->Number->format($params['page']), 'url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']),  ])
/src/View/Helper/PaginatorHelper.php:10692$out .= $this->templater( )->format('number', ['url' => $this->generateUrl(['page' => $i], $options['model'], $options['url']), 'text' => $this->Number->format($i),  ])
/src/ORM/Association/HasMany.php:6581$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:1892$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'],  ])