Code Duplication    Length = 4-4 lines in 3 locations

framework/3rdParty/PhpShell/PHP/Shell.php 3 locations

@@ 347-350 (lines=4) @@
344
345
                            /* obj */
346
347
                            if (!method_exists($object, $method)) {
348
                                throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'",
349
                                    $objname, get_class($object), $method));
350
                            }
351
                        }
352
                    } else if ($last >= 3 &&
353
                        $ts[0]['token'] != T_CLASS && /* if we are not in a class definition */
@@ 381-384 (lines=4) @@
378
379
                        /* obj */
380
381
                        if (!method_exists($object, $method)) {
382
                            throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'",
383
                                $objname, get_class($object), $method));
384
                        }
385
386
                    } else if ($last >= 6 &&
387
                        $ts[0]['token'] != T_CLASS && /* if we are not in a class definition */
@@ 425-428 (lines=4) @@
422
423
                        /* obj */
424
425
                        if (!method_exists($object, $method)) {
426
                            throw new Exception(sprintf("Variable %s (Class '%s') doesn't have a method named '%s'",
427
                                $objname, get_class($object), $method));
428
                        }
429
430
                    } else if ($last >= 3 &&
431
                        $ts[0]['token'] != T_CLASS && /* if we are not in a class definition */