mikecbrant/php-ultimate-sessions

View on GitHub

Showing 2 of 51 total issues

Method regenerateId has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function regenerateId()
{
$oldSessionId = $this->getSessionId();
if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
$newSessionId = session_create_id();
Severity: Minor
Found in src/UltimateSessions/UltimateSessionManager.php - About 1 hr to fix

    Function configureIniSettings has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    private function configureIniSettings()
    {
    /**
    * Ignore these lines from code coverage as they are covered in build
    * tests against different PHP versions.
    Severity: Minor
    Found in src/UltimateSessions/UltimateSessionHandlerTrait.php - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language