Completed
Push — 3.2.x ( fad44e...f56b46 )
by Erwan
01:58
created
controller/categories.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -50,20 +50,20 @@  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\core\categorie				$categorie	PhpBB Directory extension categorie object
65
-	* @param \ernadoo\phpbbdirectory\core\link					$link		PhpBB Directory extension link object
66
-	*/
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\core\categorie				$categorie	PhpBB Directory extension categorie object
65
+	 * @param \ernadoo\phpbbdirectory\core\link					$link		PhpBB Directory extension link object
66
+	 */
67 67
 	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\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link)
68 68
 	{
69 69
 		$this->db			= $db;
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	/**
89
-	* Base controller to be accessed with the URL /directory
90
-	*
91
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
92
-	*/
89
+	 * Base controller to be accessed with the URL /directory
90
+	 *
91
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
92
+	 */
93 93
 	public function base()
94 94
 	{
95 95
 		$this->categorie->display();
@@ -99,19 +99,19 @@  discard block
 block discarded – undo
99 99
 	}
100 100
 
101 101
 	/**
102
-	* Legacy view controller for display a category
103
-	* Used with /directory/categorie/{cat_id}
104
-	* @deprecated 2.0.0 No longer used since dynamic routing.
105
-	*
106
-	* @param	int		$cat_id		The category ID
107
-	* @param	int		$page		Page number taken from the URL
108
-	* @param	int		$sort_days	Specifies the maximum amount of days a link may be old
109
-	* @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v
110
-	* @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
111
-	* @param	string	$mode		watch|unwatch
112
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
113
-	* @throws	\phpbb\exception\http_exception
114
-	*/
102
+	 * Legacy view controller for display a category
103
+	 * Used with /directory/categorie/{cat_id}
104
+	 * @deprecated 2.0.0 No longer used since dynamic routing.
105
+	 *
106
+	 * @param	int		$cat_id		The category ID
107
+	 * @param	int		$page		Page number taken from the URL
108
+	 * @param	int		$sort_days	Specifies the maximum amount of days a link may be old
109
+	 * @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v
110
+	 * @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
111
+	 * @param	string	$mode		watch|unwatch
112
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
113
+	 * @throws	\phpbb\exception\http_exception
114
+	 */
115 115
 	public function view($cat_id, $page, $sort_days, $sort_key, $sort_dir, $mode = '')
116 116
 	{
117 117
 		if (false === $this->categorie->get($cat_id))
@@ -125,17 +125,17 @@  discard block
 block discarded – undo
125 125
 	}
126 126
 
127 127
 	/**
128
-	* View controller for display a category
129
-	*
130
-	* @param	int		$cat_id		The category ID
131
-	* @param	int		$page		Page number taken from the URL
132
-	* @param	int		$sort_days	Specifies the maximum amount of days a link may be old
133
-	* @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p
134
-	* @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
135
-	* @param	string	$mode		watch|unwatch
136
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
137
-	* @throws	\phpbb\exception\http_exception
138
-	*/
128
+	 * View controller for display a category
129
+	 *
130
+	 * @param	int		$cat_id		The category ID
131
+	 * @param	int		$page		Page number taken from the URL
132
+	 * @param	int		$sort_days	Specifies the maximum amount of days a link may be old
133
+	 * @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p
134
+	 * @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
135
+	 * @param	string	$mode		watch|unwatch
136
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
137
+	 * @throws	\phpbb\exception\http_exception
138
+	 */
139 139
 	public function view_route($cat_id, $page = 1, $sort_days = 0, $sort_key = '', $sort_dir = '', $mode = '')
140 140
 	{
141 141
 		if (false === $this->categorie->get($cat_id))
@@ -390,11 +390,11 @@  discard block
 block discarded – undo
390 390
 	}
391 391
 
392 392
 	/**
393
-	* date controller for return a date
394
-	*
395
-	* @return	\phpbb\json_response	A Json Response
396
-	* @throws	\phpbb\exception\http_exception
397
-	*/
393
+	 * date controller for return a date
394
+	 *
395
+	 * @return	\phpbb\json_response	A Json Response
396
+	 * @throws	\phpbb\exception\http_exception
397
+	 */
398 398
 	public function return_date()
399 399
 	{
400 400
 		if (!$this->request->is_ajax())
@@ -411,11 +411,11 @@  discard block
 block discarded – undo
411 411
 	}
412 412
 
413 413
 	/**
414
-	* slug controller for return a slugify category name
415
-	*
416
-	* @return	\phpbb\json_response	A Json Response
417
-	* @throws	\phpbb\exception\http_exception
418
-	*/
414
+	 * slug controller for return a slugify category name
415
+	 *
416
+	 * @return	\phpbb\json_response	A Json Response
417
+	 * @throws	\phpbb\exception\http_exception
418
+	 */
419 419
 	public function return_slug()
420 420
 	{
421 421
 		if (!$this->request->is_ajax())
Please login to merge, or discard this patch.