@@ 97-105 (lines=9) @@ | ||
94 | //parent側を整理 |
|
95 | $parentSchema = array(); |
|
96 | $lastKey = null; |
|
97 | foreach ($parent as $key => $val) { |
|
98 | if (is_int($key)) { |
|
99 | $parentSchema[$lastKey][] = $val; |
|
100 | } else { |
|
101 | $parentSchema[$key][] = $val; |
|
102 | } |
|
103 | ||
104 | $lastKey = $key; |
|
105 | } |
|
106 | ||
107 | //child側を整理 |
|
108 | $childSchema = array(); |
|
@@ 110-118 (lines=9) @@ | ||
107 | //child側を整理 |
|
108 | $childSchema = array(); |
|
109 | $lastKey = null; |
|
110 | foreach ($child as $key => $val) { |
|
111 | if (is_int($key)) { |
|
112 | $parentSchema[$lastKey][] = $val; |
|
113 | } else { |
|
114 | $parentSchema[$key][] = $val; |
|
115 | } |
|
116 | ||
117 | $lastKey = $key; |
|
118 | } |
|
119 | ||
120 | //マージ |
|
121 | $mergedSchema = $childSchema + $parentSchema; |