MAPG-199 fix issues found by PHPStan

This commit is contained in:
bence committed 2020-07-05 23:18:56 +02:00
1 parent 39d691fd7f
commit af98d71924
34 files changed
+89 -68

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ class Redirect implements IRedirect
public function getUrl(): string
{
if (preg_match('/^http(s)?/', $this->target)) {
if (preg_match('/^http(s)?/', $this->target) === 1) {
$link = $this->target;
} else {
$link = \Container::$request->getBase() . '/' . $this->target;