Completed
Pull Request — master (#2)
by Jakub
04:10
created
controller/admin_controller.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 	protected $u_action;
37 37
 
38 38
 	/**
39
-	* Constructor
40
-	*
41
-	* @param \phpbb\db\driver\driver_interface	$db			DB driver interface
42
-	* @param \phpbb\template\template			$template	Template object
43
-	* @param \phpbb\user						$user		User object
44
-	* @param \phpbb\request\request				$request	Request object
45
-	* @param string								$ads_table	Ads table
46
-	* @access public
47
-	*/
39
+	 * Constructor
40
+	 *
41
+	 * @param \phpbb\db\driver\driver_interface	$db			DB driver interface
42
+	 * @param \phpbb\template\template			$template	Template object
43
+	 * @param \phpbb\user						$user		User object
44
+	 * @param \phpbb\request\request				$request	Request object
45
+	 * @param string								$ads_table	Ads table
46
+	 * @access public
47
+	 */
48 48
 	public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\template\template $template, \phpbb\user $user, \phpbb\request\request $request, $ads_table)
49 49
 	{
50 50
 		$this->db = $db;
@@ -55,45 +55,45 @@  discard block
 block discarded – undo
55 55
 	}
56 56
 
57 57
 	/**
58
-	* Set page url
59
-	*
60
-	* @param string $u_action Custom form action
61
-	* @return void
62
-	* @access public
63
-	*/
58
+	 * Set page url
59
+	 *
60
+	 * @param string $u_action Custom form action
61
+	 * @return void
62
+	 * @access public
63
+	 */
64 64
 	public function set_page_url($u_action)
65 65
 	{
66 66
 		$this->u_action = $u_action;
67 67
 	}
68 68
 
69 69
 	/**
70
-	* Get geric ACP page title for Ads module
71
-	*
72
-	* @return string	Language string for Ads ACP module
73
-	* @access public
74
-	*/
70
+	 * Get geric ACP page title for Ads module
71
+	 *
72
+	 * @return string	Language string for Ads ACP module
73
+	 * @access public
74
+	 */
75 75
 	public function get_page_title()
76 76
 	{
77 77
 		return $this->user->lang('ACP_ADMANAGEMENT_TITLE');
78 78
 	}
79 79
 
80 80
 	/**
81
-	* Get action
82
-	*
83
-	* @return string	Language string for Ads ACP module
84
-	* @access public
85
-	*/
81
+	 * Get action
82
+	 *
83
+	 * @return string	Language string for Ads ACP module
84
+	 * @access public
85
+	 */
86 86
 	public function get_action()
87 87
 	{
88 88
 		return $this->request->variable('action', '');
89 89
 	}
90 90
 
91 91
 	/**
92
-	* Display the ads
93
-	*
94
-	* @return void
95
-	* @access public
96
-	*/
92
+	 * Display the ads
93
+	 *
94
+	 * @return void
95
+	 * @access public
96
+	 */
97 97
 	public function list_ads()
98 98
 	{
99 99
 		$sql = 'SELECT ad_id, ad_name, ad_enabled
Please login to merge, or discard this patch.
migrations/v10x/m1_initial_schema.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@  discard block
 block discarded – undo
16 16
 class m1_initial_schema extends \phpbb\db\migration\migration
17 17
 {
18 18
 	/**
19
-	* {@inheritDoc}
20
-	*/
19
+	 * {@inheritDoc}
20
+	 */
21 21
 	public function effectively_installed()
22 22
 	{
23 23
 		return $this->db_tools->sql_table_exists($this->table_prefix . 'ads');
24 24
 	}
25 25
 
26 26
 	/**
27
-	* {@inheritDoc}
28
-	*/
27
+	 * {@inheritDoc}
28
+	 */
29 29
 	static public function depends_on()
30 30
 	{
31 31
 		return array('\phpbb\db\migration\data\v310\gold');
32 32
 	}
33 33
 
34 34
 	/**
35
-	* Add the ads table schema to the database:
36
-	*	ads:
37
-	*		ad_id
38
-	*		ad_name
39
-	*		ad_note
40
-	*		ad_code
41
-	*		ad_enabled
42
-	*
43
-	* @return array Array of table schema
44
-	* @access public
45
-	*/
35
+	 * Add the ads table schema to the database:
36
+	 *	ads:
37
+	 *		ad_id
38
+	 *		ad_name
39
+	 *		ad_note
40
+	 *		ad_code
41
+	 *		ad_enabled
42
+	 *
43
+	 * @return array Array of table schema
44
+	 * @access public
45
+	 */
46 46
 	public function update_schema()
47 47
 	{
48 48
 		return array(
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 	}
63 63
 
64 64
 	/**
65
-	* Drop the ads table schema from the database
66
-	*
67
-	* @return array Array of table schema
68
-	* @access public
69
-	*/
65
+	 * Drop the ads table schema from the database
66
+	 *
67
+	 * @return array Array of table schema
68
+	 * @access public
69
+	 */
70 70
 	public function revert_schema()
71 71
 	{
72 72
 		return array(
Please login to merge, or discard this patch.
migrations/v10x/m2_acp_module.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 class m2_acp_module extends \phpbb\db\migration\migration
14 14
 {
15 15
 	/**
16
-	* {@inheritDoc}
17
-	*/
16
+	 * {@inheritDoc}
17
+	 */
18 18
 	public function effectively_installed()
19 19
 	{
20 20
 		$sql = 'SELECT module_id
@@ -29,18 +29,18 @@  discard block
 block discarded – undo
29 29
 	}
30 30
 
31 31
 	/**
32
-	* {@inheritDoc}
33
-	*/
32
+	 * {@inheritDoc}
33
+	 */
34 34
 	static public function depends_on()
35 35
 	{
36 36
 		return array('\phpbb\admanagement\migrations\v10x\m1_initial_schema');
37 37
 	}
38 38
 
39 39
 	/**
40
-	* Add the ACP module
41
-	*
42
-	* @return array Array of data update instructions
43
-	*/
40
+	 * Add the ACP module
41
+	 *
42
+	 * @return array Array of data update instructions
43
+	 */
44 44
 	public function update_data()
45 45
 	{
46 46
 		return array(
Please login to merge, or discard this patch.