original_string: public function check_attempts(): bool
    {
      if ( !isset($this->cfg) ){
        return false;
      }
  
      //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts')));
      if ( isset($this->cfg['num_attempts']) && $this->cfg['num_attempts'] > $this->class_cfg['max_attempts'] ){
        return false;
      }
      return true;
    }
code: public function check_attempts(): bool
    {
      if ( !isset($this->cfg) ){
        return false;
      }
  
      //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts')));
      if ( isset($this->cfg['num_attempts']) && $this->cfg['num_attempts'] > $this->class_cfg['max_attempts'] ){
        return false;
      }
      return true;
    }
code_tokens: public function check_attempts ( ) : bool { if ( ! isset ( $ this -> cfg ) ) { return false ; } //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts'))); if ( isset ( $ this -> cfg [ 'num_attempts' ] ) && $ this -> cfg [ 'num_attempts' ] > $ this -> class_cfg [ 'max_attempts' ] ) { return false ; } return true ; }
docstring: Returns false if the max number of connections attempts has been reached
  @return bool
docstring_tokens: Returns false if the max number of connections attempts has been reached