public static function modules($settings)
    {
        return array_filter(
            array_map(
                function ($m) {
                    return is_array($m) ? key($m) : $m;
                },
                $settings['modules']['enabled'],
                array_keys($settings['modules']['enabled'])
            ),
            function ($m) use ($settings) {
                if (!isset($settings['modules']['disabled'])) {
                    return true;
                }
                return !in_array($m, $settings['modules']['disabled']);
            }
        );
    }
public static function modules($settings)
    {
        return array_filter(
            array_map(
                function ($m) {
                    return is_array($m) ? key($m) : $m;
                },
                $settings['modules']['enabled'],
                array_keys($settings['modules']['enabled'])
            ),
            function ($m) use ($settings) {
                if (!isset($settings['modules']['disabled'])) {
                    return true;
                }
                return !in_array($m, $settings['modules']['disabled']);
            }
        );
    }
public static function modules ( $ settings ) { return array_filter ( array_map ( function ( $ m ) { return is_array ( $ m ) ? key ( $ m ) : $ m ; } , $ settings [ 'modules' ] [ 'enabled' ] , array_keys ( $ settings [ 'modules' ] [ 'enabled' ] ) ) , function ( $ m ) use ( $ settings ) { if ( ! isset ( $ settings [ 'modules' ] [ 'disabled' ] ) ) { return true ; } return ! in_array ( $ m , $ settings [ 'modules' ] [ 'disabled' ] ) ; } ) ; }
Return list of enabled modules according suite config.

@param array $settings suite settings
@return array
Return list of enabled modules according suite config .