mambax7/alumni-26x

View on GitHub
categories.php

Summary

Maintainability
A
2 hrs
Test Coverage

File categories.php has 262 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 categories.php - About 2 hrs to fix

    Line exceeds 120 characters; contains 163 characters
    Open

        $path = "<a href='" . ALUMNI_URL . '/categories.php?cid=' . $catpathArray[$i]->getVar('cid') . "'>" . $catpathArray[$i]->getVar('title') . '</a>&nbsp;:&nbsp;';
    Severity: Minor
    Found in categories.php by phpcodesniffer

    Line exceeds 120 characters; contains 134 characters
    Open

        $xoops->tpl()->assign('add_listing', "<a href='listing.php?op=new_listing&amp;cid=$cid'>" . AlumniLocale::ADD_LISTING_2 . '</a>');
    Severity: Minor
    Found in categories.php by phpcodesniffer

    Line exceeds 120 characters; contains 167 characters
    Open

    $path = str_replace('&nbsp;:&nbsp;', " <img src='" . XOOPS_URL . "/modules/{$moduleDirName}/assets/images/arrow.gif" . "' style='border-width: 0px;' alt=''> ", $path);
    Severity: Minor
    Found in categories.php by phpcodesniffer

    Line exceeds 120 characters; contains 163 characters
    Open

        $xoops->tpl()->assign('top_scphoto', "<img src='" . XOOPS_URL . "/uploads/{$moduleDirName}/photos/school_photos/$scphoto' align='middle' alt='$school_name'>");
    Severity: Minor
    Found in categories.php by phpcodesniffer

    Line exceeds 120 characters; contains 190 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 categories.php by phpcodesniffer

    Line exceeds 120 characters; contains 164 characters
    Open

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

    Line exceeds 120 characters; contains 213 characters
    Open

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

    Line exceeds 120 characters; contains 154 characters
    Open

                $xoops->tpl()->append('subcategories', ['title' => $sub_cat_title, 'id' => $subcat_id, 'totallinks' => $alumni_count, 'count' => $numsubcat]);
    Severity: Minor
    Found in categories.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status