original_string: public function ensureDefaultUserValues(array $values, \Gems_User_UserDefinitionInterface $definition, $defName = null)
      {
          if (! isset($values['user_active'])) {
              $values['user_active'] = true;
          }
          if (! isset($values['user_staff'])) {
              $values['user_staff'] = $definition->isStaff();
          }
          if (! isset($values['user_resetkey_valid'])) {
              $values['user_resetkey_valid'] = false;
          }
          if (! isset($values['user_two_factor_key'])) {
              $values['user_two_factor_key'] = null;
          }
          if (! isset($values['user_enable_2factor'])) {
              $values['user_enable_2factor'] = null;
          }
  
  
          if ($defName) {
              $values['__user_definition'] = $defName;
          }
  
          return $values;
      }
code: public function ensureDefaultUserValues(array $values, \Gems_User_UserDefinitionInterface $definition, $defName = null)
      {
          if (! isset($values['user_active'])) {
              $values['user_active'] = true;
          }
          if (! isset($values['user_staff'])) {
              $values['user_staff'] = $definition->isStaff();
          }
          if (! isset($values['user_resetkey_valid'])) {
              $values['user_resetkey_valid'] = false;
          }
          if (! isset($values['user_two_factor_key'])) {
              $values['user_two_factor_key'] = null;
          }
          if (! isset($values['user_enable_2factor'])) {
              $values['user_enable_2factor'] = null;
          }
  
  
          if ($defName) {
              $values['__user_definition'] = $defName;
          }
  
          return $values;
      }
code_tokens: public function ensureDefaultUserValues ( array $ values , \ Gems_User_UserDefinitionInterface $ definition , $ defName = null ) { if ( ! isset ( $ values [ 'user_active' ] ) ) { $ values [ 'user_active' ] = true ; } if ( ! isset ( $ values [ 'user_staff' ] ) ) { $ values [ 'user_staff' ] = $ definition -> isStaff ( ) ; } if ( ! isset ( $ values [ 'user_resetkey_valid' ] ) ) { $ values [ 'user_resetkey_valid' ] = false ; } if ( ! isset ( $ values [ 'user_two_factor_key' ] ) ) { $ values [ 'user_two_factor_key' ] = null ; } if ( ! isset ( $ values [ 'user_enable_2factor' ] ) ) { $ values [ 'user_enable_2factor' ] = null ; } if ( $ defName ) { $ values [ '__user_definition' ] = $ defName ; } return $ values ; }
docstring: Makes sure default values are set for a user
  
  @param array $values
  @param \Gems_User_UserDefinitionInterface $definition
  @param string $defName Optional
  @return array
docstring_tokens: Makes sure default values are set for a user