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

@@ 487-494 (lines=8) @@
484
                    $pb->points = $point;
485
                $tmp = R::store($pb);
486
487
                if($point === $this->POINT_FOR_USING_A_BADGE){ //SE SEI IN CAMMINO MA NON LI HAI ANCORA RAGGIUNTI
488
                    $ubc = R::dispense("userbadgeclove");
489
                        $ubc->user = $user_id;
490
                        $ubc->badge = $b->id;
491
                        $ubc->part = $part_id;
492
                        $ubc->inserttime = date('Y-m-d H:i:s');
493
                    $tmp = R::store($ubc);
494
                }
495
            }
496
        }
497
@@ 498-505 (lines=8) @@
495
            }
496
        }
497
498
        if($point_earned <= 0){ //SE NON CI SONO BADGE O SE TU NON SEI IN CAMMINO PER NESSUNO DI LORO
499
            $pb = R::dispense("cero");
500
                $pb->user = $user_id;
501
                $pb->part = $part_id;
502
                $pb->inserttime = date('Y-m-d H:i:s');
503
                $pb->points = $this->POINT_DEFAULT;
504
            $tmp = R::store($pb);
505
        }
506
        $res = ["points"=>$point_earned];
507
        $headers = [];
508
        return JsonResponse::create($res, 201, $headers)->setSharedMaxAge(300);