Test Failed
Branch master (fdda4e)
by ANTHONIUS
03:39
created

UserModule   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 2 1
A getBaseDir() 0 3 1
A getName() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the EOffice project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace EOffice\User;
15
16
use EOffice\Contracts\Support\ModuleInterface;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
19
class UserModule implements ModuleInterface
20
{
21
    public function build(ContainerBuilder $builder): void
0 ignored issues
show
Unused Code introduced by
The parameter $builder is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

21
    public function build(/** @scrutinizer ignore-unused */ ContainerBuilder $builder): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
22
    {
23
    }
24
25
    public function getName(): string
26
    {
27
        return 'user';
28
    }
29
30
    public function getBaseDir(): string
31
    {
32
        return realpath(__DIR__);
33
    }
34
}
35