GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — develop (#4)
by Tom Van
03:49
created

Mapper::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
/**
3
 * Mapper for mapping data between raw input and Data classes
4
 *
5
 * @link        http://github.com/PHPExif/php-exif-native for the canonical source repository
6
 * @copyright   Copyright (c) 2016 Tom Van Herreweghe <[email protected]>
7
 * @license     http://github.com/PHPExif/php-exif-native/blob/master/LICENSE MIT License
8
 * @category    PHPExif
9
 * @package     Native
10
 */
11
12
namespace PHPExif\Adapter\Native\Reader;
13
14
use PHPExif\Common\Adapter\MapperInterface;
15
use PHPExif\Common\Data\MetadataInterface;
16
use PHPExif\Common\Mapper\ArrayMapper;
17
use PHPExif\Common\Mapper\FieldMapperTrait;
18
19
/**
20
 * Mapper
21
 *
22
 * Maps the array of exif & iptc data onto the
23
 * correct fields of given MetadataInterface object
24
 *
25
 * @category    PHPExif
26
 * @package     Native
27
 */
28
class Mapper implements MapperInterface, ArrayMapper
29
{
30
    use FieldMapperTrait;
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    public function map(array $input, MetadataInterface &$output)
36
    {
37
        $this->mapArray($input, $output);
38
    }
39
40
    /**
41
     * {@inheritDoc}
42
     */
43
    public function mapArray(array $input, &$output)
44
    {
45
        $mappers = $this->getFieldMappers();
46
47
        foreach ($mappers as $field => $mapper) {
48
            $mapper->mapField($field, $input, $output);
49
        }
50
    }
51
}
52