Current File : /var/www/vinorea/modules/psxdesign/vendor/humbug/php-scoper/specs/use/use-func-group.php
<?php

declare(strict_types=1);

/*
 * This file is part of the humbug/php-scoper package.
 *
 * Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>,
 *                    Pádraic Brady <padraic.brady@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

return [
    'meta' => [
        'title' => 'Use statements for functions with group statements',
        // Default values. If not specified will be the one used
        'prefix' => 'Humbug',
        'whitelist' => [],
        'whitelist-global-constants' => true,
        'whitelist-global-classes' => false,
        'whitelist-global-functions' => true,
        'registered-classes' => [],
        'registered-functions' => [],
    ],

    <<<'PHP'
<?php

use function A\{b};
use function A\{B\c, d};
use function \A\B\{C\g, e};

b();
c();
d();
g();
e();

----
<?php

namespace Humbug;

use function Humbug\A\b;
use function Humbug\A\B\c;
use function Humbug\A\d;
use function Humbug\A\B\C\g;
use function Humbug\A\B\e;
\Humbug\A\b();
\Humbug\A\B\c();
\Humbug\A\d();
\Humbug\A\B\C\g();
\Humbug\A\B\e();

PHP
    ,
];