Completed
Push — master ( 4c3b40...b5a957 )
by Paul
04:34
created
modules/module_interface.php 1 patch
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -1,90 +1,90 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * 2FA extension for the phpBB Forum Software package.
5
- *
6
- * @copyright (c) 2015 Paul Sohier
7
- * @license GNU General Public License, version 2 (GPL-2.0)
8
- *
9
- */
3
+	 *
4
+	 * 2FA extension for the phpBB Forum Software package.
5
+	 *
6
+	 * @copyright (c) 2015 Paul Sohier
7
+	 * @license GNU General Public License, version 2 (GPL-2.0)
8
+	 *
9
+	 */
10 10
 
11 11
 namespace paul999\tfa\modules;
12 12
 
13 13
 interface module_interface
14 14
 {
15
-    /**
16
-     * Return if this module is enabled by the admin
17
-     * (And all server requirements are met).
18
-     *
19
-     * Do not return false in case a specific user disabeld this module,
20
-     * OR if the user is unable to use this specific module.
21
-     * @return boolean
22
-     */
23
-    public function is_enabled();
15
+	/**
16
+	 * Return if this module is enabled by the admin
17
+	 * (And all server requirements are met).
18
+	 *
19
+	 * Do not return false in case a specific user disabeld this module,
20
+	 * OR if the user is unable to use this specific module.
21
+	 * @return boolean
22
+	 */
23
+	public function is_enabled();
24 24
 
25
-    /**
26
-     * Check if the current user is able to use this module.
27
-     *
28
-     * This means that the user enabled it in the UCP,
29
-     * And has it setup up correctly.
30
-     * This method will be called during login, not during registration/
31
-     *
32
-     * @return boolean
33
-     */
34
-    public function is_usable();
25
+	/**
26
+	 * Check if the current user is able to use this module.
27
+	 *
28
+	 * This means that the user enabled it in the UCP,
29
+	 * And has it setup up correctly.
30
+	 * This method will be called during login, not during registration/
31
+	 *
32
+	 * @return boolean
33
+	 */
34
+	public function is_usable();
35 35
 
36
-    /**
37
-     * Check if the user can potentially use this.
38
-     * This method is called at registration page.
39
-     *
40
-     * You can, for example, check if the current browser is suitable.
41
-     *
42
-     * @return boolean
43
-     */
44
-    public function is_potentially_usable();
36
+	/**
37
+	 * Check if the user can potentially use this.
38
+	 * This method is called at registration page.
39
+	 *
40
+	 * You can, for example, check if the current browser is suitable.
41
+	 *
42
+	 * @return boolean
43
+	 */
44
+	public function is_potentially_usable();
45 45
 
46
-    /**
47
-     * Get the priority for this module.
48
-     * A higher priority means more chance it gets selected.
49
-     *
50
-     * There can be only one module with a specific priority!
51
-     * If there is already a module registered with this priority,
52
-     * a Exception might be thrown
53
-     *
54
-     * @return int
55
-     */
56
-    public function get_priority();
46
+	/**
47
+	 * Get the priority for this module.
48
+	 * A higher priority means more chance it gets selected.
49
+	 *
50
+	 * There can be only one module with a specific priority!
51
+	 * If there is already a module registered with this priority,
52
+	 * a Exception might be thrown
53
+	 *
54
+	 * @return int
55
+	 */
56
+	public function get_priority();
57 57
 
58
-    /**
59
-     * Start of the login procedure.
60
-     * @return void
61
-     */
62
-    public function login_start();
58
+	/**
59
+	 * Start of the login procedure.
60
+	 * @return void
61
+	 */
62
+	public function login_start();
63 63
 
64
-    /**
65
-     * Actual login procedure
66
-     * @return void
67
-     */
68
-    public function login();
64
+	/**
65
+	 * Actual login procedure
66
+	 * @return void
67
+	 */
68
+	public function login();
69 69
 
70
-    /**
71
-     * Start of registration
72
-     * @return void
73
-     */
74
-    public function register_start();
70
+	/**
71
+	 * Start of registration
72
+	 * @return void
73
+	 */
74
+	public function register_start();
75 75
 
76
-    /**
77
-     * Actual registration
78
-     * @return void
79
-     */
80
-    public function register();
76
+	/**
77
+	 * Actual registration
78
+	 * @return void
79
+	 */
80
+	public function register();
81 81
 
82
-    /**
83
-     * This method is called for each row in the UCP.
84
-     * Return a array with data, which is assigned to the template.
85
-     *
86
-     * @param $data
87
-     * @return array
88
-     */
89
-    public function show_ucp_row($data);
82
+	/**
83
+	 * This method is called for each row in the UCP.
84
+	 * Return a array with data, which is assigned to the template.
85
+	 *
86
+	 * @param $data
87
+	 * @return array
88
+	 */
89
+	public function show_ucp_row($data);
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
exceptions/module_exception.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * 2FA extension for the phpBB Forum Software package.
5
- *
6
- * @copyright (c) 2015 Paul Sohier
7
- * @license GNU General Public License, version 2 (GPL-2.0)
8
- *
9
- */
3
+	 *
4
+	 * 2FA extension for the phpBB Forum Software package.
5
+	 *
6
+	 * @copyright (c) 2015 Paul Sohier
7
+	 * @license GNU General Public License, version 2 (GPL-2.0)
8
+	 *
9
+	 */
10 10
 
11 11
 namespace paul999\tfa\acp;
12 12
 
Please login to merge, or discard this patch.
helper/session_helper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
 	 */
73 73
 	public function __construct(driver_interface $db, config $config, user $user, service_collection $modules, $registration_table, $user_table)
74 74
 	{
75
-		$this->db					= $db;
75
+		$this->db = $db;
76 76
 		$this->user_array			= $user;
77
-		$this->config				= $config;
78
-		$this->registration_table	= $registration_table;
77
+		$this->config = $config;
78
+		$this->registration_table = $registration_table;
79 79
 		$this->user_table			= $user_table;
80 80
 
81 81
 		$this->validateModules($modules);
Please login to merge, or discard this patch.
language/en/common.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * 2FA extension for the phpBB Forum Software package.
5
- *
6
- * @copyright (c) 2015 Paul Sohier
7
- * @license GNU General Public License, version 2 (GPL-2.0)
8
- *
9
- */
3
+	 *
4
+	 * 2FA extension for the phpBB Forum Software package.
5
+	 *
6
+	 * @copyright (c) 2015 Paul Sohier
7
+	 * @license GNU General Public License, version 2 (GPL-2.0)
8
+	 *
9
+	 */
10 10
 
11 11
 namespace paul999\tfa\acp;
12 12
 
Please login to merge, or discard this patch.