@@ -33,13 +33,13 @@ |
||
| 33 | 33 | protected $data = array(); |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Construct |
|
| 37 | - * |
|
| 38 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 39 | - * @param string $items_table Table name |
|
| 40 | - * @param string $pk Primary key |
|
| 41 | - * @param string $sql_where Column restriction |
|
| 42 | - */ |
|
| 36 | + * Construct |
|
| 37 | + * |
|
| 38 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 39 | + * @param string $items_table Table name |
|
| 40 | + * @param string $pk Primary key |
|
| 41 | + * @param string $sql_where Column restriction |
|
| 42 | + */ |
|
| 43 | 43 | public function __construct(\phpbb\db\driver\driver_interface $db, $items_table, $pk, $sql_where = '') |
| 44 | 44 | { |
| 45 | 45 | $this->db = $db; |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * {@inheritdoc} |
|
| 60 | - */ |
|
| 59 | + * {@inheritdoc} |
|
| 60 | + */ |
|
| 61 | 61 | public function to_array() |
| 62 | 62 | { |
| 63 | 63 | $attributes = $this->get_attributes(); |
@@ -74,8 +74,8 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * {@inheritdoc} |
|
| 78 | - */ |
|
| 77 | + * {@inheritdoc} |
|
| 78 | + */ |
|
| 79 | 79 | public function to_db() |
| 80 | 80 | { |
| 81 | 81 | $this->check_required(); |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 | class nestedset extends builder |
| 15 | 15 | { |
| 16 | 16 | /** |
| 17 | - * Construct |
|
| 18 | - * |
|
| 19 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 20 | - * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
| 21 | - * @param string $table_name Table name |
|
| 22 | - */ |
|
| 17 | + * Construct |
|
| 18 | + * |
|
| 19 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 20 | + * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
| 21 | + * @param string $table_name Table name |
|
| 22 | + */ |
|
| 23 | 23 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name) |
| 24 | 24 | { |
| 25 | 25 | parent::__construct( |
@@ -13,12 +13,12 @@ |
||
| 13 | 13 | |
| 14 | 14 | class Feed extends SimplePie |
| 15 | 15 | { |
| 16 | - public function __construct() |
|
| 17 | - { |
|
| 18 | - parent::__construct(); |
|
| 16 | + public function __construct() |
|
| 17 | + { |
|
| 18 | + parent::__construct(); |
|
| 19 | 19 | |
| 20 | 20 | $this->set_item_class('blitze\sitemaker\services\feeds\Item'); |
| 21 | - } |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Magic method handler |
@@ -129,7 +129,8 @@ |
||
| 129 | 129 | $feed->set_cache_location($this->cache_dir); |
| 130 | 130 | $feed->set_cache_duration($cache * 3600); |
| 131 | 131 | |
| 132 | - if ($items_per_feed) { |
|
| 132 | + if ($items_per_feed) |
|
| 133 | + { |
|
| 133 | 134 | $feed->set_item_limit($items_per_feed); |
| 134 | 135 | } |
| 135 | 136 | |