Completed
Push — 3.2.x ( be9360...c8dee9 )
by Erwan
12:34
created
controller/comments.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -61,23 +61,23 @@  discard block
 block discarded – undo
61 61
 	protected $php_ext;
62 62
 
63 63
 	/**
64
-	* Constructor
65
-	*
66
-	* @param \phpbb\db\driver\driver_interface					$db					Database object
67
-	* @param \phpbb\config\config								$config				Config object
68
-	* @param \phpbb\language\language							$language			Language object
69
-	* @param \phpbb\template\template							$template			Template object
70
-	* @param \phpbb\user										$user				User object
71
-	* @param \phpbb\controller\helper							$helper				Controller helper object
72
-	* @param \phpbb\request\request								$request			Request object
73
-	* @param \phpbb\auth\auth									$auth				Auth object
74
-	* @param \phpbb\pagination									$pagination			Pagination object
75
-	* @param \phpbb\captcha\factory								$captcha_factory	Captcha object
76
-	* @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
77
-	* @param \ernadoo\phpbbdirectory\core\comment				$comment			PhpBB Directory extension comment object
78
-	* @param string												$root_path			phpBB root path
79
-	* @param string												$php_ext			phpEx
80
-	*/
64
+	 * Constructor
65
+	 *
66
+	 * @param \phpbb\db\driver\driver_interface					$db					Database object
67
+	 * @param \phpbb\config\config								$config				Config object
68
+	 * @param \phpbb\language\language							$language			Language object
69
+	 * @param \phpbb\template\template							$template			Template object
70
+	 * @param \phpbb\user										$user				User object
71
+	 * @param \phpbb\controller\helper							$helper				Controller helper object
72
+	 * @param \phpbb\request\request								$request			Request object
73
+	 * @param \phpbb\auth\auth									$auth				Auth object
74
+	 * @param \phpbb\pagination									$pagination			Pagination object
75
+	 * @param \phpbb\captcha\factory								$captcha_factory	Captcha object
76
+	 * @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
77
+	 * @param \ernadoo\phpbbdirectory\core\comment				$comment			PhpBB Directory extension comment object
78
+	 * @param string												$root_path			phpBB root path
79
+	 * @param string												$php_ext			phpEx
80
+	 */
81 81
 	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, \phpbb\captcha\factory $captcha_factory, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\comment $comment, $root_path, $php_ext)
82 82
 	{
83 83
 		$this->db				= $db;
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 	}
110 110
 
111 111
 	/**
112
-	* Populate form when an error occurred
113
-	*
114
-	* @param	int		$link_id		The link ID
115
-	* @param	int		$comment_id		The comment ID
116
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
117
-	* @throws	\phpbb\exception\http_exception
118
-	*/
112
+	 * Populate form when an error occurred
113
+	 *
114
+	 * @param	int		$link_id		The link ID
115
+	 * @param	int		$comment_id		The comment ID
116
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
117
+	 * @throws	\phpbb\exception\http_exception
118
+	 */
119 119
 	public function delete_comment($link_id, $comment_id)
120 120
 	{
121 121
 		$this->_check_comments_enable($link_id);
@@ -154,13 +154,13 @@  discard block
 block discarded – undo
154 154
 	}
155 155
 
156 156
 	/**
157
-	* Edit a comment
158
-	*
159
-	* @param	int		$link_id		The category ID
160
-	* @param	int		$comment_id		The comment ID
161
-	* @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
162
-	* @throws	\phpbb\exception\http_exception
163
-	*/
157
+	 * Edit a comment
158
+	 *
159
+	 * @param	int		$link_id		The category ID
160
+	 * @param	int		$comment_id		The comment ID
161
+	 * @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
162
+	 * @throws	\phpbb\exception\http_exception
163
+	 */
164 164
 	public function edit_comment($link_id, $comment_id)
165 165
 	{
166 166
 		$this->_check_comments_enable($link_id);
@@ -191,12 +191,12 @@  discard block
 block discarded – undo
191 191
 	}
192 192
 
193 193
 	/**
194
-	* Post a new comment
195
-	*
196
-	* @param	int	$link_id		The category ID
197
-	* @return	null
198
-	* @throws	\phpbb\exception\http_exception
199
-	*/
194
+	 * Post a new comment
195
+	 *
196
+	 * @param	int	$link_id		The category ID
197
+	 * @return	null
198
+	 * @throws	\phpbb\exception\http_exception
199
+	 */
200 200
 	public function new_comment($link_id)
201 201
 	{
202 202
 		$this->_check_comments_enable($link_id);
@@ -222,14 +222,14 @@  discard block
 block discarded – undo
222 222
 	}
223 223
 
224 224
 	/**
225
-	* Display popup comment
226
-	*
227
-	* @param	int		$link_id		The category ID
228
-	* @param	int		$page			Page number taken from the URL
229
-	* @param	string	$mode			add|edit
230
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
231
-	* @throws	\phpbb\exception\http_exception
232
-	*/
225
+	 * Display popup comment
226
+	 *
227
+	 * @param	int		$link_id		The category ID
228
+	 * @param	int		$page			Page number taken from the URL
229
+	 * @param	string	$mode			add|edit
230
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
231
+	 * @throws	\phpbb\exception\http_exception
232
+	 */
233 233
 	public function view($link_id, $page, $mode = 'new')
234 234
 	{
235 235
 		$this->_check_comments_enable($link_id);
@@ -322,13 +322,13 @@  discard block
 block discarded – undo
322 322
 	}
323 323
 
324 324
 	/**
325
-	* Routine
326
-	*
327
-	* @param	int		$link_id		The link ID
328
-	* @param	int		$comment_id		The comment ID
329
-	* @param	string	$mode			new|edit
330
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
331
-	*/
325
+	 * Routine
326
+	 *
327
+	 * @param	int		$link_id		The link ID
328
+	 * @param	int		$comment_id		The comment ID
329
+	 * @param	string	$mode			new|edit
330
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
331
+	 */
332 332
 	private function _data_processing($link_id, $comment_id = 0, $mode = 'new')
333 333
 	{
334 334
 		if (!check_form_key('dir_form_comment'))
@@ -416,12 +416,12 @@  discard block
 block discarded – undo
416 416
 	}
417 417
 
418 418
 	/**
419
-	* Check if comments are enable in a category
420
-	*
421
-	* @param	int		$link_id		The link ID
422
-	* @return	null					Retun null if comments are allowed, http_exception if not
423
-	* @throws	\phpbb\exception\http_exception
424
-	*/
419
+	 * Check if comments are enable in a category
420
+	 *
421
+	 * @param	int		$link_id		The link ID
422
+	 * @return	null					Retun null if comments are allowed, http_exception if not
423
+	 * @throws	\phpbb\exception\http_exception
424
+	 */
425 425
 	private function _check_comments_enable($link_id)
426 426
 	{
427 427
 		$sql = 'SELECT link_cat
@@ -447,12 +447,12 @@  discard block
 block discarded – undo
447 447
 	}
448 448
 
449 449
 	/**
450
-	* Populate form when an error occurred
451
-	*
452
-	* @param	int		$link_id		The link ID
453
-	* @param	string	$mode			add|edit
454
-	* @return	null
455
-	*/
450
+	 * Populate form when an error occurred
451
+	 *
452
+	 * @param	int		$link_id		The link ID
453
+	 * @param	string	$mode			add|edit
454
+	 * @return	null
455
+	 */
456 456
 	private function _populate_form($link_id, $mode)
457 457
 	{
458 458
 		$this->user->add_lang(array('ucp', 'posting'));
Please login to merge, or discard this patch.
controller/acp/validation.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -69,22 +69,22 @@  discard block
 block discarded – undo
69 69
 	private $links_data;
70 70
 
71 71
 	/**
72
-	* Constructor
73
-	*
74
-	* @param \phpbb\config\config								$config				Config object
75
-	* @param \phpbb\db\driver\driver_interface 					$db					Database object
76
-	* @param \phpbb\pagination									$pagination			Pagination object
77
-	* @param \phpbb\language\language							$language			Language object
78
-	* @param \phpbb\log\log										$log				Log object
79
-	* @param \phpbb\notification\manager						$notification		Notification object
80
-	* @param \phpbb\request\request								$request			Request object
81
-	* @param \phpbb\template\template							$template			Template object
82
-	* @param \phpbb\user										$user				User object
83
-	* @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
84
-	* @param \ernadoo\phpbbdirectory\core\link					$link				PhpBB Directory extension link object
85
-	* @param string												$root_path			phpBB root path
86
-	* @param string												$php_ext   			phpEx
87
-	*/
72
+	 * Constructor
73
+	 *
74
+	 * @param \phpbb\config\config								$config				Config object
75
+	 * @param \phpbb\db\driver\driver_interface 					$db					Database object
76
+	 * @param \phpbb\pagination									$pagination			Pagination object
77
+	 * @param \phpbb\language\language							$language			Language object
78
+	 * @param \phpbb\log\log										$log				Log object
79
+	 * @param \phpbb\notification\manager						$notification		Notification object
80
+	 * @param \phpbb\request\request								$request			Request object
81
+	 * @param \phpbb\template\template							$template			Template object
82
+	 * @param \phpbb\user										$user				User object
83
+	 * @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
84
+	 * @param \ernadoo\phpbbdirectory\core\link					$link				PhpBB Directory extension link object
85
+	 * @param string												$root_path			phpBB root path
86
+	 * @param string												$php_ext   			phpEx
87
+	 */
88 88
 	public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\pagination $pagination, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\notification\manager $notification, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link, $root_path, $php_ext)
89 89
 	{
90 90
 		$this->config		= $config;
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 
107 107
 	/**
108
-	* Display confirm box
109
-	*
110
-	* @param	array $mark Website selected for (dis)approval
111
-	* @return	null
112
-	*/
108
+	 * Display confirm box
109
+	 *
110
+	 * @param	array $mark Website selected for (dis)approval
111
+	 * @return	null
112
+	 */
113 113
 	public function display_confirm($mark)
114 114
 	{
115 115
 		$s_hidden_fields = array(
@@ -121,10 +121,10 @@  discard block
 block discarded – undo
121 121
 	}
122 122
 
123 123
 	/**
124
-	* Display website list for (dis)approval
125
-	*
126
-	* @return null
127
-	*/
124
+	 * Display website list for (dis)approval
125
+	 *
126
+	 * @return null
127
+	 */
128 128
 	public function display_websites()
129 129
 	{
130 130
 		global $phpbb_admin_path;
@@ -228,11 +228,11 @@  discard block
 block discarded – undo
228 228
 	}
229 229
 
230 230
 	/**
231
-	* Get link's information and call appropriate action
232
-	*
233
-	* @param	array $mark Website selected for (dis)approval
234
-	* @return	null
235
-	*/
231
+	 * Get link's information and call appropriate action
232
+	 *
233
+	 * @param	array $mark Website selected for (dis)approval
234
+	 * @return	null
235
+	 */
236 236
 	public function exec_action($mark)
237 237
 	{
238 238
 		$this->_get_infos_links($mark);
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
 	}
256 256
 
257 257
 	/**
258
-	* Notify users which had submitted their websites
259
-	*
260
-	* @return null
261
-	*/
258
+	 * Notify users which had submitted their websites
259
+	 *
260
+	 * @return null
261
+	 */
262 262
 	public function notifiy_submiters()
263 263
 	{
264 264
 		if (!class_exists('messenger'))
@@ -302,22 +302,22 @@  discard block
 block discarded – undo
302 302
 	}
303 303
 
304 304
 	/**
305
-	* Set page url
306
-	*
307
-	* @param	string $u_action Custom form action
308
-	* @return	null
309
-	* @access	public
310
-	*/
305
+	 * Set page url
306
+	 *
307
+	 * @param	string $u_action Custom form action
308
+	 * @return	null
309
+	 * @access	public
310
+	 */
311 311
 	public function set_page_url($u_action)
312 312
 	{
313 313
 		$this->u_action = $u_action;
314 314
 	}
315 315
 
316 316
 	/**
317
-	* Approve action
318
-	*
319
-	* @return null
320
-	*/
317
+	 * Approve action
318
+	 *
319
+	 * @return null
320
+	 */
321 321
 	private function _action_approved()
322 322
 	{
323 323
 		foreach ($this->links_data as $row)
@@ -346,10 +346,10 @@  discard block
 block discarded – undo
346 346
 	}
347 347
 
348 348
 	/**
349
-	* Disapprove action
350
-	*
351
-	* @return null
352
-	*/
349
+	 * Disapprove action
350
+	 *
351
+	 * @return null
352
+	 */
353 353
 	private function _action_disapproved()
354 354
 	{
355 355
 		foreach ($this->links_data as $row)
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
 	}
371 371
 
372 372
 	/**
373
-	* Get informations about links selected
374
-	*
375
-	* @param	array $mark Website selected for (dis)approval
376
-	* @return	null
377
-	*/
373
+	 * Get informations about links selected
374
+	 *
375
+	 * @param	array $mark Website selected for (dis)approval
376
+	 * @return	null
377
+	 */
378 378
 	private function _get_infos_links($mark)
379 379
 	{
380 380
 		$sql_array = array(
@@ -409,11 +409,11 @@  discard block
 block discarded – undo
409 409
 	}
410 410
 
411 411
 	/**
412
-	* Notify users which watch categories
413
-	*
414
-	* @param	array $row Informations about website
415
-	* @return	null
416
-	*/
412
+	 * Notify users which watch categories
413
+	 *
414
+	 * @param	array $row Informations about website
415
+	 * @return	null
416
+	 */
417 417
 	private function _notify_suscribers($row)
418 418
 	{
419 419
 		$notification_data = array(
Please login to merge, or discard this patch.
core/cron.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
 	protected $php_ext;
38 38
 
39 39
 	/**
40
-	* Constructor
41
-	*
42
-	* @param \phpbb\db\driver\driver_interface 	$db					Database object
43
-	* @param \phpbb\config\config 				$config				Config object
44
-	* @param \phpbb\log\log						$phpbb_log			Log object
45
-	* @param \phpbb\user 						$user				User object
46
-	* @param \phpbb\notification\manager		$notification		Notification object
47
-	* @param \ernadoo\phpbbdirectory\core\link	$link				PhpBB Directory extension link object
48
-	* @param string         					$root_path			phpBB root path
49
-	* @param string         					$php_ext			phpEx
50
-	*/
40
+	 * Constructor
41
+	 *
42
+	 * @param \phpbb\db\driver\driver_interface 	$db					Database object
43
+	 * @param \phpbb\config\config 				$config				Config object
44
+	 * @param \phpbb\log\log						$phpbb_log			Log object
45
+	 * @param \phpbb\user 						$user				User object
46
+	 * @param \phpbb\notification\manager		$notification		Notification object
47
+	 * @param \ernadoo\phpbbdirectory\core\link	$link				PhpBB Directory extension link object
48
+	 * @param string         					$root_path			phpBB root path
49
+	 * @param string         					$php_ext			phpEx
50
+	 */
51 51
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\log\log $phpbb_log, \phpbb\user $user, \phpbb\notification\manager $notification, \ernadoo\phpbbdirectory\core\link $link, $root_path, $php_ext)
52 52
 	{
53 53
 		$this->db				= $db;
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 
63 63
 	/**
64
-	* Method called by cron task.
65
-	*
66
-	* @param	array	$cat_data	Information about category, from db
67
-	* @return	null
68
-	*/
64
+	 * Method called by cron task.
65
+	 *
66
+	 * @param	array	$cat_data	Information about category, from db
67
+	 * @return	null
68
+	 */
69 69
 	public function auto_check($cat_data)
70 70
 	{
71 71
 		$sql = 'SELECT cat_name
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
 	}
115 115
 
116 116
 	/**
117
-	* Check, for website with backlink specified, if backlink is always here.
118
-	* After $nb_check verification, website is deleted, otherwise, a notification is send to poster
119
-	*
120
-	* @param	int		$cat_id		The category ID
121
-	* @param	int		$nb_check	Number of check before delete a website
122
-	* @param	int		$next_prune	Date of next auto check
123
-	* @return	null
124
-	*/
117
+	 * Check, for website with backlink specified, if backlink is always here.
118
+	 * After $nb_check verification, website is deleted, otherwise, a notification is send to poster
119
+	 *
120
+	 * @param	int		$cat_id		The category ID
121
+	 * @param	int		$nb_check	Number of check before delete a website
122
+	 * @param	int		$next_prune	Date of next auto check
123
+	 * @return	null
124
+	 */
125 125
 	private function _check($cat_id, $nb_check, $next_prune)
126 126
 	{
127 127
 		$del_array = $update_array = array();
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
 	}
170 170
 
171 171
 	/**
172
-	* Update website verification number after a missing backlink, and send notificaton
173
-	*
174
-	* @param	array	$u_array	Information about website
175
-	* @param	int		$next_prune	Date of next auto check
176
-	* @return	null
177
-	*/
172
+	 * Update website verification number after a missing backlink, and send notificaton
173
+	 *
174
+	 * @param	array	$u_array	Information about website
175
+	 * @param	int		$next_prune	Date of next auto check
176
+	 * @return	null
177
+	 */
178 178
 	private function _update_check($u_array, $next_prune)
179 179
 	{
180 180
 		if (!class_exists('messenger'))
Please login to merge, or discard this patch.