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 = 13-14 lines in 2 locations

src/LPTracker/models/ContactDetail.php 1 location

@@ 109-121 (lines=13) @@
106
    /**
107
     * @return array
108
     */
109
    public function toArray()
110
    {
111
        $result = [
112
            'type' => $this->type,
113
            'data' => $this->data
114
        ];
115
116
        if ( ! empty($this->id)) {
117
            $result['id'] = $this->getId();
118
        }
119
120
        return $result;
121
    }
122
123
124
    /**

src/LPTracker/models/ContactField.php 1 location

@@ 110-123 (lines=14) @@
107
    /**
108
     * @return array
109
     */
110
    public function toArray()
111
    {
112
        $result = [
113
            'id'   => $this->id,
114
            'name' => $this->name,
115
            'type' => $this->type
116
        ];
117
118
        if ( ! empty($this->value)) {
119
            $result['value'] = $this->getValue();
120
        }
121
122
        return $result;
123
    }
124
125
126
    /**