original_string: public static function getRules($update, $id)
  	{
  		if (is_null($update))
  		{
  			return static::$registerRules;
  		}
  		static::$updateRules['name'] .= ','.$id.',user_id';
  		static::$updateRules['email'] .= ','.$id.',user_id';
  		return static::$updateRules;
  	}
code: public static function getRules($update, $id)
  	{
  		if (is_null($update))
  		{
  			return static::$registerRules;
  		}
  		static::$updateRules['name'] .= ','.$id.',user_id';
  		static::$updateRules['email'] .= ','.$id.',user_id';
  		return static::$updateRules;
  	}
code_tokens: public static function getRules ( $ update , $ id ) { if ( is_null ( $ update ) ) { return static :: $ registerRules ; } static :: $ updateRules [ 'name' ] .= ',' . $ id . ',user_id' ; static :: $ updateRules [ 'email' ] .= ',' . $ id . ',user_id' ; return static :: $ updateRules ; }
docstring: Get rules for new or update
  @param $update string|null
  @param $id string|null
  @return array
docstring_tokens: Get rules for new or update