@@ -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); |
@@ -65,14 +65,20 @@ |
||
65 | 65 | * К примеру формата даты или длины |
66 | 66 | */ |
67 | 67 | |
68 | - if (in_array($this->getType($value), $types)) return; /* success */ |
|
68 | + if (in_array($this->getType($value), $types)) { |
|
69 | + return; |
|
70 | + } |
|
71 | + /* success */ |
|
69 | 72 | |
70 | 73 | if ($this->exists) { |
71 | 74 | if ($intersect = array_intersect($types, $this->exists)) { |
72 | 75 | foreach ($intersect as $key) { |
73 | 76 | $diff = $this->compare($value, $this->temporaryCustom[$key]); |
74 | 77 | |
75 | - if (empty($diff)) return; /* success */ |
|
78 | + if (empty($diff)) { |
|
79 | + return; |
|
80 | + } |
|
81 | + /* success */ |
|
76 | 82 | } |
77 | 83 | |
78 | 84 | return $this->processDiff($diff, "custom:type:$key"); |