original_string: public function registerFormatter()
      {
          if ($this->module->formatterComponent !== true && !is_string($this->module->formatterComponent) && !is_array($this->module->formatterComponent)) {
              throw new InvalidConfigException('Invalid value for the formatterComponent parameter.');
          }
          if (is_string($this->module->formatterComponent)) {
              return;
          }
          $this->module->set('podium_formatter', is_array($this->module->formatterComponent)
                  ? $this->module->formatterComponent
                  : [
                      'class' => 'yii\i18n\Formatter',
                      'timeZone' => 'UTC',
                  ]);
      }
code: public function registerFormatter()
      {
          if ($this->module->formatterComponent !== true && !is_string($this->module->formatterComponent) && !is_array($this->module->formatterComponent)) {
              throw new InvalidConfigException('Invalid value for the formatterComponent parameter.');
          }
          if (is_string($this->module->formatterComponent)) {
              return;
          }
          $this->module->set('podium_formatter', is_array($this->module->formatterComponent)
                  ? $this->module->formatterComponent
                  : [
                      'class' => 'yii\i18n\Formatter',
                      'timeZone' => 'UTC',
                  ]);
      }
code_tokens: public function registerFormatter ( ) { if ( $ this -> module -> formatterComponent !== true && ! is_string ( $ this -> module -> formatterComponent ) && ! is_array ( $ this -> module -> formatterComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the formatterComponent parameter.' ) ; } if ( is_string ( $ this -> module -> formatterComponent ) ) { return ; } $ this -> module -> set ( 'podium_formatter' , is_array ( $ this -> module -> formatterComponent ) ? $ this -> module -> formatterComponent : [ 'class' => 'yii\i18n\Formatter' , 'timeZone' => 'UTC' , ] ) ; }
docstring: Registers formatter with default time zone.
  @throws InvalidConfigException
docstring_tokens: Registers formatter with default time zone .