Code Duplication    Length = 8-8 lines in 2 locations

src/query/Generic.php 1 location

@@ 121-128 (lines=8) @@
118
     * @param string $order Sorting order
119
     * @return $this Chaining
120
     */
121
    public function orderBy($fieldName, $order = 'ASC')
122
    {
123
        if (array_key_exists($fieldName, static::$parentFields)) {
124
            $this->orderBy = array($fieldName, $order);
125
        }
126
127
        return $this;
128
    }
129
130
    /**
131
     * Add primary field query condition.

src/query/Record.php 1 location

@@ 100-107 (lines=8) @@
97
     * @param string $order Sorting order
98
     * @return $this Chaining
99
     */
100
    public function orderBy($fieldName, $order = 'ASC')
101
    {
102
        if (array_key_exists($fieldName, static::$parentFields)) {
103
            $this->orderBy = array($fieldName, $order);
104
        }
105
106
        return $this;
107
    }
108
109
    /**
110
     * Add primary field query condition.