src/Traits/TransformerTrait.php
private function dotTransformer($content, $flatten_array, $prefix = '')
    {
        $parsed = array();
        foreach ($content as $arr_k => $arr_v) {
            if (is_array($arr_v)) {
                if (!$flatten_array) {
                    $parsed[$prefix.$arr_k] = $arr_v;
                }

                $parsed = array_merge($parsed, $this->dotTransformer($arr_v, $flatten_array, $prefix.$arr_k."."));
            } else {
                $parsed[$prefix.$arr_k] = $arr_v;
            }
        }

        return $parsed;
    }
private function dotTransformer($content, $flatten_array, $prefix = '')
    {
        $parsed = array();
        foreach ($content as $arr_k => $arr_v) {
            if (is_array($arr_v)) {
                if (!$flatten_array) {
                    $parsed[$prefix.$arr_k] = $arr_v;
                }

                $parsed = array_merge($parsed, $this->dotTransformer($arr_v, $flatten_array, $prefix.$arr_k."."));
            } else {
                $parsed[$prefix.$arr_k] = $arr_v;
            }
        }

        return $parsed;
    }
Converts the array into a flat dot notation array

@param array  $content       The content array
@param bool   $flatten_array Flatten arrays into none existent keys
@param string $prefix        The prefix for the key

@return array The dot notation array