Completed
Pull Request — master (#19)
by ARCANEDEV
08:28
created

Collection::unique()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 9
nc 2
nop 2
dl 0
loc 15
ccs 10
cts 10
cp 1
crap 3
rs 9.4285
c 0
b 0
f 0
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 Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Reset the collection.
20
     *
21
     * @return static
22
     */
23 2
    public function reset()
24
    {
25 2
        $this->items = [];
26
27 2
        return $this;
28
    }
29
}
30