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

application/modules/core/helpers/ContentBlockHelper.php 2 locations

@@ 99-111 (lines=13) @@
96
                        }
97
                        $replacement = static::replaceForms($chunkData);
98
                        break;
99
                    case '~' :
100
                        if ($preprocess === false) break;
101
                        $replacement = Yii::$app->cache->get($cacheKey);
102
                        if ($replacement === false) {
103
                            $replacement = static::renderUrl($chunkData, $dependency);
104
                            Yii::$app->cache->set(
105
                                $cacheKey,
106
                                $replacement,
107
                                84600,
108
                                $dependency
109
                            );
110
                        }
111
                        break;
112
                    case '*':
113
                        if ($preprocess === false) {
114
                            break;
@@ 112-126 (lines=15) @@
109
                            );
110
                        }
111
                        break;
112
                    case '*':
113
                        if ($preprocess === false) {
114
                            break;
115
                        }
116
                        $replacement = Yii::$app->cache->get($cacheKey);
117
                        if ($replacement === false) {
118
                            $replacement = static::renderProducts($chunkData, $dependency);
119
                            Yii::$app->cache->set(
120
                                $cacheKey,
121
                                $replacement,
122
                                84600,
123
                                $dependency
124
                            );
125
                        }
126
                        break;
127
                }
128
                $content = str_replace($matches[0][$k], $replacement, $content);
129
            }