From ed184ad0e5207287e9be7802a69fcb74946fe9cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 16 Oct 2013 18:24:12 +0200 Subject: [PATCH] Reindent UsercreateTemplate and UserloginTemplate A perceptive reviewer will note several issues with this code, including at least one outright bug. I intend to fix them in subsequent commit; I tried to avoid any non-whitespace changes here to make it at all possible to review this. This file has several lines longer than the phpcs limit of 100 characters, and several cases of the pattern phpcs complains about. I don't think it makes sense to enforce these rules here; the code would IMO become less readable. Change-Id: I95ab0f644fd5963878018f483f22e650867b5135 --- includes/templates/Usercreate.php | 417 +++++++++++++++--------------- includes/templates/Userlogin.php | 272 ++++++++++--------- 2 files changed, 341 insertions(+), 348 deletions(-) diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php index 50dfaecb47..a7c0a45c0f 100644 --- a/includes/templates/Usercreate.php +++ b/includes/templates/Usercreate.php @@ -46,245 +46,242 @@ class UsercreateTemplate extends BaseTemplate { $expirationDays = ceil( $wgCookieExpiration / ( 3600 * 24 ) ); ?>
- haveData( 'languages' ) ) { - ?> + haveData( 'languages' ) ) { ?> - -
-

- msg( $this->data['loggedin'] ? - 'createacct-another-join' : 'createacct-join' ); - ?> -

-
-
- html( 'header' ); /* extensions such as ConfirmEdit add form HTML here */ ?> -
- data['message'] ) { -?> -
- data['messagetype'] == 'error' ) { ?> - msg( 'createacct-error' ); ?>
- - html( 'message' ); ?> -
-
-