| 1 | # -*- perl -*- | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | package XML::EP::Formatter::HTML; | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | $XML::EP::Formatter::HTML = '0.01'; | |||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||
| 9 | 0 | my $proto = shift; | |||||||||||||||||||
| 10 | 0 | ▶ | my $self = (@_ == 1) ? \%{ shift() } : { @_ }; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 11 | 0 | ▶ | bless($self, (ref($proto) || $proto)); | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 12 | } | ||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 0 | ▶ | sub Format { | ||||||||||||||||||
|
Subroutine
Format: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 15 | 0 | my $self = shift; my $ep = shift; my $xml = shift; | |||||||||||||||||||
| 16 | 0 | my $response = $ep->Response(); | |||||||||||||||||||
| 17 | 0 | ▶ | $response->ContentType("text/html") unless $response->ContentType(); | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 18 | 0 | my $fh = $ep->Request()->FileHandle(); | |||||||||||||||||||
| 19 | 0 | ▶ | XML::DOM::setTagCompression(sub {1}); | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | $xml->setXMLDecl(undef); | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 0 | print $fh $ep->Response->Headers(); | |||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | 0 | $xml->printToFileHandle($fh); | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||