original_string: private function checkFailure() : void
      {
          $failure = (int) $this->session->get('failure', 0);
          $time    = (int) $this->session->get('failure_time', time());
          if ($failure >= static::FAILURE) {
              if ($time >= time()) {
                  throw new \DomainException($this->i18n->t(
                      'setrun/user',
                      'Form is blocked for {min} minutes',
                      ['min' => static::FAILURE_TIME / 60])
                  );
              }
              $this->removeFailure();
          }
      }
code: private function checkFailure() : void
      {
          $failure = (int) $this->session->get('failure', 0);
          $time    = (int) $this->session->get('failure_time', time());
          if ($failure >= static::FAILURE) {
              if ($time >= time()) {
                  throw new \DomainException($this->i18n->t(
                      'setrun/user',
                      'Form is blocked for {min} minutes',
                      ['min' => static::FAILURE_TIME / 60])
                  );
              }
              $this->removeFailure();
          }
      }
code_tokens: private function checkFailure ( ) : void { $ failure = ( int ) $ this -> session -> get ( 'failure' , 0 ) ; $ time = ( int ) $ this -> session -> get ( 'failure_time' , time ( ) ) ; if ( $ failure >= static :: FAILURE ) { if ( $ time >= time ( ) ) { throw new \ DomainException ( $ this -> i18n -> t ( 'setrun/user' , 'Form is blocked for {min} minutes' , [ 'min' => static :: FAILURE_TIME / 60 ] ) ) ; } $ this -> removeFailure ( ) ; } }
docstring: Check for failure of access.
  @return void
docstring_tokens: Check for failure of access .