@@ -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); |
@@ -91,8 +91,8 @@ |
||
91 | 91 | |
92 | 92 | private function diffSet($data, $set) |
93 | 93 | { |
94 | - $data = (array)$data; |
|
95 | - $set = (array)$set; |
|
94 | + $data = (array) $data; |
|
95 | + $set = (array) $set; |
|
96 | 96 | |
97 | 97 | if (array_diff($data, $set)) { |
98 | 98 | return $this->createDiff('set:out', StructureDiffInfo::TYPE); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public static function createDiff($message) |
26 | 26 | { |
27 | - $self = new self(false); |
|
27 | + $self = new self(false); |
|
28 | 28 | $self->message = $message; |
29 | 29 | return $self; |
30 | 30 | } |