Code Duplication    Length = 8-9 lines in 2 locations

code/controllers/ForumMemberProfile.php 2 locations

@@ 290-297 (lines=8) @@
287
        $openid = trim($data['OpenIDURL']);
288
        Session::set("FormInfo.Form_RegistrationWithOpenIDForm.data", $data);
289
290
        if (strlen($openid) == 0) {
291
            if (!is_null($form)) {
292
                $form->addErrorMessage(
293
                    "Blurb",
294
                    "Please enter your OpenID or your i-name.",
295
                    "bad"
296
                );
297
            }
298
            return $this->redirectBack();
299
        }
300
@@ 310-318 (lines=9) @@
307
308
        // No auth request means we can't begin OpenID
309
        $auth_request = $consumer->begin($openid);
310
        if (!$auth_request) {
311
            if (!is_null($form)) {
312
                $form->addErrorMessage(
313
                    "Blurb",
314
                    "That doesn't seem to be a valid OpenID or i-name identifier. " .
315
                    "Please try again.",
316
                    "bad"
317
                );
318
            }
319
            return $this->redirectBack();
320
        }
321