Skip to content

Commit

Permalink
Clenaups
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jul 17, 2018
1 parent 3039b44 commit 29e54ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Classes/Service/TagService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ public function getTags(): array
if (!($tsfe instanceof TypoScriptFrontendController)) {
return [];
}
return array_unique((array) ObjectAccess::getProperty($tsfe, 'pageCacheTags', true));

return \array_unique((array)ObjectAccess::getProperty($tsfe, 'pageCacheTags', true));
}

/**
* Send the cache headers
* Send the cache headers.
*/
public function send()
{
Expand All @@ -49,7 +50,7 @@ public function send()

$tags = $this->getTags();
if (!empty($tags)) {
header($this->getHeaderName() . ': ' . implode(',', $tags));
\header($this->getHeaderName() . ': ' . \implode(',', $tags));
}
}

Expand Down
1 change: 1 addition & 0 deletions Tests/Unit/Cache/UriFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/**
* Test the URI frontend.
*/

namespace SFC\Staticfilecache\Tests\Unit\Cache;

use SFC\Staticfilecache\Cache\UriFrontend;
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"phpmetrics/phpmetrics": "^2.4"
},
"suggest": {
"aoepeople/crawler": "~6.1"
"aoepeople/crawler": "For crawling the site and warmup the cache",
"friendsofsymfony/http-cache": "For HTTP proxy cache services like Varnish"
},
"config": {
"vendor-dir": ".Build/vendor",
Expand Down

0 comments on commit 29e54ca

Please sign in to comment.