@@ -119,6 +119,9 @@ |
||
119 | 119 | return $first; |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param CollectionInterface $list |
|
124 | + */ |
|
122 | 125 | protected function appendItens($list) |
123 | 126 | { |
124 | 127 | foreach ($list as $item) { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $data = $this->parserFromFile($filePath); |
45 | 45 | |
46 | - $collection = new Collection($this->parserProcess($data)); |
|
46 | + $collection = new Collection($this->parserProcess($data)); |
|
47 | 47 | $collection->setMeta($this->parserMetas($data)); |
48 | 48 | |
49 | 49 | return $collection; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if (!$this->hasKey($item)) { |
106 | 106 | continue; |
107 | 107 | } |
108 | - $key = $item->get($this->idField); |
|
108 | + $key = $item->get($this->idField); |
|
109 | 109 | |
110 | 110 | if ($second->containsKey($key)) { |
111 | 111 | foreach ($second->get($key) as $field => $value) { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | |
37 | 37 | private $_documentElementTree = []; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $parent |
|
41 | + */ |
|
39 | 42 | protected function documentElementTreeAppend(DOMElement $tag, $parent) |
40 | 43 | { |
41 | 44 | if (!array_key_exists($parent, $this->_documentElementTree)) { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | protected function normalizePrice($value) |
32 | 32 | { |
33 | - $strpos = function ($needle) use ($value) { |
|
33 | + $strpos = function($needle) use ($value) { |
|
34 | 34 | return strpos($value, $needle); |
35 | 35 | }; |
36 | 36 |