Completed
Push — 3.2.x ( 2e2541...0c5ab2 )
by Erwan
02:58
created
core/categorie.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@  discard block
 block discarded – undo
47 47
 	public $data = array();
48 48
 
49 49
 	/**
50
-	* Constructor
51
-	*
52
-	* @param \phpbb\db\driver\driver_interface 		$db			Database object
53
-	* @param \phpbb\config\config 					$config		Config object
54
-	* @param \phpbb\language\language				$language	Language object
55
-	* @param \phpbb\template\template 				$template	Template object
56
-	* @param \phpbb\user 							$user		User object
57
-	* @param \phpbb\controller\helper 				$helper		Controller helper object
58
-	* @param \phpbb\request\request 				$request	Request object
59
-	* @param \phpbb\auth\auth 						$auth		Auth object
60
-	* @param \phpbb\cron\manager					$cron		Cron object
61
-	* @param \ernadoo\phpbbdirectory\core\helper	$dir_helper	PhpBB Directory extension helper object
62
-	*/
50
+	 * Constructor
51
+	 *
52
+	 * @param \phpbb\db\driver\driver_interface 		$db			Database object
53
+	 * @param \phpbb\config\config 					$config		Config object
54
+	 * @param \phpbb\language\language				$language	Language object
55
+	 * @param \phpbb\template\template 				$template	Template object
56
+	 * @param \phpbb\user 							$user		User object
57
+	 * @param \phpbb\controller\helper 				$helper		Controller helper object
58
+	 * @param \phpbb\request\request 				$request	Request object
59
+	 * @param \phpbb\auth\auth 						$auth		Auth object
60
+	 * @param \phpbb\cron\manager					$cron		Cron object
61
+	 * @param \ernadoo\phpbbdirectory\core\helper	$dir_helper	PhpBB Directory extension helper object
62
+	 */
63 63
 	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, \ernadoo\phpbbdirectory\core\helper $dir_helper)
64 64
 	{
65 65
 		$this->db			= $db;
@@ -75,21 +75,21 @@  discard block
 block discarded – undo
75 75
 	}
76 76
 
77 77
 	/**
78
-	* Function for get approval setting
79
-	* used in edit mode for test the setting of new category's link
80
-	*
81
-	* @return bool
82
-	*/
78
+	 * Function for get approval setting
79
+	 * used in edit mode for test the setting of new category's link
80
+	 *
81
+	 * @return bool
82
+	 */
83 83
 	public function need_approval()
84 84
 	{
85 85
 		return (bool) $this->data['cat_validate'];
86 86
 	}
87 87
 
88 88
 	/**
89
-	* Generate Jumpbox
90
-	*
91
-	* @return null
92
-	*/
89
+	 * Generate Jumpbox
90
+	 *
91
+	 * @return null
92
+	 */
93 93
 	public function make_cat_jumpbox()
94 94
 	{
95 95
 		$sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
 	}
143 143
 
144 144
 	/**
145
-	* Generate a list of directory's categories
146
-	*
147
-	* @param	int		$select_id		Selected category
148
-	* @param	array	$ignore_id		Array of ignored categories
149
-	* @return	string	$cat_list		html code
150
-	*/
145
+	 * Generate a list of directory's categories
146
+	 *
147
+	 * @param	int		$select_id		Selected category
148
+	 * @param	array	$ignore_id		Array of ignored categories
149
+	 * @return	string	$cat_list		html code
150
+	 */
151 151
 	public function make_cat_select($select_id = 0, $ignore_id = array())
152 152
 	{
153 153
 		$ignore_id = is_array($ignore_id) ? $ignore_id : array($ignore_id);
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
 	}
194 194
 
195 195
 	/**
196
-	* Display cat or subcat
197
-	*
198
-	* @return	null
199
-	*/
196
+	 * Display cat or subcat
197
+	 *
198
+	 * @return	null
199
+	 */
200 200
 	public function display()
201 201
 	{
202 202
 		$cat_rows	= $subcats = array();
@@ -325,11 +325,11 @@  discard block
 block discarded – undo
325 325
 	}
326 326
 
327 327
 	/**
328
-	* Get informations about a cat or subcat
329
-	*
330
-	* @param	int	$cat_id		The category ID
331
-	* @return	null|false
332
-	*/
328
+	 * Get informations about a cat or subcat
329
+	 *
330
+	 * @param	int	$cat_id		The category ID
331
+	 * @return	null|false
332
+	 */
333 333
 	public function get($cat_id = 0)
334 334
 	{
335 335
 		if ($cat_id)
@@ -357,11 +357,11 @@  discard block
 block discarded – undo
357 357
 	}
358 358
 
359 359
 	/**
360
-	* Create category navigation links for given category, create parent
361
-	* list if currently null, assign basic category info to template
362
-	*
363
-	* @param	array	$dir_cat_data
364
-	*/
360
+	 * Create category navigation links for given category, create parent
361
+	 * list if currently null, assign basic category info to template
362
+	 *
363
+	 * @param	array	$dir_cat_data
364
+	 */
365 365
 	public function generate_dir_nav(&$dir_cat_data)
366 366
 	{
367 367
 		global $phpbb_container;
@@ -398,12 +398,12 @@  discard block
 block discarded – undo
398 398
 	}
399 399
 
400 400
 	/**
401
-	* Return good key language
402
-	*
403
-	* @param	bool	$validate	True if approbation needed before publication
404
-	* @return	string				Information about approval, depends on user auth level
405
-	* @throws	\phpbb\exception\runtime_exception
406
-	*/
401
+	 * Return good key language
402
+	 *
403
+	 * @param	bool	$validate	True if approbation needed before publication
404
+	 * @return	string				Information about approval, depends on user auth level
405
+	 * @throws	\phpbb\exception\runtime_exception
406
+	 */
407 407
 	public function dir_submit_type($validate)
408 408
 	{
409 409
 		if ($validate && !$this->auth->acl_get('a_'))
@@ -427,15 +427,15 @@  discard block
 block discarded – undo
427 427
 	}
428 428
 
429 429
 	/**
430
-	* Category watching common code
431
-	*
432
-	* @param	string		$mode			Watch or unwatch a category
433
-	* @param	array		$s_watching		An empty array, passed by reference
434
-	* @param	int			$user_id		The user ID
435
-	* @param	int			$cat_id			The category ID
436
-	* @param	string		$notify_status	User is watching the category?
437
-	* @return	null|string
438
-	*/
430
+	 * Category watching common code
431
+	 *
432
+	 * @param	string		$mode			Watch or unwatch a category
433
+	 * @param	array		$s_watching		An empty array, passed by reference
434
+	 * @param	int			$user_id		The user ID
435
+	 * @param	int			$cat_id			The category ID
436
+	 * @param	string		$notify_status	User is watching the category?
437
+	 * @return	null|string
438
+	 */
439 439
 	public function watch_categorie($mode, &$s_watching, $user_id, $cat_id, $notify_status)
440 440
 	{
441 441
 		// Is user watching this thread?
@@ -521,11 +521,11 @@  discard block
 block discarded – undo
521 521
 	}
522 522
 
523 523
 	/**
524
-	* Return Category name
525
-	*
526
-	* @param	int		$cat_id		The category ID
527
-	* @return	string				The category name
528
-	*/
524
+	 * Return Category name
525
+	 *
526
+	 * @param	int		$cat_id		The category ID
527
+	 * @return	string				The category name
528
+	 */
529 529
 	static public function getname($cat_id)
530 530
 	{
531 531
 		global $db;
Please login to merge, or discard this patch.