Hector/Utils.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
getThisUrl
1.0
CRAP 1.0
« Hector/Base.pm ↑ Summary
1 package PSGI::Hector::Utils;
2 =pod
3  
4 =head1 NAME
5  
6 PSGI::Hector::Utils - Helper methods
7  
8 =head1 SYNOPSIS
9  
10 =head1 DESCRIPTION
11  
12 Various methods used by several of the Hector classes.
13  
14 =head1 METHODS
15  
16 =cut
17 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 #########################################################
20  
21 =pod
22  
23 =head2 getThisUrl()
24  
25 DEPRECATED please use getSiteUrl() instead.
26  
27 =cut
28  
29 ###########################################################
30 1 ▶sub getThisUrl{
Subroutine getThisUrl: called CC=1 SCAR=0.0
Pod documented
31 1 shift->getSiteUrl();
32 }
33 #########################################################
34  
35 =pod
36  
37 =head2 getSiteUrl()
38  
39 my $url = $m->getSiteUrl();
40  
41 Returns the full site URL for the current script.
42  
43 =cut
44  
45 ###########################################################
46 3 ▶sub getSiteUrl{
Subroutine getSiteUrl: called CC=1 SCAR=0.0
Pod documented
47 3 my $request = shift->getRequest();
48 3 $request->base->as_string;
49 }
50 #############################################################################################################
51  
52 =head1 Notes
53  
54 =head1 Author
55  
56 MacGyveR <dumb@cpan.org>
57  
58 Development questions, bug reports, and patches are welcome to the above address.
59  
60 =head1 See Also
61  
62 =head1 Copyright
63  
64 Copyright (c) 2017 MacGyveR. All rights reserved.
65  
66 This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
67  
68 =cut
69  
70 ###########################################################
71 5 return 1;
« Hector/Base.pm ↑ Summary