summaryrefslogtreecommitdiff
path: root/app/frontend/model/Calendar.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
committeremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
commitbef5754e4676a8a578550b6af24d050a946405eb (patch)
tree190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/model/Calendar.php
parent94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff)
* more strict function definitions
Diffstat (limited to 'app/frontend/model/Calendar.php')
-rw-r--r--app/frontend/model/Calendar.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/frontend/model/Calendar.php b/app/frontend/model/Calendar.php
index 47197ef..813c168 100644
--- a/app/frontend/model/Calendar.php
+++ b/app/frontend/model/Calendar.php
@@ -59,7 +59,7 @@ class Calendar extends ActiveRecord {
}
}
- public function getCustomImagePath($forFile = NULL, $type = '') {
+ public function getCustomImagePath(string $forFile = '', string $type = '') {
$pathParts = [
Prado::getApplication()->getBasePath(),
self::CUSTOM_IMAGE_PATH
@@ -70,7 +70,7 @@ class Calendar extends ActiveRecord {
return implode(DIRECTORY_SEPARATOR, $pathParts);
}
- private function _getCustomImageHash($file, $type) {
+ private function _getCustomImageHash(string $file, string $type) {
$hash = md5($file . md5_file($file) . filemtime($file));
if ($type) {
$hash .= '.' . preg_replace('#^image/#', '', $type);
@@ -78,7 +78,7 @@ class Calendar extends ActiveRecord {
return $hash;
}
- public function saveData($data) {
+ public function saveData(array $data) {
$this->copyFrom($data);
return $this->save();
}