WEB: Lint and static analysis cleanup

This commit is contained in:
Mataniko authored and Matan Bareket committed 2020-09-27 22:08:07 -04:00
1 parent 6816cdab5a
commit 08ea2cfcde
22 files changed
+86 -1467

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ abstract class DataObject
{
if ($required) {
if ($key === '') {
throw new \ErrorException(\sprintf(self::NO_KEY, $key, \get_class($this)));
throw new \ErrorException(self::NO_KEY);
}
if (!isset($array[$key]) || $array[$key] === '') {
@@ -49,4 +49,4 @@ abstract class DataObject
}
return $array[$key];
}
}
}