diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-10-03 20:26:00 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-10-03 20:26:00 +0200 |
commit | 072162794346b1539dff58e4e3a3ef1bc8c18dc7 (patch) | |
tree | b691bb239a506e6ea6df14b8a5089844e471fd39 | |
parent | fe838de4f7c01710e8e61101572dc4ae99aaf3f1 (diff) | |
download | nextcloud-server-072162794346b1539dff58e4e3a3ef1bc8c18dc7.tar.gz nextcloud-server-072162794346b1539dff58e4e3a3ef1bc8c18dc7.zip |
Make code strict
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r-- | apps/workflowengine/lib/Check/FileName.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index 2d8cf9ca91c..e1e2c5f0f2a 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2018 Daniel Kesselberg <mail@danielkesselberg.de> * @@ -59,7 +60,7 @@ class FileName extends AbstractStringCheck { /** * @return string */ - protected function getActualValue() { + protected function getActualValue(): string { return mb_strtolower(basename($this->path)); } @@ -68,7 +69,7 @@ class FileName extends AbstractStringCheck { * @param string $value * @return bool */ - public function executeCheck($operator, $value) { + public function executeCheck($operator, $value): bool { return parent::executeCheck($operator, mb_strtolower($value)); } } |