Completed
Pull Request — master (#72)
by Jakub
22:06 queued 13:15
created
migrations/v10x/m6_hide_for_group.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 m6_hide_for_group extends \phpbb\db\migration\container_aware_migration
14 14
 {
15 15
 	/**
16
-	* {@inheritDoc}
17
-	*/
16
+	 * {@inheritDoc}
17
+	 */
18 18
 	public function effectively_installed()
19 19
 	{
20 20
 		$config_text = $this->container->get('config_text');
@@ -23,18 +23,18 @@  discard block
 block discarded – undo
23 23
 	}
24 24
 
25 25
 	/**
26
-	* {@inheritDoc}
27
-	*/
26
+	 * {@inheritDoc}
27
+	 */
28 28
 	public static function depends_on()
29 29
 	{
30 30
 		return array('\phpbb\ads\migrations\v10x\m2_acp_module');
31 31
 	}
32 32
 
33 33
 	/**
34
-	* Add the ACP settings module
35
-	*
36
-	* @return array Array of data update instructions
37
-	*/
34
+	 * Add the ACP settings module
35
+	 *
36
+	 * @return array Array of data update instructions
37
+	 */
38 38
 	public function update_data()
39 39
 	{
40 40
 		return array(
Please login to merge, or discard this patch.
migrations/v10x/m9_views_clicks.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,27 +13,27 @@  discard block
 block discarded – undo
13 13
 class m9_views_clicks 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
 		return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_views');
21 21
 	}
22 22
 
23 23
 	/**
24
-	* {@inheritDoc}
25
-	*/
24
+	 * {@inheritDoc}
25
+	 */
26 26
 	public static function depends_on()
27 27
 	{
28 28
 		return array('\phpbb\ads\migrations\v10x\m1_initial_schema');
29 29
 	}
30 30
 
31 31
 	/**
32
-	* Add the views and clicks to ads table
33
-	*
34
-	* @return array Array of table schema
35
-	* @access public
36
-	*/
32
+	 * Add the views and clicks to ads table
33
+	 *
34
+	 * @return array Array of table schema
35
+	 * @access public
36
+	 */
37 37
 	public function update_schema()
38 38
 	{
39 39
 		return array(
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
 	}
50 50
 
51 51
 	/**
52
-	* Drop the views and clicks from ads table
53
-	*
54
-	* @return array Array of table schema
55
-	* @access public
56
-	*/
52
+	 * Drop the views and clicks from ads table
53
+	 *
54
+	 * @return array Array of table schema
55
+	 * @access public
56
+	 */
57 57
 	public function revert_schema()
58 58
 	{
59 59
 		return array(
Please login to merge, or discard this patch.
migrations/v10x/m5_end_date.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,27 +13,27 @@  discard block
 block discarded – undo
13 13
 class m5_end_date 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
 		return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_end_date');
21 21
 	}
22 22
 
23 23
 	/**
24
-	* {@inheritDoc}
25
-	*/
24
+	 * {@inheritDoc}
25
+	 */
26 26
 	public static function depends_on()
27 27
 	{
28 28
 		return array('\phpbb\ads\migrations\v10x\m1_initial_schema');
29 29
 	}
30 30
 
31 31
 	/**
32
-	* Add the end date to ads table
33
-	*
34
-	* @return array Array of table schema
35
-	* @access public
36
-	*/
32
+	 * Add the end date to ads table
33
+	 *
34
+	 * @return array Array of table schema
35
+	 * @access public
36
+	 */
37 37
 	public function update_schema()
38 38
 	{
39 39
 		return array(
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Drop the end date from ads table
50
-	*
51
-	* @return array Array of table schema
52
-	* @access public
53
-	*/
49
+	 * Drop the end date from ads table
50
+	 *
51
+	 * @return array Array of table schema
52
+	 * @access public
53
+	 */
54 54
 	public function revert_schema()
55 55
 	{
56 56
 		return array(
Please login to merge, or discard this patch.
migrations/v10x/m3_template_locations_schema.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,30 +13,30 @@  discard block
 block discarded – undo
13 13
 class m3_template_locations_schema 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
 		return $this->db_tools->sql_table_exists($this->table_prefix . 'ad_locations');
21 21
 	}
22 22
 
23 23
 	/**
24
-	* {@inheritDoc}
25
-	*/
24
+	 * {@inheritDoc}
25
+	 */
26 26
 	public static function depends_on()
27 27
 	{
28 28
 		return array('\phpbb\ads\migrations\v10x\m1_initial_schema');
29 29
 	}
30 30
 
31 31
 	/**
32
-	* Add the ad_locations table schema to the database:
33
-	*	ad_locations:
34
-	*		ad_id
35
-	*		location_id
36
-	*
37
-	* @return array Array of table schema
38
-	* @access public
39
-	*/
32
+	 * Add the ad_locations table schema to the database:
33
+	 *	ad_locations:
34
+	 *		ad_id
35
+	 *		location_id
36
+	 *
37
+	 * @return array Array of table schema
38
+	 * @access public
39
+	 */
40 40
 	public function update_schema()
41 41
 	{
42 42
 		return array(
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
 	}
54 54
 
55 55
 	/**
56
-	* Drop the ad_locations table schema from the database
57
-	*
58
-	* @return array Array of table schema
59
-	* @access public
60
-	*/
56
+	 * Drop the ad_locations table schema from the database
57
+	 *
58
+	 * @return array Array of table schema
59
+	 * @access public
60
+	 */
61 61
 	public function revert_schema()
62 62
 	{
63 63
 		return array(
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
 	public static function depends_on()
30 30
 	{
31 31
 		return array('\phpbb\db\migration\data\v31x\v316');
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.
controller/click_controller.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
 	}
35 35
 
36 36
 	/**
37
-	* Increment clicks for an ad
38
-	*
39
-	* @param	int	$ad_id	Advertisement ID
40
-	* @throws	\phpbb\exception\http_exception
41
-	* @return	\Symfony\Component\HttpFoundation\JsonResponse	A Symfony JsonResponse object
42
-	*/
37
+	 * Increment clicks for an ad
38
+	 *
39
+	 * @param	int	$ad_id	Advertisement ID
40
+	 * @throws	\phpbb\exception\http_exception
41
+	 * @return	\Symfony\Component\HttpFoundation\JsonResponse	A Symfony JsonResponse object
42
+	 */
43 43
 	public function increment_clicks($ad_id)
44 44
 	{
45 45
 		if (!empty($ad_id) && $this->request->is_ajax())
Please login to merge, or discard this patch.
location/type/base.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 abstract class base implements type_interface
17 17
 {
18 18
 	/**
19
-	* User object
20
-	* @var \phpbb\user
21
-	*/
19
+	 * User object
20
+	 * @var \phpbb\user
21
+	 */
22 22
 	protected $user;
23 23
 
24 24
 	/**
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
 	protected $language;
29 29
 
30 30
 	/**
31
-	* Construct a template location object
32
-	*
33
-	* @param	\phpbb\user					$user		User object
34
-	* @param	\phpbb\language\language	$language	Language object
35
-	*/
31
+	 * Construct a template location object
32
+	 *
33
+	 * @param	\phpbb\user					$user		User object
34
+	 * @param	\phpbb\language\language	$language	Language object
35
+	 */
36 36
 	public function __construct(\phpbb\user $user, \phpbb\language\language $language)
37 37
 	{
38 38
 		$this->user = $user;
@@ -40,24 +40,24 @@  discard block
 block discarded – undo
40 40
 	}
41 41
 
42 42
 	/**
43
-	* {@inheritDoc}
44
-	*/
43
+	 * {@inheritDoc}
44
+	 */
45 45
 	public function get_name()
46 46
 	{
47 47
 		return $this->language->lang('AD_' . strtoupper($this->get_id()));
48 48
 	}
49 49
 
50 50
 	/**
51
-	* {@inheritDoc}
52
-	*/
51
+	 * {@inheritDoc}
52
+	 */
53 53
 	public function get_desc()
54 54
 	{
55 55
 		return $this->language->lang('AD_' . strtoupper($this->get_id()) . '_DESC');
56 56
 	}
57 57
 
58 58
 	/**
59
-	* {@inheritDoc}
60
-	*/
59
+	 * {@inheritDoc}
60
+	 */
61 61
 	public function will_display()
62 62
 	{
63 63
 		return true;
Please login to merge, or discard this patch.