Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7361

Code formatting issues in session.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.2
    • 3.0.x
    • Sessions
    • None
    • PHP Environment:
      Database:

      There are some small code formatting issue which got introduced within the last few SVN revisions violating the coding guidelines .

      In includes/sessions.php:

              else if ($check_script_path && rtrim($this->page['root_script_path'], '/') !== '' ) 

      This line has a unneeded tab between '' and ).

                  $server_port = (!empty($_SERVER['SERVER_PORT'])) ? (int) $_SERVER['SERVER_PORT'] : (int) getenv('SERVER_PORT');            if ($server_port !== 80 && $server_port !== 443 && stripos($ref , ":$server_port") === 0)            {                $ref = substr($ref,  strlen(":$server_port"));            } 

      These lines are indented using spaces instead of tabs. Also, there shouldn't be a space after $ref in

      stripos($ref , ":$server_port" 

      And finally, there are two spaces instead of one right after $ref, in

      $ref = substr($ref,  strlen(":$server_port")); 

            Kellanved Kellanved [X] (Inactive)
            Schumi Schumi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: