@@ 173-183 (lines=11) @@ | ||
170 | { |
|
171 | // Check config to merge |
|
172 | $this->clearDeltas($class, $name); |
|
173 | if ($name) { |
|
174 | $this->addDelta($class, [ |
|
175 | 'type' => self::SET, |
|
176 | 'config' => [$name => $data], |
|
177 | ]); |
|
178 | } else { |
|
179 | $this->addDelta($class, [ |
|
180 | 'type' => self::REPLACE, |
|
181 | 'config' => $data, |
|
182 | ]); |
|
183 | } |
|
184 | return $this; |
|
185 | } |
|
186 | ||
@@ 191-200 (lines=10) @@ | ||
188 | { |
|
189 | // Check config to merge |
|
190 | $this->clearDeltas($class, $name); |
|
191 | if ($name) { |
|
192 | $this->addDelta($class, [ |
|
193 | 'type' => self::REMOVE, |
|
194 | 'config' => [$name => true], |
|
195 | ]); |
|
196 | } else { |
|
197 | $this->addDelta($class, [ |
|
198 | 'type' => self::CLEAR, |
|
199 | ]); |
|
200 | } |
|
201 | return $this; |
|
202 | } |
|
203 |