src/Framework/Form/Element/Input/Captcha.php
public function setLabel($label)
    {
        parent::setLabel($label);
        if (isset($this->token['captcha'])) {
            if ((strpos($this->token['captcha'], '<img') === false) &&
                ((strpos($this->token['captcha'], ' + ') !== false) ||
                 (strpos($this->token['captcha'], ' - ') !== false) ||
                 (strpos($this->token['captcha'], ' * ') !== false) ||
                 (strpos($this->token['captcha'], ' / ') !== false))) {
                $this->label = $this->label . '(' .
                    str_replace([' * ', ' / '], [' &#215; ', ' &#247; '], $this->token['captcha'] .')');
            } else {
                $this->label = $this->label . $this->token['captcha'];
            }
        }
        return $this;
    }
public function setLabel($label)
    {
        parent::setLabel($label);
        if (isset($this->token['captcha'])) {
            if ((strpos($this->token['captcha'], '<img') === false) &&
                ((strpos($this->token['captcha'], ' + ') !== false) ||
                 (strpos($this->token['captcha'], ' - ') !== false) ||
                 (strpos($this->token['captcha'], ' * ') !== false) ||
                 (strpos($this->token['captcha'], ' / ') !== false))) {
                $this->label = $this->label . '(' .
                    str_replace([' * ', ' / '], [' &#215; ', ' &#247; '], $this->token['captcha'] .')');
            } else {
                $this->label = $this->label . $this->token['captcha'];
            }
        }
        return $this;
    }
public function setLabel ( $ label ) { parent :: setLabel ( $ label ) ; if ( isset ( $ this -> token [ 'captcha' ] ) ) { if ( ( strpos ( $ this -> token [ 'captcha' ] , '<img' ) === false ) && ( ( strpos ( $ this -> token [ 'captcha' ] , ' + ' ) !== false ) || ( strpos ( $ this -> token [ 'captcha' ] , ' - ' ) !== false ) || ( strpos ( $ this -> token [ 'captcha' ] , ' * ' ) !== false ) || ( strpos ( $ this -> token [ 'captcha' ] , ' / ' ) !== false ) ) ) { $ this -> label = $ this -> label . '(' . str_replace ( [ ' * ' , ' / ' ] , [ ' &#215; ' , ' &#247; ' ] , $ this -> token [ 'captcha' ] . ')' ) ; } else { $ this -> label = $ this -> label . $ this -> token [ 'captcha' ] ; } } return $ this ; }
Set the label of the captcha form element

@param  string $label
@return Captcha
Set the label of the captcha form element