| 1 | package XIRCD::Component; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use self; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Devel::Caller qw(caller_args); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use Sub::Exporter -setup => { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | exports => [qw(self debug get_args http_alias yield delay post publish_message publish_notice)], | ||||||||||
| 10 | groups => { | ||||||||||
| 11 | default => [ -all ], | ||||||||||
| 12 | } | ||||||||||
| 13 | 1 | }; | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub debug (@) { ## no critic. | ||||||||
|
Subroutine
debug: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 16 | 0 | ▶ | print @_, "\n\n" if $ENV{XIRCD_DEBUG}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub get_args { | ||||||||
|
Subroutine
get_args: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | 0 | return (caller_args(1))[10..20]; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub http_alias { | ||||||||
|
Subroutine
http_alias: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 24 | 0 | return 'twitter_' . self->get_session_id; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub yield (@) { ## no critic. | ||||||||
|
Subroutine
yield: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 28 | 0 | POE::Kernel->yield(@_); | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub delay (@) { ## no critic. | ||||||||
|
Subroutine
delay: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 32 | 0 | POE::Kernel->delay(@_); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | sub post (@) { ## no critic. | ||||||||
|
Subroutine
post: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 0 | POE::Kernel->post(@_); | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 0 | ▶ | sub publish_message ($$) { ## no critic. | ||||||||
|
Subroutine
publish_message: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | 0 | my $self = (caller_args(1))[0]; | |||||||||
| 41 | 0 | my ($nick, $text) = @_; | |||||||||
| 42 | |||||||||||
| 43 | 0 | post ircd => '_publish_message' => $nick, $self->channel, $text; | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | 0 | ▶ | sub publish_notice ($) { ## no critic. | ||||||||
|
Subroutine
publish_notice: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 47 | 0 | my $self = (caller_args(1))[0]; | |||||||||
| 48 | 0 | my ($text,) = @_; | |||||||||
| 49 | |||||||||||
| 50 | 0 | post ircd => '_publish_notice' => $self->channel, $text; | |||||||||
| 51 | } | ||||||||||
| 52 | |||||||||||
| 53 | |||||||||||
| 54 | 1 | 1; | |||||||||