Skip to content
Snippets Groups Projects
Commit 82eea73a authored by Torben Hansen's avatar Torben Hansen Committed by Christian Kuhn
Browse files

[TASK] Remove superfluous typecast in TSFE

This change removes a superfluous typecast in
`TypoScriptFrontendController`.

Additionally, the function's doc comment has been revised
and the `@param` comment has been removed, since the
function parameter is self-explaining.

Resolves: #103859
Releases: main
Change-Id: I66bdfbbaf0854bff25a801849b253a607cc122b6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84313


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChris Müller <typo3@brotkrueml.dev>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChris Müller <typo3@brotkrueml.dev>
parent ae26404b
Branches
Tags
No related merge requests found
......@@ -954,14 +954,11 @@ class TypoScriptFrontendController implements LoggerAwareInterface
}
/**
* Sets the cache-timeout in seconds
*
* @param int $seconds Cache-timeout in seconds
* Sets the default page cache timeout in seconds
* @internal
*/
public function set_cache_timeout_default(int $seconds): void
{
$seconds = (int)$seconds;
if ($seconds > 0) {
$this->cacheTimeOutDefault = $seconds;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment