FileCollection   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A clearIndexKeys() 0 6 2
A clearIndex() 0 4 1
1
<?php
2
namespace Tests\AppBundle\Mock;
3
4
class FileCollection extends \AppBundle\Sync\Entity\FileCollection
5
{
6
    public function clearIndexKeys()
7
    {
8
        foreach ($this->index as $key => &$value) {
9
            $value = [];
10
        }
11
    }
12
13
    public function clearIndex()
14
    {
15
        $this->index = [];
16
    }
17
}
18