Skip to content

Commit

Permalink
Merge pull request #272 from analogueorm/analysis-86vEw6
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RemiCollin authored Jun 19, 2018
2 parents d49cb6d + 5226464 commit 9019527
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/System/Builders/ResultBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,10 @@ protected function buildResultSet(array $results): array
}

/**
* Build a result set
*
* @param array $results
* Build a result set.
*
* @param array $results
*
* @return array
*/
protected function buildUnkeyedResultSet(array $results) : array
Expand All @@ -336,17 +337,18 @@ protected function buildUnkeyedResultSet(array $results) : array
}

/**
* Build a result set keyed by PK
*
* @param array $results
* @param string. $primaryKey
* Build a result set keyed by PK.
*
* @param array $results
* @param string. $primaryKey
*
* @return array
*/
protected function buildKeyedResultSet(array $results, string $primaryKey) : array
{
$builder = new EntityBuilder($this->mapper, array_keys($this->eagerLoads));

$keys = array_map(function($item) use ($primaryKey) {
$keys = array_map(function ($item) use ($primaryKey) {
return $item[$primaryKey];
}, $results);

Expand Down

0 comments on commit 9019527

Please sign in to comment.