Completed
Push — 3.2.x ( 83259b...375400 )
by Erwan
02:07
created
ext.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 	* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
145 145
 	* @license GNU General Public License, version 2 (GPL-2.0)
146 146
 	* @param string $step The step (enable, disable, purge)
147
-	* @param array $notification_types The notification type names
147
+	* @param string[] $notification_types The notification type names
148 148
 	* @return string Return notifications as temporary state
149 149
 	* @access protected
150 150
 	*/
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 class ext extends \phpbb\extension\base
18 18
 {
19 19
 	/**
20
-	* Enable extension if requirements are met
21
-	*
22
-	* @return bool
23
-	* @aceess public
24
-	*/
20
+	 * Enable extension if requirements are met
21
+	 *
22
+	 * @return bool
23
+	 * @aceess public
24
+	 */
25 25
 	public function is_enableable()
26 26
 	{
27 27
 		$php_ini = $this->container->get('php_ini');
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	/**
45
-	* Single enable step that installs any included migrations
46
-	*
47
-	* @param mixed $old_state State returned by previous call of this method
48
-	* @return mixed Returns false after last step, otherwise temporary state
49
-	*/
45
+	 * Single enable step that installs any included migrations
46
+	 *
47
+	 * @param mixed $old_state State returned by previous call of this method
48
+	 * @return mixed Returns false after last step, otherwise temporary state
49
+	 */
50 50
 	public function enable_step($old_state)
51 51
 	{
52 52
 		switch ($old_state)
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 	}
81 81
 
82 82
 	/**
83
-	* Single disable step that does nothing
84
-	*
85
-	* @param mixed $old_state State returned by previous call of this method
86
-	* @return mixed Returns false after last step, otherwise temporary state
87
-	*/
83
+	 * Single disable step that does nothing
84
+	 *
85
+	 * @param mixed $old_state State returned by previous call of this method
86
+	 * @return mixed Returns false after last step, otherwise temporary state
87
+	 */
88 88
 	public function disable_step($old_state)
89 89
 	{
90 90
 		switch ($old_state)
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
 	}
113 113
 
114 114
 	/**
115
-	* Single purge step that reverts any included and installed migrations
116
-	*
117
-	* @param mixed $old_state State returned by previous call of this method
118
-	* @return mixed Returns false after last step, otherwise temporary state
119
-	*/
115
+	 * Single purge step that reverts any included and installed migrations
116
+	 *
117
+	 * @param mixed $old_state State returned by previous call of this method
118
+	 * @return mixed Returns false after last step, otherwise temporary state
119
+	 */
120 120
 	public function purge_step($old_state)
121 121
 	{
122 122
 		switch ($old_state)
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
 	}
145 145
 
146 146
 	/**
147
-	* Notification handler to call notification enable/disable/purge steps
148
-	*
149
-	* @author VSEphpbb (Matt Friedman)
150
-	* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
151
-	* @license GNU General Public License, version 2 (GPL-2.0)
152
-	* @param string $step The step (enable, disable, purge)
153
-	* @param array $notification_types The notification type names
154
-	* @return string Return notifications as temporary state
155
-	* @access protected
156
-	*/
147
+	 * Notification handler to call notification enable/disable/purge steps
148
+	 *
149
+	 * @author VSEphpbb (Matt Friedman)
150
+	 * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
151
+	 * @license GNU General Public License, version 2 (GPL-2.0)
152
+	 * @param string $step The step (enable, disable, purge)
153
+	 * @param array $notification_types The notification type names
154
+	 * @return string Return notifications as temporary state
155
+	 * @access protected
156
+	 */
157 157
 	protected function notification_handler($step, $notification_types)
158 158
 	{
159 159
 		$phpbb_notifications = $this->container->get('notification_manager');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			return false;
33 33
 		}
34 34
 
35
-		if (!file_exists($this->extension_path. 'vendor/autoload.php'))
35
+		if (!file_exists($this->extension_path.'vendor/autoload.php'))
36 36
 		{
37 37
 			return false;
38 38
 		}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 				if (!class_exists('\E1379\SpeakingUrl\SpeakingUrl'))
70 70
 				{
71 71
 					// When migration is executed, phpBB doesn't know yet extension dependencies, so we need to manually include autoload file
72
-					require($this->extension_path. 'vendor/autoload.php');
72
+					require($this->extension_path.'vendor/autoload.php');
73 73
 				}
74 74
 
75 75
 				// Run parent enable step method
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
 		foreach ($notification_types as $notification_type)
162 162
 		{
163
-			call_user_func(array($phpbb_notifications, $step . '_notifications'), $notification_type);
163
+			call_user_func(array($phpbb_notifications, $step.'_notifications'), $notification_type);
164 164
 		}
165 165
 
166 166
 		return 'notifications';
Please login to merge, or discard this patch.
acp/phpbbdirectory_info.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
 			'filename'		=> '\ernadoo\phpbbdirectory\acp\phpbbdirectory_module',
19 19
 			'title'			=> 'ACP_DIRECTORY',
20 20
 			'modes'			=> array(
21
-				''				=> array('title' => 'ACP_DIRECTORY',			'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('')),
22
-				'main'			=> array('title' => 'ACP_DIRECTORY_MAIN',		'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
23
-				'settings'		=> array('title' => 'ACP_DIRECTORY_SETTINGS',	'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
24
-				'cat'			=> array('title' => 'ACP_DIRECTORY_CATS',		'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
25
-				'val'			=> array('title' => 'ACP_DIRECTORY_VAL',		'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
21
+				''				=> array('title' => 'ACP_DIRECTORY', 'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('')),
22
+				'main'			=> array('title' => 'ACP_DIRECTORY_MAIN', 'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
23
+				'settings'		=> array('title' => 'ACP_DIRECTORY_SETTINGS', 'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
24
+				'cat'			=> array('title' => 'ACP_DIRECTORY_CATS', 'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
25
+				'val'			=> array('title' => 'ACP_DIRECTORY_VAL', 'auth'	=> 'ext_ernadoo/phpbbdirectory', 'cat' => array('ACP_DIRECTORY')),
26 26
 			),
27 27
 		);
28 28
 	}
Please login to merge, or discard this patch.
controller/acp/settings.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
 	private $display_vars;
41 41
 
42 42
 	/**
43
-	* Constructor
44
-	*
45
-	* @param \phpbb\config\config		$config		Config object
46
-	* @param \phpbb\language\language	$language	Language object
47
-	* @param \phpbb\log\log				$log		Log object
48
-	* @param \phpbb\request\request		$request	Request object
49
-	* @param \phpbb\template\template	$template	Template object
50
-	* @param \phpbb\user				$user		User object
51
-	*/
43
+	 * Constructor
44
+	 *
45
+	 * @param \phpbb\config\config		$config		Config object
46
+	 * @param \phpbb\language\language	$language	Language object
47
+	 * @param \phpbb\log\log				$log		Log object
48
+	 * @param \phpbb\request\request		$request	Request object
49
+	 * @param \phpbb\template\template	$template	Template object
50
+	 * @param \phpbb\user				$user		User object
51
+	 */
52 52
 	public function __construct(\phpbb\config\config $config, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
53 53
 	{
54 54
 		$this->config	= $config;
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 	}
63 63
 
64 64
 	/**
65
-	* Display config page
66
-	*
67
-	* @return null
68
-	*/
65
+	 * Display config page
66
+	 *
67
+	 * @return null
68
+	 */
69 69
 	public function display_config()
70 70
 	{
71 71
 		// Output relevant page
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 	}
112 112
 
113 113
 	/**
114
-	* Validate config vars and update config table if needed
115
-	*
116
-	* @return null
117
-	*/
114
+	 * Validate config vars and update config table if needed
115
+	 *
116
+	 * @return null
117
+	 */
118 118
 	public function process()
119 119
 	{
120 120
 		$submit	= ($this->request->is_set_post('submit')) ? true : false;
@@ -167,22 +167,22 @@  discard block
 block discarded – undo
167 167
 	}
168 168
 
169 169
 	/**
170
-	* Set page url
171
-	*
172
-	* @param	string $u_action Custom form action
173
-	* @return	null
174
-	* @access	public
175
-	*/
170
+	 * Set page url
171
+	 *
172
+	 * @param	string $u_action Custom form action
173
+	 * @return	null
174
+	 * @access	public
175
+	 */
176 176
 	public function set_page_url($u_action)
177 177
 	{
178 178
 		$this->u_action = $u_action;
179 179
 	}
180 180
 
181 181
 	/**
182
-	* Build config matrice
183
-	*
184
-	* @return null
185
-	*/
182
+	 * Build config matrice
183
+	 *
184
+	 * @return null
185
+	 */
186 186
 	private function _generate_config()
187 187
 	{
188 188
 		$this->display_vars = array(
Please login to merge, or discard this patch.
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
 	*/
52 52
 	public function __construct(\phpbb\config\config $config, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
53 53
 	{
54
-		$this->config	= $config;
54
+		$this->config = $config;
55 55
 		$this->language	= $language;
56
-		$this->log		= $log;
56
+		$this->log = $log;
57 57
 		$this->template	= $template;
58
-		$this->user		= $user;
59
-		$this->request	= $request;
58
+		$this->user = $user;
59
+		$this->request = $request;
60 60
 
61 61
 		$this->_generate_config();
62 62
 	}
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			}
96 96
 			else if ($vars['explain'])
97 97
 			{
98
-				$l_explain = $this->language->lang($vars['lang'] . '_EXPLAIN');
98
+				$l_explain = $this->language->lang($vars['lang'].'_EXPLAIN');
99 99
 			}
100 100
 
101 101
 			$this->template->assign_block_vars('options', array(
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	*/
118 118
 	public function process()
119 119
 	{
120
-		$submit	= ($this->request->is_set_post('submit')) ? true : false;
120
+		$submit = ($this->request->is_set_post('submit')) ? true : false;
121 121
 
122 122
 		$this->new_config = $this->config;
123 123
 		$cfg_array = ($this->request->is_set('config')) ? $this->request->variable('config', array('' => ''), true) : $this->new_config;
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
 		{
159 159
 			$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'DIR_CONFIG_SETTINGS');
160 160
 
161
-			trigger_error($this->language->lang('CONFIG_UPDATED') . adm_back_link($this->u_action));
161
+			trigger_error($this->language->lang('CONFIG_UPDATED').adm_back_link($this->u_action));
162 162
 		}
163 163
 
164 164
 		$this->template->assign_vars(array(
165 165
 			'L_TITLE'			=> $this->language->lang($this->display_vars['title']),
166
-			'L_TITLE_EXPLAIN'	=> $this->language->lang($this->display_vars['title'] . '_EXPLAIN'),
166
+			'L_TITLE_EXPLAIN'	=> $this->language->lang($this->display_vars['title'].'_EXPLAIN'),
167 167
 
168 168
 			'S_ERROR'			=> (sizeof($error)) ? true : false,
169 169
 			'ERROR_MSG'			=> implode('<br />', $error),
@@ -199,44 +199,44 @@  discard block
 block discarded – undo
199 199
 				'dir_banner_width'					=> '',
200 200
 				'dir_banner_height'					=> '',
201 201
 
202
-				'dir_mail'							=> array('lang' => 'DIR_MAIL_VALIDATION',	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
203
-				'dir_activ_checkurl'				=> array('lang' => 'DIR_ACTIVE_CHECK',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => true),
204
-				'dir_activ_flag'					=> array('lang' => 'DIR_ACTIV_FLAG',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
205
-				'dir_activ_rss'						=> array('lang' => 'DIR_ACTIV_RSS',			'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => true),
206
-				'dir_show'							=> array('lang' => 'DIR_SHOW',				'validate' => 'int:1:9999', 'type' => 'number:1:9999',	'explain' => false),
207
-				'dir_length_describe'				=> array('lang' => 'DIR_MAX_DESC',			'validate' => 'int:1:999',	'type' => 'number:1:999',	'explain' => false),
208
-				'dir_new_time'						=> array('lang' => 'DIR_NEW_TIME',			'validate' => 'int:1:999', 	'type' => 'number:1:999',	'explain' => true),
209
-				'dir_default_order'					=> array('lang' => 'DIR_DEFAULT_ORDER',		'validate' => 'string', 	'type' => 'select',			'explain' => false, 'method' => 'get_order_list', 'params' => array('{CONFIG_VALUE}')),
202
+				'dir_mail'							=> array('lang' => 'DIR_MAIL_VALIDATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
203
+				'dir_activ_checkurl'				=> array('lang' => 'DIR_ACTIVE_CHECK', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
204
+				'dir_activ_flag'					=> array('lang' => 'DIR_ACTIV_FLAG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
205
+				'dir_activ_rss'						=> array('lang' => 'DIR_ACTIV_RSS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
206
+				'dir_show'							=> array('lang' => 'DIR_SHOW', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false),
207
+				'dir_length_describe'				=> array('lang' => 'DIR_MAX_DESC', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false),
208
+				'dir_new_time'						=> array('lang' => 'DIR_NEW_TIME', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => true),
209
+				'dir_default_order'					=> array('lang' => 'DIR_DEFAULT_ORDER', 'validate' => 'string', 'type' => 'select', 'explain' => false, 'method' => 'get_order_list', 'params' => array('{CONFIG_VALUE}')),
210 210
 
211 211
 				'legend2'							=> 'DIR_RECENT_GUEST',
212
-				'dir_recent_block'					=> array('lang' => 'DIR_RECENT_ENABLE',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => true),
213
-				'dir_recent_rows'					=> array('lang' => 'DIR_RECENT_ROWS',		'validate' => 'int:1:999',	'type' => 'number:1:999',	'explain' => false),
214
-				'dir_recent_columns'				=> array('lang' => 'DIR_RECENT_COLUMNS',	'validate' => 'int:1:999',	'type' => 'number:1:999',	'explain' => false),
215
-				'dir_recent_exclude'				=> array('lang' => 'DIR_RECENT_EXCLUDE',	'validate' => 'string',		'type' => 'text:6:99',		'explain' => true),
212
+				'dir_recent_block'					=> array('lang' => 'DIR_RECENT_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
213
+				'dir_recent_rows'					=> array('lang' => 'DIR_RECENT_ROWS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false),
214
+				'dir_recent_columns'				=> array('lang' => 'DIR_RECENT_COLUMNS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false),
215
+				'dir_recent_exclude'				=> array('lang' => 'DIR_RECENT_EXCLUDE', 'validate' => 'string', 'type' => 'text:6:99', 'explain' => true),
216 216
 
217 217
 				'legend3'							=> 'DIR_ADD_GUEST',
218
-				'dir_visual_confirm'				=> array('lang' => 'DIR_VISUAL_CONFIRM',	'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => true),
219
-				'dir_visual_confirm_max_attempts'	=> array('lang' => 'DIR_MAX_ADD_ATTEMPTS',	'validate' => 'int:0:9999',	'type' => 'number:0:9999',	'explain' => true),
218
+				'dir_visual_confirm'				=> array('lang' => 'DIR_VISUAL_CONFIRM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
219
+				'dir_visual_confirm_max_attempts'	=> array('lang' => 'DIR_MAX_ADD_ATTEMPTS', 'validate' => 'int:0:9999', 'type' => 'number:0:9999', 'explain' => true),
220 220
 
221 221
 				'legend4'							=> 'DIR_THUMB_PARAM',
222
-				'dir_activ_thumb'					=> array('lang' => 'DIR_ACTIVE_THUMB',			'validate' => 'bool',	'type' => 'radio:yes_no',	'explain' => false),
223
-				'dir_activ_thumb_remote'			=> array('lang' => 'DIR_ACTIVE_THUMB_REMOTE',	'validate' => 'bool',	'type' => 'radio:yes_no',	'explain' => true),
224
-				'dir_thumb_service'					=> array('lang' => 'DIR_THUMB_SERVICE',			'validate' => 'string', 'type' => 'select',			'explain' => true, 'method' => 'get_thumb_service_list', 'params' => array('{CONFIG_VALUE}')),
225
-				'dir_thumb_service_reverse'			=> array('lang' => 'DIR_THUMB_SERVICE_REVERSE',	'validate' => 'bool',	'type' => 'radio:yes_no',	'explain' => true),
222
+				'dir_activ_thumb'					=> array('lang' => 'DIR_ACTIVE_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
223
+				'dir_activ_thumb_remote'			=> array('lang' => 'DIR_ACTIVE_THUMB_REMOTE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
224
+				'dir_thumb_service'					=> array('lang' => 'DIR_THUMB_SERVICE', 'validate' => 'string', 'type' => 'select', 'explain' => true, 'method' => 'get_thumb_service_list', 'params' => array('{CONFIG_VALUE}')),
225
+				'dir_thumb_service_reverse'			=> array('lang' => 'DIR_THUMB_SERVICE_REVERSE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
226 226
 
227 227
 				'legend5'							=> 'DIR_COMM_PARAM',
228
-				'dir_allow_bbcode'					=> array('lang' => 'DIR_ALLOW_BBCODE',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
229
-				'dir_allow_flash'					=> array('lang' => 'DIR_ALLOW_FLASH',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
230
-				'dir_allow_links'					=> array('lang' => 'DIR_ALLOW_LINKS',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
231
-				'dir_allow_smilies'					=> array('lang' => 'DIR_ALLOW_SMILIES',		'validate' => 'bool',		'type' => 'radio:yes_no',	'explain' => false),
232
-				'dir_length_comments'				=> array('lang' => 'DIR_LENGTH_COMMENTS',	'validate' => 'int:1:999',	'type' => 'number:1:999',	'explain' => false),
233
-				'dir_comments_per_page'				=> array('lang' => 'DIR_COMM_PER_PAGE',		'validate' => 'int:1:9999',	'type' => 'number:1:9999',	'explain' => false),
228
+				'dir_allow_bbcode'					=> array('lang' => 'DIR_ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
229
+				'dir_allow_flash'					=> array('lang' => 'DIR_ALLOW_FLASH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
230
+				'dir_allow_links'					=> array('lang' => 'DIR_ALLOW_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
231
+				'dir_allow_smilies'					=> array('lang' => 'DIR_ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
232
+				'dir_length_comments'				=> array('lang' => 'DIR_LENGTH_COMMENTS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false),
233
+				'dir_comments_per_page'				=> array('lang' => 'DIR_COMM_PER_PAGE', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false),
234 234
 
235 235
 				'legend6'							=> 'DIR_BANN_PARAM',
236
-				'dir_activ_banner'					=> array('lang' => 'DIR_ACTIV_BANNER',		'validate' => 'bool',	'type' => 'radio:yes_no',	'explain' => false),
237
-				'dir_banner'						=> array('lang' => 'DIR_MAX_BANN',			'validate' => 'int:0',	'type' => 'dimension:0',	'explain' => true, 'append' => ' ' . $this->user->lang['PIXEL']),
238
-				'dir_banner_filesize'				=> array('lang' => 'DIR_MAX_SIZE',			'validate' => 'string',	'type' => 'custom', 'method' => 'max_filesize', 'explain' => true),
239
-				'dir_storage_banner'				=> array('lang' => 'DIR_STORAGE_BANNER',	'validate' => 'bool',	'type' => 'radio:yes_no',	'explain' => true),
236
+				'dir_activ_banner'					=> array('lang' => 'DIR_ACTIV_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
237
+				'dir_banner'						=> array('lang' => 'DIR_MAX_BANN', 'validate' => 'int:0', 'type' => 'dimension:0', 'explain' => true, 'append' => ' '.$this->user->lang['PIXEL']),
238
+				'dir_banner_filesize'				=> array('lang' => 'DIR_MAX_SIZE', 'validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true),
239
+				'dir_storage_banner'				=> array('lang' => 'DIR_STORAGE_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
240 240
 			)
241 241
 		);
242 242
 	}
Please login to merge, or discard this patch.
controller/search.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -50,21 +50,21 @@  discard block
 block discarded – undo
50 50
 	protected $link;
51 51
 
52 52
 	/**
53
-	* Constructor
54
-	*
55
-	* @param \phpbb\db\driver\driver_interface 					$db				Database object
56
-	* @param \phpbb\config\config 								$config			Config object
57
-	* @param \phpbb\language\language							$language		Language object
58
-	* @param \phpbb\template\template 							$template		Template object
59
-	* @param \phpbb\user 										$user			User object
60
-	* @param \phpbb\controller\helper 							$helper			Controller helper object
61
-	* @param \phpbb\request\request 							$request		Request object
62
-	* @param \phpbb\auth\auth 									$auth			Auth object
63
-	* @param \phpbb\pagination 									$pagination		Pagination object
64
-	* @param \ernadoo\phpbbdirectory\search\fulltext_directory	$search			PhpBB Directory extension search object
65
-	* @param \ernadoo\phpbbdirectory\core\categorie				$categorie		PhpBB Directory extension categorie object
66
-	* @param \ernadoo\phpbbdirectory\core\link					$link			PhpBB Directory extension link object
67
-	*/
53
+	 * Constructor
54
+	 *
55
+	 * @param \phpbb\db\driver\driver_interface 					$db				Database object
56
+	 * @param \phpbb\config\config 								$config			Config object
57
+	 * @param \phpbb\language\language							$language		Language object
58
+	 * @param \phpbb\template\template 							$template		Template object
59
+	 * @param \phpbb\user 										$user			User object
60
+	 * @param \phpbb\controller\helper 							$helper			Controller helper object
61
+	 * @param \phpbb\request\request 							$request		Request object
62
+	 * @param \phpbb\auth\auth 									$auth			Auth object
63
+	 * @param \phpbb\pagination 									$pagination		Pagination object
64
+	 * @param \ernadoo\phpbbdirectory\search\fulltext_directory	$search			PhpBB Directory extension search object
65
+	 * @param \ernadoo\phpbbdirectory\core\categorie				$categorie		PhpBB Directory extension categorie object
66
+	 * @param \ernadoo\phpbbdirectory\core\link					$link			PhpBB Directory extension link object
67
+	 */
68 68
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\pagination $pagination, \ernadoo\phpbbdirectory\search\fulltext_directory $search, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link)
69 69
 	{
70 70
 		$this->db			= $db;
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
 	}
91 91
 
92 92
 	/**
93
-	* Search controller
94
-	*
95
-	* @param	int	$page	Page number taken from the URL
96
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
97
-	* @throws	\phpbb\exception\http_exception
98
-	*/
93
+	 * Search controller
94
+	 *
95
+	 * @param	int	$page	Page number taken from the URL
96
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
97
+	 * @throws	\phpbb\exception\http_exception
98
+	 */
99 99
 	public function main($page)
100 100
 	{
101 101
 		if (!$this->auth->acl_get('u_search_dir'))
@@ -319,11 +319,11 @@  discard block
 block discarded – undo
319 319
 	}
320 320
 
321 321
 	/**
322
-	*
323
-	* @param	array	$search_category
324
-	* @param	bool	$search_child
325
-	* @return	array	Categories to exclude from search
326
-	*/
322
+	 *
323
+	 * @param	array	$search_category
324
+	 * @param	bool	$search_child
325
+	 * @return	array	Categories to exclude from search
326
+	 */
327 327
 	private function _get_exclude_categories(&$search_category, $search_child)
328 328
 	{
329 329
 		$sql = 'SELECT cat_id, parent_id, right_id
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
 	*/
70 70
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\pagination $pagination, \ernadoo\phpbbdirectory\search\fulltext_directory $search, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link)
71 71
 	{
72
-		$this->db			= $db;
73
-		$this->config		= $config;
72
+		$this->db = $db;
73
+		$this->config = $config;
74 74
 		$this->language		= $language;
75 75
 		$this->template		= $template;
76 76
 		$this->user			= $user;
77
-		$this->helper		= $helper;
78
-		$this->request		= $request;
77
+		$this->helper = $helper;
78
+		$this->request = $request;
79 79
 		$this->auth			= $auth;
80
-		$this->pagination	= $pagination;
81
-		$this->search		= $search;
82
-		$this->categorie	= $categorie;
83
-		$this->link			= $link;
80
+		$this->pagination = $pagination;
81
+		$this->search = $search;
82
+		$this->categorie = $categorie;
83
+		$this->link = $link;
84 84
 
85 85
 		$template->assign_vars(array(
86 86
 			'S_PHPBB_DIRECTORY'	=> true,
@@ -103,18 +103,18 @@  discard block
 block discarded – undo
103 103
 
104 104
 		$this->language->add_lang('search');
105 105
 
106
-		$cat_id				= $this->request->variable('cat_id', 0);
107
-		$keywords			= $this->request->variable('keywords', '', true);
106
+		$cat_id = $this->request->variable('cat_id', 0);
107
+		$keywords = $this->request->variable('keywords', '', true);
108 108
 		$search_terms		= $this->request->variable('terms', 'all');
109
-		$search_category	= $this->request->variable('cid', array(0));
110
-		$search_fields		= $this->request->variable('sf', 'all');
109
+		$search_category = $this->request->variable('cid', array(0));
110
+		$search_fields = $this->request->variable('sf', 'all');
111 111
 		$search_child		= $this->request->variable('sc', true);
112
-		$sort_days			= $this->request->variable('st', 0);
112
+		$sort_days = $this->request->variable('st', 0);
113 113
 		$sort_key			= $this->request->variable('sk', 't');
114 114
 		$sort_dir			= $this->request->variable('sd', 'd');
115
-		$start				= ($page - 1) * (int) $this->config['dir_show'];
115
+		$start = ($page - 1) * (int) $this->config['dir_show'];
116 116
 
117
-		$default_sort_days	= 0;
117
+		$default_sort_days = 0;
118 118
 		$default_sort_key	= (string) substr($this->config['dir_default_order'], 0, 1);
119 119
 		$default_sort_dir	= (string) substr($this->config['dir_default_order'], 2);
120 120
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			{
217 217
 				$this->template->assign_vars(array(
218 218
 					'SEARCH_CATEGORY'	=> $this->language->lang('RETURN_TO', \ernadoo\phpbbdirectory\core\categorie::getname((int) $cat_id)),
219
-					'U_SEARCH_CATEGORY'	=> $this->helper->route('ernadoo_phpbbdirectory_dynamic_route_' . $cat_id),
219
+					'U_SEARCH_CATEGORY'	=> $this->helper->route('ernadoo_phpbbdirectory_dynamic_route_'.$cat_id),
220 220
 				));
221 221
 			}
222 222
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
 					foreach ($rowset as $data)
262 262
 					{
263
-						$s_banner	= $this->link->display_bann($data);
263
+						$s_banner = $this->link->display_bann($data);
264 264
 						$s_thumb	= $this->link->display_thumb($data);
265 265
 						$s_flag		= $this->link->display_flag($data);
266 266
 
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
 
269 269
 						if ($hilit)
270 270
 						{
271
-							$data['link_name'] = preg_replace('#(?!<.*)(?<!\w)(' . $hilit . ')(?!\w|[^<>]*(?:</s(?:cript|tyle))?>)#isu', '<span class="posthilit">$1</span>', $data['link_name']);
272
-							$data['link_description'] = preg_replace('#(?!<.*)(?<!\w)(' . $hilit . ')(?!\w|[^<>]*(?:</s(?:cript|tyle))?>)#isu', '<span class="posthilit">$1</span>', $data['link_description']);
271
+							$data['link_name'] = preg_replace('#(?!<.*)(?<!\w)('.$hilit.')(?!\w|[^<>]*(?:</s(?:cript|tyle))?>)#isu', '<span class="posthilit">$1</span>', $data['link_name']);
272
+							$data['link_description'] = preg_replace('#(?!<.*)(?<!\w)('.$hilit.')(?!\w|[^<>]*(?:</s(?:cript|tyle))?>)#isu', '<span class="posthilit">$1</span>', $data['link_description']);
273 273
 						}
274 274
 
275 275
 						$this->template->assign_block_vars('results', array(
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 	private function _get_exclude_categories(&$search_category, $search_child)
330 330
 	{
331 331
 		$sql = 'SELECT cat_id, parent_id, right_id
332
-				FROM ' . $this->categories_table . '
332
+				FROM ' . $this->categories_table.'
333 333
 				ORDER BY left_id';
334 334
 		$result = $this->db->sql_query($sql);
335 335
 
Please login to merge, or discard this patch.
migrations/converter/convert_module.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 class convert_module extends \phpbb\db\migration\migration
17 17
 {
18 18
 	/**
19
-	* Skip this migration if an ACP_DIRECTORY module does not exist
20
-	*
21
-	* @return	bool	True if table does not exist
22
-	* @access	public
23
-	*/
19
+	 * Skip this migration if an ACP_DIRECTORY module does not exist
20
+	 *
21
+	 * @return	bool	True if table does not exist
22
+	 * @access	public
23
+	 */
24 24
 	public function effectively_installed()
25 25
 	{
26 26
 		$sql = 'SELECT module_id
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	/**
40
-	* Add or update data in the database
41
-	*
42
-	* @return	array Array of table data
43
-	* @access	public
44
-	*/
40
+	 * Add or update data in the database
41
+	 *
42
+	 * @return	array Array of table data
43
+	 * @access	public
44
+	 */
45 45
 	public function update_data()
46 46
 	{
47 47
 		return array(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	public function effectively_installed()
25 25
 	{
26 26
 		$sql = 'SELECT module_id
27
-			FROM ' . $this->table_prefix . "modules
27
+			FROM ' . $this->table_prefix."modules
28 28
 			WHERE module_class = 'acp'
29 29
 				AND module_basename = 'acp_directory'
30 30
 				AND module_mode = 'main'";
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 			'module_auth'		=> 'ext_ernadoo/phpbbdirectory'
57 57
 		);
58 58
 
59
-		$sql = 'UPDATE '  . $this->table_prefix . 'modules
60
-			SET ' . $this->db->sql_build_array('UPDATE', $module_data) . "
59
+		$sql = 'UPDATE '.$this->table_prefix.'modules
60
+			SET ' . $this->db->sql_build_array('UPDATE', $module_data)."
61 61
 			WHERE module_basename = 'acp_directory'
62 62
 				AND " . $this->db->sql_in_set('module_mode', array('main', 'settings', 'cat', 'val'));
63 63
 		$this->db->sql_query($sql);
Please login to merge, or discard this patch.
migrations/converter/convert_notifications.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 class convert_notifications extends \phpbb\db\migration\migration
17 17
 {
18 18
 	/**
19
-	* Skip this migration if phpbb_directory_notifications table does not exist
20
-	*
21
-	* @return	bool	True if table does not exist
22
-	* @access	public
23
-	*/
19
+	 * Skip this migration if phpbb_directory_notifications table does not exist
20
+	 *
21
+	 * @return	bool	True if table does not exist
22
+	 * @access	public
23
+	 */
24 24
 	public function effectively_installed()
25 25
 	{
26 26
 		return !$this->db_tools->sql_table_exists($this->table_prefix . 'directory_notifications');
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 	}
35 35
 
36 36
 	/**
37
-	* Add or update data in the database
38
-	*
39
-	* @return	array Array of table data
40
-	* @access	public
41
-	*/
37
+	 * Add or update data in the database
38
+	 *
39
+	 * @return	array Array of table data
40
+	 * @access	public
41
+	 */
42 42
 	public function update_data()
43 43
 	{
44 44
 		return array(
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 	}
48 48
 
49 49
 	/**
50
-	* Copy category track from 3.0.x table
51
-	*
52
-	* @return null
53
-	*/
50
+	 * Copy category track from 3.0.x table
51
+	 *
52
+	 * @return null
53
+	 */
54 54
 	public function copy_from_notifications()
55 55
 	{
56 56
 		$sql = 'SELECT n_user_id, n_cat_id
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	*/
24 24
 	public function effectively_installed()
25 25
 	{
26
-		return !$this->db_tools->sql_table_exists($this->table_prefix . 'directory_notifications');
26
+		return !$this->db_tools->sql_table_exists($this->table_prefix.'directory_notifications');
27 27
 	}
28 28
 
29 29
 	static public function depends_on()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	public function copy_from_notifications()
55 55
 	{
56 56
 		$sql = 'SELECT n_user_id, n_cat_id
57
-			FROM ' . $this->table_prefix . 'directory_notifications';
57
+			FROM ' . $this->table_prefix.'directory_notifications';
58 58
 		$result = $this->db->sql_query($sql);
59 59
 
60 60
 		while ($row = $this->db->sql_fetchrow($result))
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 				'notify_status'	=> 1,
66 66
 			);
67 67
 
68
-			$sql = 'INSERT INTO ' . $this->table_prefix . 'directory_watch ' . $this->db->sql_build_array('INSERT', $data);
68
+			$sql = 'INSERT INTO '.$this->table_prefix.'directory_watch '.$this->db->sql_build_array('INSERT', $data);
69 69
 			$this->db->sql_query($sql);
70 70
 		}
71 71
 		$this->db->sql_freeresult($result);
Please login to merge, or discard this patch.
migrations/v10x/v1_0_0.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
 	}
260 260
 
261 261
 	/**
262
-	* Create directories for banners/icons uploaded
263
-	*
264
-	* @return null
265
-	*/
262
+	 * Create directories for banners/icons uploaded
263
+	 *
264
+	 * @return null
265
+	 */
266 266
 	public function create_directories()
267 267
 	{
268 268
 		$directories = array(
@@ -281,10 +281,10 @@  discard block
 block discarded – undo
281 281
 	}
282 282
 
283 283
 	/**
284
-	* Remove directories for banners/icons uploaded
285
-	*
286
-	* @return null
287
-	*/
284
+	 * Remove directories for banners/icons uploaded
285
+	 *
286
+	 * @return null
287
+	 */
288 288
 	public function remove_directories()
289 289
 	{
290 290
 		$dir = $this->phpbb_root_path . 'files/ext/ernadoo/phpbbdirectory/';
@@ -293,15 +293,15 @@  discard block
 block discarded – undo
293 293
 	}
294 294
 
295 295
 	/**
296
-	* Attempts to remove recursively the directory named by dirname.
297
-	*
298
-	* @author Mehdi Kabab <http://pioupioum.fr>
299
-	* @copyright Copyright (C) 2009 Mehdi Kabab
300
-	* @license http://www.gnu.org/licenses/gpl.html  GNU GPL version 3 or later
301
-	*
302
-	* @param	string	$dirname		Path to the directory.
303
-	* @return	null
304
-	*/
296
+	 * Attempts to remove recursively the directory named by dirname.
297
+	 *
298
+	 * @author Mehdi Kabab <http://pioupioum.fr>
299
+	 * @copyright Copyright (C) 2009 Mehdi Kabab
300
+	 * @license http://www.gnu.org/licenses/gpl.html  GNU GPL version 3 or later
301
+	 *
302
+	 * @param	string	$dirname		Path to the directory.
303
+	 * @return	null
304
+	 */
305 305
 	private function _recursive_rmdir($dirname)
306 306
 	{
307 307
 		if (is_dir($dirname) && !is_link($dirname))
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	{
24 24
 		return array(
25 25
 			'add_tables' => array(
26
-				$this->table_prefix . 'directory_cats' => array(
26
+				$this->table_prefix.'directory_cats' => array(
27 27
 					'COLUMNS' => array(
28 28
 						'cat_id'				=> array('UINT', null, 'auto_increment'),
29 29
 						'parent_id'				=> array('UINT', 0),
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 					),
58 58
 				),
59 59
 
60
-				$this->table_prefix . 'directory_comments' => array(
60
+				$this->table_prefix.'directory_comments' => array(
61 61
 					'COLUMNS' => array(
62 62
 						'comment_id' 		=> array('UINT', null, 'auto_increment'),
63 63
 						'comment_date' 		=> array('TIMESTAMP', 0),
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 					'PRIMARY_KEY'	=> array('comment_id'),
74 74
 				),
75 75
 
76
-				$this->table_prefix . 'directory_links' => array(
76
+				$this->table_prefix.'directory_links' => array(
77 77
 					'COLUMNS' => array(
78 78
 						'link_id'			=> array('UINT', null, 'auto_increment'),
79 79
 						'link_time' 		=> array('TIMESTAMP', 0),
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 					),
111 111
 				),
112 112
 
113
-				$this->table_prefix . 'directory_watch' => array(
113
+				$this->table_prefix.'directory_watch' => array(
114 114
 					'COLUMNS' => array(
115 115
 						'cat_id'		=> array('UINT', 0),
116 116
 						'user_id'		=> array('UINT', 0),
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 				),
127 127
 
128
-				$this->table_prefix . 'directory_votes' => array(
128
+				$this->table_prefix.'directory_votes' => array(
129 129
 					'COLUMNS' => array(
130 130
 						'vote_id'			=> array('UINT', null, 'auto_increment'),
131 131
 						'vote_link_id'		=> array('UINT', 0),
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
 	{
149 149
 		return array(
150 150
 			'drop_tables'	=> array(
151
-				$this->table_prefix . 'directory_cats',
152
-				$this->table_prefix . 'directory_comments',
153
-				$this->table_prefix . 'directory_links',
154
-				$this->table_prefix . 'directory_votes',
155
-				$this->table_prefix . 'directory_watch',
151
+				$this->table_prefix.'directory_cats',
152
+				$this->table_prefix.'directory_comments',
153
+				$this->table_prefix.'directory_links',
154
+				$this->table_prefix.'directory_votes',
155
+				$this->table_prefix.'directory_watch',
156 156
 			),
157 157
 		);
158 158
 	}
@@ -272,10 +272,10 @@  discard block
 block discarded – undo
272 272
 
273 273
 		foreach ($directories as $dir)
274 274
 		{
275
-			if (!file_exists($this->phpbb_root_path . $dir))
275
+			if (!file_exists($this->phpbb_root_path.$dir))
276 276
 			{
277
-				@mkdir($this->phpbb_root_path . $dir, 0777, true);
278
-				phpbb_chmod($this->phpbb_root_path . $dir, CHMOD_READ | CHMOD_WRITE);
277
+				@mkdir($this->phpbb_root_path.$dir, 0777, true);
278
+				phpbb_chmod($this->phpbb_root_path.$dir, CHMOD_READ | CHMOD_WRITE);
279 279
 			}
280 280
 		}
281 281
 	}
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 	*/
288 288
 	public function remove_directories()
289 289
 	{
290
-		$dir = $this->phpbb_root_path . 'files/ext/ernadoo/phpbbdirectory/';
290
+		$dir = $this->phpbb_root_path.'files/ext/ernadoo/phpbbdirectory/';
291 291
 
292 292
 		$this->_recursive_rmdir($dir);
293 293
 	}
Please login to merge, or discard this patch.
notification/type/directory_website_disapproved.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 class directory_website_disapproved extends \phpbb\notification\type\base
19 19
 {
20 20
 	/**
21
-	* Get notification type name
22
-	*
23
-	* @return string
24
-	*/
21
+	 * Get notification type name
22
+	 *
23
+	 * @return string
24
+	 */
25 25
 	public function get_type()
26 26
 	{
27 27
 		return 'ernadoo.phpbbdirectory.notification.type.directory_website_disapproved';
28 28
 	}
29 29
 
30 30
 	/**
31
-	* Notification option data (for outputting to the user)
32
-	*
33
-	* @var bool|array False if the service should use it's default data
34
-	* 					Array of data (including keys 'id', 'lang', and 'group')
35
-	*/
31
+	 * Notification option data (for outputting to the user)
32
+	 *
33
+	 * @var bool|array False if the service should use it's default data
34
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
35
+	 */
36 36
 	public static $notification_option = array(
37 37
 		'id'	=> 'dir_moderation_queue',
38 38
 		'lang'	=> 'NOTIFICATION_TYPE_DIR_UCP_MODERATION_QUEUE',
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
 	);
41 41
 
42 42
 	/**
43
-	* Permission to check for (in find_users_for_notification)
44
-	*
45
-	* @var string Permission name
46
-	*/
43
+	 * Permission to check for (in find_users_for_notification)
44
+	 *
45
+	 * @var string Permission name
46
+	 */
47 47
 	protected $permission = array('a_', 'm_');
48 48
 
49 49
 	/**
50
-	* Is available
51
-	*
52
-	* @return bool True/False whether or not this is available to the user
53
-	*/
50
+	 * Is available
51
+	 *
52
+	 * @return bool True/False whether or not this is available to the user
53
+	 */
54 54
 	public function is_available()
55 55
 	{
56 56
 		$has_permission = $this->auth->acl_gets($this->permission, true);
@@ -59,21 +59,21 @@  discard block
 block discarded – undo
59 59
 	}
60 60
 
61 61
 	/**
62
-	* Get link id
63
-	*
64
-	* @param array $data The data from the link
65
-	* @return int
66
-	*/
62
+	 * Get link id
63
+	 *
64
+	 * @param array $data The data from the link
65
+	 * @return int
66
+	 */
67 67
 	static public function get_item_id($data)
68 68
 	{
69 69
 		return (int) $data['link_id'];
70 70
 	}
71 71
 
72 72
 	/**
73
-	* Get parent id - it's not used
74
-	*
75
-	* @param array $data The data from the link
76
-	*/
73
+	 * Get parent id - it's not used
74
+	 *
75
+	 * @param array $data The data from the link
76
+	 */
77 77
 	static public function get_item_parent_id($data)
78 78
 	{
79 79
 		// No parent
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	/**
84
-	* Find the users who want to receive notifications
85
-	*
86
-	* @param	array	$data		Data from submit link
87
-	* @param	array	$options	Options for finding users for notification
88
-	* @return	array
89
-	*/
84
+	 * Find the users who want to receive notifications
85
+	 *
86
+	 * @param	array	$data		Data from submit link
87
+	 * @param	array	$options	Options for finding users for notification
88
+	 * @return	array
89
+	 */
90 90
 	public function find_users_for_notification($data, $options = array())
91 91
 	{
92 92
 		$options = array_merge(array(
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
 	}
104 104
 
105 105
 	/**
106
-	* Get the HTML formatted title of this notification
107
-	*
108
-	* @return string
109
-	*/
106
+	 * Get the HTML formatted title of this notification
107
+	 *
108
+	 * @return string
109
+	 */
110 110
 	public function get_title()
111 111
 	{
112 112
 		$link_name = $this->get_data('link_name');
@@ -116,20 +116,20 @@  discard block
 block discarded – undo
116 116
 	}
117 117
 
118 118
 	/**
119
-	* Get email template
120
-	*
121
-	* @return string
122
-	*/
119
+	 * Get email template
120
+	 *
121
+	 * @return string
122
+	 */
123 123
 	public function get_email_template()
124 124
 	{
125 125
 		return '@ernadoo_phpbbdirectory/directory_website_disapproved';
126 126
 	}
127 127
 
128 128
 	/**
129
-	* Get email template variables
130
-	*
131
-	* @return array
132
-	*/
129
+	 * Get email template variables
130
+	 *
131
+	 * @return array
132
+	 */
133 133
 	public function get_email_template_variables()
134 134
 	{
135 135
 		return array(
@@ -138,33 +138,33 @@  discard block
 block discarded – undo
138 138
 	}
139 139
 
140 140
 	/**
141
-	* Get the url to this item
142
-	*
143
-	* @return string URL
144
-	*/
141
+	 * Get the url to this item
142
+	 *
143
+	 * @return string URL
144
+	 */
145 145
 	public function get_url()
146 146
 	{
147 147
 		return '';
148 148
 	}
149 149
 
150 150
 	/**
151
-	* Users needed to query before this notification can be displayed
152
-	*
153
-	* @return array Array of user_ids
154
-	*/
151
+	 * Users needed to query before this notification can be displayed
152
+	 *
153
+	 * @return array Array of user_ids
154
+	 */
155 155
 	public function users_to_query()
156 156
 	{
157 157
 		return array();
158 158
 	}
159 159
 
160 160
 	/**
161
-	* Function for preparing the data for insertion in an SQL query
162
-	* (The service handles insertion)
163
-	*
164
-	* @param	array	$data				Data from submit link
165
-	* @param	array	$pre_create_data	Data from pre_create_insert_array()
166
-	* @return	array						Array of data ready to be inserted into the database
167
-	*/
161
+	 * Function for preparing the data for insertion in an SQL query
162
+	 * (The service handles insertion)
163
+	 *
164
+	 * @param	array	$data				Data from submit link
165
+	 * @param	array	$pre_create_data	Data from pre_create_insert_array()
166
+	 * @return	array						Array of data ready to be inserted into the database
167
+	 */
168 168
 	public function create_insert_array($data, $pre_create_data = array())
169 169
 	{
170 170
 		$this->set_data('link_name', $data['link_name']);
Please login to merge, or discard this patch.
notification/type/directory_website_error_cron.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -18,52 +18,52 @@  discard block
 block discarded – undo
18 18
 class directory_website_error_cron extends \phpbb\notification\type\base
19 19
 {
20 20
 	/**
21
-	* Get notification type name
22
-	*
23
-	* @return string
24
-	*/
21
+	 * Get notification type name
22
+	 *
23
+	 * @return string
24
+	 */
25 25
 	public function get_type()
26 26
 	{
27 27
 		return 'ernadoo.phpbbdirectory.notification.type.directory_website_error_cron';
28 28
 	}
29 29
 
30 30
 	/**
31
-	* Notification option data (for outputting to the user)
32
-	*
33
-	* @var bool|array False if the service should use it's default data
34
-	* 					Array of data (including keys 'id', 'lang', and 'group')
35
-	*/
31
+	 * Notification option data (for outputting to the user)
32
+	 *
33
+	 * @var bool|array False if the service should use it's default data
34
+	 * 					Array of data (including keys 'id', 'lang', and 'group')
35
+	 */
36 36
 	public static $notification_option = array(
37 37
 		'lang'	=> 'NOTIFICATION_TYPE_DIR_UCP_ERROR_CHECK',
38 38
 		'group'	=> 'NOTIFICATION_DIR_UCP',
39 39
 	);
40 40
 
41 41
 	/**
42
-	* Is available
43
-	*
44
-	* @return bool True/False whether or not this is available to the user
45
-	*/
42
+	 * Is available
43
+	 *
44
+	 * @return bool True/False whether or not this is available to the user
45
+	 */
46 46
 	public function is_available()
47 47
 	{
48 48
 		return true;
49 49
 	}
50 50
 
51 51
 	/**
52
-	* Get link id
53
-	*
54
-	* @param array $data The data from the link
55
-	* @return int
56
-	*/
52
+	 * Get link id
53
+	 *
54
+	 * @param array $data The data from the link
55
+	 * @return int
56
+	 */
57 57
 	static public function get_item_id($data)
58 58
 	{
59 59
 		return (int) $data['link_id'];
60 60
 	}
61 61
 
62 62
 	/**
63
-	* Get parent id - it's not used
64
-	*
65
-	* @param array $data The data from the link
66
-	*/
63
+	 * Get parent id - it's not used
64
+	 *
65
+	 * @param array $data The data from the link
66
+	 */
67 67
 	static public function get_item_parent_id($data)
68 68
 	{
69 69
 		// No parent
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
 	}
72 72
 
73 73
 	/**
74
-	* Find the users who want to receive notifications
75
-	*
76
-	* @param	array	$data		Data from submit link
77
-	* @param	array	$options	Options for finding users for notification
78
-	* @return	array
79
-	*/
74
+	 * Find the users who want to receive notifications
75
+	 *
76
+	 * @param	array	$data		Data from submit link
77
+	 * @param	array	$options	Options for finding users for notification
78
+	 * @return	array
79
+	 */
80 80
 	public function find_users_for_notification($data, $options = array())
81 81
 	{
82 82
 		$users = array();
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 	}
105 105
 
106 106
 	/**
107
-	* Get the HTML formatted title of this notification
108
-	*
109
-	* @return string
110
-	*/
107
+	 * Get the HTML formatted title of this notification
108
+	 *
109
+	 * @return string
110
+	 */
111 111
 	public function get_title()
112 112
 	{
113 113
 		$link_name = $this->get_data('link_name');
@@ -117,20 +117,20 @@  discard block
 block discarded – undo
117 117
 	}
118 118
 
119 119
 	/**
120
-	* Get email template
121
-	*
122
-	* @return string
123
-	*/
120
+	 * Get email template
121
+	 *
122
+	 * @return string
123
+	 */
124 124
 	public function get_email_template()
125 125
 	{
126 126
 		return '@ernadoo_phpbbdirectory/directory_website_error_cron';
127 127
 	}
128 128
 
129 129
 	/**
130
-	* Get email template variables
131
-	*
132
-	* @return array
133
-	*/
130
+	 * Get email template variables
131
+	 *
132
+	 * @return array
133
+	 */
134 134
 	public function get_email_template_variables()
135 135
 	{
136 136
 		return array(
@@ -142,33 +142,33 @@  discard block
 block discarded – undo
142 142
 	}
143 143
 
144 144
 	/**
145
-	* Get the url to this item
146
-	*
147
-	* @return string URL
148
-	*/
145
+	 * Get the url to this item
146
+	 *
147
+	 * @return string URL
148
+	 */
149 149
 	public function get_url()
150 150
 	{
151 151
 		return '';
152 152
 	}
153 153
 
154 154
 	/**
155
-	* Users needed to query before this notification can be displayed
156
-	*
157
-	* @return array Array of user_ids
158
-	*/
155
+	 * Users needed to query before this notification can be displayed
156
+	 *
157
+	 * @return array Array of user_ids
158
+	 */
159 159
 	public function users_to_query()
160 160
 	{
161 161
 		return array();
162 162
 	}
163 163
 
164 164
 	/**
165
-	* Function for preparing the data for insertion in an SQL query
166
-	* (The service handles insertion)
167
-	*
168
-	* @param	array	$data				Data from submit link
169
-	* @param	array	$pre_create_data	Data from pre_create_insert_array()
170
-	* @return	array						Array of data ready to be inserted into the database
171
-	*/
165
+	 * Function for preparing the data for insertion in an SQL query
166
+	 * (The service handles insertion)
167
+	 *
168
+	 * @param	array	$data				Data from submit link
169
+	 * @param	array	$pre_create_data	Data from pre_create_insert_array()
170
+	 * @return	array						Array of data ready to be inserted into the database
171
+	 */
172 172
 	public function create_insert_array($data, $pre_create_data = array())
173 173
 	{
174 174
 		$this->set_data('link_name', $data['link_name']);
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
 	}
183 183
 
184 184
 	/**
185
-	* Function for preparing the data for update in an SQL query
186
-	* (The service handles insertion)
187
-	*
188
-	* @param array $type_data Data unique to this notification type
189
-	* @return array Array of data ready to be updated in the database
190
-	*/
185
+	 * Function for preparing the data for update in an SQL query
186
+	 * (The service handles insertion)
187
+	 *
188
+	 * @param array $type_data Data unique to this notification type
189
+	 * @return array Array of data ready to be updated in the database
190
+	 */
191 191
 	public function create_update_array($type_data)
192 192
 	{
193 193
 		$data = $this->create_insert_array($type_data);
Please login to merge, or discard this patch.