1 | <?php |
||
29 | final class Reader implements ReaderInterface |
||
30 | { |
||
31 | const SECTIONS = 'sections'; |
||
32 | const ARRAYS = 'asArrays'; |
||
33 | const THUMBNAILINFO = 'thumbnailInfo'; |
||
34 | const WITHIPTC = 'withIptc'; |
||
35 | |||
36 | /** |
||
37 | * @var MapperInterface |
||
38 | */ |
||
39 | private $mapper; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $sections = null; |
||
45 | |||
46 | /** |
||
47 | * @var boolean |
||
48 | */ |
||
49 | private $asArrays = false; |
||
50 | |||
51 | /** |
||
52 | * @var boolean |
||
53 | */ |
||
54 | private $thumbnailInfo = false; |
||
55 | |||
56 | /** |
||
57 | * @var boolean |
||
58 | */ |
||
59 | private $withIptc = true; |
||
60 | |||
61 | /** |
||
62 | * @param MapperInterface $mapper |
||
63 | * @param array $config |
||
64 | */ |
||
65 | public function __construct( |
||
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | public function getMapper() |
||
93 | |||
94 | /** |
||
95 | * {@inheritDoc} |
||
96 | */ |
||
97 | public function getMetadataFromFile($filePath) |
||
122 | |||
123 | /** |
||
124 | * Adds data from iptcparse to the original raw EXIF data |
||
125 | * |
||
126 | * @param string $filePath |
||
127 | * @param array $data |
||
128 | * |
||
129 | * @return void |
||
130 | */ |
||
131 | private function augmentDataWithIptcRawData($filePath, array &$data) |
||
156 | } |
||
157 |
This check looks for calls to
isset(...)
orempty()
on variables that are yet undefined. These calls will always produce the same result and can be removed.This is most likely caused by the renaming of a variable or the removal of a function/method parameter.