protected function evaluateClosureFormatters(array $extra, array $insertedPKs, Model $currentParent)
    {
        return array_map(function ($formatter) use ($insertedPKs, $currentParent) {
            return is_callable($formatter) ? $formatter($currentParent, $insertedPKs) : $formatter;
        }, $extra);
    }
protected function evaluateClosureFormatters(array $extra, array $insertedPKs, Model $currentParent)
    {
        return array_map(function ($formatter) use ($insertedPKs, $currentParent) {
            return is_callable($formatter) ? $formatter($currentParent, $insertedPKs) : $formatter;
        }, $extra);
    }
protected function evaluateClosureFormatters ( array $ extra , array $ insertedPKs , Model $ currentParent ) { return array_map ( function ( $ formatter ) use ( $ insertedPKs , $ currentParent ) { return is_callable ( $ formatter ) ? $ formatter ( $ currentParent , $ insertedPKs ) : $ formatter ; } , $ extra ) ; }
Evaluate closure formatters.

@param  array   $extra
@param  array[] $insertedPKs
@param  Model   $currentParent
@return array The attributes.
Evaluate closure formatters .