Code Duplication    Length = 9-9 lines in 2 locations

code/extensions/PageRaterExtension.php 2 locations

@@ 196-204 (lines=9) @@
193
    }
194
195
196
    public function removedefaultpageratings()
197
    {
198
        if (Permission::check("ADMIN")) {
199
            DB::query("DELETE FROM PageRating WHERE IsDefault = 1;");
200
            debug::show("removed all default ratings for all pages");
201
        } else {
202
            Security::permissionFailure($this->owner, _t('Security.PERMFAILURE', ' This page is secured and you need administrator rights to access it. Enter your credentials below and we will send you right along.'));
203
        }
204
    }
205
206
    public function removeallpageratings()
207
    {
@@ 206-214 (lines=9) @@
203
        }
204
    }
205
206
    public function removeallpageratings()
207
    {
208
        if (Permission::check("ADMIN")) {
209
            DB::query("DELETE FROM PageRating;");
210
            debug::show("removed all ratings for all pages");
211
        } else {
212
            Security::permissionFailure($this->owner, _t('Security.PERMFAILURE', ' This page is secured and you need administrator rights to access it. Enter your credentials below and we will send you right along.'));
213
        }
214
    }
215
216
217