src/Faker.php
public function format($formatter, array $arguments = [])
    {
        $generator = $this->getGenerator();

        return function () use ($generator, $formatter, $arguments) {
            return $generator->format($formatter, $arguments);
        };
    }
public function format($formatter, array $arguments = [])
    {
        $generator = $this->getGenerator();

        return function () use ($generator, $formatter, $arguments) {
            return $generator->format($formatter, $arguments);
        };
    }
public function format ( $ formatter , array $ arguments = [ ] ) { $ generator = $ this -> getGenerator ( ) ; return function ( ) use ( $ generator , $ formatter , $ arguments ) { return $ generator -> format ( $ formatter , $ arguments ) ; } ; }
Wrap a faker format in a closure.

@param string $formatter The formatter.
@param array  $arguments The arguments.

@return \Closure
Wrap a faker format in a closure .