From 3fce071d6b635103f04307215a3afb951fb6ddb5 Mon Sep 17 00:00:00 2001 From: jordanbrauer Date: Tue, 14 Nov 2017 09:05:51 -0600 Subject: [PATCH] Fix: spelling of area unit classes --- .../Area/{SquareCentimeter.php => SquareCentimetre.php} | 8 +++++--- .../Area/{SquareKilometer.php => SquareKilometre.php} | 8 +++++--- .../Unit/Area/{SquareMeter.php => SquareMetre.php} | 8 +++++--- .../Area/{SquareMillimeter.php => SquareMillimetre.php} | 8 +++++--- 4 files changed, 20 insertions(+), 12 deletions(-) rename src/UnitConverter/Unit/Area/{SquareCentimeter.php => SquareCentimetre.php} (79%) rename src/UnitConverter/Unit/Area/{SquareKilometer.php => SquareKilometre.php} (79%) rename src/UnitConverter/Unit/Area/{SquareMeter.php => SquareMetre.php} (78%) rename src/UnitConverter/Unit/Area/{SquareMillimeter.php => SquareMillimetre.php} (79%) diff --git a/src/UnitConverter/Unit/Area/SquareCentimeter.php b/src/UnitConverter/Unit/Area/SquareCentimetre.php similarity index 79% rename from src/UnitConverter/Unit/Area/SquareCentimeter.php rename to src/UnitConverter/Unit/Area/SquareCentimetre.php index e68e3eb0..83e94051 100644 --- a/src/UnitConverter/Unit/Area/SquareCentimeter.php +++ b/src/UnitConverter/Unit/Area/SquareCentimetre.php @@ -15,21 +15,23 @@ namespace UnitConverter\Unit\Area; /** - * Square centimeter data class. + * Square centimetre data class. * * @version 1.0.0 * @since 0.0.1 * @author Jordan Brauer */ -class SquareCentimeter extends AreaUnit +class SquareCentimetre extends AreaUnit { protected function configure (): void { $this - ->setName("square centimeter") + ->setName("square centimetre") ->setSymbol("cm2") + ->setScientificSymbol("cm²") + ->setUnits(0.0001) ; } diff --git a/src/UnitConverter/Unit/Area/SquareKilometer.php b/src/UnitConverter/Unit/Area/SquareKilometre.php similarity index 79% rename from src/UnitConverter/Unit/Area/SquareKilometer.php rename to src/UnitConverter/Unit/Area/SquareKilometre.php index 4fce7dc4..b0b9aab8 100644 --- a/src/UnitConverter/Unit/Area/SquareKilometer.php +++ b/src/UnitConverter/Unit/Area/SquareKilometre.php @@ -15,21 +15,23 @@ namespace UnitConverter\Unit\Area; /** - * Square kilometer data class. + * Square kilometre data class. * * @version 1.0.0 * @since 0.0.1 * @author Jordan Brauer */ -class SquareKilometer extends AreaUnit +class SquareKilometre extends AreaUnit { protected function configure (): void { $this - ->setName("square kilometer") + ->setName("square kilometre") ->setSymbol("km2") + ->setScientificSymbol("km²") + ->setUnits(1000000) ; } diff --git a/src/UnitConverter/Unit/Area/SquareMeter.php b/src/UnitConverter/Unit/Area/SquareMetre.php similarity index 78% rename from src/UnitConverter/Unit/Area/SquareMeter.php rename to src/UnitConverter/Unit/Area/SquareMetre.php index f8b5f88b..b70b40da 100644 --- a/src/UnitConverter/Unit/Area/SquareMeter.php +++ b/src/UnitConverter/Unit/Area/SquareMetre.php @@ -15,22 +15,24 @@ namespace UnitConverter\Unit\Area; /** - * Square meter data class. All area units will use this + * Square metre data class. All area units will use this * class as the $base property. * * @version 1.0.0 * @since 0.0.1 * @author Jordan Brauer */ -class SquareMeter extends AreaUnit +class SquareMetre extends AreaUnit { protected function configure (): void { $this - ->setName("square meter") + ->setName("square metre") ->setSymbol("m2") + ->setScientificSymbol("m²") + ->setUnits(1) ; } diff --git a/src/UnitConverter/Unit/Area/SquareMillimeter.php b/src/UnitConverter/Unit/Area/SquareMillimetre.php similarity index 79% rename from src/UnitConverter/Unit/Area/SquareMillimeter.php rename to src/UnitConverter/Unit/Area/SquareMillimetre.php index 83686c88..cf9fc35a 100644 --- a/src/UnitConverter/Unit/Area/SquareMillimeter.php +++ b/src/UnitConverter/Unit/Area/SquareMillimetre.php @@ -15,21 +15,23 @@ namespace UnitConverter\Unit\Area; /** - * Square millimeter data class. + * Square millimetre data class. * * @version 1.0.0 * @since 0.0.1 * @author Jordan Brauer */ -class SquareMillimeter extends AreaUnit +class SquareMillimetre extends AreaUnit { protected function configure (): void { $this - ->setName("square millimeter") + ->setName("square millimetre") ->setSymbol("mm2") + ->setScientificSymbol("mm²") + ->setUnits(0.000001) ; }