Completed
Push — master ( e02933...197ad6 )
by ARCANEDEV
08:16
created

Collection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A reset() 0 6 1
1
<?php namespace Arcanedev\Support;
2
3
use Illuminate\Support\Collection as IlluminateCollection;
4
5
/**
6
 * Class     Collection
7
 *
8
 * @package  Arcanedev\Support
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class Collection extends IlluminateCollection
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Custom Functions
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Reset the collection.
19
     *
20
     * @return static
21
     */
22 8
    public function reset()
23
    {
24 8
        $this->items = [];
25
26 8
        return $this;
27
    }
28
}
29