lib/Ajde/Template/Parser/Phtml/Helper.php

Summary

Maintainability
B
5 hrs
Test Coverage

Ajde_Template_Parser_Phtml_Helper has 31 functions (exceeds 20 allowed). Consider refactoring.
Open

class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
    /**
     * @var Ajde_Template_Parser
     */
Severity: Minor
Found in lib/Ajde/Template/Parser/Phtml/Helper.php - About 3 hrs to fix

    The class Ajde_Template_Parser_Phtml_Helper has 29 non-getter- and setter-methods. Consider refactoring Ajde_Template_Parser_Phtml_Helper to keep number of methods under 25.
    Open

    class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
    {
        /**
         * @var Ajde_Template_Parser
         */

    TooManyMethods

    Since: 0.1

    A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    The default was changed from 10 to 25 in PHPMD 2.3.

    Example

    Source https://phpmd.org/rules/codesize.html#toomanymethods

    The class Ajde_Template_Parser_Phtml_Helper has 29 public methods. Consider refactoring Ajde_Template_Parser_Phtml_Helper to keep number of public methods under 10.
    Open

    class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
    {
        /**
         * @var Ajde_Template_Parser
         */

    TooManyPublicMethods

    Since: 0.1

    A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    Example

    Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

    Method requireCss has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            $action,
            $format = 'html',
            $base = null,
            $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
            $arguments = ''
    Severity: Minor
    Found in lib/Ajde/Template/Parser/Phtml/Helper.php - About 35 mins to fix

      Method requireJs has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $action,
              $format = 'html',
              $base = null,
              $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
              $arguments = ''
      Severity: Minor
      Found in lib/Ajde/Template/Parser/Phtml/Helper.php - About 35 mins to fix

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

        class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
        {
            /**
             * @var Ajde_Template_Parser
             */

        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

        The method requireJsLibrary has a boolean flag argument $version, which is a certain sign of a Single Responsibility Principle violation.
        Open

            public function requireJsLibrary($name, $version = false)

        BooleanArgumentFlag

        Since: 1.4.0

        A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

        Example

        class Foo {
            public function bar($flag = true) {
            }
        }

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

        The method ACCrudMainFilterBadge has a boolean flag argument $refresh, which is a certain sign of a Single Responsibility Principle violation.
        Open

            public function ACCrudMainFilterBadge($crud, $refresh = false)

        BooleanArgumentFlag

        Since: 1.4.0

        A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

        Example

        class Foo {
            public function bar($flag = true) {
            }
        }

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

        Avoid using static access to class 'Ajde_Component_Form' in method 'ACAjaxUpload'.
        Open

                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['name' => $name, 'upload' => true, 'options' => $options, 'id' => $id, 'class' => $class]);

        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 'Ajde_Component_Css' in method 'requireCss'.
        Open

                return Ajde_Component_Css::processStatic($this->getParser(), [
                    'action'    => $action,
                    'format'    => $format,
                    'base'      => $base,
                    'position'  => $position,

        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 'Ajde_Component_Css' in method 'requireCssRemote'.
        Open

                return Ajde_Component_Css::processStatic($this->getParser(),
                    ['url' => $url, 'position' => $position, 'arguments' => $arguments]);

        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 'Ajde_Component_Include' in method 'includeModule'.
        Open

                return Ajde_Component_Include::processStatic($this->getParser(), ['route' => $route, 'vars' => $vars]);

        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 'Ajde_Component_Image' in method 'ACImage'.
        Open

                return Ajde_Component_Image::processStatic($this->getParser(), $attributes);

        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 'Ajde_Component_String' in method 'ACString'.
        Open

                return Ajde_Component_String::processStatic($this->getParser(),
                    [
                        'escape' => true,
                        'var'    => $var,
                    ]

        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 'Ajde_Component_Form' in method 'ACAjaxForm'.
        Open

                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['route' => $route, 'ajax' => true, 'id' => $id, 'class' => $class, 'format' => $format]);

        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 'Ajde_Component_Js' in method 'requireJsLibrary'.
        Open

                return Ajde_Component_Js::processStatic($this->getParser(), ['library' => $name, 'version' => $version]);

        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 'Ajde_Component_Css' in method 'requireCssPublic'.
        Open

                return Ajde_Component_Css::processStatic($this->getParser(),
                    ['filename' => $filename, 'position' => $position, 'arguments' => $arguments]);

        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 'Ajde_Component_String' in method 'clean'.
        Open

                return Ajde_Component_String::processStatic($this->getParser(),
                    [
                        'clean' => true,
                        'var'   => $var,
                    ]

        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 'Ajde_Component_Crud' in method 'ACCrudList'.
        Open

                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'list'    => true,
                        'model'   => $model,
                        'options' => $options,

        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 'Ajde_Component_Form' in method 'ACForm'.
        Open

                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['route' => $route, 'id' => $id, 'class' => $class]);

        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 'Ajde_Component_Crud' in method 'ACCrudMainFilterBadge'.
        Open

                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'mainfilter' => true,
                        'crud'       => $crud,
                        'refresh'    => $refresh,

        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 'Ajde_Component_Js' in method 'requireJsPublic'.
        Open

                return Ajde_Component_Js::processStatic($this->getParser(),
                    ['filename' => $filename, 'position' => $position, 'arguments' => $arguments]);

        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 'Ajde_Component_Js' in method 'requireJs'.
        Open

                return Ajde_Component_Js::processStatic($this->getParser(), [
                    'action'    => $action,
                    'format'    => $format,
                    'base'      => $base,
                    'position'  => $position,

        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 'Ajde_Component_Js' in method 'requireJsRemote'.
        Open

                return Ajde_Component_Js::processStatic($this->getParser(),
                    ['url' => $url, 'position' => $position, 'arguments' => $arguments]);

        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 'Ajde_Component_Image' in method 'ACLazyImage'.
        Open

                return Ajde_Component_Image::processStatic($this->getParser(), array_merge($attributes, ['lazy' => true]));

        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 'Ajde_Component_Embed' in method 'ACEmbed'.
        Open

                return Ajde_Component_Embed::processStatic($this->getParser(), $attributes);

        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 getDocument uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
        Open

                } else {
                    return Ajde::app()->getDocument();
                }

        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 'Ajde_Component_Css' in method 'requireGWebFont'.
        Open

                return Ajde_Component_Css::processStatic($this->getParser(),
                    ['fontFamily' => $family, 'fontWeight' => $weight, 'fontSubset' => $subset]);

        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 'Ajde_Component_Form' in method 'ACEmbedForm'.
        Open

                return Ajde_Component_Form::processStatic($this->getParser(), ['embed' => true, 'id' => $formId]);

        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 'Ajde_Component_Markdown' in method 'ACMarkdown'.
        Open

                return Ajde_Component_Markdown::processStatic($this->getParser(), $attributes);

        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 'Ajde_Component_Qrcode' in method 'ACQrcode'.
        Open

                return Ajde_Component_Qrcode::processStatic($this->getParser(), $attributes);

        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 'Ajde_Component_Crud' in method 'ACCrudEdit'.
        Open

                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'edit'    => true,
                        'model'   => $model,
                        'id'      => $id,

        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 variables with short names like $id. Configured minimum length is 3.
        Open

            public function ACAjaxForm($route, $id = null, $class = null, $format = 'json')

        ShortVariable

        Since: 0.2

        Detects when a field, local, or parameter has a very short name.

        Example

        class Something {
            private $q = 15; // VIOLATION - Field
            public static function main( array $as ) { // VIOLATION - Formal
                $r = 20 + $this->q; // VIOLATION - Local
                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                    $r += $this->q;
                }
            }
        }

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

        The class Ajde_Template_Parser_Phtml_Helper is not named in CamelCase.
        Open

        class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
        {
            /**
             * @var Ajde_Template_Parser
             */

        CamelCaseClassName

        Since: 0.2

        It is considered best practice to use the CamelCase notation to name classes.

        Example

        class class_name {
        }

        Source

        Avoid variables with short names like $id. Configured minimum length is 3.
        Open

            public function ACAjaxUpload($name, $options = [], $id = null, $class = null)

        ShortVariable

        Since: 0.2

        Detects when a field, local, or parameter has a very short name.

        Example

        class Something {
            private $q = 15; // VIOLATION - Field
            public static function main( array $as ) { // VIOLATION - Formal
                $r = 20 + $this->q; // VIOLATION - Local
                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                    $r += $this->q;
                }
            }
        }

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

        Avoid variables with short names like $id. Configured minimum length is 3.
        Open

            public function ACCrudEdit($model, $id, $options = [])

        ShortVariable

        Since: 0.2

        Detects when a field, local, or parameter has a very short name.

        Example

        class Something {
            private $q = 15; // VIOLATION - Field
            public static function main( array $as ) { // VIOLATION - Formal
                $r = 20 + $this->q; // VIOLATION - Local
                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                    $r += $this->q;
                }
            }
        }

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

        The property $_parser is not named in camelCase.
        Open

        class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
        {
            /**
             * @var Ajde_Template_Parser
             */

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        Avoid variables with short names like $id. Configured minimum length is 3.
        Open

            public function ACForm($route, $id = null, $class = null)

        ShortVariable

        Since: 0.2

        Detects when a field, local, or parameter has a very short name.

        Example

        class Something {
            private $q = 15; // VIOLATION - Field
            public static function main( array $as ) { // VIOLATION - Formal
                $r = 20 + $this->q; // VIOLATION - Local
                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                    $r += $this->q;
                }
            }
        }

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

        The method ACImage is not named in camelCase.
        Open

            public function ACImage($attributes)
            {
                return Ajde_Component_Image::processStatic($this->getParser(), $attributes);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACCrudEdit is not named in camelCase.
        Open

            public function ACCrudEdit($model, $id, $options = [])
            {
                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'edit'    => true,

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACForm is not named in camelCase.
        Open

            public function ACForm($route, $id = null, $class = null)
            {
                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['route' => $route, 'id' => $id, 'class' => $class]);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACMarkdown is not named in camelCase.
        Open

            public function ACMarkdown($attributes)
            {
                return Ajde_Component_Markdown::processStatic($this->getParser(), $attributes);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACString is not named in camelCase.
        Open

            public function ACString($var)
            {
                return Ajde_Component_String::processStatic($this->getParser(),
                    [
                        'escape' => true,

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACCrudList is not named in camelCase.
        Open

            public function ACCrudList($model, $options = [])
            {
                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'list'    => true,

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACCrudMainFilterBadge is not named in camelCase.
        Open

            public function ACCrudMainFilterBadge($crud, $refresh = false)
            {
                return Ajde_Component_Crud::processStatic($this->getParser(),
                    [
                        'mainfilter' => true,

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACAjaxForm is not named in camelCase.
        Open

            public function ACAjaxForm($route, $id = null, $class = null, $format = 'json')
            {
                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['route' => $route, 'ajax' => true, 'id' => $id, 'class' => $class, 'format' => $format]);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACAjaxUpload is not named in camelCase.
        Open

            public function ACAjaxUpload($name, $options = [], $id = null, $class = null)
            {
                return Ajde_Component_Form::processStatic($this->getParser(),
                    ['name' => $name, 'upload' => true, 'options' => $options, 'id' => $id, 'class' => $class]);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACEmbedForm is not named in camelCase.
        Open

            public function ACEmbedForm($formId)
            {
                return Ajde_Component_Form::processStatic($this->getParser(), ['embed' => true, 'id' => $formId]);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACQrcode is not named in camelCase.
        Open

            public function ACQrcode($attributes)
            {
                return Ajde_Component_Qrcode::processStatic($this->getParser(), $attributes);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACEmbed is not named in camelCase.
        Open

            public function ACEmbed($attributes)
            {
                return Ajde_Component_Embed::processStatic($this->getParser(), $attributes);
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        The method ACLazyImage is not named in camelCase.
        Open

            public function ACLazyImage($attributes)
            {
                return Ajde_Component_Image::processStatic($this->getParser(), array_merge($attributes, ['lazy' => true]));
            }

        CamelCaseMethodName

        Since: 0.2

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

        Example

        class ClassName {
            public function get_name() {
            }
        }

        Source

        There are no issues that match your filters.

        Category
        Status