From 5226464e69db6aee0318e90fef3ad3df2baedcdd Mon Sep 17 00:00:00 2001 From: RemiCollin Date: Tue, 19 Jun 2018 14:26:54 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/System/Builders/ResultBuilder.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/System/Builders/ResultBuilder.php b/src/System/Builders/ResultBuilder.php index dcc9fed..fe9bfe7 100644 --- a/src/System/Builders/ResultBuilder.php +++ b/src/System/Builders/ResultBuilder.php @@ -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 @@ -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);