Skip to content

Commit

Permalink
Merge pull request PhpUnitsOfMeasure#59 from PhpUnitsOfMeasure/featur…
Browse files Browse the repository at this point in the history
…e/fix_lint_checks

Fix minor lint errors
  • Loading branch information
triplepoint authored Jul 24, 2016
2 parents 8721bee + e56cf6f commit 96d3695
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion source/AbstractPhysicalQuantity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
11 changes: 6 additions & 5 deletions tests/AbstractPhysicalQuantityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 96d3695

Please sign in to comment.