e107inc/e107

View on GitHub
e107_handlers/redirection_class.php

Summary

Maintainability
A
1 hr
Test Coverage
F
15%

Avoid too many return statements within this method.
Open

            return;
Severity: Major
Found in e107_handlers/redirection_class.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return;
    Severity: Major
    Found in e107_handlers/redirection_class.php - About 30 mins to fix

      Argument 3 (expire) is null but \cookie() takes int defined at /code/class2.php:1786
      Open

              cookie($cookiename, null, null, e_HTTP, e107::getLanguage()->getCookieDomain());
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type void but setPreviousUrl() is declared to return \redirection
      Open

                      return;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type void but setPreviousUrl() is declared to return \redirection
      Open

                      return;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Call to deprecated function \getperms() defined at /code/class2.php:1322
      Open

                  if(!check_class($allowed)  && !getperms('0'))
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type null but checkMaintenance() is declared to return void
      Open

                      return null;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type null but go() is declared to return void
      Open

                  return null;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type void but setPreviousUrl() is declared to return \redirection
      Open

                      return;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
      Open

                  if(!empty($srch) && strpos(e_SELF, $srch) !== false)
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Argument 2 (value) is null but \cookie() takes string defined at /code/class2.php:1786
      Open

              cookie($cookiename, null, null, e_HTTP, e107::getLanguage()->getCookieDomain());
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      Returning type void but setPreviousUrl() is declared to return \redirection
      Open

                      return;
      Severity: Minor
      Found in e107_handlers/redirection_class.php by phan

      There are no issues that match your filters.

      Category
      Status