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

application/extensions/DefaultTheme/models/ThemeParts.php 1 location

@@ 97-112 (lines=16) @@
94
            Yii::beginProfile('Get all theme parts');
95
96
            static::$allParts= Yii::$app->cache->get($cacheKey);
97
            if (static::$allParts=== false) {
98
                static::$allParts= ThemeParts::find()
99
                    ->where(['global_visibility'=>1])
100
                    ->asArray()
101
                    ->all();
102
                Yii::$app->cache->set(
103
                    $cacheKey,
104
                    static::$allParts,
105
                    86400,
106
                    new TagDependency([
107
                        'tags' => [
108
                            ActiveRecordHelper::getCommonTag(ThemeVariation::className()),
109
                        ]
110
                    ])
111
                );
112
            }
113
            Yii::endProfile('Get all theme parts');
114
        }
115
        return static::$allParts;

application/extensions/DefaultTheme/models/ThemeVariation.php 1 location

@@ 92-107 (lines=16) @@
89
            $cacheKey = 'AllThemeVariations';
90
91
            static::$allVariations = Yii::$app->cache->get($cacheKey);
92
            if (static::$allVariations === false) {
93
                static::$allVariations = ThemeVariation::find()
94
                    ->orderBy(['exclusive' => SORT_DESC])
95
                    ->asArray()
96
                    ->all();
97
                Yii::$app->cache->set(
98
                    $cacheKey,
99
                    static::$allVariations,
100
                    86400,
101
                    new TagDependency([
102
                        'tags' => [
103
                            ActiveRecordHelper::getCommonTag(ThemeVariation::className()),
104
                        ]
105
                    ])
106
                );
107
            }
108
        }
109
        return static::$allVariations;
110
    }