Merge pull request #219 from Spomky-Labs/mergify/Spomky/config-update #22
Annotations
10 warnings
src/CachingStrategy/AssetCache.php#L46
Escaped Mutant for Mutator "TrueValue":
@@ @@
$this->workbox = $serviceWorker->workbox;
$this->assetPublicPrefix = rtrim($publicAssetsPathResolver->resolvePublicPath(''), '/');
$options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR;
- if ($debug === true) {
+ if ($debug === false) {
$options |= JSON_PRETTY_PRINT;
}
$this->jsonOptions = $options;
|
src/CachingStrategy/GoogleFontCache.php#L38
Escaped Mutant for Mutator "LogicalAndNegation":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create(!($this->workbox->enabled && $this->workbox->googleFontCache->enabled), true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L43
Escaped Mutant for Mutator "Concat":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName('google-fonts-stylesheets' . $prefix), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L43
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName('google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L43
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L45
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create(!$this->workbox->enabled && !$this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L45
Escaped Mutant for Mutator "LogicalAndNegation":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create(!($this->workbox->enabled && $this->workbox->googleFontCache->enabled), true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L46
Escaped Mutant for Mutator "TrueValue":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, false, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L50
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName('google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
src/CachingStrategy/GoogleFontCache.php#L50
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
if ($prefix !== '') {
$prefix .= '-';
}
- $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix . 'google-fonts-webfonts')->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
+ $strategies = [WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_STALE_WHILE_REVALIDATE, "({url}) => url.origin === 'https://fonts.googleapis.com'")->withName($prefix . 'google-fonts-stylesheets'), WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->googleFontCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, "({url}) => url.origin === 'https://fonts.gstatic.com'")->withName($prefix)->withPlugin(CacheableResponsePlugin::create(), ExpirationPlugin::create($this->workbox->googleFontCache->maxEntries ?? 30, $this->workbox->googleFontCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365))];
$this->logger->debug('Google Fonts cache strategies', ['strategies' => $strategies]);
return $strategies;
}
|
This job succeeded
Loading