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

application/models/BaseObject.php 1 location

@@ 171-196 (lines=26) @@
168
     * Значение - name
169
     * Используется для фильтрации в таблицах и выборе объекта в форме
170
     */
171
    public static function getSelectArray()
172
    {
173
        if (static::$select_array_cache === null) {
174
            static::$select_array_cache = Yii::$app->cache->get('ObjectsList');
175
            if (static::$select_array_cache === false) {
176
                $rows = (new Query())
177
                    ->select('id, name')
178
                    ->from(BaseObject::tableName())
179
                    ->all();
180
                static::$select_array_cache = ArrayHelper::map($rows, 'id', 'name');
181
            }
182
            Yii::$app->cache->set(
183
                'ObjectsList',
184
                static::$select_array_cache,
185
                86400,
186
                new TagDependency(
187
                    [
188
                        'tags' => [
189
                            \devgroup\TagDependencyHelper\ActiveRecordHelper::getCommonTag(static::className()),
190
                        ],
191
                    ]
192
                )
193
            );
194
        }
195
        return static::$select_array_cache;
196
    }
197
198
    public function getLastExport()
199
    {

application/models/PropertyHandler.php 1 location

@@ 114-139 (lines=26) @@
111
     * Значение - name
112
     * Используется для фильтрации в таблицах и выборе объекта в форме
113
     */
114
    public static function getSelectArray()
115
    {
116
        if (static::$select_array_cache === null) {
117
            static::$select_array_cache = Yii::$app->cache->get('PropertyHandlersList');
118
            if (static::$select_array_cache === false) {
119
                $rows = (new Query())
120
                    ->select('id, name')
121
                    ->from(PropertyHandler::tableName())
122
                    ->all();
123
                static::$select_array_cache = ArrayHelper::map($rows, 'id', 'name');
124
                Yii::$app->cache->set(
125
                    'PropertyHandlersList',
126
                    static::$select_array_cache,
127
                    86400,
128
                    new TagDependency(
129
                        [
130
                            'tags' => [
131
                                \devgroup\TagDependencyHelper\ActiveRecordHelper::getCommonTag(static::className()),
132
                            ],
133
                        ]
134
                    )
135
                );
136
            }
137
        }
138
        return static::$select_array_cache;
139
    }
140
141
    /**
142
     * @param $name