public static function create(array $options) {
        $formatterClass = ucfirst(!empty($options['driverOptions']['format']) ? $options['driverOptions']['format'] : 'json');
        $className      = preg_match('/\\\\/', $formatterClass) ? $formatterClass : 'Circle\DoctrineRestDriver\Formatters\\' . $formatterClass;
        Assertions::assertClassExists($className);

        return self::assert(new $className($options));
    }
public static function create(array $options) {
        $formatterClass = ucfirst(!empty($options['driverOptions']['format']) ? $options['driverOptions']['format'] : 'json');
        $className      = preg_match('/\\\\/', $formatterClass) ? $formatterClass : 'Circle\DoctrineRestDriver\Formatters\\' . $formatterClass;
        Assertions::assertClassExists($className);

        return self::assert(new $className($options));
    }
public static function create ( array $ options ) { $ formatterClass = ucfirst ( ! empty ( $ options [ 'driverOptions' ] [ 'format' ] ) ? $ options [ 'driverOptions' ] [ 'format' ] : 'json' ) ; $ className = preg_match ( '/\\\\/' , $ formatterClass ) ? $ formatterClass : 'Circle\DoctrineRestDriver\Formatters\\' . $ formatterClass ; Assertions :: assertClassExists ( $ className ) ; return self :: assert ( new $ className ( $ options ) ) ; }
Returns the right format

@param  array  $options
@return Formatter

@SuppressWarnings("PHPMD.StaticAccess")
Returns the right format