Skip to content

Commit 60bbf3d

Browse files
committed
PHPCS fixes
1 parent 75f7bc0 commit 60bbf3d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

plugins/osi-features/inc/classes/class-rewrite.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class Rewrite {
2828
* Construct method.
2929
*/
3030
protected function __construct() {
31-
3231
$this->setup_hooks();
33-
3432
}
3533

3634
/**
@@ -40,12 +38,17 @@ protected function __construct() {
4038
*/
4139
protected function setup_hooks() {
4240
add_filter( 'query_vars', array( $this, 'add_query_vars' ), 10 );
43-
add_action( 'init', [ $this, 'add_custom_rewrite_rules' ], 20 );
41+
add_action( 'init', array( $this, 'add_custom_rewrite_rules' ), 20 );
4442
}
4543

44+
/**
45+
* Add custom query vars.
46+
*
47+
* @param array $vars Public query vars.
48+
* @return array
49+
*/
4650
public function add_query_vars( $vars ) {
4751
$vars[] = 'categories';
48-
4952
return $vars;
5053
}
5154

@@ -61,7 +64,7 @@ public function add_custom_rewrite_rules() {
6164
'index.php?taxonomy=' . Taxonomy_Steward::SLUG . '&term=$matches[1]',
6265
'top'
6366
);
64-
67+
6568
$base = Post_Type_Board_Member::get_instance()->get_slug();
6669
add_rewrite_rule(
6770
'^' . $base . '/status/([^/]+)/?$',
@@ -89,8 +92,8 @@ public function add_custom_rewrite_rules() {
8992
'index.php?taxonomy=' . Taxonomy_Publication::SLUG . '&term=$matches[1]',
9093
'top'
9194
);
92-
93-
9495
}
9596

9697
}
98+
99+
}

0 commit comments

Comments
 (0)