Code Duplication    Length = 10-10 lines in 2 locations

src/FrontQL/Adapter/Select/SelectAdapter.php 1 location

@@ 122-131 (lines=10) @@
119
     *
120
     * @return array
121
     */
122
    public function getWhere()
123
    {
124
        if(!is_array($this->payload['where']))
125
            return [];
126
127
        $adapter = new WhereAdapter();
128
        $where = $adapter->fromArray($this->payload['where']);
129
130
        return $where;
131
    }
132
}
133

src/FrontQL/Adapter/Select/SelectPayload.php 1 location

@@ 121-130 (lines=10) @@
118
     *
119
     * @return array
120
     */
121
    public function getWhere()
122
    {
123
        if(!is_array($this->payload['where']))
124
            return [];
125
126
        $adapter = new WhereAdapter();
127
        $where = $adapter->fromArray($this->payload['where']);
128
129
        return $where;
130
    }
131
}
132