Code Duplication    Length = 9-9 lines in 2 locations

src/Eccube/Repository/CustomerRepository.php 2 locations

@@ 255-263 (lines=9) @@
252
     *
253
     * @return string
254
     */
255
    public function getUniqueSecretKey()
256
    {
257
        do {
258
            $key = StringUtil::random(32);
259
            $Customer = $this->findOneBy(['secret_key' => $key]);
260
        } while ($Customer);
261
262
        return $key;
263
    }
264
265
    /**
266
     * ユニークなパスワードリセットキーを返す
@@ 270-278 (lines=9) @@
267
     *
268
     * @return string
269
     */
270
    public function getUniqueResetKey()
271
    {
272
        do {
273
            $key = StringUtil::random(32);
274
            $Customer = $this->findOneBy(['reset_key' => $key]);
275
        } while ($Customer);
276
277
        return $key;
278
    }
279
280
    /**
281
     * 仮会員をシークレットキーで検索する.