ComponentCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A prefix() 0 6 1
A withoutNamespace() 0 6 1
1
<?php
2
3
namespace Spatie\BladeX;
4
5
use Illuminate\Support\Collection;
6
7
/**
8
 * @property-read Component $each
9
 */
10
class ComponentCollection extends Collection
11
{
12
    public function prefix(string $prefix)
13
    {
14
        $this->each->prefix($prefix);
15
16
        return $this;
17
    }
18
19
    public function withoutNamespace()
20
    {
21
        $this->each->withoutNamespace();
22
23
        return $this;
24
    }
25
}
26