src/Response/SlimResponse.php
/**
     * Reduces slim headers array to be used on reactPHP
     *
     * @param array $headersArray Headers array given by slim
     *
     * @return array Ready 4 reactPHP array
     */
Reduces slim headers array to be used on reactPHP
@param array $headersArray Headers array given by slim

@return array Ready 4 reactPHP array
Reduces slim headers array to be used on reactPHP @param array $headersArray Headers array given by slim @return array Ready 4 reactPHP array
static public function reduceHeaders(array $headersArray) :array
    {
        $auxArray = [];
        foreach ($headersArray as $name => $value) {
            $myContent = '';
            foreach($value as $text) {
                $myContent .= $text;
            }
            $auxArray[$name] = $myContent;
        }
        return $auxArray;
    }
static public function reduceHeaders ( array $ headersArray ) : array { $ auxArray = [ ] ; foreach ( $ headersArray as $ name => $ value ) { $ myContent = '' ; foreach ( $ value as $ text ) { $ myContent .= $ text ; } $ auxArray [ $ name ] = $ myContent ; } return $ auxArray ; }
Reduces slim headers array to be used on reactPHP
 @param array $headersArray Headers array given by slim
Reduces slim headers array to be used on reactPHP @param array $headersArray Headers array given by slim