Skip to content

Commit 0406263

Browse files
josip-miloticJosip MilotićStyleCIBot
authored
Mappings fix (#83)
* Corrected mapping logic * Apply fixes from StyleCI Co-authored-by: Josip Milotić <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
1 parent 65a7ed1 commit 0406263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/Traits/TransformsOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ protected function transform(array $response, ?array $mappings): array
2222

2323
/**
2424
* @param array $mappings
25-
* @param $item
25+
* @param array $item
2626
* @return array
2727
*/
2828
protected function mapSingle(array $mappings, array $item): array
2929
{
3030
$data = [];
3131

32-
foreach ($mappings as $localKey => $remoteKey) {
32+
foreach ($mappings as $remoteKey => $localKey) {
3333
if (!array_key_exists($remoteKey, $item)) {
3434
continue;
3535
}

0 commit comments

Comments
 (0)