From bef5754e4676a8a578550b6af24d050a946405eb Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 3 Nov 2016 23:22:40 +0100 Subject: * more strict function definitions --- app/frontend/web/TemplateControl.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/frontend/web/TemplateControl.php') diff --git a/app/frontend/web/TemplateControl.php b/app/frontend/web/TemplateControl.php index aa95d75..aac5a6e 100644 --- a/app/frontend/web/TemplateControl.php +++ b/app/frontend/web/TemplateControl.php @@ -42,28 +42,28 @@ class TemplateControl extends TTemplateControl { return []; } - private function _getControlScriptPath($className) { + private function _getControlScriptPath(string $className) { return Prado::getPathOfNamespace('Application.controls.scripts') . DIRECTORY_SEPARATOR . $className . '.js'; } - private function _getControlStylePath($className) { + private function _getControlStylePath(string $className) { return Prado::getPathOfNamespace('Application.controls.styles') . DIRECTORY_SEPARATOR . $className . '.css'; } - private function _getLibPath($identifier, $extension = '') { + private function _getLibPath(string $identifier, string $extension = '') { return Prado::getPathOfNamespace('Lib') . DIRECTORY_SEPARATOR . $identifier . $extension; } - private function _registerScriptFile($scriptFile) { + private function _registerScriptFile(string $scriptFile) { $this->_registerExternalScriptDependencies( $this->getExternalScriptDependencies() ); @@ -118,7 +118,7 @@ class TemplateControl extends TTemplateControl { } } - private function _registerStyleFile($styleFile) { + private function _registerStyleFile(string $styleFile) { $this->_registerExternalStyleDependencies( $this->getExternalStyleDependencies() ); -- cgit v1.2.3