mambax7/alumni-26x

View on GitHub
index.php

Summary

Maintainability
A
2 hrs
Test Coverage

File index.php has 272 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.
Severity: Minor
Found in index.php - About 2 hrs to fix

    Line exceeds 120 characters; contains 182 characters
    Open

                $a_item['admin'] = "<a href='admin/alumni.php?op=edit_listing&amp;lid=$lid&amp;cid=$cid'><img src='images/modif.gif' border=0 alt=\"" . AlumniLocale::MODADMIN . '"></a>';
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 152 characters
    Open

    $xoops->tpl()->assign('last_head', AlumniLocale::THE . ' ' . $xoops->getModuleConfig('' . $moduleDirName . '_newalumni') . ' ' . AlumniLocale::LASTADD);
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 194 characters
    Open

    $xoops->tpl()->assign('total_listings', AlumniLocale::THERE_ARE . ' ' . $numrows . ' ' . AlumniLocale::ALUMNI_LISTINGS . ' ' . AlumniLocale::IN . ' ' . $numcat . ' ' . AlumniLocale::CATEGORIES);
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 255 characters
    Open

            $a_item['photo'] = "<a href=\"javascript:CLA('display-image.php?lid=$lid')\"><img src=\"" . XOOPS_URL . "/modules/{$moduleDirName}/assets/images/photo.gif\" border=\"0\" width=\"15\" height=\"11\" alt='" . AlumniLocale::PHOTO_AVAILABLE . "'></a>";
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 124 characters
    Open

            $publishdate = isset($listings['date'][$cats[$i]->getVar('cid')]) ? $listings['date'][$cats[$i]->getVar('cid')] : 0;
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 233 characters
    Open

                        $publishdate = (isset($listings['date'][$all_subcats[$k]->getVar('cid')]) and $listings['date'][$all_subcats[$k]->getVar('cid')] > $publishdate) ? $listings['date'][$all_subcats[$k]->getVar('cid')] : $publishdate;
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 224 characters
    Open

                    $xoops->tpl()->assign('confirm_alumni', AlumniLocale::THERE_ARE . " $moderate_rows  " . AlumniLocale::WAITING . '<br><a href="admin/alumni.php?op=list_moderated">' . constant($main_lang . '_SEEIT') . '</a>');
    Severity: Minor
    Found in index.php by phpcodesniffer

    Line exceeds 120 characters; contains 156 characters
    Open

                        $subcategories[] = ['id' => $all_subcats[$k]->getVar('cid'), 'title' => $all_subcats[$k]->getVar('title'), 'count' => $alumni_subcount];
    Severity: Minor
    Found in index.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status