Code Duplication    Length = 9-10 lines in 2 locations

src/View/CViewContainerBasic.php 2 locations

@@ 66-75 (lines=10) @@
63
     *
64
     * @return $this
65
     */
66
    public function addCallback($callback, $data = [], $region = 'main', $sort = 0)
67
    {
68
        $view = $this->di->get('view');
69
70
        $view->set(['callback' => $callback], $data, $sort, 'callback');
71
        $view->setDI($this->di);
72
        $this->views[$region][] = $view;
73
74
        return $this;
75
    }
76
77
78
@@ 88-96 (lines=9) @@
85
     *
86
     * @return $this
87
     */
88
    public function addString($content, $region = 'main', $sort = 0)
89
    {
90
        $view = $this->di->get('view');
91
        $view->set($content, [], $sort, 'string');
92
        $view->setDI($this->di);
93
        $this->views[$region][] = $view;
94
        
95
        return $this;
96
    }
97
98
99