| @@ 2460-2467 (lines=8) @@ | ||
| 2457 | * |
|
| 2458 | * @return mixed |
|
| 2459 | */ |
|
| 2460 | public function max() |
|
| 2461 | { |
|
| 2462 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
| 2463 | return false; |
|
| 2464 | } |
|
| 2465 | ||
| 2466 | return max($this->array); |
|
| 2467 | } |
|
| 2468 | ||
| 2469 | /** |
|
| 2470 | * Merge the new $array into the current array. |
|
| @@ 2560-2567 (lines=8) @@ | ||
| 2557 | * |
|
| 2558 | * @return mixed |
|
| 2559 | */ |
|
| 2560 | public function min() |
|
| 2561 | { |
|
| 2562 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
| 2563 | return false; |
|
| 2564 | } |
|
| 2565 | ||
| 2566 | return min($this->array); |
|
| 2567 | } |
|
| 2568 | ||
| 2569 | /** |
|
| 2570 | * Move an array element to a new index. |
|