IgnoreFiles   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isIgnored() 0 7 1
1
<?php
2
3
namespace IgnoreFiles;
4
5
use IgnoreFiles\Service\IgnoreEntrySearcher;
6
7
class IgnoreFiles
8
{
9
    /**
10
     * @var Container
11
     */
12
    private $container;
13
14
    /**
15
     * IgnoreFiles constructor.
16
     */
17
    public function __construct()
18
    {
19
        $this->container = new Container();
20
    }
21
22
    /**
23
     * @param string $entry
24
     *
25
     * @return bool
26
     */
27
    public function isIgnored($entry)
28
    {
29
        /** @var IgnoreEntrySearcher $service */
30
        $service = $this->container->get('ignore.entry.searcher');
31
32
        return $service->search($entry);
33
    }
34
}
35