improve CSS on workshop 5

This commit is contained in:
boris
2024-10-17 23:28:35 +01:00
parent 9b6cf0badd
commit 2238305d65
29 changed files with 2399 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ class Converter {
* @return string Result of conversion
*/
public function convert(): string {
$result = false;
if (is_numeric($this->number)) {
$result = $this->number;
switch ($this->fromUnit) {
@@ -61,9 +62,6 @@ class Converter {
break;
}
}
else {
$result = false;
}
return $result;
}
}