Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor lint errors #59

Merged
merged 1 commit into from
Jul 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix minor lint errors
  • Loading branch information
triplepoint committed Jul 24, 2016
commit e56cf6ff0270e6ead7fb6ec01a48ec2907f06745
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