diff --git a/source/AbstractPhysicalQuantity.php b/source/AbstractPhysicalQuantity.php index e0e4d0d..0d61bbf 100644 --- a/source/AbstractPhysicalQuantity.php +++ b/source/AbstractPhysicalQuantity.php @@ -216,7 +216,8 @@ public function isEquivalentQuantity(PhysicalQuantityInterface $testQuantity) * Get the unit definition array * @return Array $unitDefinitions */ - public static function getUnitDefinitions() { + public static function getUnitDefinitions() + { if (!is_array(static::$unitDefinitions)) { static::$unitDefinitions = []; static::initialize(); diff --git a/tests/AbstractPhysicalQuantityTest.php b/tests/AbstractPhysicalQuantityTest.php index 475c985..19ce3f2 100644 --- a/tests/AbstractPhysicalQuantityTest.php +++ b/tests/AbstractPhysicalQuantityTest.php @@ -207,13 +207,14 @@ public function testSubtract( /** * @covers \PhpUnitsOfMeasure\AbstractPhysicalQuantity::getUnitDefinitions */ - public function testGetAllUnits() { - $array = Wonkicity::getUnitDefinitions(); + public function testGetAllUnits() + { + $array = Wonkicity::getUnitDefinitions(); - $this->assertTrue(is_array($array)); + $this->assertTrue(is_array($array)); - $expected = array(Wonkicity::getUnit('u'), Wonkicity::getUnit('v')); - $this->assertEquals($array, $expected); + $expected = array(Wonkicity::getUnit('u'), Wonkicity::getUnit('v')); + $this->assertEquals($array, $expected); } /**