@@ -19,13 +19,17 @@ discard block |
||
19 | 19 | public function build( array $args = [] ) |
20 | 20 | { |
21 | 21 | $this->args = $this->normalize( $args ); |
22 | - if( $this->args['total'] < 2 )return; |
|
22 | + if( $this->args['total'] < 2 ) { |
|
23 | + return; |
|
24 | + } |
|
23 | 25 | $links = $this->buildLinksForDeprecatedThemes(); |
24 | 26 | if( empty( $links )) { |
25 | 27 | $links = $this->buildLinks(); |
26 | 28 | } |
27 | 29 | $links = apply_filters( 'site-reviews/reviews/navigation_links', $links, $this->args ); |
28 | - if( empty( $links ))return; |
|
30 | + if( empty( $links )) { |
|
31 | + return; |
|
32 | + } |
|
29 | 33 | return $this->buildTemplate( $links ); |
30 | 34 | } |
31 | 35 | |
@@ -55,7 +59,9 @@ discard block |
||
55 | 59 | protected function buildLinksForDeprecatedThemes() |
56 | 60 | { |
57 | 61 | $theme = wp_get_theme()->get( 'TextDomain' ); |
58 | - if( !in_array( $theme, ['twentyten','twentyeleven','twentytwelve','twentythirteen'] ))return; |
|
62 | + if( !in_array( $theme, ['twentyten','twentyeleven','twentytwelve','twentythirteen'] )) { |
|
63 | + return; |
|
64 | + } |
|
59 | 65 | $links = ''; |
60 | 66 | if( $this->args['paged'] > 1 ) { |
61 | 67 | $links.= sprintf( '<div class="nav-previous"><a href="%s"><span class="meta-nav">←</span> %s</a></div>', |