Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@@ -103,6 +103,7 @@ class RrdDefinition
public function disableNameChecking()
{
$this->skipNameCheck = true;
return $this;
}
@@ -115,10 +116,11 @@ class RrdDefinition
*/
private function checkType($type)
{
if (!in_array($type, self::$types)) {
if (! in_array($type, self::$types)) {
$msg = "$type is not valid, must be: " . implode(' | ', self::$types);
throw new InvalidRrdTypeException($msg);
}
return $type;
}
@@ -131,6 +133,7 @@ class RrdDefinition
private function escapeName($name)
{
$name = preg_replace('/[^a-zA-Z0-9_\-]/', '', $name);
return substr($name, 0, 19);
}
}