Code Duplication    Length = 14-14 lines in 2 locations

Confirmation/ConfirmationAbstract.php 2 locations

@@ 221-234 (lines=14) @@
218
    /**
219
     * {@inheritdoc}
220
     */
221
    public function findSubjectWithToken($token)
222
    {
223
        if (empty($token)) {
224
            return null;
225
        }
226
227
        try {
228
            $subject = $this->finder->findConfirmationSubject($this->options['token_property_path'], $token);
229
        } catch (\Exception $e) {
230
            $subject = null;
231
        }
232
233
        return $subject;
234
    }
235
236
    /**
237
     * {@inheritdoc}
@@ 239-252 (lines=14) @@
236
    /**
237
     * {@inheritdoc}
238
     */
239
    public function findSubject($value)
240
    {
241
        if (empty($value)) {
242
            return null;
243
        }
244
245
        try {
246
            $subject = $this->finder->findConfirmationSubject($this->options['channel_path'], $value);
247
        } catch (\Exception $e) {
248
            $subject = null;
249
        }
250
251
        return $subject;
252
    }
253
254
    /**
255
     * {@inheritdoc}