Code Duplication    Length = 14-15 lines in 3 locations

src/app/models/contest_model.php 3 locations

@@ 193-207 (lines=15) @@
190
        return $this->is_registered('paper_presentation', $user_nick);
191
    }
192
193
    public function register_for_paper_presentation($info) {
194
        return $this->db_lib->prepared_execute(
195
            $this->DB->contest,
196
            "INSERT INTO `paper_presentation`
197
            (`nick`, `contact_number`, `paper_link`)
198
            VALUES  (?, ?, ?)",
199
            "sss",
200
            [
201
                $info['nick'],
202
                $info['contact_number'],
203
                $info['paper_link'],
204
            ],
205
            false
206
        );
207
    }
208
209
    /*
210
    |---------------------------------------------------------------------------
@@ 219-232 (lines=14) @@
216
        return $this->is_registered('visualizeit', $user_nick);
217
    }
218
219
    public function register_for_visualizeit($info) {
220
        return $this->db_lib->prepared_execute(
221
            $this->DB->contest,
222
            "INSERT INTO `visualizeit`
223
            (`nick`, `paper_link`)
224
            VALUES  (?, ?)",
225
            "ss",
226
            [
227
                $info['nick'],
228
                $info['paper_link'],
229
            ],
230
            false
231
        );
232
    }
233
234
    /*
235
    |---------------------------------------------------------------------------
@@ 372-385 (lines=14) @@
369
        return $this->is_registered('arvr_registrations', $user_nick);
370
    }
371
372
    public function register_for_arvr($info) {
373
        return $this->db_lib->prepared_execute(
374
            $this->DB->contest,
375
            "INSERT INTO `arvr_registrations`
376
            (`nick`, `contact_number`)
377
            VALUES  (?, ?)",
378
            "ss",
379
            [
380
                $info['nick'],
381
                $info['contact_number'],
382
            ],
383
            false
384
        );
385
    }
386
387
    public function arvr_payment_success($payment_id, $nick, $status, $payment_data) {
388
        $stmt = $this->db_lib->prepared_execute(