Code Duplication    Length = 7-7 lines in 2 locations

PHPDaemon/Clients/IRC/Connection.php 1 location

@@ 417-423 (lines=7) @@
414
            $cmd = $e[$i++];
415
            $args = [];
416
417
            for ($s = min(sizeof($e), 14); $i < $s; ++$i) {
418
                if ($e[$i][0] === ':') {
419
                    $args[] = mb_orig_substr($e[$i], 1);
420
                    break;
421
                }
422
                $args[] = $e[$i];
423
            }
424
425
            if (ctype_digit($cmd)) {
426
                $code = (int)$cmd;

PHPDaemon/Servers/IRCBouncer/Connection.php 1 location

@@ 295-301 (lines=7) @@
292
            $cmd = $e[$i++];
293
            $args = [];
294
295
            for ($s = min(sizeof($e), 14); $i < $s; ++$i) {
296
                if ($e[$i][0] === ':') {
297
                    $args[] = mb_orig_substr($e[$i], 1);
298
                    break;
299
                }
300
                $args[] = $e[$i];
301
            }
302
303
            if (ctype_digit($cmd)) {
304
                $code = (int)$cmd;