Passed
Push — master ( 866c42...5105be )
by Roeland
10:15
created
settings/templates/settings/personal/security.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -22,18 +22,18 @@  discard block
 block discarded – undo
22 22
  */
23 23
 
24 24
 script('settings', [
25
-	'authtoken',
26
-	'authtoken_collection',
27
-	'templates',
28
-	'authtoken_view',
29
-	'settings/authtoken-init'
25
+    'authtoken',
26
+    'authtoken_collection',
27
+    'templates',
28
+    'authtoken_view',
29
+    'settings/authtoken-init'
30 30
 ]);
31 31
 
32 32
 if($_['passwordChangeSupported']) {
33
-	script('settings', 'security_password');
34
-	script('jquery-showpassword');
35
-	vendor_script('strengthify/jquery.strengthify.min');
36
-	vendor_style('strengthify/strengthify');
33
+    script('settings', 'security_password');
34
+    script('jquery-showpassword');
35
+    vendor_script('strengthify/jquery.strengthify.min');
36
+    vendor_style('strengthify/strengthify');
37 37
 }
38 38
 
39 39
 ?>
@@ -108,16 +108,16 @@  discard block
 block discarded – undo
108 108
 	<?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?>
109 109
 		<li>
110 110
 			<?php
111
-			/** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */
112
-			$provider = $data['provider'];
113
-			if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
114
-				$icon = $provider->getDarkIcon();
115
-			} else {
116
-				$icon = image_path('core', 'actions/password.svg');
117
-			}
118
-			/** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */
119
-			$settings = $data['settings'];
120
-			?>
111
+            /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */
112
+            $provider = $data['provider'];
113
+            if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
114
+                $icon = $provider->getDarkIcon();
115
+            } else {
116
+                $icon = image_path('core', 'actions/password.svg');
117
+            }
118
+            /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */
119
+            $settings = $data['settings'];
120
+            ?>
121 121
 			<h3>
122 122
 				<img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt="">
123 123
 				<?php p($provider->getDisplayName()) ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	'settings/authtoken-init'
30 30
 ]);
31 31
 
32
-if($_['passwordChangeSupported']) {
32
+if ($_['passwordChangeSupported']) {
33 33
 	script('settings', 'security_password');
34 34
 	script('jquery-showpassword');
35 35
 	vendor_script('strengthify/jquery.strengthify.min');
@@ -37,19 +37,19 @@  discard block
 block discarded – undo
37 37
 }
38 38
 
39 39
 ?>
40
-<?php if($_['passwordChangeSupported']) { ?>
40
+<?php if ($_['passwordChangeSupported']) { ?>
41 41
 <div id="security-password" class="section">
42
-	<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
42
+	<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
43 43
 	<span id="password-error-msg" class="msg success hidden">Saved</span>
44 44
 	<div class="personal-settings-setting-box personal-settings-password-box">
45 45
 			<form id="passwordform">
46 46
 				<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
47 47
 				<input type="password" id="pass1" name="oldpassword"
48
-					   placeholder="<?php p($l->t('Current password'));?>"
48
+					   placeholder="<?php p($l->t('Current password')); ?>"
49 49
 					   autocomplete="off" autocapitalize="none" autocorrect="off" />
50 50
 
51 51
 				<div class="personal-show-container">
52
-					<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
52
+					<label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label>
53 53
 					<input type="password" id="pass2" name="newpassword"
54 54
 						   placeholder="<?php p($l->t('New password')); ?>"
55 55
 						   data-typetoggle="#personal-show"
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 <?php } ?>
67 67
 
68 68
 <div id="security" class="section">
69
-	<h2><?php p($l->t('Devices & sessions'));?></h2>
70
-	<p class="settings-hint hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.'));?></p>
69
+	<h2><?php p($l->t('Devices & sessions')); ?></h2>
70
+	<p class="settings-hint hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.')); ?></p>
71 71
 	<table class="icon-loading">
72 72
 		<thead class="token-list-header">
73 73
 			<tr>
74 74
 				<th></th>
75
-				<th><?php p($l->t('Device'));?></th>
76
-				<th><?php p($l->t('Last activity'));?></th>
75
+				<th><?php p($l->t('Device')); ?></th>
76
+				<th><?php p($l->t('Last activity')); ?></th>
77 77
 				<th></th>
78 78
 			</tr>
79 79
 		</thead>
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 </div>
104 104
 
105 105
 <div id="two-factor-auth" class="section">
106
-	<h2><?php p($l->t('Two-Factor Authentication'));?></h2>
106
+	<h2><?php p($l->t('Two-Factor Authentication')); ?></h2>
107 107
 	<ul>
108 108
 	<?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?>
109 109
 		<li>
Please login to merge, or discard this patch.