src/Logger/src/Formatter/FluentdFormatter.php
private function reachUpFirstNestedLevel(array $event)
    {
        $repackEvent = [];
        foreach ($event as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $nestedKey => $nestedValue) {
                    $repackEvent["$key.$nestedKey"] = $nestedValue;
                }
            } else if (!is_array($value)) {
                $repackEvent[$key] = $value;
            }
        }
        return $repackEvent;
    }
private function reachUpFirstNestedLevel(array $event)
    {
        $repackEvent = [];
        foreach ($event as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $nestedKey => $nestedValue) {
                    $repackEvent["$key.$nestedKey"] = $nestedValue;
                }
            } else if (!is_array($value)) {
                $repackEvent[$key] = $value;
            }
        }
        return $repackEvent;
    }
private function reachUpFirstNestedLevel ( array $ event ) { $ repackEvent = [ ] ; foreach ( $ event as $ key => $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ nestedKey => $ nestedValue ) { $ repackEvent [ "$key.$nestedKey" ] = $ nestedValue ; } } else if ( ! is_array ( $ value ) ) { $ repackEvent [ $ key ] = $ value ; } } return $ repackEvent ; }
reach up first nested arrays in event
@param array $event
@return array
reach up first nested arrays in event