Skip to content

Commit

Permalink
Addressed issues from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
webhdx committed Apr 2, 2020
1 parent a55831b commit 3b2c1f7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function configureCache(ResponseEvent $event)

$isTtlCacheEnabled = $this->configResolver->getParameter('content.ttl_cache');
if ($isTtlCacheEnabled && !$response->headers->hasCacheControlDirective('s-maxage')) {
$response->setSharedMaxAge($this->configResolver->getParameter('content.default_ttl'));
$response->setSharedMaxAge((int) $this->configResolver->getParameter('content.default_ttl'));
}
}
}
2 changes: 1 addition & 1 deletion eZ/Publish/Core/IO/Adapter/LocalAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @internal
*/
class LocalAdapter extends Local implements ConfigScopeChangeSubscriber
final class LocalAdapter extends Local implements ConfigScopeChangeSubscriber
{
/** @var \eZ\Publish\Core\IO\IOConfigProvider */
private $ioConfigProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* @internal
*/
class SiteAccessDependentBinaryDataHandler implements IOBinaryDataHandler
final class SiteAccessDependentBinaryDataHandler implements IOBinaryDataHandler
{
/** @var \eZ\Publish\Core\MVC\ConfigResolverInterface */
private $configResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* @internal
*/
class SiteAccessDependentMetadataHandler implements IOMetadataHandler
final class SiteAccessDependentMetadataHandler implements IOMetadataHandler
{
/** @var \eZ\Publish\Core\MVC\ConfigResolverInterface */
private $configResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ private function getRenderFieldDefinitionBlockName($fieldTypeIdentifier, $type):
}

/**
* @param string $resourceType
*
* @return array
* @return array|\Twig\Template[]
*
* @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @internal
*/
class ResourceProvider implements ResourceProviderInterface
final class ResourceProvider implements ResourceProviderInterface
{
/** @var \eZ\Publish\Core\MVC\ConfigResolverInterface */
private $configResolver;
Expand Down

0 comments on commit 3b2c1f7

Please sign in to comment.