src/FACTFinder/Core/ParametersConverter.php
protected function addRequiredParameters($parameters, $requireRules)
    {
        foreach ($requireRules as $k => $v)
            if (!isset($parameters[$k]))
                $parameters[$k] = $v;
    }
protected function addRequiredParameters($parameters, $requireRules)
    {
        foreach ($requireRules as $k => $v)
            if (!isset($parameters[$k]))
                $parameters[$k] = $v;
    }
Adds keys to an array of parameters according to the given require rules.
@param Parameters $parameters Parameters to be modified.
@param string[] $ignoreRules Array of required parameters. The keys are
the names of the required parameter, the values are default values
to be used if the parameter is not present.