mambax7/alumni-26x

View on GitHub
class/form/category.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method __construct has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct(AlumniCategory $obj)
    {
        $xoops         = Xoops::getInstance();
        $moduleDirName = basename(dirname(__DIR__));
        $admin_lang    = '_AM_' . strtoupper($moduleDirName);
Severity: Major
Found in class/form/category.php - About 2 hrs to fix

    The class AlumniCategoryForm has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
    Open

    class AlumniCategoryForm extends Xoops\Form\ThemeForm
    {
        /**
         * @param AlumniCategory|XoopsObject $obj
         */
    Severity: Minor
    Found in class/form/category.php by phpmd

    CouplingBetweenObjects

    Since: 1.1.0

    A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

    Example

    class Foo {
        /**
         * @var \foo\bar\X
         */
        private $x = null;
    
        /**
         * @var \foo\bar\Y
         */
        private $y = null;
    
        /**
         * @var \foo\bar\Z
         */
        private $z = null;
    
        public function setFoo(\Foo $foo) {}
        public function setBar(\Bar $bar) {}
        public function setBaz(\Baz $baz) {}
    
        /**
         * @return \SplObjectStorage
         * @throws \OutOfRangeException
         * @throws \InvalidArgumentException
         * @throws \ErrorException
         */
        public function process(\Iterator $it) {}
    
        // ...
    }

    Source https://phpmd.org/rules/design.html#couplingbetweenobjects

    Missing class import via use statement (line '82', column '44').
    Open

            $fileseltray_photo->addElement(new XoopsFormFile(AlumniLocale::FORMUPLOAD, 'scphoto', $xoops->getModuleConfig('alumni_photomax')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '92', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCADDRESS, 'scaddress', 50, 255, $obj->getVar('scaddress')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '96', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCZIP, 'sczip', 50, 255, $obj->getVar('sczip')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '101', column '31').
    Open

            $this->addElement(new Xoops\Form\Hidden('op', 'save_category'));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '74', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::ORDER, 'ordre', 4, 4, $obj->getVar('ordre')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '39', column '32').
    Open

            $mytree          = new XoopsObjectTree($arr, 'cid', 'pid');
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '66', column '38').
    Open

            $imgtray_img->addElement(new Xoops\Form\Label('', "<br><img src='" . $alumni_upload_url . '/' . $img . "' name='image_img' id='image_img' alt=''>"));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '68', column '41').
    Open

            $fileseltray_category_img = new Xoops\Form\ElementTray('<br>', '<br>');
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '85', column '37').
    Open

                $imgtray_checkbox = new Xoops\Form\Checkbox('', 'del_photo', 0);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '41', column '31').
    Open

            $this->addElement(new Xoops\Form\Label(AlumniLocale::CATEGORY_PID, $mytree->makeSelBox('pid', 'title', '-', $obj->getVar('pid'), true)));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '75', column '31').
    Open

            $this->addElement(new Xoops\Form\Label(AlumniLocale::IFSCHOOL, ''));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '81', column '37').
    Open

            $fileseltray_photo    = new Xoops\Form\ElementTray('', '<br>');
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '94', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCCITY, 'sccity', 50, 255, $obj->getVar('sccity')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '99', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCMOTTO, 'scmotto', 50, 255, $obj->getVar('scmotto')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '69', column '51').
    Open

            $fileseltray_category_img->addElement(new Xoops\Form\File(AlumniLocale::FORMUPLOAD, 'img'), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '70', column '51').
    Open

            $fileseltray_category_img->addElement(new Xoops\Form\Label(''), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '98', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCFAX, 'scfax', 50, 255, $obj->getVar('scfax')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '100', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCURL, 'scurl', 50, 255, $obj->getVar('scurl')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '42', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::CATEGORY_TITLE, 'title', 50, 255, $obj->getVar('title')), true);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '51', column '28').
    Open

            $imgtray_img = new Xoops\Form\ElementTray(AlumniLocale::IMGCAT, '<br>');
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '93', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCADDRESS2, 'scaddress2', 50, 255, $obj->getVar('scaddress2')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '97', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCPHONE, 'scphone', 50, 255, $obj->getVar('scphone')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '79', column '37').
    Open

            $imgtray_photo        = new Xoops\Form\ElementTray(AlumniLocale::SCPHOTO, '<br>');
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '84', column '48').
    Open

                $fileseltray_photo->addElement(new Xoops\Form\Label(AlumniLocale::SELECTED_PHOTO, '<a href="../photos/school_photos/' . $photo_old . '">' . $photo_old . '</a>', false));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '102', column '31').
    Open

            $this->addElement(new Xoops\Form\Button('', 'submit', XoopsLocale::A_SUBMIT, 'submit'));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '95', column '31').
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCSTATE, 'scstate', 50, 255, $obj->getVar('scstate')), false);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '55', column '32').
    Open

            $imageselect_img = new Xoops\Form\Select(sprintf(XoopsLocale::F_FILE_EXISTS_IN, $img_path . '/'), 'img', $img);
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '91', column '31').
    Open

            $this->addElement(new Xoops\Form\Hidden('photo_old', $photo_old));
    Severity: Minor
    Found in class/form/category.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid using static access to class '\XoopsBaseConfig' in method '__construct'.
    Open

            $alumni_upload_url = \XoopsBaseConfig::get('url') . '/modules/alumni/images/cat';
    Severity: Minor
    Found in class/form/category.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\XoopsBaseConfig' in method '__construct'.
    Open

            $img_path    = \XoopsBaseConfig::get('root-path') . '/modules/alumni/images/cat';
    Severity: Minor
    Found in class/form/category.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

            } else {
                $default_img = str_replace('alumni/', '', $obj->getVar('img', 'e'));
            }
    Severity: Minor
    Found in class/form/category.php by phpmd

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

    Source https://phpmd.org/rules/cleancode.html#elseexpression

    Avoid using static access to class 'XoopsLists' in method '__construct'.
    Open

            $image_array_img = XoopsLists::getImgListAsArray($img_path);
    Severity: Minor
    Found in class/form/category.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class 'Xoops' in method '__construct'.
    Open

            $xoops         = Xoops::getInstance();
    Severity: Minor
    Found in class/form/category.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid unused local variables such as '$imgpath_photo'.
    Open

            $imgpath_photo        = sprintf(AlumniLocale::FORMIMAGE_PATH, $uploadirectory_photo);
    Severity: Minor
    Found in class/form/category.php by phpmd

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused local variables such as '$imgpath_img'.
    Open

            $imgpath_img     = sprintf(AlumniLocale::FORMIMAGE_PATH, $img_path);
    Severity: Minor
    Found in class/form/category.php by phpmd

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused local variables such as '$admin_lang'.
    Open

            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

            if ($photo_old) {
                $fileseltray_photo->addElement(new Xoops\Form\Label(AlumniLocale::SELECTED_PHOTO, '<a href="../photos/school_photos/' . $photo_old . '">' . $photo_old . '</a>', false));
                $imgtray_checkbox = new Xoops\Form\Checkbox('', 'del_photo', 0);
                $imgtray_checkbox->addOption(1, AlumniLocale::DELPICT);
                $fileseltray_photo->addElement($imgtray_checkbox);
    Severity: Minor
    Found in class/form/category.php and 2 other locations - About 40 mins to fix
    class/form/listing.php on lines 106..111
    class/form/listing.php on lines 123..128

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 93.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Avoid excessively long variable names like $fileseltray_category_img. Keep variable name length under 20.
    Open

            $fileseltray_category_img = new Xoops\Form\ElementTray('<br>', '<br>');
    Severity: Minor
    Found in class/form/category.php by phpmd

    LongVariable

    Since: 0.2

    Detects when a field, formal or local variable is declared with a long name.

    Example

    class Something {
        protected $reallyLongIntName = -3; // VIOLATION - Field
        public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
            $otherReallyLongName = -5; // VIOLATION - Local
            for ($interestingIntIndex = 0; // VIOLATION - For
                 $interestingIntIndex < 10;
                 $interestingIntIndex++ ) {
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#longvariable

    Each class must be in a namespace of at least one level (a top-level vendor name)
    Open

    class AlumniCategoryForm extends Xoops\Form\ThemeForm
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 145 characters
    Open

            $this->addElement(new Xoops\Form\Label(AlumniLocale::CATEGORY_PID, $mytree->makeSelBox('pid', 'title', '-', $obj->getVar('pid'), true)));
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 133 characters
    Open

            $imageselect_img->setExtra("onchange='showImgSelected(\"image_img\", \"img\", \"\", \"\", \"" . $alumni_upload_url . "\")'");
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 124 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::CATEGORY_TITLE, 'title', 50, 255, $obj->getVar('title')), true);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 131 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCADDRESS2, 'scaddress2', 50, 255, $obj->getVar('scaddress2')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCPHONE, 'scphone', 50, 255, $obj->getVar('scphone')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCMOTTO, 'scmotto', 50, 255, $obj->getVar('scmotto')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 146 characters
    Open

            $fileseltray_photo->addElement(new XoopsFormFile(AlumniLocale::FORMUPLOAD, 'scphoto', $xoops->getModuleConfig('alumni_photomax')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 128 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCADDRESS, 'scaddress', 50, 255, $obj->getVar('scaddress')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 157 characters
    Open

            $imgtray_img->addElement(new Xoops\Form\Label('', "<br><img src='" . $alumni_upload_url . '/' . $img . "' name='image_img' id='image_img' alt=''>"));
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 181 characters
    Open

                $fileseltray_photo->addElement(new Xoops\Form\Label(AlumniLocale::SELECTED_PHOTO, '<a href="../photos/school_photos/' . $photo_old . '">' . $photo_old . '</a>', false));
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

            $this->addElement(new Xoops\Form\Text(AlumniLocale::SCSTATE, 'scstate', 50, 255, $obj->getVar('scstate')), false);
    Severity: Minor
    Found in class/form/category.php by phpcodesniffer

    The variable $img_path is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $uploadirectory_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $photo_old is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $img_path is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $default_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $photo_old is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $img_path is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgpath_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $image_array_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $default_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $default_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $alumni_upload_url is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $photo_old is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $img_path is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imageselect_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $uploadirectory_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $image_array_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $image_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $photo_old is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_category_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_checkbox is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_category_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_checkbox is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imageselect_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $alumni_upload_url is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $admin_lang is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imageselect_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $default_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $image_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $photo_old is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imageselect_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_category_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgpath_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_category_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $image_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $alumni_upload_url is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imageselect_img is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $imgtray_checkbox is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $fileseltray_photo is not named in camelCase.
    Open

        public function __construct(AlumniCategory $obj)
        {
            $xoops         = Xoops::getInstance();
            $moduleDirName = basename(dirname(__DIR__));
            $admin_lang    = '_AM_' . strtoupper($moduleDirName);
    Severity: Minor
    Found in class/form/category.php by phpmd

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    There are no issues that match your filters.

    Category
    Status