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/src/Grav/Common/Processors/RequestProcessor.php:36 | 1 | $request = $request->withAttribute('grav', $this->container)->withAttribute('time', $_SERVER['REQUEST_TIME_FLOAT'] ?? GRAV_REQUEST_TIME)->withAttribute('route', Uri::getCurrentRoute( )->withExtension($ext))->withAttribute('referrer', $this->container['uri']->referrer( )) |
/system/src/Grav/Common/Grav.php:210 | 1 | $container = new Container(['configurationProcessor' => function ( ) { /**/ } , 'loggerProcessor' => function ( ) { /**/ } , 'errorsProcessor' => function ( ) { /**/ } , 'debuggerProcessor' => function ( ) { /**/ } , 'initializeProcessor' => function ( ) { /**/ } , 'backupsProcessor' => function ( ) { /**/ } , 'pluginsProcessor' => function ( ) { /**/ } , 'themesProcessor' => function ( ) { /**/ } , 'schedulerProcessor' => function ( ) { /**/ } , 'requestProcessor' => function ( ) { /**/ } , 'tasksProcessor' => function ( ) { /**/ } , 'assetsProcessor' => function ( ) { /**/ } , 'twigProcessor' => function ( ) { /**/ } , 'pagesProcessor' => function ( ) { /**/ } , 'debuggerAssetsProcessor' => function ( ) { /**/ } , 'renderProcessor' => function ( ) { /**/ } , ]) |
/system/src/Grav/Common/Data/Validation.php:45 | 1 | $message = (string) isset($field['validate']['message']) ? $language->translate($field['validate']['message']) : $language->translate('GRAV.FORM.INVALID_INPUT', null, true) . ' "' . $language->translate($name) . '"' |
/system/src/Grav/Common/Backup/Backups.php:74 | 1 | $url = rtrim(Grav::instance( )['uri']->rootUrl(true), '/') . '/' . trim($base_url, '/') . '/task' . $param_sep . 'backup/download' . $param_sep . $download . '/admin-nonce' . $param_sep . Utils::getNonce('admin-form') |
/system/src/Grav/Console/Gpm/IndexCommand.php:125 | 1 | $row = ['Count' => $index++ + 1, 'Name' => '<cyan>' . Utils::truncate($package->name, 20, false, ' ', '...') . '</cyan> ', 'Slug' => $slug, 'Version' => $this->version($package), 'Installed' => $this->installed($package)] |
/system/src/Grav/Common/Utils.php:469 | 1 | $date_formats = ['d-m-Y H:i' => 'd-m-Y H:i (e.g. ' . $now->format('d-m-Y H:i') . ')', 'Y-m-d H:i' => 'Y-m-d H:i (e.g. ' . $now->format('Y-m-d H:i') . ')', 'm/d/Y h:i a' => 'm/d/Y h:i a (e.g. ' . $now->format('m/d/Y h:i a') . ')', 'H:i d-m-Y' => 'H:i d-m-Y (e.g. ' . $now->format('H:i d-m-Y') . ')', 'h:i a m/d/Y' => 'h:i a m/d/Y (e.g. ' . $now->format('h:i a m/d/Y') . ')', ] |
/system/src/Grav/Console/Cli/SchedulerCommand.php:91 | 1 | $row = [$job->getId( ), "<white>{$job->getCommand( )}</white>", "<magenta>{$job->getAt( )}</magenta>", $status, '<yellow>' . ($last_run === 0 ? 'Never' : date('Y-m-d H:i', $last_run)) . '</yellow>', $state, ] |
/system/src/Grav/Common/User/FlexUser/User.php:663 | 1 | $list[$filename] = ['name' => $filename, 'type' => $info['type'], 'size' => $info['size'], 'image_url' => $imageFile->url( ), 'thumb_url' => $thumbFile->url( ), 'cropData' => (object) ($imageFile->metadata( )['upload']['crop'] ?? [ ])] |
/system/src/Grav/Common/Service/AccountsServiceProvider.php:67 | 1 | $options = ['enabled' => true, 'data' => ['object' => User::class, 'collection' => FlexUser\UserCollection::class, 'index' => FlexUser\UserIndex::class, 'storage' => $this->getFlexStorage($config->get('system.accounts.storage', 'file')), 'search' => ['options' => ['contains' => 1], 'fields' => ['key', 'email']]]] + ($config->get('plugins.flex-objects.object') ?: [ ]) |
/system/src/Grav/Framework/Parsedown/ParsedownExtra.php:284 | 1 | $Element = array('name' => 'sup', 'attributes' => array('id' => 'fnref' . $this->DefinitionData['Footnote'][$name]['count'] . ':' . $name), 'handler' => 'element', 'text' => array('name' => 'a', 'attributes' => array('href' => '#fn:' . $name, 'class' => 'footnote-ref'), 'text' => $this->DefinitionData['Footnote'][$name]['number'], ), ) |
/system/src/Grav/Common/GPM/Response.php:126 | 1 | $settings = ['method' => $config->get('system.gpm.method', self::$method), 'verify_peer' => $config->get('system.gpm.verify_peer', true), 'proxy_url' => $config->get('system.gpm.proxy_url', $config->get('system.proxy_url', false)), ] |
/system/src/Grav/Common/Page/Medium/MediumFactory.php:98 | 2 | $params += ['type' => 'file', 'thumb' => 'media/thumb.png', 'mime' => 'application/octet-stream', 'filepath' => $file, 'filename' => $filename, 'basename' => $basename, 'extension' => $ext, 'path' => $path, 'modified' => filemtime($file), 'thumbnails' => [ ]] |
/system/src/Grav/Common/Page/Medium/MediumFactory.php:48 | 2 | $params += ['type' => 'file', 'thumb' => 'media/thumb.png', 'mime' => 'application/octet-stream', 'filepath' => $file, 'filename' => $filename, 'basename' => $basename, 'extension' => $ext, 'path' => $path, 'modified' => filemtime($file), 'thumbnails' => [ ]] |
/system/src/Grav/Common/Twig/Twig.php:196 | 1 | $this->twig_vars += ['config' => $config, 'system' => $config->get('system'), 'theme' => $config->get('theme'), 'site' => $config->get('site'), 'uri' => $this->grav['uri'], 'assets' => $this->grav['assets'], 'taxonomy' => $this->grav['taxonomy'], 'browser' => $this->grav['browser'], 'base_dir' => rtrim(ROOT_DIR, '/'), 'home_url' => $pages->homeUrl($active_language), 'base_url' => $pages->baseUrl($active_language), 'base_url_absolute' => $pages->baseUrl($active_language, true), 'base_url_relative' => $pages->baseUrl($active_language, false), 'base_url_simple' => $this->grav['base_url'], 'theme_dir' => $locator->findResource('theme://'), 'theme_url' => $this->grav['base_url'] . '/' . $locator->findResource('theme://', false), 'html_lang' => $this->grav['language']->getActive( ) ?: $config->get('site.default_lang', 'en'), 'language_codes' => new LanguageCodes, ] |
/system/src/Grav/Common/Page/Markdown/Excerpts.php:170 | 1 | $local_file = isset($url_parts['path']) && (empty($url_parts['scheme']) || in_array($url_parts['scheme'], ['http', 'https'], true)) && (empty($url_parts['host']) || $url_parts['host'] === $grav['uri']->host( )) |
/system/src/Grav/Framework/Parsedown/Parsedown.php:1179 | 1 | $Inline = array('extent' => $Link['extent'] + 1, 'element' => array('name' => 'img', 'attributes' => array('src' => $Link['element']['attributes']['href'], 'alt' => $Link['element']['text'], ), ), ) |
/system/src/Grav/Framework/Parsedown/Parsedown.php:1352 | 1 | $Inline = array('extent' => strlen($matches[0][0]), 'position' => $matches[0][1], 'element' => array('name' => 'a', 'text' => $matches[0][0], 'attributes' => array('href' => $matches[0][0], ), ), ) |
/system/src/Grav/Framework/RequestHandler/Middlewares/Exceptions.php:27 | 1 | $response = ['error' => ['type' => \get_class($exception), 'code' => $exception->getCode( ), 'message' => $exception->getMessage( ), 'file' => $exception->getFile( ), 'line' => $exception->getLine( ), 'trace' => explode("\n", $exception->getTraceAsString( )), ]] |
/system/src/Grav/Common/GPM/Installer.php:413 | 1 | if(!file_exists($target . DS . 'index.php') || !file_exists($target . DS . 'bin') || !file_exists($target . DS . 'user') || !file_exists($target . DS . 'system' . DS . 'config' . DS . 'system.yaml')) { /**/ } |
/system/src/Grav/Common/Language/Language.php:203 | 1 | if(isset($this->grav['session']) && $this->grav['session']->isStarted( ) && $this->config->get('system.languages.session_store_active', true) && $this->grav['session']->active_language != $this->active) { /**/ } |