Completed
Push — 3.2.x ( 61fc4e...1eaa2c )
by Erwan
07:59
created
controller/categories.php 1 patch
Indentation   +48 added lines, -48 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,15 +99,15 @@  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
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
109
-	* @throws	\phpbb\exception\http_exception
110
-	*/
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
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
109
+	 * @throws	\phpbb\exception\http_exception
110
+	 */
111 111
 	public function view($cat_id, $page)
112 112
 	{
113 113
 		if (false === $this->categorie->get($cat_id))
@@ -121,17 +121,17 @@  discard block
 block discarded – undo
121 121
 	}
122 122
 
123 123
 	/**
124
-	* View controller for display a category
125
-	*
126
-	* @param	int		$cat_id		The category ID
127
-	* @param	int		$page		Page number taken from the URL
128
-	* @param	int		$sort_days	Specifies the maximum amount of days a link may be old
129
-	* @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p
130
-	* @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
131
-	* @param	string	$mode		watch|unwatch
132
-	* @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
133
-	* @throws	\phpbb\exception\http_exception
134
-	*/
124
+	 * View controller for display a category
125
+	 *
126
+	 * @param	int		$cat_id		The category ID
127
+	 * @param	int		$page		Page number taken from the URL
128
+	 * @param	int		$sort_days	Specifies the maximum amount of days a link may be old
129
+	 * @param	string	$sort_key	is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p
130
+	 * @param	string	$sort_dir	is either a or d representing ASC and DESC (ascending|descending)
131
+	 * @param	string	$mode		watch|unwatch
132
+	 * @return	\Symfony\Component\HttpFoundation\Response	A Symfony Response object
133
+	 * @throws	\phpbb\exception\http_exception
134
+	 */
135 135
 	public function view_route($cat_id, $page = 1, $sort_days = 0, $sort_key = '', $sort_dir = '', $mode = '')
136 136
 	{
137 137
 		if (false === $this->categorie->get($cat_id))
@@ -386,11 +386,11 @@  discard block
 block discarded – undo
386 386
 	}
387 387
 
388 388
 	/**
389
-	* date controller for return a date
390
-	*
391
-	* @return	\phpbb\json_response	A Json Response
392
-	* @throws	\phpbb\exception\http_exception
393
-	*/
389
+	 * date controller for return a date
390
+	 *
391
+	 * @return	\phpbb\json_response	A Json Response
392
+	 * @throws	\phpbb\exception\http_exception
393
+	 */
394 394
 	public function return_date()
395 395
 	{
396 396
 		if (!$this->request->is_ajax())
@@ -407,11 +407,11 @@  discard block
 block discarded – undo
407 407
 	}
408 408
 
409 409
 	/**
410
-	* slug controller for return a slugify category name
411
-	*
412
-	* @return	\phpbb\json_response	A Json Response
413
-	* @throws	\phpbb\exception\http_exception
414
-	*/
410
+	 * slug controller for return a slugify category name
411
+	 *
412
+	 * @return	\phpbb\json_response	A Json Response
413
+	 * @throws	\phpbb\exception\http_exception
414
+	 */
415 415
 	public function return_slug()
416 416
 	{
417 417
 		if (!$this->request->is_ajax())
Please login to merge, or discard this patch.