Passed
Branch tests1.5 (af713c)
by Wanderson
01:19
created

Arr::isLast()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Win\Format;
4
5
/**
6
 * Manipulador de Arrays
7
 *
8
 */
9
class Arr {
10
11
	public static function isFirst($i) {
12
		return ($i == 0);
13
	}
14
15
	public static function isLast($i, &$array) {
16
		return ($i == count($array) - 1);
17
	}
18
19
}
20