alyna / zend-framework-matrixcode-module

Automatically exported from code.google.com/p/zend-framework-matrixcode-module
0 stars 0 forks source link

Setting Renderer Options, $normalized variable not used #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Renderer\Abstract.php, line 84, $normalized ist not used.

$renderer_params['imageType'] = 'png' has no effect, since the function 
setimageType does not exist (setImageType however, does).

    /**
     * Set matrixcode state from options array
     * @param Zend_Config $config
     * @return Zend_Matrixcode_Abstract
     */
    public function setOptions($options)
    {
        foreach ($options as $key => $value) {
            $normalized = ucfirst($key);
            $method = 'set' . $key;
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
        return $this;
    }

Original issue reported on code.google.com by ulrich.s...@gmail.com on 31 Jan 2013 at 3:48