Code Duplication    Length = 10-10 lines in 2 locations

src/Qwatcher.php 2 locations

@@ 77-86 (lines=10) @@
74
     *
75
     * @return collection
76
     */
77
    public function all()
78
    {
79
        $builder = new Tracks;
80
81
        $builder = $builder->newQuery();
82
83
        $this->queryApplies($builder);
84
85
        return $this->trackTransformer->transforms($builder->get());
86
    }
87
88
    /**
89
     * Get paginate list of the queue track
@@ 94-103 (lines=10) @@
91
     * @param  $perPage     The number of per page
92
     * @return collection
93
     */
94
    public function paginate($perPage)
95
    {
96
        $builder = new Tracks;
97
98
        $builder = $builder->newQuery();
99
100
        $this->queryApplies($builder);
101
102
        return $this->trackTransformer->transforms($builder->paginate($perPage));
103
    }
104
105
    /**
106
     * Get the track record by id