Code Duplication    Length = 8-8 lines in 2 locations

src/View/ViewCollection.php 2 locations

@@ 165-172 (lines=8) @@
162
     *
163
     * @return $this
164
     */
165
    public function addCallback($callback, $data = [], $region = "main", $sort = 0)
166
    {
167
        $view = new View();
168
        $view->set(["callback" => $callback], $data, $sort, "callback");
169
        $this->views[$region][] = $view;
170
171
        return $this;
172
    }
173
174
175
@@ 185-192 (lines=8) @@
182
     *
183
     * @return $this
184
     */
185
    public function addString($content, $region = "main", $sort = 0)
186
    {
187
        $view = new View();
188
        $view->set($content, [], $sort, "string");
189
        $this->views[$region][] = $view;
190
        
191
        return $this;
192
    }
193
194
195