Skip to content

Commit 6c5eee9

Browse files
committed
Use °F instead of just F
1 parent d2b0fb3 commit 6c5eee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cmfcmf/OpenWeatherMap/Util/Unit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getUnit()
8585
if ($this->unit == 'celsius' || $this->unit == 'metric') {
8686
return "°C";
8787
} elseif ($this->unit == 'fahrenheit') {
88-
return 'F';
88+
return '°F';
8989
} else {
9090
return $this->unit;
9191
}

tests/Util/UnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testFahrenheitFix()
114114
{
115115
$this->givenThereIsAUnitWithUnit("fahrenheit");
116116

117-
$this->assertSame("F", $this->unit->getUnit());
117+
$this->assertSame("°F", $this->unit->getUnit());
118118
}
119119

120120
private function givenThereIsAUnitWithUnit($unit)

0 commit comments

Comments
 (0)