protected function compileUpper($key, $masque)
    {
        if (!preg_match("/^upper/", $masque)) {
            return;
        }

        if (Str::isUpper($this->inputs[$key])) {
            return;
        }

        $this->fails = true;
        
        $this->last_message = $this->lexique('upper', $key);
        
        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileUpper($key, $masque)
    {
        if (!preg_match("/^upper/", $masque)) {
            return;
        }

        if (Str::isUpper($this->inputs[$key])) {
            return;
        }

        $this->fails = true;
        
        $this->last_message = $this->lexique('upper', $key);
        
        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileUpper ( $ key , $ masque ) { if ( ! preg_match ( "/^upper/" , $ masque ) ) { return ; } if ( Str :: isUpper ( $ this -> inputs [ $ key ] ) ) { return ; } $ this -> fails = true ; $ this -> last_message = $ this -> lexique ( 'upper' , $ key ) ; $ this -> errors [ $ key ] [ ] = [ "masque" => $ masque , "message" => $ this -> last_message ] ; }
Compile Upper Rule

[upper] Check that the contents of the field is a string in uppercase

@param string $key
@param string $masque

@return void
Compile Upper Rule