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

ServiceLoader::loadServices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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