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 = 17-22 lines in 3 locations

application/models/BaseObject.php 1 location

@@ 134-155 (lines=22) @@
131
            return BaseObject::findById($id);
132
        } else {
133
            $object = Yii::$app->cache->get('ObjectByClassName: ' . $class_name);
134
            if ($object === false) {
135
                $object = BaseObject::find()
136
                    ->where(
137
                        [
138
                            'object_class' => $class_name,
139
                        ]
140
                    )->one();
141
                if ($object !== null) {
142
                    Yii::$app->cache->set(
143
                        'ObjectByClassName: ' . $class_name,
144
                        $object,
145
                        86400,
146
                        new TagDependency(
147
                            [
148
                                'tags' => [
149
                                    \devgroup\TagDependencyHelper\ActiveRecordHelper::getObjectTag($object, $object->id),
150
                                ],
151
                            ]
152
                        )
153
                    );
154
                }
155
            }
156
            if (is_object($object)) {
157
                static::$identity_map[$object->id] = $object;
158
                static::$ids_for_class_name[$class_name] = $object->id;

application/modules/core/models/Events.php 1 location

@@ 132-148 (lines=17) @@
129
        }
130
        $cacheKey = "Event:byName:$name";
131
        $model = Yii::$app->cache->get($cacheKey);
132
        if ($model === false) {
133
            $model = self::find()
134
                ->where(['event_name' => $name])
135
                ->one();
136
            if ($model !== null) {
137
                Yii::$app->cache->set(
138
                    $cacheKey,
139
                    $model,
140
                    86400,
141
                    new TagDependency([
142
                        'tags' => [
143
                            ActiveRecordHelper::getObjectTag(static::className(), $model->event_class_name),
144
                        ]
145
                    ])
146
                );
147
            }
148
        }
149
        static::$identity_map_by_classname[$model->event_class_name] = $model;
150
        return $model;
151
    }

application/modules/user/models/User.php 1 location

@@ 181-199 (lines=19) @@
178
179
        if (is_numeric($id)) {
180
            $model = Yii::$app->cache->get("User:$id");
181
            if ($model === false) {
182
                $model = static::find()
183
                    ->with('services')
184
                    ->where('id=:id', [':id'=>$id])
185
                    ->one();
186
                if ($model !== null) {
187
                    Yii::$app->cache->set(
188
                        "User:$id",
189
                        $model,
190
                        3600,
191
                        new TagDependency([
192
                            'tags' => [
193
                                ActiveRecordHelper::getObjectTag($model->className(), $model->id)
194
                            ]
195
                        ])
196
                    );
197
                }
198
199
            }
200
            return $model;
201
        } else {
202
            return null;