@@ -27,12 +27,12 @@ discard block |
||
| 27 | 27 | protected $pages_table; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * Constructor |
|
| 31 | - * |
|
| 32 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 33 | - * @param string $pages_table Table name |
|
| 34 | - * @access public |
|
| 35 | - */ |
|
| 30 | + * Constructor |
|
| 31 | + * |
|
| 32 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 33 | + * @param string $pages_table Table name |
|
| 34 | + * @access public |
|
| 35 | + */ |
|
| 36 | 36 | public function __construct(driver_interface $db, $pages_table) |
| 37 | 37 | { |
| 38 | 38 | $this->db = $db; |
@@ -40,15 +40,15 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * Loads routes defined in directory_cats database. |
|
| 44 | - * |
|
| 45 | - * @param string $resource Resource (not used, but required by parent interface) |
|
| 46 | - * @param string|null $type The resource type |
|
| 47 | - * |
|
| 48 | - * @return RouteCollection A RouteCollection instance |
|
| 49 | - * |
|
| 50 | - * @api |
|
| 51 | - */ |
|
| 43 | + * Loads routes defined in directory_cats database. |
|
| 44 | + * |
|
| 45 | + * @param string $resource Resource (not used, but required by parent interface) |
|
| 46 | + * @param string|null $type The resource type |
|
| 47 | + * |
|
| 48 | + * @return RouteCollection A RouteCollection instance |
|
| 49 | + * |
|
| 50 | + * @api |
|
| 51 | + */ |
|
| 52 | 52 | public function load($resource, $type = null) |
| 53 | 53 | { |
| 54 | 54 | $collection = new RouteCollection(); |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * {@inheritdoc} |
|
| 90 | - * |
|
| 91 | - * @api |
|
| 92 | - */ |
|
| 89 | + * {@inheritdoc} |
|
| 90 | + * |
|
| 91 | + * @api |
|
| 92 | + */ |
|
| 93 | 93 | public function supports($resource, $type = null) |
| 94 | 94 | { |
| 95 | 95 | return $type === 'ernadoo_phpbbdirectory_route'; |
@@ -76,9 +76,9 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $defaults['cat_id'] = $row['cat_id']; |
| 78 | 78 | |
| 79 | - $route = new Route('directory/' . $row['cat_route'] . '/{page}/{sort_days}/{sort_key}/{sort_dir}'); |
|
| 79 | + $route = new Route('directory/'.$row['cat_route'].'/{page}/{sort_days}/{sort_key}/{sort_dir}'); |
|
| 80 | 80 | $route->setDefaults($defaults)->setRequirements($requirements); |
| 81 | - $collection->add('ernadoo_phpbbdirectory_dynamic_route_' . $row['cat_id'], $route); |
|
| 81 | + $collection->add('ernadoo_phpbbdirectory_dynamic_route_'.$row['cat_id'], $route); |
|
| 82 | 82 | } |
| 83 | 83 | $this->db->sql_freeresult(); |
| 84 | 84 | |