Code Duplication    Length = 9-9 lines in 2 locations

src/Eccube/Repository/CustomerRepository.php 2 locations

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