Skip to content

Commit

Permalink
Fix: remove unneccesary scientific symbol setters
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbrauer committed Nov 14, 2017
1 parent 9fdec81 commit 6247a6e
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 25 deletions.
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Area/Acre.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("acre")

->setScientificSymbol("acre")

->setUnits(4046.86)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Area/Hectare.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("ha")

->setScientificSymbol("ha")

->setUnits(10000)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/Calorie.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("cal")

->setScientificSymbol("cal")

->setUnits(4184)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/Joule.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("J")

->setScientificSymbol("J")

->setUnits(1)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/Kilojoule.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("kJ")

->setScientificSymbol("kJ")

->setUnits(1000)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/Megaelectronvolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("MeV")

->setScientificSymbol("MeV")

->setUnits(1.60218e-13)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/Megajoule.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("MJ")

->setScientificSymbol("MJ")

->setUnits(1000000)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Energy/MegawattHour.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("MWh")

->setScientificSymbol("MWh")

->setUnits(3600005446.8)
;
}
Expand Down
4 changes: 3 additions & 1 deletion src/UnitConverter/Unit/Length/Micrometre.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ protected function configure (): void
$this
->setName("micrometre")

->setSymbol("µm")
->setSymbol("um")

->setScientificSymbol("µm")

# 1.0E-6
->setUnits(0.000001)
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Volume/Gallon.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("gal")

->setScientificSymbol("gal")

->setUnits(3.78541)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Volume/Litre.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("L")

->setScientificSymbol("L")

->setUnits(1)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Volume/Millilitre.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("mL")

->setScientificSymbol("mL")

->setUnits(0.001)
;
}
Expand Down
2 changes: 0 additions & 2 deletions src/UnitConverter/Unit/Volume/Pint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ protected function configure (): void

->setSymbol("pt")

->setScientificSymbol("liq pt")

->setUnits(0.473176)
;
}
Expand Down

0 comments on commit 6247a6e

Please sign in to comment.