Code Duplication    Length = 5-5 lines in 2 locations

framework/3rdParty/FirePHPCore/FirePHP.class.php 2 locations

@@ 1125-1129 (lines=5) @@
1122
          // if the recursion is not reset here as it contains
1123
          // a reference to itself. This is the only way I have come up
1124
          // with to stop infinite recursion in this case.
1125
          if($key=='GLOBALS'
1126
             && is_array($val)
1127
             && array_key_exists('GLOBALS',$val)) {
1128
            $val['GLOBALS'] = '** Recursion (GLOBALS) **';
1129
          }
1130
          
1131
          $return[$key] = $this->encodeObject($val, 1, $ArrayDepth + 1);
1132
        }
@@ 1514-1518 (lines=5) @@
1511
      // if the recursion is not reset here as it contains
1512
      // a reference to itself. This is the only way I have come up
1513
      // with to stop infinite recursion in this case.
1514
      if($name=='GLOBALS'
1515
         && is_array($value)
1516
         && array_key_exists('GLOBALS',$value)) {
1517
        $value['GLOBALS'] = '** Recursion **';
1518
      }
1519
    
1520
      $encoded_value = $this->json_encode($value);
1521