Skip to content

Commit

Permalink
Merge pull request #191 from iranianpep/analysis-87B66j
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
iranianpep committed Jul 18, 2017
2 parents ea4baa6 + e6f8407 commit 4d23aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Botonomous/utility/ArrayUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function sortArrayByLength($array)
}

/**
* Find the key for the max positive value
* Find the key for the max positive value.
*
* @param $array
*
Expand All @@ -106,5 +106,4 @@ public function maxPositiveValueKey($array)
return array_search($maxValue, $array);
}
}

}
6 changes: 3 additions & 3 deletions tests/Botonomous/utility/ArrayUtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,21 @@ public function testMaxPositiveValueKey()
'test' => 1,
'test2' => 2,
],
'output' => 'test2'
'output' => 'test2',
],
[
'input' => [
'test' => 1,
'test2' => 0,
],
'output' => 'test'
'output' => 'test',
],
[
'input' => [
'test' => 0,
'test2' => -2,
],
'output' => null
'output' => null,
],
];

Expand Down

0 comments on commit 4d23aa9

Please sign in to comment.