src/DataFormatter.php
public static function for_extensions($extensions)
    {
        foreach ($extensions as $extension) {
            if ($formatter = self::for_extension($extension)) {
                return $formatter;
            }
        }

        return false;
    }
public static function for_extensions($extensions)
    {
        foreach ($extensions as $extension) {
            if ($formatter = self::for_extension($extension)) {
                return $formatter;
            }
        }

        return false;
    }
public static function for_extensions ( $ extensions ) { foreach ( $ extensions as $ extension ) { if ( $ formatter = self :: for_extension ( $ extension ) ) { return $ formatter ; } } return false ; }
Get formatter for the first matching extension.

@param array $extensions
@return DataFormatter
Get formatter for the first matching extension .