Code Duplication    Length = 19-19 lines in 2 locations

src/RpcClient.php 2 locations

@@ 497-515 (lines=19) @@
494
            
495
            $received = $this->performCall($real_request, 'text/xml');
496
497
            if ( self::phpXmlrpcAvailable() ) {
498
499
                $decoded = xmlrpc_decode($received);
500
501
                if ( is_array($decoded) && xmlrpc_is_fault($decoded) ) throw new RpcException($decoded['faultString'], $decoded['faultCode']);
502
503
                $return = $decoded;
504
505
            } else {
506
507
                $decoder = new XmlrpcDecoder();
508
509
                $decoded = $decoder->decodeResponse($received);
510
511
                if ( $decoder->isFault() ) throw new RpcException($decoded['faultString'], $decoded['faultCode']);
512
513
                $return = $decoded;
514
515
            }
516
517
518
        } catch (RpcException $re) {
@@ 576-594 (lines=19) @@
573
574
            $received = $this->performCall($request, 'text/xml');
575
576
            if ( self::phpXmlrpcAvailable() ) {
577
578
                $decoded = xmlrpc_decode($received);
579
580
                if ( is_array($decoded) && xmlrpc_is_fault($decoded) ) throw new RpcException($decoded['faultString'], $decoded['faultCode']);
581
582
                $return = $decoded;
583
584
            } else {
585
586
                $decoder = new XmlrpcDecoder();
587
588
                $decoded = $decoder->decodeResponse($received);
589
590
                if ( $decoder->isFault() ) throw new RpcException($decoded['faultString'], $decoded['faultCode']);
591
592
                $return = $decoded;
593
594
            }
595
596
597
        } catch (HttpException $he) {