Completed
Branch remove-tables-constants (5940a1)
by Erwan
15:05
created
controller/links.php 1 patch
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -69,22 +69,22 @@  discard block
 block discarded – undo
69 69
 	protected $php_ext;
70 70
 
71 71
 	/**
72
-	* Constructor
73
-	*
74
-	* @param \phpbb\db\driver\driver_interface 		$db					Database object
75
-	* @param \phpbb\config\config					$config				Config object
76
-	* @param \phpbb\language\language				$language			Language object
77
-	* @param \phpbb\template\template				$template			Template object
78
-	* @param \phpbb\user							$user				User object
79
-	* @param \phpbb\controller\helper				$helper				Controller helper object
80
-	* @param \phpbb\request\request					$request			Request object
81
-	* @param \phpbb\auth\auth						$auth				Auth object
82
-	* @param \phpbb\captcha\factory					$captcha_factory	Captcha 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\db\driver\driver_interface 		$db					Database object
75
+	 * @param \phpbb\config\config					$config				Config object
76
+	 * @param \phpbb\language\language				$language			Language object
77
+	 * @param \phpbb\template\template				$template			Template object
78
+	 * @param \phpbb\user							$user				User object
79
+	 * @param \phpbb\controller\helper				$helper				Controller helper object
80
+	 * @param \phpbb\request\request					$request			Request object
81
+	 * @param \phpbb\auth\auth						$auth				Auth object
82
+	 * @param \phpbb\captcha\factory					$captcha_factory	Captcha 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\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\captcha\factory $captcha_factory, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link, $root_path, $php_ext)
89 89
 	{
90 90
 		$this->db				= $db;
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
 	}
110 110
 
111 111
 	/**
112
-	* Delete a link
113
-	*
114
-	* @param	int	$cat_id		The category ID
115
-	* @param	int	$link_id		The link ID
116
-	* @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
117
-	*/
112
+	 * Delete a link
113
+	 *
114
+	 * @param	int	$cat_id		The category ID
115
+	 * @param	int	$link_id		The link ID
116
+	 * @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
117
+	 */
118 118
 	public function delete_link($cat_id, $link_id)
119 119
 	{
120 120
 		if ($this->request->is_set_post('cancel'))
@@ -157,13 +157,13 @@  discard block
 block discarded – undo
157 157
 	}
158 158
 
159 159
 	/**
160
-	* Edit a link
161
-	*
162
-	* @param	int	$cat_id		The category ID
163
-	* @param	int	$link_id	The link ID
164
-	* @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
165
-	* @throws	\phpbb\exception\http_exception
166
-	*/
160
+	 * Edit a link
161
+	 *
162
+	 * @param	int	$cat_id		The category ID
163
+	 * @param	int	$link_id	The link ID
164
+	 * @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
165
+	 * @throws	\phpbb\exception\http_exception
166
+	 */
167 167
 	public function edit_link($cat_id, $link_id)
168 168
 	{
169 169
 		$sql = 'SELECT link_user_id
@@ -238,12 +238,12 @@  discard block
 block discarded – undo
238 238
 	}
239 239
 
240 240
 	/**
241
-	* Display add form
242
-	*
243
-	* @param	int	$cat_id		The category ID
244
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
245
-	* @throws	\phpbb\exception\http_exception
246
-	*/
241
+	 * Display add form
242
+	 *
243
+	 * @param	int	$cat_id		The category ID
244
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
245
+	 * @throws	\phpbb\exception\http_exception
246
+	 */
247 247
 	public function new_link($cat_id)
248 248
 	{
249 249
 		if (!$this->auth->acl_get('u_submit_dir'))
@@ -285,23 +285,23 @@  discard block
 block discarded – undo
285 285
 	}
286 286
 
287 287
 	/**
288
-	* View link controller
289
-	*
290
-	* @param	int	$link_id		The link ID
291
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
292
-	*/
288
+	 * View link controller
289
+	 *
290
+	 * @param	int	$link_id		The link ID
291
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
292
+	 */
293 293
 	public function view_link($link_id)
294 294
 	{
295 295
 		return $this->link->view($link_id);
296 296
 	}
297 297
 
298 298
 	/**
299
-	* Vote for a link
300
-	*
301
-	* @param	int $cat_id		The category ID
302
-	* @param	int $link_id	The link ID
303
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
304
-	*/
299
+	 * Vote for a link
300
+	 *
301
+	 * @param	int $cat_id		The category ID
302
+	 * @param	int $link_id	The link ID
303
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
304
+	 */
305 305
 	public function vote_link($cat_id, $link_id)
306 306
 	{
307 307
 		$this->categorie->get($cat_id);
@@ -337,14 +337,14 @@  discard block
 block discarded – undo
337 337
 	}
338 338
 
339 339
 	/**
340
-	* Routine
341
-	*
342
-	* @param	int		$cat_id		The category ID
343
-	* @param	int		$link_id	The link ID
344
-	* @param	string	$mode		add|edit
345
-	* @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
346
-	* @throws	\phpbb\exception\http_exception
347
-	*/
340
+	 * Routine
341
+	 *
342
+	 * @param	int		$cat_id		The category ID
343
+	 * @param	int		$link_id	The link ID
344
+	 * @param	string	$mode		add|edit
345
+	 * @return	null|\Symfony\Component\HttpFoundation\Response	A Symfony Response object
346
+	 * @throws	\phpbb\exception\http_exception
347
+	 */
348 348
 	private function _data_processing($cat_id, $link_id = 0, $mode = 'new')
349 349
 	{
350 350
 		if (($mode == 'edit' && !$this->auth->acl_get('m_edit_dir') && !$this->auth->acl_get('u_edit_dir')) || ($mode == 'new' && !$this->auth->acl_get('u_submit_dir')))
@@ -434,8 +434,8 @@  discard block
 block discarded – undo
434 434
 		if (!$error)
435 435
 		{
436 436
 			/**
437
-			* No errrors, we execute heavy tasks wich need a valid url
438
-			*/
437
+			 * No errrors, we execute heavy tasks wich need a valid url
438
+			 */
439 439
 
440 440
 			// Banner
441 441
 			$this->link->banner_process($this->banner, $error);
@@ -520,11 +520,11 @@  discard block
 block discarded – undo
520 520
 	}
521 521
 
522 522
 	/**
523
-	* Display a banner
524
-	*
525
-	* @param	string $banner_img		Path to banner file
526
-	* @return	Response object
527
-	*/
523
+	 * Display a banner
524
+	 *
525
+	 * @param	string $banner_img		Path to banner file
526
+	 * @return	Response object
527
+	 */
528 528
 	public function return_banner($banner_img)
529 529
 	{
530 530
 		if (!function_exists('file_gc'))
@@ -558,13 +558,13 @@  discard block
 block discarded – undo
558 558
 	}
559 559
 
560 560
 	/**
561
-	* Populate form when an error occurred
562
-	*
563
-	* @param	int		$cat_id		The category ID
564
-	* @param	string	$mode		add|edit
565
-	* @param	string	$title		Page title (depends of $mode)
566
-	* @return	null
567
-	*/
561
+	 * Populate form when an error occurred
562
+	 *
563
+	 * @param	int		$cat_id		The category ID
564
+	 * @param	string	$mode		add|edit
565
+	 * @param	string	$title		Page title (depends of $mode)
566
+	 * @return	null
567
+	 */
568 568
 	private function _populate_form($cat_id, $mode, $title)
569 569
 	{
570 570
 		global $phpbb_extension_manager;
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
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 	private $links_data;
67 67
 
68 68
 	/**
69
-	* Constructor
70
-	*
71
-	* @param \phpbb\config\config								$config				Config object
72
-	* @param \phpbb\db\driver\driver_interface 					$db					Database object
73
-	* @param \phpbb\pagination									$pagination			Pagination object
74
-	* @param \phpbb\language\language							$language			Language object
75
-	* @param \phpbb\log\log										$log				Log object
76
-	* @param \phpbb\notification\manager						$notification		Notification object
77
-	* @param \phpbb\request\request								$request			Request object
78
-	* @param \phpbb\template\template							$template			Template object
79
-	* @param \phpbb\user										$user				User object
80
-	* @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
81
-	* @param \ernadoo\phpbbdirectory\core\link					$link				PhpBB Directory extension link object
82
-	* @param string												$root_path			phpBB root path
83
-	* @param string												$php_ext   			phpEx
84
-	*/
69
+	 * Constructor
70
+	 *
71
+	 * @param \phpbb\config\config								$config				Config object
72
+	 * @param \phpbb\db\driver\driver_interface 					$db					Database object
73
+	 * @param \phpbb\pagination									$pagination			Pagination object
74
+	 * @param \phpbb\language\language							$language			Language object
75
+	 * @param \phpbb\log\log										$log				Log object
76
+	 * @param \phpbb\notification\manager						$notification		Notification object
77
+	 * @param \phpbb\request\request								$request			Request object
78
+	 * @param \phpbb\template\template							$template			Template object
79
+	 * @param \phpbb\user										$user				User object
80
+	 * @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
81
+	 * @param \ernadoo\phpbbdirectory\core\link					$link				PhpBB Directory extension link object
82
+	 * @param string												$root_path			phpBB root path
83
+	 * @param string												$php_ext   			phpEx
84
+	 */
85 85
 	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)
86 86
 	{
87 87
 		$this->config		= $config;
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 
104 104
 	/**
105
-	* Display confirm box
106
-	*
107
-	* @param	array $mark Website selected for (dis)approval
108
-	* @return	null
109
-	*/
105
+	 * Display confirm box
106
+	 *
107
+	 * @param	array $mark Website selected for (dis)approval
108
+	 * @return	null
109
+	 */
110 110
 	public function display_confirm($mark)
111 111
 	{
112 112
 		$s_hidden_fields = array(
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
 	}
119 119
 
120 120
 	/**
121
-	* Display website list for (dis)approval
122
-	*
123
-	* @return null
124
-	*/
121
+	 * Display website list for (dis)approval
122
+	 *
123
+	 * @return null
124
+	 */
125 125
 	public function display_websites()
126 126
 	{
127 127
 		global $phpbb_admin_path;
@@ -225,11 +225,11 @@  discard block
 block discarded – undo
225 225
 	}
226 226
 
227 227
 	/**
228
-	* Get link's information and call appropriate action
229
-	*
230
-	* @param	array $mark Website selected for (dis)approval
231
-	* @return	null
232
-	*/
228
+	 * Get link's information and call appropriate action
229
+	 *
230
+	 * @param	array $mark Website selected for (dis)approval
231
+	 * @return	null
232
+	 */
233 233
 	public function exec_action($mark)
234 234
 	{
235 235
 		$this->_get_infos_links($mark);
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
 	}
253 253
 
254 254
 	/**
255
-	* Notify users which had submitted their websites
256
-	*
257
-	* @return null
258
-	*/
255
+	 * Notify users which had submitted their websites
256
+	 *
257
+	 * @return null
258
+	 */
259 259
 	public function notifiy_submiters()
260 260
 	{
261 261
 		if (!class_exists('messenger'))
@@ -299,22 +299,22 @@  discard block
 block discarded – undo
299 299
 	}
300 300
 
301 301
 	/**
302
-	* Set page url
303
-	*
304
-	* @param	string $u_action Custom form action
305
-	* @return	null
306
-	* @access	public
307
-	*/
302
+	 * Set page url
303
+	 *
304
+	 * @param	string $u_action Custom form action
305
+	 * @return	null
306
+	 * @access	public
307
+	 */
308 308
 	public function set_page_url($u_action)
309 309
 	{
310 310
 		$this->u_action = $u_action;
311 311
 	}
312 312
 
313 313
 	/**
314
-	* Approve action
315
-	*
316
-	* @return null
317
-	*/
314
+	 * Approve action
315
+	 *
316
+	 * @return null
317
+	 */
318 318
 	private function _action_approved()
319 319
 	{
320 320
 		foreach ($this->links_data as $row)
@@ -343,10 +343,10 @@  discard block
 block discarded – undo
343 343
 	}
344 344
 
345 345
 	/**
346
-	* Disapprove action
347
-	*
348
-	* @return null
349
-	*/
346
+	 * Disapprove action
347
+	 *
348
+	 * @return null
349
+	 */
350 350
 	private function _action_disapproved()
351 351
 	{
352 352
 		foreach ($this->links_data as $row)
@@ -367,11 +367,11 @@  discard block
 block discarded – undo
367 367
 	}
368 368
 
369 369
 	/**
370
-	* Get informations about links selected
371
-	*
372
-	* @param	$mark Website selected for (dis)approval
373
-	* @return	null
374
-	*/
370
+	 * Get informations about links selected
371
+	 *
372
+	 * @param	$mark Website selected for (dis)approval
373
+	 * @return	null
374
+	 */
375 375
 	private function _get_infos_links($mark)
376 376
 	{
377 377
 		$sql_array = array(
@@ -406,11 +406,11 @@  discard block
 block discarded – undo
406 406
 	}
407 407
 
408 408
 	/**
409
-	* Notify users which watch categories
410
-	*
411
-	* @param	$row Informations about website
412
-	* @return	null
413
-	*/
409
+	 * Notify users which watch categories
410
+	 *
411
+	 * @param	$row Informations about website
412
+	 * @return	null
413
+	 */
414 414
 	private function _notify_suscribers($row)
415 415
 	{
416 416
 		$notification_data = array(
Please login to merge, or discard this patch.
controller/acp/cat.php 1 patch
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -69,19 +69,19 @@  discard block
 block discarded – undo
69 69
 	private $update;
70 70
 
71 71
 	/**
72
-	* Constructor
73
-	*
74
-	* @param \phpbb\cache\service								$cache				Cache object
75
-	* @param \phpbb\db\driver\driver_interface 					$db					Database object
76
-	* @param \phpbb\controller\helper							$helper				Helper object
77
-	* @param \phpbb\language\language							$language			Language object
78
-	* @param \phpbb\log\log										$log				Log object
79
-	* @param \phpbb\request\request								$request			Request object
80
-	* @param \phpbb\template\template							$template			Template object
81
-	* @param \phpbb\user										$user				User object
82
-	* @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
83
-	* @param \ernadoo\phpbbdirectory\core\nestedset_category	$nestedset_category	PhpBB Directory extension nestedset object
84
-	*/
72
+	 * Constructor
73
+	 *
74
+	 * @param \phpbb\cache\service								$cache				Cache object
75
+	 * @param \phpbb\db\driver\driver_interface 					$db					Database object
76
+	 * @param \phpbb\controller\helper							$helper				Helper object
77
+	 * @param \phpbb\language\language							$language			Language object
78
+	 * @param \phpbb\log\log										$log				Log object
79
+	 * @param \phpbb\request\request								$request			Request object
80
+	 * @param \phpbb\template\template							$template			Template object
81
+	 * @param \phpbb\user										$user				User object
82
+	 * @param \ernadoo\phpbbdirectory\core\categorie				$categorie			PhpBB Directory extension categorie object
83
+	 * @param \ernadoo\phpbbdirectory\core\nestedset_category	$nestedset_category	PhpBB Directory extension nestedset object
84
+	 */
85 85
 	public function __construct(\phpbb\cache\service $cache, \phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\nestedset_category $nestedset_category)
86 86
 	{
87 87
 		$this->cache				= $cache;
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 
107 107
 	/**
108
-	* Initialize defaults data for add page
109
-	*
110
-	* @return null
111
-	*/
108
+	 * Initialize defaults data for add page
109
+	 *
110
+	 * @return null
111
+	 */
112 112
 	public function action_add()
113 113
 	{
114 114
 		$this->cat_id = $this->parent_id;
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
 	}
143 143
 
144 144
 	/**
145
-	* Display deleting page
146
-	*
147
-	* @return null
148
-	*/
145
+	 * Display deleting page
146
+	 *
147
+	 * @return null
148
+	 */
149 149
 	public function action_delete()
150 150
 	{
151 151
 		if (!$this->cat_id)
@@ -196,10 +196,10 @@  discard block
 block discarded – undo
196 196
 	}
197 197
 
198 198
 	/**
199
-	* Initialize data for edit page
200
-	*
201
-	* @return null
202
-	*/
199
+	 * Initialize data for edit page
200
+	 *
201
+	 * @return null
202
+	 */
203 203
 	public function action_edit()
204 204
 	{
205 205
 		$row = $this->_get_cat_info($this->cat_id);
@@ -226,10 +226,10 @@  discard block
 block discarded – undo
226 226
 	}
227 227
 
228 228
 	/**
229
-	* Move order categories
230
-	*
231
-	* @return null
232
-	*/
229
+	 * Move order categories
230
+	 *
231
+	 * @return null
232
+	 */
233 233
 	public function action_move()
234 234
 	{
235 235
 		if (!$this->cat_id)
@@ -272,10 +272,10 @@  discard block
 block discarded – undo
272 272
 	}
273 273
 
274 274
 	/**
275
-	* Display progress bar for syncinc categories
276
-	*
277
-	* @return null
278
-	*/
275
+	 * Display progress bar for syncinc categories
276
+	 *
277
+	 * @return null
278
+	 */
279 279
 	public function action_progress_bar()
280 280
 	{
281 281
 		$start = $this->request->variable('start', 0);
@@ -296,10 +296,10 @@  discard block
 block discarded – undo
296 296
 	}
297 297
 
298 298
 	/**
299
-	* Get link's ID interval for _sync_dir_links()
300
-	*
301
-	* @return null
302
-	*/
299
+	 * Get link's ID interval for _sync_dir_links()
300
+	 *
301
+	 * @return null
302
+	 */
303 303
 	public function action_sync()
304 304
 	{
305 305
 		if (!$this->cat_id)
@@ -383,10 +383,10 @@  discard block
 block discarded – undo
383 383
 	}
384 384
 
385 385
 	/**
386
-	* Sync category data
387
-	*
388
-	* @return null
389
-	*/
386
+	 * Sync category data
387
+	 *
388
+	 * @return null
389
+	 */
390 390
 	public function action_sync_cat()
391 391
 	{
392 392
 		$sql = 'SELECT cat_name
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
 	}
411 411
 
412 412
 	/**
413
-	* Display categories page
414
-	*
415
-	* @return null
416
-	*/
413
+	 * Display categories page
414
+	 *
415
+	 * @return null
416
+	 */
417 417
 	public function display_cats()
418 418
 	{
419 419
 		// Default management page
@@ -508,22 +508,22 @@  discard block
 block discarded – undo
508 508
 	}
509 509
 
510 510
 	/**
511
-	* Set page url
512
-	*
513
-	* @param	string $u_action Custom form action
514
-	* @return	null
515
-	* @access	public
516
-	*/
511
+	 * Set page url
512
+	 *
513
+	 * @param	string $u_action Custom form action
514
+	 * @return	null
515
+	 * @access	public
516
+	 */
517 517
 	public function set_page_url($u_action)
518 518
 	{
519 519
 		$this->u_action = $u_action;
520 520
 	}
521 521
 
522 522
 	/**
523
-	* Update cat table
524
-	*
525
-	* @return null
526
-	*/
523
+	 * Update cat table
524
+	 *
525
+	 * @return null
526
+	 */
527 527
 	public function update()
528 528
 	{
529 529
 		if (!check_form_key($this->form_key))
@@ -617,11 +617,11 @@  discard block
 block discarded – undo
617 617
 	}
618 618
 
619 619
 	/**
620
-	* Display form
621
-	*
622
-	* @param	string $parents_list	Drop-down list
623
-	* @return	null
624
-	*/
620
+	 * Display form
621
+	 *
622
+	 * @param	string $parents_list	Drop-down list
623
+	 * @return	null
624
+	 */
625 625
 	private function _display_cat_form($parents_list)
626 626
 	{
627 627
 		$dir_cat_desc_data = array(
@@ -691,11 +691,11 @@  discard block
 block discarded – undo
691 691
 	}
692 692
 
693 693
 	/**
694
-	* Get category details
695
-	*
696
-	* @param	int		$cat_id	The category ID
697
-	* @return 	array
698
-	*/
694
+	 * Get category details
695
+	 *
696
+	 * @param	int		$cat_id	The category ID
697
+	 * @return 	array
698
+	 */
699 699
 	private function _get_cat_info($cat_id)
700 700
 	{
701 701
 		$sql = 'SELECT cat_id, parent_id, right_id, left_id, cat_desc, cat_desc_uid, cat_desc_options, cat_icon, cat_name, display_subcat_list, cat_allow_comments, cat_allow_votes, cat_must_describe, cat_count_all, cat_validate, cat_cron_freq, cat_cron_nb_check, cat_link_back, cat_cron_enable, cat_cron_next
@@ -714,10 +714,10 @@  discard block
 block discarded – undo
714 714
 	}
715 715
 
716 716
 	/**
717
-	* Update category data
718
-	*
719
-	* @return array
720
-	*/
717
+	 * Update category data
718
+	 *
719
+	 * @return array
720
+	 */
721 721
 	private function _update_cat_data()
722 722
 	{
723 723
 		if (!$this->cat_data['cat_name'])
@@ -811,14 +811,14 @@  discard block
 block discarded – undo
811 811
 	}
812 812
 
813 813
 	/**
814
-	* Remove complete category
815
-	*
816
-	* @param	string	$action_links	Action for categories links
817
-	* @param	string	$action_subcats	Action for sub-categories
818
-	* @param	int		$links_to_id	New category ID for links
819
-	* @param	int		$subcats_to_id	New category ID for sub-categories
820
-	* @return 	array
821
-	*/
814
+	 * Remove complete category
815
+	 *
816
+	 * @param	string	$action_links	Action for categories links
817
+	 * @param	string	$action_subcats	Action for sub-categories
818
+	 * @param	int		$links_to_id	New category ID for links
819
+	 * @param	int		$subcats_to_id	New category ID for sub-categories
820
+	 * @return 	array
821
+	 */
822 822
 	private function _delete_cat($action_links = 'delete', $action_subcats = 'delete', $links_to_id = 0, $subcats_to_id = 0)
823 823
 	{
824 824
 		$this->cat_data = $this->_get_cat_info($this->cat_id);
@@ -935,12 +935,12 @@  discard block
 block discarded – undo
935 935
 	}
936 936
 
937 937
 	/**
938
-	* Move category content from one to another forum
939
-	*
940
-	* @param	int	$from_id
941
-	* @param	int	$to_id
942
-	* @return	null
943
-	*/
938
+	 * Move category content from one to another forum
939
+	 *
940
+	 * @param	int	$from_id
941
+	 * @param	int	$to_id
942
+	 * @return	null
943
+	 */
944 944
 	private function _move_cat_content($from_id, $to_id)
945 945
 	{
946 946
 		$sql = 'UPDATE ' . $this->links_table . '
@@ -956,10 +956,10 @@  discard block
 block discarded – undo
956 956
 	}
957 957
 
958 958
 	/**
959
-	* Delete category content
960
-	*
961
-	* @return array
962
-	*/
959
+	 * Delete category content
960
+	 *
961
+	 * @return array
962
+	 */
963 963
 	private function _delete_cat_content()
964 964
 	{
965 965
 		$this->db->sql_transaction('begin');
@@ -1018,11 +1018,11 @@  discard block
 block discarded – undo
1018 1018
 	}
1019 1019
 
1020 1020
 	/**
1021
-	* Update links counter
1022
-	*
1023
-	* @param	int $cat_id	The category ID
1024
-	* @return	null
1025
-	*/
1021
+	 * Update links counter
1022
+	 *
1023
+	 * @param	int $cat_id	The category ID
1024
+	 * @return	null
1025
+	 */
1026 1026
 	private function _sync_dir_cat($cat_id)
1027 1027
 	{
1028 1028
 		$sql = 'SELECT COUNT(link_id) AS num_links
@@ -1040,12 +1040,12 @@  discard block
 block discarded – undo
1040 1040
 	}
1041 1041
 
1042 1042
 	/**
1043
-	* Update link data (note, vote, comment)
1044
-	*
1045
-	* @param	int	$start
1046
-	* @param	int	$stop
1047
-	* @return	null
1048
-	*/
1043
+	 * Update link data (note, vote, comment)
1044
+	 *
1045
+	 * @param	int	$start
1046
+	 * @param	int	$stop
1047
+	 * @return	null
1048
+	 */
1049 1049
 	private function _sync_dir_links($start, $stop)
1050 1050
 	{
1051 1051
 		$sql_ary = array(
@@ -1088,12 +1088,12 @@  discard block
 block discarded – undo
1088 1088
 	}
1089 1089
 
1090 1090
 	/**
1091
-	* Display icons drop-down list
1092
-	*
1093
-	* @param	string	$icons_path
1094
-	* @param	string	$img_selected
1095
-	* @return	string
1096
-	*/
1091
+	 * Display icons drop-down list
1092
+	 *
1093
+	 * @param	string	$icons_path
1094
+	 * @param	string	$img_selected
1095
+	 * @return	string
1096
+	 */
1097 1097
 	private function _get_dir_icon_list($icons_path, $img_selected)
1098 1098
 	{
1099 1099
 		$imglist = filelist($icons_path, '');
Please login to merge, or discard this patch.
controller/acp/main.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 	protected $u_action;
31 31
 
32 32
 	/**
33
-	* Constructor
34
-	*
35
-	* @param \phpbb\db\driver\driver_interface 		$db			Database object
36
-	* @param \phpbb\language\language				$language	Language object
37
-	* @param \phpbb\request\request					$request	Request object
38
-	* @param \phpbb\template\template				$template	Template object
39
-	*/
33
+	 * Constructor
34
+	 *
35
+	 * @param \phpbb\db\driver\driver_interface 		$db			Database object
36
+	 * @param \phpbb\language\language				$language	Language object
37
+	 * @param \phpbb\request\request					$request	Request object
38
+	 * @param \phpbb\template\template				$template	Template object
39
+	 */
40 40
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\language\language $language, \phpbb\request\request $request, \phpbb\template\template $template)
41 41
 	{
42 42
 		$this->db			= $db;
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Display confirm box
50
-	*
51
-	* @param	string $action Requested action
52
-	* @return	null
53
-	*/
49
+	 * Display confirm box
50
+	 *
51
+	 * @param	string $action Requested action
52
+	 * @return	null
53
+	 */
54 54
 	public function display_confirm($action)
55 55
 	{
56 56
 		switch ($action)
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 	}
89 89
 
90 90
 	/**
91
-	* Display phpBB Directory statistics
92
-	*
93
-	* @return null
94
-	*/
91
+	 * Display phpBB Directory statistics
92
+	 *
93
+	 * @return null
94
+	 */
95 95
 	public function display_stats()
96 96
 	{
97 97
 		// Count number of categories
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
 	}
179 179
 
180 180
 	/**
181
-	* Execute action requested
182
-	*
183
-	* @param	string $action Requested action
184
-	* @return	null
185
-	*/
181
+	 * Execute action requested
182
+	 *
183
+	 * @param	string $action Requested action
184
+	 * @return	null
185
+	 */
186 186
 	public function exec_action($action)
187 187
 	{
188 188
 		switch ($action)
@@ -257,23 +257,23 @@  discard block
 block discarded – undo
257 257
 	}
258 258
 
259 259
 	/**
260
-	* Set page url
261
-	*
262
-	* @param	string $u_action Custom form action
263
-	* @return	null
264
-	* @access	public
265
-	*/
260
+	 * Set page url
261
+	 *
262
+	 * @param	string $u_action Custom form action
263
+	 * @return	null
264
+	 * @access	public
265
+	 */
266 266
 	public function set_page_url($u_action)
267 267
 	{
268 268
 		$this->u_action = $u_action;
269 269
 	}
270 270
 
271 271
 	/**
272
-	* Get orphan banners
273
-	*
274
-	* @param	bool		$delete	True if we want to delete banners, else false
275
-	* @return	null|int	Number of orphan files, else null
276
-	*/
272
+	 * Get orphan banners
273
+	 *
274
+	 * @param	bool		$delete	True if we want to delete banners, else false
275
+	 * @return	null|int	Number of orphan files, else null
276
+	 */
277 277
 	private function _orphan_files($delete = false)
278 278
 	{
279 279
 		$banner_path = $this->get_banner_path();
Please login to merge, or discard this patch.
event/listener.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -37,16 +37,16 @@  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\controller\helper				$helper			Controller helper object
44
-	* @param \phpbb\language\language				$language		Language object
45
-	* @param \phpbb\template\template				$template		Template object
46
-	* @param string									$table_prefix 	prefix table
47
-	* @param string									$php_ext 		phpEx
48
-	* @access public
49
-	*/
40
+	 * Constructor
41
+	 *
42
+	 * @param \phpbb\db\driver\driver_interface		$db				Database object
43
+	 * @param \phpbb\controller\helper				$helper			Controller helper object
44
+	 * @param \phpbb\language\language				$language		Language object
45
+	 * @param \phpbb\template\template				$template		Template object
46
+	 * @param string									$table_prefix 	prefix table
47
+	 * @param string									$php_ext 		phpEx
48
+	 * @access public
49
+	 */
50 50
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \phpbb\language\language $language, \phpbb\template\template $template, $table_prefix, $php_ext)
51 51
 	{
52 52
 		$this->db			= $db;
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
 	}
59 59
 
60 60
 	/**
61
-	* Assign functions defined in this class to event listeners in the core
62
-	*
63
-	* @return	array
64
-	* @static
65
-	* @access	public
66
-	*/
61
+	 * Assign functions defined in this class to event listeners in the core
62
+	 *
63
+	 * @return	array
64
+	 * @static
65
+	 * @access	public
66
+	 */
67 67
 	static public function getSubscribedEvents()
68 68
 	{
69 69
 		return array(
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
 	}
77 77
 
78 78
 	/**
79
-	* Display links to Directory
80
-	*
81
-	* @return null
82
-	*/
79
+	 * Display links to Directory
80
+	 *
81
+	 * @return null
82
+	 */
83 83
 	public function add_page_header_variables()
84 84
 	{
85 85
 		$ext_theme_path		= $this->get_ext_name() . '/styles/prosilver/theme/';
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 	}
100 100
 
101 101
 	/**
102
-	* Show users as viewing Directory on Who Is Online page
103
-	*
104
-	* @param	object $event The event object
105
-	* @return	null
106
-	*/
102
+	 * Show users as viewing Directory on Who Is Online page
103
+	 *
104
+	 * @param	object $event The event object
105
+	 * @return	null
106
+	 */
107 107
 	public function add_page_viewonline($event)
108 108
 	{
109 109
 		if (strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/directory') === 0)
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
 	}
115 115
 
116 116
 	/**
117
-	* Load common language files during user setup
118
-	*
119
-	* @param	object $event The event object
120
-	* @return	null
121
-	*/
117
+	 * Load common language files during user setup
118
+	 *
119
+	 * @param	object $event The event object
120
+	 * @return	null
121
+	 */
122 122
 	public function load_language_on_setup($event)
123 123
 	{
124 124
 		$lang_set_ext = $event['lang_set_ext'];
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 	}
131 131
 
132 132
 	/**
133
-	* Add administrative permissions to manage Directory
134
-	*
135
-	* @param	object $event The event object
136
-	* @return	null
137
-	*/
133
+	 * Add administrative permissions to manage Directory
134
+	 *
135
+	 * @param	object $event The event object
136
+	 * @return	null
137
+	 */
138 138
 	public function permissions_add_directory($event)
139 139
 	{
140 140
 		$categories				= $event['categories'];
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
 	}
164 164
 
165 165
 	/**
166
-	* Update Directory tables if needed, after deleted an user
167
-	*
168
-	* @param	object $event The event object
169
-	* @return	null
170
-	*/
166
+	 * Update Directory tables if needed, after deleted an user
167
+	 *
168
+	 * @param	object $event The event object
169
+	 * @return	null
170
+	 */
171 171
 	public function update_links_with_anonymous($event)
172 172
 	{
173 173
 		$user_ids = $event['user_ids'];
Please login to merge, or discard this patch.
cron/task/core/prune_categorie.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
 	private $cat_data;
29 29
 
30 30
 	/**
31
-	* Constructor.
32
-	*
33
-	* @param \phpbb\db\driver\driver_interface 	$db				Database object
34
-	* @param \phpbb\config\config 				$config			Config object
35
-	* @param \ernadoo\phpbbdirectory\core\cron	$directory_cron	PhpBB Directory extension link object
36
-	* @param string								$php_ext		phpEx
37
-	*/
31
+	 * Constructor.
32
+	 *
33
+	 * @param \phpbb\db\driver\driver_interface 	$db				Database object
34
+	 * @param \phpbb\config\config 				$config			Config object
35
+	 * @param \ernadoo\phpbbdirectory\core\cron	$directory_cron	PhpBB Directory extension link object
36
+	 * @param string								$php_ext		phpEx
37
+	 */
38 38
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \ernadoo\phpbbdirectory\core\cron $directory_cron, $php_ext)
39 39
 	{
40 40
 		$this->db 				= $db;
@@ -44,66 +44,66 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	/**
47
-	* Manually set categorie data.
48
-	*
49
-	* @param array $cat_data Information about a category to be pruned.
50
-	*/
47
+	 * Manually set categorie data.
48
+	 *
49
+	 * @param array $cat_data Information about a category to be pruned.
50
+	 */
51 51
 	public function set_categorie_data($cat_data)
52 52
 	{
53 53
 		$this->cat_data = $cat_data;
54 54
 	}
55 55
 
56 56
 	/**
57
-	* Runs this cron task.
58
-	*
59
-	* @return null
60
-	*/
57
+	 * Runs this cron task.
58
+	 *
59
+	 * @return null
60
+	 */
61 61
 	public function run()
62 62
 	{
63 63
 		$this->dir_cron->auto_check($this->cat_data);
64 64
 	}
65 65
 
66 66
 	/**
67
-	* Returns whether this cron task can run, given current board configuration.
68
-	*
69
-	* @return bool
70
-	*/
67
+	 * Returns whether this cron task can run, given current board configuration.
68
+	 *
69
+	 * @return bool
70
+	 */
71 71
 	public function is_runnable()
72 72
 	{
73 73
 		return !$this->config['use_system_cron'] && !empty($this->cat_data);
74 74
 	}
75 75
 
76 76
 	/**
77
-	* Returns whether this cron task should run now, because enough time
78
-	* has passed since it was last run.
79
-	*
80
-	* @return bool
81
-	*/
77
+	 * Returns whether this cron task should run now, because enough time
78
+	 * has passed since it was last run.
79
+	 *
80
+	 * @return bool
81
+	 */
82 82
 	public function should_run()
83 83
 	{
84 84
 		return $this->cat_data['cat_cron_enable'] && $this->cat_data['cat_cron_next'] < time();
85 85
 	}
86 86
 
87 87
 	/**
88
-	* Returns parameters of this cron task as an array.
89
-	* The array has one key, c, whose value is id of the category to be pruned.
90
-	*
91
-	* @return array
92
-	*/
88
+	 * Returns parameters of this cron task as an array.
89
+	 * The array has one key, c, whose value is id of the category to be pruned.
90
+	 *
91
+	 * @return array
92
+	 */
93 93
 	public function get_parameters()
94 94
 	{
95 95
 		return array('c' => $this->cat_data['cat_id']);
96 96
 	}
97 97
 
98 98
 	/**
99
-	* Parses parameters found in $request, which is an instance of
100
-	* \phpbb\request\request_interface.
101
-	*
102
-	* It is expected to have a key f whose value is id of the forum to be pruned.
103
-	*
104
-	* @param	\phpbb\request\request_interface	$request Request object.
105
-	* @return	null
106
-	*/
99
+	 * Parses parameters found in $request, which is an instance of
100
+	 * \phpbb\request\request_interface.
101
+	 *
102
+	 * It is expected to have a key f whose value is id of the forum to be pruned.
103
+	 *
104
+	 * @param	\phpbb\request\request_interface	$request Request object.
105
+	 * @return	null
106
+	 */
107 107
 	public function parse_parameters(\phpbb\request\request_interface $request)
108 108
 	{
109 109
 		$this->cat_data = array();
Please login to merge, or discard this patch.
core/nestedset_category.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 class nestedset_category extends \phpbb\tree\nestedset
14 14
 {
15 15
 	/**
16
-	* Construct
17
-	*
18
-	* @param \phpbb\db\driver\driver_interface	$db					Database connection
19
-	* @param \phpbb\lock\db						$lock				Lock class used to lock the table when moving forums around
20
-	* @param string								$categorie_table	Categories table
21
-	*/
16
+	 * Construct
17
+	 *
18
+	 * @param \phpbb\db\driver\driver_interface	$db					Database connection
19
+	 * @param \phpbb\lock\db						$lock				Lock class used to lock the table when moving forums around
20
+	 * @param string								$categorie_table	Categories table
21
+	 */
22 22
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $categorie_table)
23 23
 	{
24 24
 		parent::__construct(
Please login to merge, or discard this patch.
core/categorie.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -46,18 +46,18 @@  discard block
 block discarded – undo
46 46
 	public $data = array();
47 47
 
48 48
 	/**
49
-	* Constructor
50
-	*
51
-	* @param \phpbb\db\driver\driver_interface 		$db			Database object
52
-	* @param \phpbb\config\config 					$config		Config object
53
-	* @param \phpbb\language\language				$language	Language object
54
-	* @param \phpbb\template\template 				$template	Template object
55
-	* @param \phpbb\user 							$user		User object
56
-	* @param \phpbb\controller\helper 				$helper		Controller helper object
57
-	* @param \phpbb\request\request 				$request	Request object
58
-	* @param \phpbb\auth\auth 						$auth		Auth object
59
-	* @param \phpbb\cron\manager					$cron		Cron object
60
-	*/
49
+	 * Constructor
50
+	 *
51
+	 * @param \phpbb\db\driver\driver_interface 		$db			Database object
52
+	 * @param \phpbb\config\config 					$config		Config object
53
+	 * @param \phpbb\language\language				$language	Language object
54
+	 * @param \phpbb\template\template 				$template	Template object
55
+	 * @param \phpbb\user 							$user		User object
56
+	 * @param \phpbb\controller\helper 				$helper		Controller helper object
57
+	 * @param \phpbb\request\request 				$request	Request object
58
+	 * @param \phpbb\auth\auth 						$auth		Auth object
59
+	 * @param \phpbb\cron\manager					$cron		Cron object
60
+	 */
61 61
 	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\cron\manager $cron)
62 62
 	{
63 63
 		$this->db			= $db;
@@ -72,21 +72,21 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	/**
75
-	* Function for get approval setting
76
-	* used in edit mode for test the setting of new category's link
77
-	*
78
-	* @return bool
79
-	*/
75
+	 * Function for get approval setting
76
+	 * used in edit mode for test the setting of new category's link
77
+	 *
78
+	 * @return bool
79
+	 */
80 80
 	public function need_approval()
81 81
 	{
82 82
 		return (bool) $this->data['cat_validate'];
83 83
 	}
84 84
 
85 85
 	/**
86
-	* Generate Jumpbox
87
-	*
88
-	* @return null
89
-	*/
86
+	 * Generate Jumpbox
87
+	 *
88
+	 * @return null
89
+	 */
90 90
 	public function make_cat_jumpbox()
91 91
 	{
92 92
 		$sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
 	}
140 140
 
141 141
 	/**
142
-	* Generate a list of directory's categories
143
-	*
144
-	* @param	int		$select_id		Selected category
145
-	* @param	array	$ignore_id		Array of ignored categories
146
-	* @return	string	$cat_list		html code
147
-	*/
142
+	 * Generate a list of directory's categories
143
+	 *
144
+	 * @param	int		$select_id		Selected category
145
+	 * @param	array	$ignore_id		Array of ignored categories
146
+	 * @return	string	$cat_list		html code
147
+	 */
148 148
 	public function make_cat_select($select_id = 0, $ignore_id = array())
149 149
 	{
150 150
 		$ignore_id = is_array($ignore_id) ? $ignore_id : array($ignore_id);
@@ -190,10 +190,10 @@  discard block
 block discarded – undo
190 190
 	}
191 191
 
192 192
 	/**
193
-	* Display cat or subcat
194
-	*
195
-	* @return	null
196
-	*/
193
+	 * Display cat or subcat
194
+	 *
195
+	 * @return	null
196
+	 */
197 197
 	public function display()
198 198
 	{
199 199
 		$cat_rows	= $subcats = array();
@@ -322,11 +322,11 @@  discard block
 block discarded – undo
322 322
 	}
323 323
 
324 324
 	/**
325
-	* Get informations about a cat or subcat
326
-	*
327
-	* @param	int	$cat_id		The category ID
328
-	* @return	null|false
329
-	*/
325
+	 * Get informations about a cat or subcat
326
+	 *
327
+	 * @param	int	$cat_id		The category ID
328
+	 * @return	null|false
329
+	 */
330 330
 	public function get($cat_id = 0)
331 331
 	{
332 332
 		if ($cat_id)
@@ -354,11 +354,11 @@  discard block
 block discarded – undo
354 354
 	}
355 355
 
356 356
 	/**
357
-	* Create category navigation links for given category, create parent
358
-	* list if currently null, assign basic category info to template
359
-	*
360
-	* @param	array	$dir_cat_data
361
-	*/
357
+	 * Create category navigation links for given category, create parent
358
+	 * list if currently null, assign basic category info to template
359
+	 *
360
+	 * @param	array	$dir_cat_data
361
+	 */
362 362
 	public function generate_dir_nav(&$dir_cat_data)
363 363
 	{
364 364
 		global $phpbb_container;
@@ -395,12 +395,12 @@  discard block
 block discarded – undo
395 395
 	}
396 396
 
397 397
 	/**
398
-	* Return good key language
399
-	*
400
-	* @param	bool	$validate	True if approbation needed before publication
401
-	* @return	string				Information about approval, depends on user auth level
402
-	* @throws	\phpbb\exception\runtime_exception
403
-	*/
398
+	 * Return good key language
399
+	 *
400
+	 * @param	bool	$validate	True if approbation needed before publication
401
+	 * @return	string				Information about approval, depends on user auth level
402
+	 * @throws	\phpbb\exception\runtime_exception
403
+	 */
404 404
 	public function dir_submit_type($validate)
405 405
 	{
406 406
 		if ($validate && !$this->auth->acl_get('a_'))
@@ -424,15 +424,15 @@  discard block
 block discarded – undo
424 424
 	}
425 425
 
426 426
 	/**
427
-	* Category watching common code
428
-	*
429
-	* @param	string		$mode			Watch or unwatch a category
430
-	* @param	array		$s_watching		An empty array, passed by reference
431
-	* @param	int			$user_id		The user ID
432
-	* @param	int			$cat_id			The category ID
433
-	* @param	string		$notify_status	User is watching the category?
434
-	* @return	null|string
435
-	*/
427
+	 * Category watching common code
428
+	 *
429
+	 * @param	string		$mode			Watch or unwatch a category
430
+	 * @param	array		$s_watching		An empty array, passed by reference
431
+	 * @param	int			$user_id		The user ID
432
+	 * @param	int			$cat_id			The category ID
433
+	 * @param	string		$notify_status	User is watching the category?
434
+	 * @return	null|string
435
+	 */
436 436
 	public function watch_categorie($mode, &$s_watching, $user_id, $cat_id, $notify_status)
437 437
 	{
438 438
 		// Is user watching this thread?
@@ -518,11 +518,11 @@  discard block
 block discarded – undo
518 518
 	}
519 519
 
520 520
 	/**
521
-	* Return Category name
522
-	*
523
-	* @param	int		$cat_id		The category ID
524
-	* @return	string				The category name
525
-	*/
521
+	 * Return Category name
522
+	 *
523
+	 * @param	int		$cat_id		The category ID
524
+	 * @return	string				The category name
525
+	 */
526 526
 	static public function getname($cat_id)
527 527
 	{
528 528
 		global $db, $phpbb_container;
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
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
39 39
 	protected $php_ext;
40 40
 
41 41
 	/**
42
-	* Constructor
43
-	*
44
-	* @param \phpbb\db\driver\driver_interface 	$db					Database object
45
-	* @param \phpbb\config\config 				$config				Config object
46
-	* @param \phpbb\log\log						$phpbb_log			Log object
47
-	* @param \phpbb\user 						$user				User object
48
-	* @param \phpbb\notification\manager		$notification		Notification object
49
-	* @param \ernadoo\phpbbdirectory\core\link	$link				PhpBB Directory extension link object
50
-	* @param string         					$root_path			phpBB root path
51
-	* @param string         					$php_ext			phpEx
52
-	*/
42
+	 * Constructor
43
+	 *
44
+	 * @param \phpbb\db\driver\driver_interface 	$db					Database object
45
+	 * @param \phpbb\config\config 				$config				Config object
46
+	 * @param \phpbb\log\log						$phpbb_log			Log object
47
+	 * @param \phpbb\user 						$user				User object
48
+	 * @param \phpbb\notification\manager		$notification		Notification object
49
+	 * @param \ernadoo\phpbbdirectory\core\link	$link				PhpBB Directory extension link object
50
+	 * @param string         					$root_path			phpBB root path
51
+	 * @param string         					$php_ext			phpEx
52
+	 */
53 53
 	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)
54 54
 	{
55 55
 		$this->db				= $db;
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 	}
64 64
 
65 65
 	/**
66
-	* Method called by cron task.
67
-	*
68
-	* @param	array	$cat_data	Information about category, from db
69
-	* @return	null
70
-	*/
66
+	 * Method called by cron task.
67
+	 *
68
+	 * @param	array	$cat_data	Information about category, from db
69
+	 * @return	null
70
+	 */
71 71
 	public function auto_check($cat_data)
72 72
 	{
73 73
 		$sql = 'SELECT cat_name
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
 	}
117 117
 
118 118
 	/**
119
-	* Check, for website with backlink specified, if backlink is always here.
120
-	* After $nb_check verification, website is deleted, otherwise, a notification is send to poster
121
-	*
122
-	* @param	int		$cat_id		The category ID
123
-	* @param	int		$nb_check	Number of check before demete a website
124
-	* @param	int		$next_prune	Date of next auto check
125
-	* @return	null
126
-	*/
119
+	 * Check, for website with backlink specified, if backlink is always here.
120
+	 * After $nb_check verification, website is deleted, otherwise, a notification is send to poster
121
+	 *
122
+	 * @param	int		$cat_id		The category ID
123
+	 * @param	int		$nb_check	Number of check before demete a website
124
+	 * @param	int		$next_prune	Date of next auto check
125
+	 * @return	null
126
+	 */
127 127
 	private function _check($cat_id, $nb_check, $next_prune)
128 128
 	{
129 129
 		$del_array = $update_array = array();
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
 	}
172 172
 
173 173
 	/**
174
-	* Update website verification number after a missing backlink, and send notificaton
175
-	*
176
-	* @param	array	$u_array	Information about website
177
-	* @param	int		$next_prune	Date of next auto check
178
-	* @return	null
179
-	*/
174
+	 * Update website verification number after a missing backlink, and send notificaton
175
+	 *
176
+	 * @param	array	$u_array	Information about website
177
+	 * @param	int		$next_prune	Date of next auto check
178
+	 * @return	null
179
+	 */
180 180
 	private function _update_check($u_array, $next_prune)
181 181
 	{
182 182
 		if (!class_exists('messenger'))
Please login to merge, or discard this patch.