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

CargoBackend/src/Application/Booking/Dto/CargoRoutingDto.php 1 location

@@ 130-137 (lines=8) @@
127
    {
128
        $legsArrayCopy = array();
129
130
        foreach ($this->getLegs() as $leg) {
131
            $legsArrayCopy[] = array(
132
                'load_location'   => $leg->getLoadLocation(),
133
                'unload_location' => $leg->getUnloadLocation(),
134
                'load_time'       => $leg->getLoadTime(),
135
                'unload_time'     => $leg->getUnloadTime()
136
            );
137
        }
138
139
        return array(
140
            'tracking_id'        => $this->getTrackingId(),

CargoBackend/src/Application/Booking/Dto/RouteCandidateDto.php 1 location

@@ 51-58 (lines=8) @@
48
    {
49
        $legsList = array();
50
51
        foreach ($this->getLegs() as $leg) {
52
            $legsList[] = array(
53
                'load_location'   => $leg->getLoadLocation(),
54
                'unload_location' => $leg->getUnloadLocation(),
55
                'load_time'       => $leg->getLoadTime(),
56
                'unload_time'     => $leg->getUnloadTime()
57
            );
58
        }
59
60
        return array('legs' => $legsList);
61
    }