mikecbrant/php-ultimate-sessions

View on GitHub

Showing 18 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

    Missing class import via use statement (line '282', column '27').
    Open

    throw new \RuntimeException(

    Missing class import via use statement (line '127', column '23').
    Open

    throw new \OutOfBoundsException(

    Missing class import via use statement (line '221', column '23').
    Open

    throw new \InvalidArgumentException('Value must be integer.');

    Missing class import via use statement (line '84', column '23').
    Open

    throw new \OutOfBoundsException(

    Missing class import via use statement (line '261', column '23').
    Open

    throw new \InvalidArgumentException(

    Missing class import via use statement (line '59', column '23').
    Open

    throw new \Exception(

    Missing class import via use statement (line '146', column '23').
    Open

    throw new \InvalidArgumentException(

    Missing class import via use statement (line '85', column '23').
    Open

    throw new \InvalidArgumentException('Value did not match session ID regex.');

    Missing class import via use statement (line '248', column '23').
    Open

    throw new \InvalidArgumentException('Value must be string.');

    Missing class import via use statement (line '103', column '23').
    Open

    throw new \InvalidArgumentException(

    Missing class import via use statement (line '133', column '23').
    Open

    throw new \InvalidArgumentException('Value must be integer.');

    Missing class import via use statement (line '209', column '23').
    Open

    throw new \InvalidArgumentException('Value must be boolean.');

    Missing class import via use statement (line '33', column '23').
    Open

    throw new \InvalidArgumentException('Value must be boolean.');

    Missing class import via use statement (line '234', column '23').
    Open

    throw new \InvalidArgumentException(

    Missing class import via use statement (line '150', column '23').
    Open

    throw new \RuntimeException('session_start() unexpectedly failed.');

    Missing class import via use statement (line '348', column '23').
    Open

    throw new \RuntimeException(
    Severity
    Category
    Status
    Source
    Language