Completed
Push — master ( b35b8e...61cba7 )
by Muhammad Kashif
24:49
created

ServiceLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 0
dl 0
loc 21
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadServices() 0 8 1
1
<?php
2
3
namespace Gr8abbasi\Container;
4
5
/**
6
 * Class ServiceLoader
7
 *
8
 * Loads configuration from different file types
9
 */
10
class ServiceLoader
11
{
12
    /**
13
     * @var array $services
14
     */
15
    private $services;
16
17
    /**
18
     * Load Services from config files
19
     * using php file config library
20
     */
21 1
    public function loadServices($filePath)
0 ignored issues
show
Unused Code introduced by
The parameter $filePath is not used and could be removed.

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

Loading history...
22
    {
23
        /**
24
         * REMOVE ME AND ADD LIBRARY CODE HERE
25
         */
26 1
        $this->services = ['hello'];
27 1
        return $this->services;
28
    }
29
30
}
31