Code Duplication    Length = 9-9 lines in 2 locations

Apps/Model/Front/Search/SearchComments.php 1 location

@@ 26-34 (lines=9) @@
23
     * @param string $query
24
     * @param int $limit
25
     */
26
    public function __construct($query, $limit = 10)
27
    {
28
        $this->query = $query;
29
        $this->limit = (int)$limit;
30
        if ($this->limit < 1) {
31
            $this->limit = 1;
32
        }
33
        parent::__construct();
34
    }
35
36
    /**
37
     * Build search results. Should return array collection: [AbstractSearchResult]

Apps/Model/Front/Search/SearchContent.php 1 location

@@ 28-36 (lines=9) @@
25
     * @param string $query
26
     * @param int $limit
27
     */
28
    public function __construct($query, $limit = 10)
29
    {
30
        $this->query = $query;
31
        $this->limit = (int)$limit;
32
        if ($this->limit < 1) {
33
            $this->limit = 1;
34
        }
35
        parent::__construct();
36
    }
37
38
    /**
39
     * Build search results