Code Duplication    Length = 4-8 lines in 5 locations

Components/Klarna/transport/xmlrpc-3.0.0.beta/lib/xmlrpcs.inc 5 locations

@@ 146-149 (lines=4) @@
143
				$r=new xmlrpcresp(new xmlrpcval('undef', 'string'));
144
			}
145
		}
146
		else
147
		{
148
			$r=new xmlrpcresp(0,$GLOBALS['xmlrpcerr']['introspect_unknown'], $GLOBALS['xmlrpcstr']['introspect_unknown']);
149
		}
150
		return $r;
151
	}
152
@@ 187-190 (lines=4) @@
184
				$r=new xmlrpcresp(new xmlrpcval('', 'string'));
185
			}
186
		}
187
		else
188
		{
189
			$r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['introspect_unknown'], $GLOBALS['xmlrpcstr']['introspect_unknown']);
190
		}
191
		return $r;
192
	}
193
@@ 844-848 (lines=5) @@
841
							if($this->debug > 1)
842
								$this->debugmsg("+++INFLATED REQUEST+++[".strlen($data)." chars]+++\n" . $data . "\n+++END+++");
843
						}
844
						else
845
						{
846
							$r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['server_decompress_fail'], $GLOBALS['xmlrpcstr']['server_decompress_fail']);
847
							return $r;
848
						}
849
					}
850
					else
851
					{
@@ 850-855 (lines=6) @@
847
							return $r;
848
						}
849
					}
850
					else
851
					{
852
						//error_log('The server sent deflated data. Your php install must have the Zlib extension compiled in to support this.');
853
						$r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['server_cannot_decompress'], $GLOBALS['xmlrpcstr']['server_cannot_decompress']);
854
						return $r;
855
					}
856
				}
857
			}
858
@@ 1128-1135 (lines=8) @@
1125
						{
1126
							$r = new xmlrpcresp($r);
1127
						}
1128
						else
1129
						{
1130
							$r = new xmlrpcresp(
1131
								0,
1132
								$GLOBALS['xmlrpcerr']['server_error'],
1133
								$GLOBALS['xmlrpcstr']['server_error'] . ": function does not return xmlrpcresp object"
1134
							);
1135
						}
1136
					}
1137
				}
1138
				else