| 1 | package Mojolicious::Plugin::Parametry; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use Mojo::Base 'Mojolicious::Plugin'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | 2 | ▶ | use Mojolicious::Plugin::Parametry::Paramer; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 2 | ▶ | use Mojolicious::Plugin::Parametry::ParamerHelpers; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | |||||||||||||
| 9 | 2 | our $VERSION = '1.001002'; # VERSION | |||||||||||
| 10 | |||||||||||||
| 11 | 1 | ▶ | sub register { | ||||||||||
|
Subroutine
register: called CC=3 SCAR=11.3
Pod
documented
| |||||||||||||
| 12 | 1 | my ($self, $app, $conf) = @_; | |||||||||||
| 13 | |||||||||||||
| 14 | $app->helper( | ||||||||||||
| 15 | 2 | ▶ | ($conf->{shortcut_key} // 'P') => sub { | ||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 2 | Mojolicious::Plugin::Parametry::Paramer | |||||||||||
| 17 | ->__THIS_ISNT_THE_PARAM_YOU_SHOULD_BE_LOOKING_FOR_BLARGGRGTRKASDFHJKTRDHSYTSD(shift) | ||||||||||||
| 18 | 1 | ▶ | }); | ||||||||||
|
Condition50%1/2
$conf->{"shortcut_key"} // "P"
MC/DC0%0/1
$conf->{"shortcut_key"} // "P"
$conf->{"shortcut_key"}
Truth table50%1/2
A
A= $conf->{"shortcut_key"}
| |||||||||||||
| 19 | $app->helper( | ||||||||||||
| 20 | 16 | ▶ | ($conf->{helpers_key} // 'PP') => sub { | ||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 21 | 16 | Mojolicious::Plugin::Parametry::ParamerHelpers->new(shift) | |||||||||||
| 22 | 1 | ▶ | }); | ||||||||||
|
Condition50%1/2
$conf->{"helpers_key"} // "PP"
MC/DC0%0/1
$conf->{"helpers_key"} // "PP"
$conf->{"helpers_key"}
Truth table50%1/2
A
A= $conf->{"helpers_key"}
| |||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 2 | 1; | |||||||||||
| 26 | |||||||||||||
| 27 | __END__ | ||||||||||||