original_string: public function recordLogin($config = [])
      {
          if (empty($this->loginLogClass)) {
              return false;
          }
          $log = $this->create($this->loginLogClass, $config);
          try {
              return $log->save();
          } catch (\Exception $ex) {
              Yii::error($ex->getMessage(), __METHOD__);
          }
      }
code: public function recordLogin($config = [])
      {
          if (empty($this->loginLogClass)) {
              return false;
          }
          $log = $this->create($this->loginLogClass, $config);
          try {
              return $log->save();
          } catch (\Exception $ex) {
              Yii::error($ex->getMessage(), __METHOD__);
          }
      }
code_tokens: public function recordLogin ( $ config = [ ] ) { if ( empty ( $ this -> loginLogClass ) ) { return false ; } $ log = $ this -> create ( $ this -> loginLogClass , $ config ) ; try { return $ log -> save ( ) ; } catch ( \ Exception $ ex ) { Yii :: error ( $ ex -> getMessage ( ) , __METHOD__ ) ; } }
docstring: Record login.
  @param array $config
  @return mixed
docstring_tokens: Record login .