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

application/modules/seo/handlers/GoogleEcommerceHandler.php 1 location

@@ 285-294 (lines=10) @@
282
     * @param Product $model
283
     * @return string
284
     */
285
    static private function getCategories(Product $model)
286
    {
287
        $categories = [];
288
        $category = $model->category;
289
        while (null !== $category) {
290
            array_unshift($categories, $category->name);
291
            $category = $category->parent;
292
        }
293
        return implode('/', array_slice($categories, 0, 5));
294
    }
295
}
296

application/modules/seo/handlers/YandexEcommerceHandler.php 1 location

@@ 291-300 (lines=10) @@
288
     * @param Product $model
289
     * @return string
290
     */
291
    static private function getCategories(Product $model)
292
    {
293
        $categories = [];
294
        $category = $model->category;
295
        while (null !== $category) {
296
            array_unshift($categories, $category->name);
297
            $category = $category->parent;
298
        }
299
        return implode('/', array_slice($categories, 0, 5));
300
    }
301
}
302