Module   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 8
c 1
b 0
f 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onBootstrap() 0 9 1
A getConfig() 0 3 1
1
<?php
2
3
namespace Application;
4
5
use Laminas\Mvc\MvcEvent;
6
7
class Module
8
{
9
    const VERSION = '3.0.3-dev';
10
11
    public function getConfig()
12
    {
13
        return include __DIR__ . '/../config/module.config.php';
14
    }
15
16
    public function onBootstrap(MvcEvent $event)
17
    {
18
        $serviceManager = $event->getApplication()->getServiceManager();
19
        $viewModel = $event->getApplication()->getMvcEvent()->getViewModel();
20
21
        $config = $serviceManager->get('configuration');
22
        $config = $config['idlerpg'];
23
24
        $viewModel->title = $config['bot_channel'] . '[at]' . $config['network_host'];
25
    }
26
}
27