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

application/extensions/demo/migrations/m150605_094805_demo_data.php 2 locations

@@ 37-51 (lines=15) @@
34
    protected function saveEav($id, $groupId, $name, $value)
35
    {
36
        $key = $this->getKey($name);
37
        if (!isset($this->properties[$key])) {
38
            $this->insert(
39
                Property::tableName(),
40
                [
41
                    'property_group_id' => $groupId,
42
                    'name' => $name,
43
                    'key' => $key,
44
                    'property_handler_id' => $this->textHandlerId,
45
                    'handler_additional_params' => '{}',
46
                    'is_eav' => 1,
47
                    'has_slugs_in_values' => 0,
48
                ]
49
            );
50
            $this->properties[$key] = $this->db->lastInsertID;
51
        }
52
        $this->insert(
53
            '{{%product_eav}}',
54
            [
@@ 218-232 (lines=15) @@
215
                        $property['name'] = trim($property['name'], '/ ');
216
                        if (in_array($property['name'], $staticProperties)) {
217
                            $key = $this->getKey($property['name']);
218
                            if (!isset($this->properties[$key])) {
219
                                $this->insert(
220
                                    Property::tableName(),
221
                                    [
222
                                        'property_group_id' => $groupId,
223
                                        'name' => $property['name'],
224
                                        'key' => $key,
225
                                        'property_handler_id' => $this->selectHandlerId,
226
                                        'handler_additional_params' => '{}',
227
                                        'has_static_values' => 1,
228
                                        'has_slugs_in_values' => 1,
229
                                    ]
230
                                );
231
                                $this->properties[$key] = $this->db->lastInsertID;
232
                            }
233
                            $this->saveStatic(
234
                                $productId,
235
                                $this->getKey($property['name']),