Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: cleanup DatabaseHandler::gc() for session #9230

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

grimpirate
Copy link
Contributor

Description
While making changes to #9928 noticed there were two variables prior to the return statement which add horizontal space padding around $max_lifetime. These statements are unnecessary and do not enhance code readability.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good catch. However, please remove unnecessary white spaces.

I think we supported both drivers here in the past, but since PostgreSQL now has its own version, this method can be simplified.

system/Session/Handlers/DatabaseHandler.php Outdated Show resolved Hide resolved
@michalsn michalsn changed the title refactor: Removal of unneeded code refactor: cleanup DatabaseHandler::gc() for session Oct 21, 2024
@michalsn michalsn merged commit 11d9721 into codeigniter4:develop Oct 22, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants