Code Duplication    Length = 5-5 lines in 2 locations

PHPDaemon/DNode/DNode.php 2 locations

@@ 223-227 (lines=5) @@
220
                    if (isset($v[0]) && is_object($v[0])) {
221
                        if (isset($v[1]) && is_string($v[1])) {
222
                            $id = ++$this->counter;
223
                            if ($this->persistentMode) {
224
                                $this->persistentCallbacks[$id] = $v;
225
                            } else {
226
                                $this->callbacks[$id] = $v;
227
                            }
228
                            $v = '';
229
                            $list[$id] = $path;
230
                            $list[$id][] = $k;
@@ 240-244 (lines=5) @@
237
                array_pop($path);
238
            } elseif ($v instanceof \Closure) {
239
                $id = ++$this->counter;
240
                if ($this->persistentMode) {
241
                    $this->persistentCallbacks[$id] = $v;
242
                } else {
243
                    $this->callbacks[$id] = $v;
244
                }
245
                $v = '';
246
                $list[$id] = $path;
247
                $list[$id][] = $k;