original_string: public function getDefaultPeriod($defaultDate = null)
      {
          list($defaultDate, $defaultPeriod) = $this->getDefaultDateAndPeriod($defaultDate);
  
          return $defaultPeriod;
      }
code: public function getDefaultPeriod($defaultDate = null)
      {
          list($defaultDate, $defaultPeriod) = $this->getDefaultDateAndPeriod($defaultDate);
  
          return $defaultPeriod;
      }
code_tokens: public function getDefaultPeriod ( $ defaultDate = null ) { list ( $ defaultDate , $ defaultPeriod ) = $ this -> getDefaultDateAndPeriod ( $ defaultDate ) ; return $ defaultPeriod ; }
docstring: Returns default period type for Piwik reports.
  
  @param string $defaultDate the default date string from which the default period will be guessed
  @return string `'day'`, `'week'`, `'month'`, `'year'` or `'range'`
  @api
docstring_tokens: Returns default period type for Piwik reports .