Skip to content

Commit

Permalink
features: CachePlugin and CacheStrategy are now interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Mar 21, 2024
1 parent 1442a4f commit 002ad3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ServiceWorkerRule/ServiceWorkerRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

interface ServiceWorkerRule
{
public function process(): string;
public function process(bool $debug = false): string;
}
3 changes: 2 additions & 1 deletion src/ServiceWorkerRule/WindowsWidgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ public function process(bool $debug = false): string
return '';
}
$data = $this->serializer->serialize($tags, 'json', $this->serializerOptions($debug));
$declaration = '';
if ($debug === true) {
$declaration = <<<DEBUG_COMMENT
$declaration .= <<<DEBUG_COMMENT
/**************************************************** END WINDOWS WIDGETS ****************************************************/
Expand Down

0 comments on commit 002ad3f

Please sign in to comment.