From 602ec509297293c8dea167e948a95756d60a9e92 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 14 Mar 2023 13:27:35 +0100 Subject: [PATCH] Update psalm-baseline.xml --- psalm-baseline.xml | 2380 +++++++++++++++++--------------------------- 1 file changed, 893 insertions(+), 1487 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index a9f442dc678..7253040f288 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,1489 +1,895 @@ - - - - $description - - - BuildRssFeedCommand - BuildRssFeedCommand - BuildRssFeedCommand - BuildRssFeedCommand - BuildRssFeedCommand - BuildRssFeedCommand - - - - - $description - - - BuildSearchCommand - BuildSearchCommand - BuildSearchCommand - BuildSearchCommand - BuildSearchCommand - BuildSearchCommand - - - - - - environment - - - $description - - - $service - BuildSiteCommand - BuildSiteCommand - BuildSiteCommand - BuildSiteCommand - BuildSiteCommand - BuildSiteCommand - - - - - $description - - - BuildSitemapCommand - BuildSitemapCommand - BuildSitemapCommand - BuildSitemapCommand - BuildSitemapCommand - BuildSitemapCommand - - - - - config('hyde.source_root', '') - - - $description - - - $this->argument('name') - config('hyde.source_root', '') - config('hyde.source_root', '') - - - ChangeSourceDirectoryCommand - ChangeSourceDirectoryCommand - ChangeSourceDirectoryCommand - ChangeSourceDirectoryCommand - ChangeSourceDirectoryCommand - ChangeSourceDirectoryCommand - - - - - $feature - - - app('env') - app('git.version') - - - $description - - - config('hyde.features') - - - DebugCommand - DebugCommand - DebugCommand - DebugCommand - DebugCommand - DebugCommand - - - - - - string - - - - $description - - - $this->option('type') - - - $this->option('force') ?? false - - - $force - $pageClass - $selectedType - $title - MakePageCommand - MakePageCommand - MakePageCommand - MakePageCommand - MakePageCommand - MakePageCommand - - - $this->getQualifiedPageType() - - - - - - $author - $category - $description - - - $author - $category - $description - - - string - - - - $description - - - $this->option('force') - - - $this->argument('title') - - - MakePostCommand - MakePostCommand - MakePostCommand - MakePostCommand - MakePostCommand - MakePostCommand - - - - - $hidden - - - PackageDiscoverCommand - PackageDiscoverCommand - PackageDiscoverCommand - PackageDiscoverCommand - PackageDiscoverCommand - - - - - $this->argument('homepage') ?? $this->parseChoiceIntoKey($this->promptForHomepage()) - - - string - string - - - map - map - - - $description - - - PublishHomepageCommand - PublishHomepageCommand - PublishHomepageCommand - PublishHomepageCommand - PublishHomepageCommand - PublishHomepageCommand - - - - - - $value - $value - - - $description - - - - - PublishViewsCommand - PublishViewsCommand - PublishViewsCommand - PublishViewsCommand - PublishViewsCommand - PublishViewsCommand - - - $value - - - - - $description - - - $this->argument('path') - - - $this->argument('path') - - - $path - RebuildStaticSiteCommand - RebuildStaticSiteCommand - RebuildStaticSiteCommand - RebuildStaticSiteCommand - RebuildStaticSiteCommand - RebuildStaticSiteCommand - - - - - $description - - - RouteListCommand - RouteListCommand - RouteListCommand - RouteListCommand - RouteListCommand - RouteListCommand - - - - - $this->option('port') ?: config('hyde.server.port', 8080) - - - environment - - - $description - - - $this->option('host') - - - ServeCommand - ServeCommand - ServeCommand - ServeCommand - ServeCommand - ServeCommand - - - - - $description - - - PublishConfigsCommand - PublishConfigsCommand - PublishConfigsCommand - PublishConfigsCommand - PublishConfigsCommand - PublishConfigsCommand - - - - - $description - - - ValidateCommand - ValidateCommand - ValidateCommand - ValidateCommand - ValidateCommand - ValidateCommand - ValidateCommand - - - - - PostAuthor::all() - - - \Illuminate\Support\Collection<\Hyde\Framework\Features\Blogging\Models\PostAuthor> - - - \Illuminate\Support\Collection<\Hyde\Framework\Features\Blogging\Models\PostAuthor> - - - \Illuminate\Support\Collection<\Hyde\Framework\Features\Blogging\Models\PostAuthor> - - - - - array<string, bool> - - - - array<string, bool> - - - - - self::kernel()->pathToAbsolute(self::relativePath($path)) - - - string - - - \Illuminate\Support\Collection<string> - - - \Illuminate\Filesystem\Filesystem - - - File::getFacadeRoot() - - - \Illuminate\Support\Collection<string> - self::kernel()->filesystem()->smartGlob($pattern, $flags) - - - - - \Hyde\Foundation\Kernel\RouteCollection<\Hyde\Support\Models\Route> - - - - - ?string - ?string - ?string - - - config('hyde.language') - config('hyde.name') - config('hyde.url') - - - - - Application - Application - Application - Application - Application - Application - Application - - - - - (new static())->setKernel($kernel)->runDiscovery() - - - static - - - $kernel - - - new static() - - - - - array<class-string<\Hyde\Foundation\Concerns\HydeExtension>> - array<class-string<\Hyde\Pages\Concerns\HydePage>> - - - - - FileCollection - - - (string) $filepath - - - $this->getAllSourceFiles()->where(fn (SourceFile $file): bool => $file->model === $pageClass) - \Hyde\Foundation\Kernel\FileCollection<\Hyde\Support\Filesystem\MediaFile> - \Hyde\Foundation\Kernel\FileCollection<\Hyde\Support\Filesystem\SourceFile> - \Hyde\Foundation\Kernel\FileCollection<\Hyde\Support\Filesystem\SourceFile> - \Hyde\Foundation\Kernel\FileCollection<\Hyde\Support\Filesystem\SourceFile> - - - class-string<\Hyde\Foundation\Concerns\HydeExtension> - - - - - $model - $model - - - $this->pathToAbsolute($path) - - - string - - - $p - $p - - - map - - - $p - $p - - - - - $files - $pages - $routes - - - - - config('hyde.url') - - - - - $pageClass::parse($basename) - - - string<\Hyde\Pages\Concerns\HydePage> - - - \Illuminate\Support\Collection<\Hyde\Pages\Concerns\HydePage> - - - \Illuminate\Support\Collection<\Hyde\Pages\Concerns\HydePage> - - - each - filter - - - HydePage - - - $this->items[$sourcePath] ?? throw new FileNotFoundException($sourcePath.' in page collection') - - - PageCollection - - - class-string<\Hyde\Foundation\Concerns\HydeExtension> - - - - - each - filter - - - RouteCollection - - - class-string<\Hyde\Foundation\Concerns\HydeExtension> - - - - - static::SEARCH - static::SEARCH - - - $array[static::getValueWithType(trim(trim($pair[0]), "'"))] - - - $array[static::getValueWithType(trim(trim($pair[0]), "'"))] - - - strpos($key, '=') - - - strpos($key, '=') - - - $matter - - - new static($contents) - - - - - $date - $identifier - - - - - strpos($html, '<p>[[END_TOC]]') - - - - - $this->matter - - - - - new $pageClass($this->identifier) - - - new $pageClass($this->identifier) - - - BaseMarkdownPage - HydePage|BladePage|BaseMarkdownPage - - - - - - $value - - - $key - - - $value - - - ?bool - - - - - new $extensionClassName() - - - $extensionClassName - config('markdown.config', []) - config('markdown.enable_blade', false) - config('markdown.enable_blade', false) - config('markdown.features.codeblock_filepaths', true) - - - $extensionClassName - - - config('markdown.extensions', []) - - - addExtension - - - - - $location - $location - config('view.paths', []) - - - $location - $location - - - $class - $class - - - - - $this->matter('author') - $this->matter('date') - - - ?string - string - - - $this->matter('category') - $this->matter('description') ?? $this->getTruncatedMarkdown($this->markdown->body()) - - - $pageData->markdown - - - - - array{pageClass: string, identifier: string, sourcePath: string, outputPath: string, routeKey: string} - - - - - $this->markdown ?? false - - - $value - - - - - $this->matter('image') - $this->matter('image') - $this->matter('image.path') - - - ?string - ?string - ?string - ?string - ?string - ?string - ?string - string - - - $this->matter('image') - $this->matter('image.authorUrl') - $this->matter('image.authorName') - $this->matter('image.copyright') - $this->matter('image.description') - $this->matter('image.licenseName') - $this->matter('image.licenseNameUrl') - $this->matter('image.title') - $this->matter('image.url') - - - (string) $data['source'] - - - new static($matter) - - - - - ?string - string - - - $this->matter('canonicalUrl') - - - - - $class - - - $this->matter('navigation.visible') - config('docs.sidebar_order', []) - config('hyde.navigation.exclude', ['404']) - - - ?bool - ?int - ?int - ?string - ?string - ?string - ?string - string - - - config("hyde.navigation.order.$this->routeKey") - config('hyde.navigation.subdirectories', 'hidden') - - - - - $data['name'] ?? null - $data['website'] ?? null - config('hyde.authors', []) - - - string - - - $data['username'] ?? $data['name'] ?? 'Guest' - - - static - static::all()->firstWhere('username', $username) ?? static::create($username) - - - new static($username, $name, $website) - - - - - getExecutionTime - - - $this->exitCode - - - ?int - - - $output - - - $exception->getCode() - - - BuildTask - BuildTask - - - - - - - - GenerateBuildManifest - GenerateBuildManifest - GenerateBuildManifest - - - - - GenerateRssFeed - GenerateRssFeed - GenerateRssFeed - - - - - GenerateSearch - GenerateSearch - GenerateSearch - - - - - GenerateSitemap - GenerateSitemap - GenerateSitemap - - - - - DataCollections<\Hyde\Markdown\Models\MarkdownDocument> - - - DataCollections<\Hyde\Markdown\Models\MarkdownDocument> - - - DataCollections<\Hyde\Markdown\Models\MarkdownDocument> - - - - - new self($page) - - - - $config - - - string - - - - static - - - - render - - - - - map - - - - - $metadata - - - $global->$type - $item - $page->metadata->$type - View::shared('page') - - - $item - - - static - - - config('hyde.meta', []) - - - Hyde::currentPage() !== null - - - - - $this->get() - - - ($this->$type)[$element->uniqueKey()] - - - $array["$type:$key"] - $key - $value - - - $element - - - - - $page->data('canonicalUrl') - $page->data('canonicalUrl') - - - $page->date->datetime - - - $page->date->datetime - - - - - config('hyde.navigation.custom', []) - - - each - each - unique - - - - - string - - - each - filter - map - - - $item->getGroup() - - - $group - - - - - $items - - - DropdownNavItem - - - new static($name, $items) - - - - - new self($route, $label, $priority, false) - - - $this->route->getPage()->data('navigation.group') - - - static - static - - - getPage - - - $href - $route - - - $this->href - $this->route - $this->route->getLink() - isset($this->route) - null - - - - - array{label: string|null, group: string|null, hidden: bool|null, priority: int|null} - - - $data['group'] ?? null - $data['hidden'] ?? null - $data['label'] ?? null - $data['priority'] ?? null - - - - - filter - - - array<string, DropdownNavItem> - - - $dropdowns - - - is - - - - - Collection - - - $this->paginatedItems->get($this->currentPage - 1) - - - $this->paginatedItems->get($this->currentPage - 1) - - - $routeBasename - - - isset($this->routeBasename) - isset($this->routeBasename) - isset($this->routeBasename) - - - - - $xmlElement - - - new static - - - - - $channel - $item - config('hyde.language', 'en') - - - each - - - $atomLink - $channel - $item - - - string - string - - - addAttribute - addAttribute - addAttribute - addChild - addChild - - - config('hyde.rss_description', Site::name().' RSS Feed') - config('hyde.rss_filename', 'feed.xml') - - - config('hyde.language', 'en') - - - $post->description - Site::name() - Site::url() - - - Site::name() - - - getContentLength - getSource - - - - - - each - - - - - registerPageClass - registerPageClass - registerPageClass - registerPageClass - registerPageClass - - - config('hyde.source_root', '') - config('hyde.output_directory', '_site') - - - config('hyde.source_root', '') - config('hyde.output_directory', '_site') - - - - - map - - - array - - - config('hyde.safe_output_directories', ['_site', 'docs', 'build']) - - - array<class-string<\Hyde\Pages\Concerns\HydePage>> - - - BuildService - BuildService - - - array_map - - - - - new $task($this->output) - - - static::findTasksInAppDirectory() - - - new $task($this->output) - - - config('hyde.generate_build_manifest', true) - config('hyde.post_build_tasks', []) - - - array<class-string<\Hyde\Framework\Features\BuildTasks\BuildTask>> - - - (string) $file - - - - - $file['unixsum'] - - - $checksums[] - $file - - - (string) $file - - - - - config('hyde.media_extensions', self::DEFAULT_MEDIA_EXTENSIONS) - - - $extensions - map - - - array<string> - - - FileCollection::getSourceFiles($model)->flatten() - - - - - config('docs.exclude_from_search', []) - view('hyde::pages.documentation-search')->render() - - - render - - - - - $extension - $line - $line - - - $lines - $this->config - - - $extension - $line - $line - $preprocessor - $this->markdown - - - $preprocessor::preprocess($this->markdown) - - - [$lineNumber, $lineLen - $stripLen] - int[] - - - - $converter - $html - - - - - $builder - - - - - $conflicts - - - Result - - - $this->$check(new Result) - - - - - Config::get('hyde', []) - - - $yaml - - - - - view('hyde::components.link') - - - Factory|View - - - LinkComponent - LinkComponent - - - - - MarkdownConverter - - - - - new static($matter) - - - - - $sourceModel - - - MarkdownDocument::parse($localFilepath)->markdown() - - - convert - - - static - - - convert - - - - - (new MarkdownFileParser($localFilepath))->get() - - - static - - - - - $pageData - - - $output - - - new static($html, $pageData) - new static(static::preprocess($html), $pageData) - - - - - $pattern - - - static::$patterns - - - $pattern - - - string - - - - render - - - - - $shortcode - - - $shortcode - - - string - - - $this->shortcodes[$signature]::resolve($line) - - - - strpos($line, ' ') - - - $output - $shortcodes - - - new static($markdown) - - - - - string - - - view($this->getBladeView())->render() - - - render - - - BladePage - - - - - string - - - render - - - - with - - - BaseMarkdownPage - - - new static($identifier, $matter, $markdown) - - - - - (new SourceFileParser(static::class, $identifier))->get() - - - ?string - int - string - - - config('hyde.name', 'HydePHP') - - - $this->navigation['group'] - $this->navigation['label'] - $this->navigation['priority'] - - - static - - - $this->navigation['label'] - $this->navigation['priority'] - - - $this->navigation['group'] - $this->navigation['hidden'] - $this->navigation['label'] - $this->navigation['priority'] - - - $this->navigation - $this->navigation - $this->navigation - $this->navigation - - - $title - - - \Hyde\Foundation\Kernel\PageCollection<\Hyde\Pages\Concerns\HydePage> - - - new static($identifier, $matter) - - - - - bool - - - config('docs.table_of_contents.enabled', true) - - - config('docs.source_file_location_base') - - - DocumentationPage - - - - - HtmlPage - - - - - MarkdownPage - - - - - static::all()->sortByDesc('matter.date') - - - \Hyde\Foundation\Kernel\PageCollection<\Hyde\Pages\MarkdownPost> - - - $author - $category - $date - $description - $image - MarkdownPost - - - \Hyde\Foundation\Kernel\PageCollection<\Hyde\Pages\MarkdownPost> - static::all()->sortByDesc('matter.date') - - - - - string - - - $this->__call('compile', []) - - - $macro(...$parameters) - - - InMemoryPage - - - new static($identifier, $matter, $contents, $view) - - - - - array{name: string, path: string} - - - new static($path) - - - - - new static($path, $pageClass) - - - - - string - - - - render - - - new static($path, $destination, $showText) - - - - - public function toArray(): array - - - $currentPage - $currentRoute - $page - - - $this->currentPage - $this->currentRoute - $this->page - null - null - null - - - - - array{routeKey: string, sourcePath: string, outputPath: string, page: array{class: string, identifier: string}} - - - ?Route - - - Router::get(str_replace('.', '/', $routeKey)) - - - - - $withTimeString - - - $passed - $tip - - - $this->tip - false - - - - - HydeKernel - HydeKernel - - - app(HydeKernel::class) - app(HydeKernel::class) - - + + + + $description + + + BuildRssFeedCommand + BuildRssFeedCommand + BuildRssFeedCommand + BuildRssFeedCommand + BuildRssFeedCommand + BuildRssFeedCommand + + + + + $description + + + BuildSearchCommand + BuildSearchCommand + BuildSearchCommand + BuildSearchCommand + BuildSearchCommand + BuildSearchCommand + + + + + + environment + + + $description + + + $service + BuildSiteCommand + BuildSiteCommand + BuildSiteCommand + BuildSiteCommand + BuildSiteCommand + BuildSiteCommand + + + + + $description + + + BuildSitemapCommand + BuildSitemapCommand + BuildSitemapCommand + BuildSitemapCommand + BuildSitemapCommand + BuildSitemapCommand + + + + + $description + + + argument('name')]]> + + + ChangeSourceDirectoryCommand + ChangeSourceDirectoryCommand + ChangeSourceDirectoryCommand + ChangeSourceDirectoryCommand + ChangeSourceDirectoryCommand + ChangeSourceDirectoryCommand + + + + + + + + + $description + + + DebugCommand + DebugCommand + DebugCommand + DebugCommand + DebugCommand + DebugCommand + + + + + + string + + + + $description + + + option('type')]]> + + + option('force') ?? false]]> + + + $force + $pageClass + $selectedType + $title + MakePageCommand + MakePageCommand + MakePageCommand + MakePageCommand + MakePageCommand + MakePageCommand + + + getQualifiedPageType()]]> + + + + + + + $description + + + option('force')]]> + + + argument('title')]]> + + + MakePostCommand + MakePostCommand + MakePostCommand + MakePostCommand + MakePostCommand + MakePostCommand + + + + + $hidden + + + PackageDiscoverCommand + PackageDiscoverCommand + PackageDiscoverCommand + PackageDiscoverCommand + PackageDiscoverCommand + + + + + argument('homepage') ?? $this->parseChoiceIntoKey($this->promptForHomepage())]]> + + + string + string + + + map + map + + + $description + + + PublishHomepageCommand + PublishHomepageCommand + PublishHomepageCommand + PublishHomepageCommand + PublishHomepageCommand + PublishHomepageCommand + + + + + $description + + + + PublishViewsCommand + PublishViewsCommand + PublishViewsCommand + PublishViewsCommand + PublishViewsCommand + PublishViewsCommand + + + + + $description + + + RouteListCommand + RouteListCommand + RouteListCommand + RouteListCommand + RouteListCommand + RouteListCommand + + + + + $description + + + ServeCommand + ServeCommand + ServeCommand + ServeCommand + ServeCommand + ServeCommand + + + + + $description + + + PublishConfigsCommand + PublishConfigsCommand + PublishConfigsCommand + PublishConfigsCommand + PublishConfigsCommand + PublishConfigsCommand + + + + + $description + + + ValidateCommand + ValidateCommand + ValidateCommand + ValidateCommand + ValidateCommand + ValidateCommand + ValidateCommand + + + + + ]]> + + + ]]> + + + + + ]]> + + + ]]> + + + + + pathToAbsolute(self::relativePath($path))]]> + + + string + + + ]]> + + + \Illuminate\Filesystem\Filesystem + + + + ]]> + filesystem()->smartGlob($pattern, $flags)]]> + + + + + Application + Application + Application + Application + Application + Application + Application + + + + + $kernel + + + + + $files + $pages + $routes + + + + + + + + + + + + + + + + + $matter + + + new static($contents) + + + + + [[END_TOC]]')]]> + + + + + matter]]> + + + + + identifier)]]> + + + identifier)]]> + + + HydePage|BladePage|BaseMarkdownPage + + + + + $value + + + $key + + + $value + + + ?bool + + + + + new $extensionClassName() + + + $extensionClassName + + + $extensionClassName + + + addExtension + + + + + matter('author')]]> + matter('date')]]> + + + ?string + string + + + matter('category')]]> + matter('description') ?? $this->getTruncatedMarkdown($this->markdown->body())]]> + + + markdown]]> + + + + + array{pageClass: string, identifier: string, sourcePath: string, outputPath: string, routeKey: string} + + + + + markdown ?? false]]> + + + $value + + + + + ?string + ?string + ?string + ?string + ?string + ?string + ?string + + + + new static($matter) + + + + + string + + + + + + $class + + + matter('navigation.visible')]]> + + + ?bool + ?int + ?int + ?string + ?string + ?string + ?string + + + + + + + + + + string + + + + + + + + exitCode]]> + + + + $output + + + getCode()]]> + + + + + new self($page) + + + string + + + + static + + + render + + + + + map + + + + + $type]]> + metadata->$type]]> + + + + + get()]]> + + + + $key + + + $element + + + + + date->datetime]]> + + + date->datetime]]> + + + + + each + each + unique + + + + + string + + + each + filter + map + + + getGroup()]]> + + + $group + + + + + $items + + + new static($name, $items) + + + + + + + + + + + + filter + + + $dropdowns + + + + + $xmlElement + + + new static + + + + + $channel + $item + + + each + + + $atomLink + $channel + $item + + + addAttribute + addAttribute + addAttribute + addChild + addChild + + + description]]> + Site::name() + Site::url() + + + Site::name() + + + + + each + + + + + map + + + >]]> + + + BuildService + BuildService + + + + + + + + + (string) $file + + + + + $extension + $line + $line + + + $lines + config]]> + + + $extension + $line + $line + $preprocessor + markdown]]> + + + markdown)]]> + + + [$lineNumber, $lineLen - $stripLen] + int[] + + + $converter + $html + + + + + Result + + + $check(new Result)]]> + + + + + + + + Factory|View + + + LinkComponent + LinkComponent + + + + + MarkdownConverter + + + + + new static($matter) + + + + + + + convert + + + static + + + convert + + + + + + static + + + + + $pageData + + + $output + + + new static($html, $pageData) + new static(static::preprocess($html), $pageData) + + + + + $pattern + + + static::$patterns + + + $pattern + + + string + + + + render + + + + + + + + $output + $shortcodes + + + new static($markdown) + + + + + BladePage + + + + + string + + + render + + + + with + + + BaseMarkdownPage + + + new static($identifier, $matter, $markdown) + + + + + get()]]> + + + ?string + + + + static + + + $title + + + + new static($identifier, $matter) + + + + + bool + + + + + + + + + DocumentationPage + + + + + HtmlPage + + + + + MarkdownPage + + + + + $author + $category + $date + $description + $image + MarkdownPost + + + + + string + + + __call('compile', [])]]> + + + $macro(...$parameters) + + + InMemoryPage + + + new static($identifier, $matter, $contents, $view) + + + + + array{name: string, path: string} + + + new static($path) + + + + + new static($path, $pageClass) + + + + + new static($path, $destination, $showText) + + + + + public function toArray(): array + + + $page + + + page]]> + null + null + null + + + + + array{routeKey: string, sourcePath: string, outputPath: string, page: array{class: string, identifier: string}} + + + + + $withTimeString + + + $tip + + + tip]]> + false + + + + + HydeKernel + HydeKernel + + + app(HydeKernel::class) + app(HydeKernel::class) + +