original_string: protected function dot($number, $total) {
          if (!$this->progress) {
              return;
          }
          $now = time();
          if ($now == $this->lastdot) {
              return;
          }
          $this->lastdot = $now;
          if (CLI_SCRIPT) {
              echo '.';
          } else {
              echo ' . ';
          }
          if ($now - $this->lastpercentage >= 30) {
              echo round(100.0 * $number / $total, 1) . '%';
              $this->lastpercentage = $now;
          }
  
          // Update time limit so PHP doesn't time out.
          if (!CLI_SCRIPT) {
              core_php_time_limit::raise(120);
          }
      }
code: protected function dot($number, $total) {
          if (!$this->progress) {
              return;
          }
          $now = time();
          if ($now == $this->lastdot) {
              return;
          }
          $this->lastdot = $now;
          if (CLI_SCRIPT) {
              echo '.';
          } else {
              echo ' . ';
          }
          if ($now - $this->lastpercentage >= 30) {
              echo round(100.0 * $number / $total, 1) . '%';
              $this->lastpercentage = $now;
          }
  
          // Update time limit so PHP doesn't time out.
          if (!CLI_SCRIPT) {
              core_php_time_limit::raise(120);
          }
      }
code_tokens: protected function dot ( $ number , $ total ) { if ( ! $ this -> progress ) { return ; } $ now = time ( ) ; if ( $ now == $ this -> lastdot ) { return ; } $ this -> lastdot = $ now ; if ( CLI_SCRIPT ) { echo '.' ; } else { echo ' . ' ; } if ( $ now - $ this -> lastpercentage >= 30 ) { echo round ( 100.0 * $ number / $ total , 1 ) . '%' ; $ this -> lastpercentage = $ now ; } // Update time limit so PHP doesn't time out. if ( ! CLI_SCRIPT ) { core_php_time_limit :: raise ( 120 ) ; } }
docstring: Outputs dots. There is up to one dot per second. Once a minute, it
  displays a percentage.
  @param int $number Number of completed items
  @param int $total Total number of items to complete
docstring_tokens: Outputs dots . There is up to one dot per second . Once a minute it displays a percentage .