Code Duplication    Length = 8-8 lines in 2 locations

src/View/ViewContainer.php 2 locations

@@ 114-121 (lines=8) @@
111
     *
112
     * @return $this
113
     */
114
    public function addCallback($callback, $data = [], $region = "main", $sort = 0)
115
    {
116
        $view = new View();
117
        $view->set(["callback" => $callback], $data, $sort, "callback");
118
        $this->views[$region][] = $view;
119
120
        return $this;
121
    }
122
123
124
@@ 134-141 (lines=8) @@
131
     *
132
     * @return $this
133
     */
134
    public function addString($content, $region = "main", $sort = 0)
135
    {
136
        $view = new View();
137
        $view->set($content, [], $sort, "string");
138
        $this->views[$region][] = $view;
139
        
140
        return $this;
141
    }
142
143
144