src/Micrometa/Infrastructure/Factory/MicroformatsFactory.php
protected static function createProperties(array $properties, &$lang)
    {
        // Extract the language (if present)
        $properties = self::createLanguage($properties, $lang);

        $mfProperties = [];
        foreach ($properties as $propertyName => $propertyValues) {
            // Process property values
            if (is_array($propertyValues)) {
                $mfProperties[] = (object)[
                    'profile' => self::MF2_PROFILE_URI,
                    'name'    => $propertyName,
                    'values'  => self::createProperty($propertyValues)
                ];
            }
        }

        return $mfProperties;
    }
protected static function createProperties(array $properties, &$lang)
    {
        // Extract the language (if present)
        $properties = self::createLanguage($properties, $lang);

        $mfProperties = [];
        foreach ($properties as $propertyName => $propertyValues) {
            // Process property values
            if (is_array($propertyValues)) {
                $mfProperties[] = (object)[
                    'profile' => self::MF2_PROFILE_URI,
                    'name'    => $propertyName,
                    'values'  => self::createProperty($propertyValues)
                ];
            }
        }

        return $mfProperties;
    }
protected static function createProperties ( array $ properties , & $ lang ) { // Extract the language (if present) $ properties = self :: createLanguage ( $ properties , $ lang ) ; $ mfProperties = [ ] ; foreach ( $ properties as $ propertyName => $ propertyValues ) { // Process property values if ( is_array ( $ propertyValues ) ) { $ mfProperties [ ] = ( object ) [ 'profile' => self :: MF2_PROFILE_URI , 'name' => $ propertyName , 'values' => self :: createProperty ( $ propertyValues ) ] ; } } return $ mfProperties ; }
Refine the item properties

@param array $properties Properties
@param string $lang      Item language

@return array Refined properties
Refine the item properties