XoopsModules25x/xoopsinfo

View on GitHub
phpsysinfo/index.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 20 and the first side effect is on line 23.
Open

<?php
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

        break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

        break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

        break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

        break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

    break;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line exceeds 120 characters; contains 132 characters
Open

 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    echo $tpl->fetch();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "xml":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "json":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage = new Webpage("bootstrap");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $defaultdisplay = strtolower(PSI_DEFAULT_DISPLAY_MODE);
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 4
Open

    default:
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "static":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "bootstrap":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $tpl = new Template("/templates/html/index_all.html");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $json = $webpage->getJsonString();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    switch ($defaultdisplay) {
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage = new WebpageXSLT();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $tpl = new Template("/templates/html/index_all.html");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage = new WebpageXML("complete");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "auto":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

default:
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 4
Open

    case "bootstrap":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage = new Webpage("bootstrap");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 0
Open

case "dynamic":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage = new WebpageXML("complete");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 4
Open

    case "dynamic":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    header("Content-Type: application/json\n\n");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    header("Cache-Control: no-cache, must-revalidate\n");
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage = new WebpageXSLT();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 4
Open

    case "static":
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage->run();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    echo $json;
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        $webpage = new Webpage();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 8
Open

        echo $tpl->fetch();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $webpage = new Webpage();
Severity: Minor
Found in phpsysinfo/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status