Code Duplication    Length = 3-3 lines in 2 locations

src/Loader/Statistics/AbstractStatisticsLoader.php 2 locations

@@ 55-57 (lines=3) @@
52
53
    public function processPostVars($post)
54
    {
55
        if (! empty($post['wheres'])) {
56
            $return['wheres'] = json_decode($post['wheres'], true);
57
        }
58
59
        if (! empty($post['orderBy'])) {
60
            $return['orderBy'] = json_decode($post['orderBy'], true);
@@ 59-61 (lines=3) @@
56
            $return['wheres'] = json_decode($post['wheres'], true);
57
        }
58
59
        if (! empty($post['orderBy'])) {
60
            $return['orderBy'] = json_decode($post['orderBy'], true);
61
        }
62
63
        if (empty($post['limit']) || ! isset($post['limit'])) {
64
            $post['limit'] = 10;