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

@@ 412-419 (lines=8) @@
409
                    $pb->points = $point;
410
                $tmp = R::store($pb);
411
412
                if($point === $this->POINT_FOR_USING_A_BADGE){ //SE SEI IN CAMMINO MA NON LI HAI ANCORA RAGGIUNTI
413
                    $ubc = R::dispense("userbadgeclove");
414
                        $ubc->user = $user_id;
415
                        $ubc->badge = $b->id;
416
                        $ubc->part = $part_id;
417
                        $ubc->inserttime = date('Y-m-d H:i:s');
418
                    $tmp = R::store($ubc);
419
                }
420
            }
421
        }
422
@@ 423-430 (lines=8) @@
420
            }
421
        }
422
423
        if($point_earned <= 0){ //SE NON CI SONO BADGE O SE TU NON SEI IN CAMMINO PER NESSUNO DI LORO
424
            $pb = R::dispense("cero");
425
                $pb->user = $user_id;
426
                $pb->part = $part_id;
427
                $pb->inserttime = date('Y-m-d H:i:s');
428
                $pb->points = $this->POINT_DEFAULT;
429
            $tmp = R::store($pb);
430
        }
431
        $res = ["points"=>$point_earned];
432
        $headers = [];
433
        return JsonResponse::create($res, 201, $headers)->setSharedMaxAge(300);