Passed
Push — master ( 23a04c...2a6364 )
by Gabriel
16:49 queued 01:48
created

head()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
1
<?php
2
3
use Nip\Collections\Collection;
4
5
if (! function_exists('collect')) {
6
    /**
7
     * Create a collection from the given value.
8
     *
9
     * @param  mixed  $value
10
     * @return Collection
11
     */
12
    function collect($value = null)
13
    {
14
        return new Collection($value);
15
    }
16
}
17