Passed
Push — master ( 2808ac...afcdc6 )
by Sérgio
03:03
created

indexOf.php ➔ indexOf()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
ccs 2
cts 2
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Prelude;
4
5
const indexOf = __NAMESPACE__.'\indexOf';
6
7
/**
8
 * Just an alias.
9
 */
10
function indexOf(...$args)
11
{
12 2
    $indexOf = partial('array_search');
13 2
    return $indexOf(...$args);
14
}
15