Code Duplication    Length = 9-9 lines in 2 locations

src/Eccube/Repository/CustomerRepository.php 2 locations

@@ 287-295 (lines=9) @@
284
     *
285
     * @return string
286
     */
287
    public function getUniqueSecretKey()
288
    {
289
        do {
290
            $key = StringUtil::random(32);
291
            $Customer = $this->findOneBy(['secret_key' => $key]);
292
        } while ($Customer);
293
294
        return $key;
295
    }
296
297
    /**
298
     * ユニークなパスワードリセットキーを返す
@@ 302-310 (lines=9) @@
299
     *
300
     * @return string
301
     */
302
    public function getUniqueResetKey()
303
    {
304
        do {
305
            $key = StringUtil::random(32);
306
            $Customer = $this->findOneBy(['reset_key' => $key]);
307
        } while ($Customer);
308
309
        return $key;
310
    }
311
312
    /**
313
     * 仮会員をシークレットキーで検索する.