lib/Ajde/Collection.php

Summary

Maintainability
D
3 days
Test Coverage

Ajde_Collection has 44 functions (exceeds 20 allowed). Consider refactoring.
Open

class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
{
    /**
     * @var string
     */
Severity: Minor
Found in lib/Ajde/Collection.php - About 6 hrs to fix

    Function applyView has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

        public function applyView(Ajde_Collection_View $view = null)
        {
            if (!$this->hasView() && !isset($view)) {
                // TODO:
                throw new Ajde_Exception('No view set');
    Severity: Minor
    Found in lib/Ajde/Collection.php - About 5 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    File Collection.php has 400 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
    {
        /**
    Severity: Minor
    Found in lib/Ajde/Collection.php - About 5 hrs to fix

      The class Ajde_Collection has 28 public methods. Consider refactoring Ajde_Collection to keep number of public methods under 10.
      Open

      class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
      {
          /**
           * @var string
           */
      Severity: Minor
      Found in lib/Ajde/Collection.php by phpmd

      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

      The class Ajde_Collection has an overall complexity of 101 which is very high. The configured complexity threshold is 50.
      Open

      class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
      {
          /**
           * @var string
           */
      Severity: Minor
      Found in lib/Ajde/Collection.php by phpmd

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

      class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
      {
          /**
           * @var string
           */
      Severity: Minor
      Found in lib/Ajde/Collection.php by phpmd

      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

      Function getSql has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          public function getSql()
          {
              if (!$this->_sqlInitialized) {
                  foreach ($this->getTable()->getFieldNames() as $field) {
                      $this->getQuery()->addSelect((string) $this->getTable().'.'.$field);
      Severity: Minor
      Found in lib/Ajde/Collection.php - About 2 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method applyView has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function applyView(Ajde_Collection_View $view = null)
          {
              if (!$this->hasView() && !isset($view)) {
                  // TODO:
                  throw new Ajde_Exception('No view set');
      Severity: Major
      Found in lib/Ajde/Collection.php - About 2 hrs to fix

        Function count has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
        Open

            public function count($query = false)
            {
                if ($query == true) {
                    if (!isset($this->_queryCount)) {
                        $this->_statement = $this->getConnection()->prepare($this->getCountSql());
        Severity: Minor
        Found in lib/Ajde/Collection.php - About 1 hr to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        The class Ajde_Collection has 45 public methods and attributes. Consider reducing the number of public items to less than 45.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        ExcessivePublicCount

        Since: 0.1

        A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

        Example

        public class Foo {
            public $value;
            public $something;
            public $var;
            // [... more more public attributes ...]
        
            public function doWork() {}
            public function doMoreWork() {}
            public function doWorkAgain() {}
            // [... more more public methods ...]
        }

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

        Function getFilter has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            public function getFilter($queryPart)
            {
                $arguments = [];
                foreach ($this->_filters as $filter) {
                    $prepared = $filter->prepare($this->getTable());
        Severity: Minor
        Found in lib/Ajde/Collection.php - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        The method applyView() has an NPath complexity of 1260. The configured NPath complexity threshold is 200.
        Open

            public function applyView(Ajde_Collection_View $view = null)
            {
                if (!$this->hasView() && !isset($view)) {
                    // TODO:
                    throw new Ajde_Exception('No view set');
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        NPathComplexity

        Since: 0.1

        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

        Example

        class Foo {
            function bar() {
                // lots of complicated code
            }
        }

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

        The method applyView() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
        Open

            public function applyView(Ajde_Collection_View $view = null)
            {
                if (!$this->hasView() && !isset($view)) {
                    // TODO:
                    throw new Ajde_Exception('No view set');
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CyclomaticComplexity

        Since: 0.1

        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

        Example

        // Cyclomatic Complexity = 11
        class Foo {
        1   public function example() {
        2       if ($a == $b) {
        3           if ($a1 == $b1) {
                        fiddle();
        4           } elseif ($a2 == $b2) {
                        fiddle();
                    } else {
                        fiddle();
                    }
        5       } elseif ($c == $d) {
        6           while ($c == $d) {
                        fiddle();
                    }
        7        } elseif ($e == $f) {
        8           for ($n = 0; $n < $h; $n++) {
                        fiddle();
                    }
                } else {
                    switch ($z) {
        9               case 1:
                            fiddle();
                            break;
        10              case 2:
                            fiddle();
                            break;
        11              case 3:
                            fiddle();
                            break;
                        default:
                            fiddle();
                            break;
                    }
                }
            }
        }

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

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

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.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 '324', column '50').
        Open

                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
        Severity: Minor
        Found in lib/Ajde/Collection.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 '215', column '20').
        Open

                return new Ajde_Filter_Link($this, $modelName, $this->_link[$modelName], $value);
        Severity: Minor
        Found in lib/Ajde/Collection.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 '29').
        Open

                $this->_query = new Ajde_Query();
        Severity: Minor
        Found in lib/Ajde/Collection.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 '80', column '29').
        Open

                $this->_query = new Ajde_Query();
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

            public function count($query = false)
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        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

        Missing class import via use statement (line '243', column '30').
        Open

                $this->addFilter(new Ajde_Filter_Where($field, $comparison, $value, $operator));
        Severity: Minor
        Found in lib/Ajde/Collection.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 '328', column '50').
        Open

                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
        Severity: Minor
        Found in lib/Ajde/Collection.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 '314', column '50').
        Open

                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
        Severity: Minor
        Found in lib/Ajde/Collection.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 '318', column '50').
        Open

                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
        Severity: Minor
        Found in lib/Ajde/Collection.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 '275', column '23').
        Open

                    throw new Ajde_Exception('No view set');
        Severity: Minor
        Found in lib/Ajde/Collection.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 '212', column '23').
        Open

                    throw new Ajde_Exception('Link not defined...');
        Severity: Minor
        Found in lib/Ajde/Collection.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 '348', column '34').
        Open

                    $this->addFilter(new Ajde_Filter_Where('true', '=', 'false'));
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                                } else {
                                    // non-date fields (exact match)
                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
                                        Ajde_Filter::FILTER_EQUALS, $filterValue));
                                }
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                    } else {
                        $this->_statement->bindValue(":$key", $value, PDO::PARAM_STR);
                    }
        Severity: Minor
        Found in lib/Ajde/Collection.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 'Ajde_Db_PDOStatement' in method 'getEmulatedSql'.
        Open

                return Ajde_Db_PDOStatement::getEmulatedSql($this->getSql(), $this->getFilterValues());
        Severity: Minor
        Found in lib/Ajde/Collection.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 getFilter uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
        Open

                } else {
                    return $arguments;
                }
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                            } else {
                                $this->_statement->bindValue(":$key", $value, PDO::PARAM_STR);
                            }
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                            } else {
                                if ($fieldType == Ajde_Db::FIELD_TYPE_TEXT) {
                                    // text fields (fuzzy)
                                    $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
                                        Ajde_Filter::FILTER_LIKE, '%'.$filterValue.'%'));
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                } else {
                    $this->addFilter(new Ajde_Filter_Where('true', '=', 'false'));
                }
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                } else {
                    if (!isset($this->_items)) {
                        $this->load();
                    }
        
        
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                    } else {
                        // custom column, make sure to add it to the query first!
                        $this->orderBy($view->getOrderBy(), $view->getOrderDir());
                    }
        Severity: Minor
        Found in lib/Ajde/Collection.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

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

                } else {
                    $view = $this->getView();
                }
        Severity: Minor
        Found in lib/Ajde/Collection.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 unused parameters such as '$controller'.
        Open

            public static function extendController(Ajde_Controller $controller, $method, $arguments)
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        UnusedFormalParameter

        Since: 0.2

        Avoid passing parameters to methods or constructors and then not using those parameters.

        Example

        class Foo
        {
            private function bar($howdy)
            {
                // $howdy is not used
            }
        }

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

        TODO found
        Open

                    // TODO:
        Severity: Minor
        Found in lib/Ajde/Collection.php by fixme

        TODO found
        Open

                    // TODO:
        Severity: Minor
        Found in lib/Ajde/Collection.php by fixme

        TODO found
        Open

                // TODO: if last triggered in event cueue, throw exception
        Severity: Minor
        Found in lib/Ajde/Collection.php by fixme

        The property $_sqlInitialized is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_table is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_position is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_filters is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_link is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_modelName is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The class Ajde_Collection is not named in CamelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCaseClassName

        Since: 0.2

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

        Example

        class class_name {
        }

        Source

        The property $_items is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_statement is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_filterValues is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_query is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_queryCount is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_view is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $_connection is not named in camelCase.
        Open

        class Ajde_Collection extends Ajde_Object_Standard implements Iterator, Countable
        {
            /**
             * @var string
             */
        Severity: Minor
        Found in lib/Ajde/Collection.php by phpmd

        CamelCasePropertyName

        Since: 0.2

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

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        There are no issues that match your filters.

        Category
        Status