source/Application/Model/RequiredAddressFields.php
private function _filterFields($aFields, $sPrefix)
    {
        $aAllowed = [];
        foreach ($aFields as $sKey => $sValue) {
            if (strpos($sValue, $sPrefix) === 0) {
                $aAllowed[] = $aFields[$sKey];
            }
        }

        return $aAllowed;
    }
private function _filterFields($aFields, $sPrefix)
    {
        $aAllowed = [];
        foreach ($aFields as $sKey => $sValue) {
            if (strpos($sValue, $sPrefix) === 0) {
                $aAllowed[] = $aFields[$sKey];
            }
        }

        return $aAllowed;
    }
private function _filterFields ( $ aFields , $ sPrefix ) { $ aAllowed = [ ] ; foreach ( $ aFields as $ sKey => $ sValue ) { if ( strpos ( $ sValue , $ sPrefix ) === 0 ) { $ aAllowed [ ] = $ aFields [ $ sKey ] ; } } return $ aAllowed ; }
Removes delivery fields from fields list.

@param array  $aFields
@param string $sPrefix

@return mixed
Removes delivery fields from fields list .