XoopsModules25x/apcal

View on GitHub
admin/maintenance.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 22 and the first side effect is on line 34.
Open

<?php
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Blank line found at start of control structure
Open

} else {
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Blank line found at start of control structure
Open

if (!empty($_POST['do_04to06'])) {
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Blank line found at start of control structure
Open

} elseif (!empty($_POST['create_cat'])) {
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Blank line found at start of control structure
Open

} elseif (!empty($_POST['repair_stz'])) {
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Line exceeds 120 characters; contains 139 characters
Open

        <input type='submit' value='" . _SUBMIT . "' name='repair_stz' onclick='return confirm(\"" . _AM_APCAL_JSALRT_SERVER_TZ . "\");' />
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Line exceeds 120 characters; contains 139 characters
Open

    $sql = 'SELECT com_itemid,count(*) FROM ' . $GLOBALS['xoopsDB']->prefix('xoopscomments') . " WHERE com_modid=$mid GROUP BY com_itemid";
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Line exceeds 120 characters; contains 167 characters
Open

        ' . sprintf(_AM_APCAL_FMT_SERVER_TZ_ALL, date('Z', 1104537600) / 3600, date('Z', 1120176000) / 3600, date('T'), $xoopsConfig['server_TZ'], $cal->server_TZ) . "
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

Line exceeds 120 characters; contains 189 characters
Open

        $sql = "UPDATE $table_event SET dtstamp=dtstamp,start=start+($stz_diff),end=end+($stz_diff),server_tz='" . addslashes($to_stz) . "' WHERE server_tz='" . addslashes($from_stz) . "'";
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

There are no issues that match your filters.

Category
Status