Handler/FormShiftItemHandler.php
private static function down(array $array, int $item): array
    {
        if (\count($array) - 1 > $item) {
            $b = \array_slice($array, 0, $item, true);
            $b[] = $array[$item + 1];
            $b[] = $array[$item];
            $b += \array_slice($array, $item + 2, \count($array), true);

            return $b;
        }

        return $array;
    }
private static function down(array $array, int $item): array
    {
        if (\count($array) - 1 > $item) {
            $b = \array_slice($array, 0, $item, true);
            $b[] = $array[$item + 1];
            $b[] = $array[$item];
            $b += \array_slice($array, $item + 2, \count($array), true);

            return $b;
        }

        return $array;
    }
Shifts an item in an array one down.

@param array $array
@param int   $item

@return array