Make code strict

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-10-03 20:26:00 +02:00
parent fe838de4f7
commit 0721627943
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 3 additions and 2 deletions

View File

@ -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));
}
}