@@ -88,6 +88,9 @@ |
||
88 | 88 | return $this->createDiff('var:type', StructureDiffInfo::TYPE); |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $structure |
|
93 | + */ |
|
91 | 94 | private function diffType($data, $structure) |
92 | 95 | { |
93 | 96 | $needTypes = explode('|', $structure); |
@@ -130,10 +130,10 @@ discard block |
||
130 | 130 | if (is_array($data)) { |
131 | 131 | |
132 | 132 | if (isset($structure['assoc'])) { |
133 | - return $this->assoc($structure['assoc'], $data); |
|
133 | + return $this->assoc($structure['assoc'], $data); |
|
134 | 134 | } |
135 | 135 | |
136 | - if(isset($structure['values'])) { |
|
136 | + if(isset($structure['values'])) { |
|
137 | 137 | |
138 | 138 | if (is_array($structure['values'])) { |
139 | 139 | foreach ($data as $key => $subData) { |
@@ -208,7 +208,6 @@ discard block |
||
208 | 208 | |
209 | 209 | /** |
210 | 210 | * @return Comparator |
211 | - |
|
212 | 211 | */ |
213 | 212 | private static function instance() |
214 | 213 | { |