Code Duplication    Length = 5-5 lines in 2 locations

core/helpers/EEH_Debug_Tools.helper.php 1 location

@@ 364-368 (lines=5) @@
361
                if (method_exists($value, 'ID')) {
362
                    $info[$object_class]['ID'] = $value->ID();
363
                }
364
                if (method_exists($value, 'status')) {
365
                    $info[$object_class]['status'] = $value->status();
366
                } else if (method_exists($value, 'status_ID')) {
367
                    $info[$object_class]['status'] = $value->status_ID();
368
                }
369
                unset($info[$key]);
370
            }
371
        }

modules/single_page_checkout/inc/EE_Checkout.class.php 1 location

@@ 1433-1437 (lines=5) @@
1430
                $object_class = get_class($value);
1431
                $info[ $object_class ] = array();
1432
                $info[ $object_class ]['ID'] = method_exists($value, 'ID') ? $value->ID() : 0;
1433
                if (method_exists($value, 'status')) {
1434
                    $info[ $object_class ]['status'] = $value->status();
1435
                } elseif (method_exists($value, 'status_ID')) {
1436
                    $info[ $object_class ]['status'] = $value->status_ID();
1437
                }
1438
                unset($info[ $key ]);
1439
            }
1440
        }