GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 8-8 lines in 2 locations

applications/workspace/src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/WorkspaceController.php 2 locations

@@ 514-521 (lines=8) @@
511
                    $pb->points = $point;
512
                $tmp = R::store($pb);
513
514
                if ($point === $this->POINT_FOR_USING_A_BADGE) { //SE SEI IN CAMMINO MA NON LI HAI ANCORA RAGGIUNTI
515
                    $ubc = R::dispense("userbadgeclove");
516
                        $ubc->user = $user_id;
517
                        $ubc->badge = $b->id;
518
                        $ubc->part = $part_id;
519
                        $ubc->inserttime = date($this->DATE_FORMAT);
520
                    $tmp = R::store($ubc);
521
                }
522
            }
523
        }
524
@@ 525-532 (lines=8) @@
522
            }
523
        }
524
525
        if ($point_earned <= 0) { //SE NON CI SONO BADGE O SE TU NON SEI IN CAMMINO PER NESSUNO DI LORO
526
            $pb = R::dispense("cero");
527
                $pb->user = $user_id;
528
                $pb->part = $part_id;
529
                $pb->inserttime = date($this->DATE_FORMAT);
530
                $pb->points = $this->POINT_DEFAULT;
531
            $tmp = R::store($pb);
532
        }
533
        $res = ["points"=>intval($point_earned)];
534
        $headers = [];
535
        return JsonResponse::create($res, 201, $headers)->setSharedMaxAge(300);