src/Common/Service/Mime.php
protected function updateMap(array &$aMap, string $sKey, array $aValues): self
    {
        if (!array_key_exists($sKey, $aMap)) {
            $aMap[$sKey] = [];
        }

        $aMap[$sKey] = array_values(
            array_unique(
                array_merge(
                    $aMap[$sKey],
                    $aValues
                )
            )
        );

        return $this;
    }
protected function updateMap(array &$aMap, string $sKey, array $aValues): self
    {
        if (!array_key_exists($sKey, $aMap)) {
            $aMap[$sKey] = [];
        }

        $aMap[$sKey] = array_values(
            array_unique(
                array_merge(
                    $aMap[$sKey],
                    $aValues
                )
            )
        );

        return $this;
    }
protected function updateMap ( array & $ aMap , string $ sKey , array $ aValues ) : self { if ( ! array_key_exists ( $ sKey , $ aMap ) ) { $ aMap [ $ sKey ] = [ ] ; } $ aMap [ $ sKey ] = array_values ( array_unique ( array_merge ( $ aMap [ $ sKey ] , $ aValues ) ) ) ; return $ this ; }
Updates a map array

@param array  $aMap    The array to update
@param string $sKey    The key to update
@param array  $aValues The values to add

@return Mime
Updates a map array