Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Update all dependencies #479

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ private function initSubMenus(): void
if ($itemName === self::ITEM_MODE_SITE) {
$languages = array_filter(
$languages,
fn (Core\Site\Entity\SiteLanguage $siteLanguage): bool => $this->canWarmupCachesOfSite($siteLanguage)
fn(Core\Site\Entity\SiteLanguage $siteLanguage): bool => $this->canWarmupCachesOfSite($siteLanguage)
);
} else {
$languages = array_filter(
$languages,
fn (Core\Site\Entity\SiteLanguage $siteLanguage): bool => Utility\AccessUtility::canWarmupCacheOfPage(
fn(Core\Site\Entity\SiteLanguage $siteLanguage): bool => Utility\AccessUtility::canWarmupCacheOfPage(
(int)$this->identifier,
$siteLanguage->getLanguageId(),
)
Expand Down
2 changes: 1 addition & 1 deletion Classes/Cache/SitemapsCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function get(

return array_values(
array_map(
static fn (string $sitemapUrl) => new Sitemap\SiteAwareSitemap(
static fn(string $sitemapUrl) => new Sitemap\SiteAwareSitemap(
new Core\Http\Uri($sitemapUrl),
$site,
$siteLanguage ?? $site->getDefaultLanguage(),
Expand Down
2 changes: 1 addition & 1 deletion Classes/Command/WarmupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function configure(): void
' │ It can be defined via the extension configuration <info>strategy</info> or by using the <info>--strategy</info> option.',
' │ The following strategies are currently available:',
...array_map(
static fn (string $strategy) => ' │ * <info>' . $strategy . '</info>',
static fn(string $strategy) => ' │ * <info>' . $strategy . '</info>',
array_keys($this->crawlingStrategyFactory->getAll()),
),
' ├─ Default: <info>' . ($this->configuration->getStrategy() ?? 'none') . '</info>',
Expand Down
4 changes: 2 additions & 2 deletions Classes/Result/CacheWarmupResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getCrawlingResultsBySite(
'successful' => array_values(
array_filter(
$this->result->getSuccessful(),
fn (CacheWarmup\Result\CrawlingResult $crawlingResult) => $this->filterBySite(
fn(CacheWarmup\Result\CrawlingResult $crawlingResult) => $this->filterBySite(
$crawlingResult,
$site,
$siteLanguage,
Expand All @@ -74,7 +74,7 @@ public function getCrawlingResultsBySite(
'failed' => array_values(
array_filter(
$this->result->getFailed(),
fn (CacheWarmup\Result\CrawlingResult $crawlingResult) => $this->filterBySite(
fn(CacheWarmup\Result\CrawlingResult $crawlingResult) => $this->filterBySite(
$crawlingResult,
$site,
$siteLanguage,
Expand Down
2 changes: 1 addition & 1 deletion Classes/Sitemap/Provider/RobotsTxtProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function get(

return array_values(
array_map(
static fn (string $url) => new Sitemap\SiteAwareSitemap(
static fn(string $url) => new Sitemap\SiteAwareSitemap(
new Core\Http\Uri($url),
$site,
$siteLanguage ?? $site->getDefaultLanguage(),
Expand Down
6 changes: 3 additions & 3 deletions Resources/Private/Frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,9 @@ domutils@^2.8.0:
domhandler "^4.2.0"

electron-to-chromium@^1.4.535:
version "1.4.549"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.549.tgz#ab223f5d85c55a9def358db163bc8cacba72df69"
integrity sha512-gpXfJslSi4hYDkA0mTLEpYKRv9siAgSUgZ+UWyk+J5Cttpd1ThCVwdclzIwQSclz3hYn049+M2fgrP1WpvF8xg==
version "1.4.551"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.551.tgz#14db6660a88f66ce095ea2657abe5653bc7f42ed"
integrity sha512-/Ng/W/kFv7wdEHYzxdK7Cv0BHEGSkSB3M0Ssl8Ndr1eMiYeas/+Mv4cNaDqamqWx6nd2uQZfPz6g25z25M/sdw==

emoji-regex@^8.0.0:
version "8.0.0"
Expand Down
12 changes: 6 additions & 6 deletions Resources/Private/Libs/Build/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function setUp(): void

$this->subject = new Src\Crawler\Strategy\CrawlingStrategyFactory(
new DependencyInjection\ServiceLocator([
'dummy' => static fn (): Tests\Unit\Fixtures\DummyCrawlingStrategy => new Tests\Unit\Fixtures\DummyCrawlingStrategy(),
'dummy' => static fn(): Tests\Unit\Fixtures\DummyCrawlingStrategy => new Tests\Unit\Fixtures\DummyCrawlingStrategy(),
]),
);
}
Expand Down
38 changes: 18 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading