Code Duplication    Length = 8-8 lines in 2 locations

src/View/ViewCollection.php 2 locations

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