Code Duplication    Length = 11-11 lines in 2 locations

lib/net/nehmer/static/handler/admin.php 1 location

@@ 121-131 (lines=11) @@
118
        return $workflow->run();
119
    }
120
121
    public function save_callback(midcom_helper_datamanager2_controller $controller)
122
    {
123
        // Reindex the article
124
        $indexer = midcom::get()->indexer;
125
        net_nehmer_static_viewer::index($controller->datamanager, $indexer, $this->_content_topic);
126
        if ($this->_article->name == 'index')
127
        {
128
            return '';
129
        }
130
        return $this->_article->name . '/';
131
    }
132
133
    /**
134
     * Displays article link delete confirmation

lib/net/nehmer/static/handler/create.php 1 location

@@ 153-163 (lines=11) @@
150
        return $workflow->run();
151
    }
152
153
    public function save_callback(midcom_helper_datamanager2_controller $controller)
154
    {
155
        // Reindex the article
156
        $indexer = midcom::get()->indexer;
157
        net_nehmer_static_viewer::index($controller->datamanager, $indexer, $this->_content_topic);
158
        if ($this->_article->name == 'index')
159
        {
160
            return '';
161
        }
162
        return $this->_article->name . '/';
163
    }
164
}
165