| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Arr |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Retorna TRUE se é primeiro elemento do array |
||
| 12 | * @param int $i |
||
| 13 | * @return bool |
||
| 14 | */ |
||
| 15 | public static function isFirst($i) |
||
| 16 | { |
||
| 17 | return $i == 0; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Retorna TRUE se é último elemento do array |
||
| 22 | * @param int $i |
||
| 23 | * @param mixed[] $array |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public static function isLast($i, $array) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Retorna TRUE se o array é associativo |
||
| 33 | * @param mixed[] $array |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public static function isAssoc($array) |
||
| 41 |