original_string: protected function set_refresh_rate() {
          if (defined('BEHAT_SITE_RUNNING')) {
              // Hack for behat tests.
              $this->refresh = 5;
          } else {
              if (defined('REPORT_LOGLIVE_REFRESH')) {
                  // Backward compatibility.
                  $this->refresh = REPORT_LOGLIVE_REFERESH;
              } else {
                  // Default.
                  $this->refresh = 60;
              }
          }
      }
code: protected function set_refresh_rate() {
          if (defined('BEHAT_SITE_RUNNING')) {
              // Hack for behat tests.
              $this->refresh = 5;
          } else {
              if (defined('REPORT_LOGLIVE_REFRESH')) {
                  // Backward compatibility.
                  $this->refresh = REPORT_LOGLIVE_REFERESH;
              } else {
                  // Default.
                  $this->refresh = 60;
              }
          }
      }
code_tokens: protected function set_refresh_rate ( ) { if ( defined ( 'BEHAT_SITE_RUNNING' ) ) { // Hack for behat tests. $ this -> refresh = 5 ; } else { if ( defined ( 'REPORT_LOGLIVE_REFRESH' ) ) { // Backward compatibility. $ this -> refresh = REPORT_LOGLIVE_REFERESH ; } else { // Default. $ this -> refresh = 60 ; } } }
docstring: Set refresh rate of the live updates.
docstring_tokens: Set refresh rate of the live updates .