File manager - Edit - /home/u300416816/domains/majalrib7.com/public_html/vendor/nicmart/tree/test/Util/Helper.php
Back
<?php declare(strict_types=1); /** * Copyright (c) 2013-2023 Nicolò Martini * * For the full copyright and license information, please view * the LICENSE.md file that was distributed with this source code. * * @see https://github.com/nicmart/Tree */ namespace Tree\Test\Util; use Faker\Factory; use Faker\Generator; trait Helper { final protected static function faker(string $locale = 'en_US'): Generator { /** * @var array<string, Generator> */ static $fakers = []; if (!\array_key_exists($locale, $fakers)) { $faker = Factory::create($locale); $faker->seed(9001); $fakers[$locale] = $faker; } return $fakers[$locale]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings