Skip to content
Snippets Groups Projects
Unverified Commit e366a408 authored by Daniel Siepmann's avatar Daniel Siepmann
Browse files

TASK: Refactor to save else path

* Do not use else, as hinted by phpmd, use return instead.
parent d504f6e2
Branches
Tags
No related merge requests found
......@@ -80,12 +80,10 @@ class Standards implements \Iterator
*/
protected function getStandardName($standard) {
if ($standard instanceof Standard) {
$standard = $standard->getName();
} else {
$standard = (string)$standard;
return $standard->getName();
}
return $standard;
return (string)$standard;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment