mambax7/adslight

View on GitHub
admin/pictures.php

Summary

Maintainability
A
0 mins
Test Coverage

XXX found
Open

            //                     <th class='center width5'>".AM_ADSLIGHT_FORM_ACTION."XXX</th>
Severity: Minor
Found in admin/pictures.php by fixme

There must be one blank line after the last USE statement; 0 found;
Open

use XoopsModules\Adslight\{
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

There must be one USE keyword per declaration
Open

use XoopsModules\Adslight\{
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 243 characters
Open

                $picturesArray['uid_owner'] = "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . ($picturesTempArray[$i]->getVar('uid_owner')) . "'>" . strip_tags(\XoopsUser::getUnameFromId($picturesTempArray[$i]->getVar('uid_owner'))) . '</a>';
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 223 characters
Open

                xoops_confirm(['ok' => 1, 'cod_img' => Request::getString('cod_img', ''), 'op' => 'delete'], Request::getUrl('REQUEST_URI', '', 'SERVER'), sprintf(AM_ADSLIGHT_FORMSUREDEL, $picturesObject->getVar('title')));
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 303 characters
Open

        //    $fields = explode('|', cod_img:int:11::NOT NULL::primary:ID:0|title:varchar:255::NOT NULL:::Title:1|date_created:int:11::NOT NULL:0::Added:2|date_updated:int:11::NOT NULL:0::Updated:3|lid:int:11::NOT NULL:0::Listing:4|uid_owner:varchar:50::NOT NULL:::Owner:5|url:text:0::NOT NULL:::URL:6);
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 135 characters
Open

                //                $picturesArray['lid'] = $listingHandler->get($picturesTempArray[$i]->getVar('lid'))->getVar('title');
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 259 characters
Open

                $picturesArray['lid'] = "<a href='" . $helper->url('viewads.php?lid=') . $listingHandler->get($picturesTempArray[$i]->getVar('lid'))->getVar('lid') . "'>" . $listingHandler->get($picturesTempArray[$i]->getVar('lid'))->getVar('title') . '</a>';
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 139 characters
Open

                XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/templates/admin/adslight_admin_pictures.tpl'
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 160 characters
Open

            //                    <a href='pictures.php?op=delete&cod_img=".$i."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a>
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 148 characters
Open

                //                $picturesArray['uid_owner'] = strip_tags(\XoopsUser::getUnameFromId($picturesTempArray[$i]->getVar('uid_owner')));
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 182 characters
Open

                $picturesArray['url'] = "<img src='" . $uploadUrl . $picturesTempArray[$i]->getVar('url') . "' name='" . 'name' . "' id=" . 'id' . " alt='' style='max-width:100px'>";
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 158 characters
Open

               <a href='pictures.php?op=clone&cod_img=" . $i . "'><img src=" . $pathIcon16 . "/editcopy.png alt='" . _CLONE . "' title='" . _CLONE . "'></a>";
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 152 characters
Open

            //                    <a href='pictures.php?op=edit&cod_img=".$i."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a>
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 183 characters
Open

                $picturesArray['edit_delete'] = "<a href='pictures.php?op=edit&cod_img=" . $i . "'><img src=" . $pathIcon16 . "/edit.png alt='" . _EDIT . "' title='" . _EDIT . "'></a>
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

Line exceeds 120 characters; contains 157 characters
Open

               <a href='pictures.php?op=delete&cod_img=" . $i . "'><img src=" . $pathIcon16 . "/delete.png alt='" . _DELETE . "' title='" . _DELETE . "'></a>
Severity: Minor
Found in admin/pictures.php by phpcodesniffer

There are no issues that match your filters.

Category
Status