src/Processors/DataProcessor.php
public function flatten(array $array)
    {
        $return = [];
        foreach ($array as $key => $value) {
            if (in_array($key, $this->exceptions)) {
                $return[$key] = $value;
            } else {
                $return[] = $value;
            }
        }

        return $return;
    }
public function flatten(array $array)
    {
        $return = [];
        foreach ($array as $key => $value) {
            if (in_array($key, $this->exceptions)) {
                $return[$key] = $value;
            } else {
                $return[] = $value;
            }
        }

        return $return;
    }
public function flatten ( array $ array ) { $ return = [ ] ; foreach ( $ array as $ key => $ value ) { if ( in_array ( $ key , $ this -> exceptions ) ) { $ return [ $ key ] = $ value ; } else { $ return [ ] = $ value ; } } return $ return ; }
Flatten array with exceptions.

@param array $array
@return array
Flatten array with exceptions .