| @@ 2526-2533 (lines=8) @@ | ||
| 2523 | * |
|
| 2524 | * @return mixed |
|
| 2525 | */ |
|
| 2526 | public function max() |
|
| 2527 | { |
|
| 2528 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
| 2529 | return false; |
|
| 2530 | } |
|
| 2531 | ||
| 2532 | return max($this->array); |
|
| 2533 | } |
|
| 2534 | ||
| 2535 | /** |
|
| 2536 | * Merge the new $array into the current array. |
|
| @@ 2634-2641 (lines=8) @@ | ||
| 2631 | * |
|
| 2632 | * @return mixed |
|
| 2633 | */ |
|
| 2634 | public function min() |
|
| 2635 | { |
|
| 2636 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
| 2637 | return false; |
|
| 2638 | } |
|
| 2639 | ||
| 2640 | return min($this->array); |
|
| 2641 | } |
|
| 2642 | ||
| 2643 | /** |
|
| 2644 | * Move an array element to a new index. |
|