Passed
Push — master ( ecb0f6...008868 )
by Paul
04:35
created
plugin/Handlers/CreateReview.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
 		$review = glsr( ReviewManager::class )->create( $command );
18 18
 		if( !$review ) {
19 19
 			glsr( Session::class )->set( $command->form_id.'errors', [] );
20
-			glsr( Session::class )->set( $command->form_id.'message', __( 'Your review could not be submitted and the error has been logged. Please notify the site admin.', 'site-reviews' ));
20
+			glsr( Session::class )->set( $command->form_id.'message', __( 'Your review could not be submitted and the error has been logged. Please notify the site admin.', 'site-reviews' ) );
21 21
 			return;
22 22
 		}
23
-		glsr( Session::class )->set( $command->form_id.'message', __( 'Your review has been submitted!', 'site-reviews' ));
23
+		glsr( Session::class )->set( $command->form_id.'message', __( 'Your review has been submitted!', 'site-reviews' ) );
24 24
 		glsr( Notification::class )->send( $review );
25 25
 		if( $command->ajax_request )return;
26
-		wp_safe_redirect( $this->getReferer( $command ));
26
+		wp_safe_redirect( $this->getReferer( $command ) );
27 27
 		exit;
28 28
 	}
29 29
 
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	protected function getReferer( Command $command )
34 34
 	{
35
-		$referer = trim( strval( get_post_meta( $command->post_id, 'redirect_to', true )));
36
-		if( empty( $referer )) {
35
+		$referer = trim( strval( get_post_meta( $command->post_id, 'redirect_to', true ) ) );
36
+		if( empty($referer) ) {
37 37
 			$referer = $command->referer;
38 38
 		}
39
-		if( empty( $referer )) {
39
+		if( empty($referer) ) {
40 40
 			glsr_log()->warning( 'The form referer ($_SERVER[REQUEST_URI]) was empty.' )->info( $command );
41 41
 			$referer = home_url();
42 42
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
 		}
23 23
 		glsr( Session::class )->set( $command->form_id.'message', __( 'Your review has been submitted!', 'site-reviews' ));
24 24
 		glsr( Notification::class )->send( $review );
25
-		if( $command->ajax_request )return;
25
+		if( $command->ajax_request ) {
26
+			return;
27
+		}
26 28
 		wp_safe_redirect( $this->getReferer( $command ));
27 29
 		exit;
28 30
 	}
Please login to merge, or discard this patch.
plugin/Controllers/AdminController.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	public function enqueueAssets()
27 27
 	{
28
-		$command = new EnqueueAdminAssets([
28
+		$command = new EnqueueAdminAssets( [
29 29
 			'pointers' => [[
30 30
 				'content' => __( 'You can pin exceptional reviews so that they are always shown first.', 'site-reviews' ),
31 31
 				'id' => 'glsr-pointer-pinned',
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 				'target' => '#misc-pub-pinned',
38 38
 				'title' => __( 'Pin Your Reviews', 'site-reviews' ),
39 39
 			]],
40
-		]);
40
+		] );
41 41
 		$this->execute( $command );
42 42
 	}
43 43
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	{
50 50
 		$links['settings'] = glsr( Builder::class )->a( __( 'Settings', 'site-reviews' ), [
51 51
 			'href' => admin_url( 'edit.php?post_type='.Application::POST_TYPE.'&page=settings' ),
52
-		]);
52
+		] );
53 53
 		return $links;
54 54
 	}
55 55
 
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
 	public function filterDashboardGlanceItems( array $items )
61 61
 	{
62 62
 		$postCount = wp_count_posts( Application::POST_TYPE );
63
-		if( empty( $postCount->publish )) {
63
+		if( empty($postCount->publish) ) {
64 64
 			return $items;
65 65
 		}
66 66
 		$text = _n( '%s Review', '%s Reviews', $postCount->publish, 'site-reviews' );
67
-		$text = sprintf( $text, number_format_i18n( $postCount->publish ));
67
+		$text = sprintf( $text, number_format_i18n( $postCount->publish ) );
68 68
 		$items[] = current_user_can( get_post_type_object( Application::POST_TYPE )->cap->edit_posts )
69 69
 			? glsr( Builder::class )->a( $text, [
70 70
 				'class' => 'glsr-review-count',
71 71
 				'href' => 'edit.php?post_type='.Application::POST_TYPE,
72
-			])
72
+			] )
73 73
 			: glsr( Builder::class )->span( $text, [
74 74
 				'class' => 'glsr-review-count',
75
-			]);
75
+			] );
76 76
 		return $items;
77 77
 	}
78 78
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	public function filterTinymcePlugins( array $plugins )
84 84
 	{
85 85
 		if( user_can_richedit()
86
-			&& ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ))) {
86
+			&& (current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' )) ) {
87 87
 			$plugins['glsr_shortcode'] = glsr()->url( 'assets/scripts/mce-plugin.js' );
88 88
 		}
89 89
 		return $plugins;
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	public function registerShortcodeButtons()
97 97
 	{
98
-		$command = new RegisterShortcodeButtons([
98
+		$command = new RegisterShortcodeButtons( [
99 99
 			'site_reviews' => esc_html__( 'Recent Reviews', 'site-reviews' ),
100 100
 			'site_reviews_form' => esc_html__( 'Submit a Review', 'site-reviews' ),
101 101
 			'site_reviews_summary' => esc_html__( 'Summary of Reviews', 'site-reviews' ),
102
-		]);
102
+		] );
103 103
 		$this->execute( $command );
104 104
 	}
105 105
 
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function renderReviewEditor( WP_Post $post )
111 111
 	{
112
-		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post ))return;
112
+		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post ) )return;
113 113
 		glsr()->render( 'partials/editor/review', [
114 114
 			'post' => $post,
115
-		]);
115
+		] );
116 116
 	}
117 117
 
118 118
 	/**
@@ -121,13 +121,13 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	public function renderReviewNotice( WP_Post $post )
123 123
 	{
124
-		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post ))return;
125
-		glsr( Notice::class )->addWarning( __( 'This review is read-only.', 'site-reviews' ));
124
+		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post ) )return;
125
+		glsr( Notice::class )->addWarning( __( 'This review is read-only.', 'site-reviews' ) );
126 126
 		glsr( Template::class )->render( 'partials/editor/notice', [
127 127
 			'context' => [
128 128
 				'notices' => glsr( Notice::class )->get(),
129 129
 			],
130
-		]);
130
+		] );
131 131
 	}
132 132
 
133 133
 	/**
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 		foreach( glsr()->mceShortcodes as $shortcode => $values ) {
142 142
 			$shortcodes[$shortcode] = $values;
143 143
 		}
144
-		if( empty( $shortcodes ))return;
144
+		if( empty($shortcodes) )return;
145 145
 		glsr()->render( 'partials/editor/tinymce', [
146 146
 			'shortcodes' => $shortcodes,
147
-		]);
147
+		] );
148 148
 	}
149 149
 
150 150
 	/**
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	public function routerClearConsole()
154 154
 	{
155 155
 		glsr( Console::class )->clear();
156
-		glsr( Notice::class )->addSuccess( __( 'Console cleared.', 'site-reviews' ));
156
+		glsr( Notice::class )->addSuccess( __( 'Console cleared.', 'site-reviews' ) );
157 157
 	}
158 158
 
159 159
 	/**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 */
162 162
 	public function routerFetchConsole()
163 163
 	{
164
-		glsr( Notice::class )->addSuccess( __( 'Console reloaded.', 'site-reviews' ));
164
+		glsr( Notice::class )->addSuccess( __( 'Console reloaded.', 'site-reviews' ) );
165 165
 	}
166 166
 
167 167
 	/**
@@ -170,19 +170,19 @@  discard block
 block discarded – undo
170 170
 	public function routerCountReviews()
171 171
 	{
172 172
 		$countManager = glsr( CountsManager::class );
173
-		$terms = get_terms([
173
+		$terms = get_terms( [
174 174
 			'hide_empty' => true,
175 175
 			'taxonomy' => Application::TAXONOMY,
176
-		]);
176
+		] );
177 177
 		foreach( $terms as $term ) {
178
-			$countManager->setTermCounts( $term->term_id, $countManager->buildTermCounts( $term->term_id ));
178
+			$countManager->setTermCounts( $term->term_id, $countManager->buildTermCounts( $term->term_id ) );
179 179
 		}
180 180
 		$postIds = glsr( SqlQueries::class )->getReviewsMeta( 'assigned_to' );
181 181
 		foreach( $postIds as $postId ) {
182
-			$countManager->setPostCounts( $postId, $countManager->buildPostCounts( $postId ));
182
+			$countManager->setPostCounts( $postId, $countManager->buildPostCounts( $postId ) );
183 183
 		}
184 184
 		$countManager->setCounts( $countManager->buildCounts() );
185
-		glsr( Notice::class )->clear()->addSuccess( __( 'Recalculated rating counts.', 'site-reviews' ));
185
+		glsr( Notice::class )->clear()->addSuccess( __( 'Recalculated rating counts.', 'site-reviews' ) );
186 186
 	}
187 187
 
188 188
 	/**
@@ -216,17 +216,17 @@  discard block
 block discarded – undo
216 216
 	{
217 217
 		$file = $_FILES['import-file'];
218 218
 		if( $file['error'] !== UPLOAD_ERR_OK ) {
219
-			return glsr( Notice::class )->addError( $this->getUploadError( $file['error'] ));
219
+			return glsr( Notice::class )->addError( $this->getUploadError( $file['error'] ) );
220 220
 		}
221
-		if( $file['type'] !== 'application/json' || !glsr( Helper::class )->endsWith( '.json', $file['name'] )) {
222
-			return glsr( Notice::class )->addError( __( 'Please use a valid Site Reviews settings file.', 'site-reviews' ));
221
+		if( $file['type'] !== 'application/json' || !glsr( Helper::class )->endsWith( '.json', $file['name'] ) ) {
222
+			return glsr( Notice::class )->addError( __( 'Please use a valid Site Reviews settings file.', 'site-reviews' ) );
223 223
 		}
224 224
 		$settings = json_decode( file_get_contents( $file['tmp_name'] ), true );
225
-		if( empty( $settings )) {
226
-			return glsr( Notice::class )->addWarning( __( 'There were no settings found to import.', 'site-reviews' ));
225
+		if( empty($settings) ) {
226
+			return glsr( Notice::class )->addWarning( __( 'There were no settings found to import.', 'site-reviews' ) );
227 227
 		}
228
-		glsr( OptionManager::class )->set( glsr( OptionManager::class )->normalize( $settings ));
229
-		glsr( Notice::class )->addSuccess( __( 'Settings imported.', 'site-reviews' ));
228
+		glsr( OptionManager::class )->set( glsr( OptionManager::class )->normalize( $settings ) );
229
+		glsr( Notice::class )->addSuccess( __( 'Settings imported.', 'site-reviews' ) );
230 230
 	}
231 231
 
232 232
 	/**
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 			UPLOAD_ERR_CANT_WRITE => __( 'Failed to write file to disk.', 'site-reviews' ),
245 245
 			UPLOAD_ERR_EXTENSION => __( 'A PHP extension stopped the file upload.', 'site-reviews' ),
246 246
 		];
247
-		return !isset( $errors[$errorCode] )
247
+		return !isset($errors[$errorCode])
248 248
 			? __( 'Unknown upload error.', 'site-reviews' )
249 249
 			: $errors[$errorCode];
250 250
 	}
Please login to merge, or discard this patch.
plugin/Database/ReviewManager.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
 			'post_type' => Application::POST_TYPE,
36 36
 		];
37 37
 		$postId = wp_insert_post( $postValues, true );
38
-		if( is_wp_error( $postId )) {
38
+		if( is_wp_error( $postId ) ) {
39 39
 			glsr_log()->error( $postId->get_error_message() )->debug( $postValues );
40 40
 			return false;
41 41
 		}
42 42
 		$this->setTerms( $postId, $command->category );
43
-		$review = $this->single( get_post( $postId ));
43
+		$review = $this->single( get_post( $postId ) );
44 44
 		do_action( 'site-reviews/review/created', $review, $command );
45 45
 		return $review;
46 46
 	}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 */
52 52
 	public function delete( $metaReviewId )
53 53
 	{
54
-		if( $postId = $this->getPostId( $metaReviewId )) {
54
+		if( $postId = $this->getPostId( $metaReviewId ) ) {
55 55
 			wp_delete_post( $postId, true );
56 56
 		}
57 57
 	}
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 		$paged = glsr( QueryBuilder::class )->getPaged(
74 74
 			wp_validate_boolean( $args['pagination'] )
75 75
 		);
76
-		$reviews = new WP_Query([
76
+		$reviews = new WP_Query( [
77 77
 			'meta_key' => 'pinned',
78 78
 			'meta_query' => $metaQuery,
79 79
 			'offset' => $args['offset'],
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			'post_type' => Application::POST_TYPE,
87 87
 			'posts_per_page' => $args['count'],
88 88
 			'tax_query' => $taxQuery,
89
-		]);
89
+		] );
90 90
 		return (object)[
91 91
 			'results' => array_map( [$this, 'single'], $reviews->posts ),
92 92
 			'max_num_pages' => $reviews->max_num_pages,
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		$termIds = glsr( Helper::class )->convertStringToArray( $commaSeparatedTermIds );
113 113
 		foreach( $termIds as $termId ) {
114 114
 			$term = get_term( $termId, Application::TAXONOMY );
115
-			if( !isset( $term->term_id ))continue;
115
+			if( !isset($term->term_id) )continue;
116 116
 			$terms[] = $term->term_id;
117 117
 		}
118 118
 		return $terms;
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
 	{
127 127
 		if( get_post_field( 'post_type', $postId ) != Application::POST_TYPE )return;
128 128
 		delete_post_meta( $postId, '_edit_last' );
129
-		$result = wp_update_post([
129
+		$result = wp_update_post( [
130 130
 			'ID' => $postId,
131 131
 			'post_content' => get_post_meta( $postId, 'content', true ),
132 132
 			'post_date' => get_post_meta( $postId, 'date', true ),
133 133
 			'post_title' => get_post_meta( $postId, 'title', true ),
134
-		]);
135
-		if( is_wp_error( $result )) {
134
+		] );
135
+		if( is_wp_error( $result ) ) {
136 136
 			glsr_log()->error( $result->get_error_message() );
137 137
 		}
138 138
 	}
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	protected function getNewPostStatus( array $review, $isBlacklisted )
155 155
 	{
156 156
 		$requireApprovalOption = glsr( OptionManager::class )->get( 'settings.general.require.approval' );
157
-		return $review['review_type'] == 'local' && ( $requireApprovalOption == 'yes' || $isBlacklisted )
157
+		return $review['review_type'] == 'local' && ($requireApprovalOption == 'yes' || $isBlacklisted)
158 158
 			? 'pending'
159 159
 			: 'publish';
160 160
 	}
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
 	protected function setTerms( $postId, $termIds )
168 168
 	{
169 169
 		$terms = $this->normalizeTerms( $termIds );
170
-		if( empty( $terms ))return;
170
+		if( empty($terms) )return;
171 171
 		$result = wp_set_object_terms( $postId, $terms, Application::TAXONOMY );
172
-		if( is_wp_error( $result )) {
172
+		if( is_wp_error( $result ) ) {
173 173
 			glsr_log()->error( $result->get_error_message() );
174 174
 		}
175 175
 	}
Please login to merge, or discard this patch.
plugin/Modules/Html/Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	{
29 29
 		$fields = [];
30 30
 		foreach( glsr()->config( 'forms/'.$id ) as $name => $field ) {
31
-			$fields[] = new Field( wp_parse_args( $field, ['name' => $name] ));
31
+			$fields[] = new Field( wp_parse_args( $field, ['name' => $name] ) );
32 32
 		}
33 33
 		return $fields;
34 34
 	}
Please login to merge, or discard this patch.
deprecated.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 // Database/ReviewManager.php
6 6
 add_action( 'site-reviews/review/created', function( $review, $command ) {
7
-	if( has_action( 'site-reviews/local/review/create' )) {
7
+	if( has_action( 'site-reviews/local/review/create' ) ) {
8 8
 		glsr_log()->notice( 'The "site-reviews/local/review/create" hook has been deprecated. Please use the "site-reviews/create/review" hook instead.' );
9 9
 		do_action( 'site-reviews/local/review/create', (array)get_post( $review->ID ), (array)$review, $review->ID );
10 10
 	}
@@ -12,18 +12,18 @@  discard block
 block discarded – undo
12 12
 
13 13
 // Handlers/CreateReview.php
14 14
 add_action( 'site-reviews/review/submitted', function( $review ) {
15
-	if( has_action( 'site-reviews/local/review/submitted' )) {
15
+	if( has_action( 'site-reviews/local/review/submitted' ) ) {
16 16
 		glsr_log()->notice( 'The "site-reviews/local/review/submitted" hook has been deprecated. Please use the "site-reviews/review/submitted" hook instead.' );
17 17
 		do_action( 'site-reviews/local/review/submitted', null, $review );
18 18
 	}
19
-	if( has_filter( 'site-reviews/local/review/submitted/message' )) {
19
+	if( has_filter( 'site-reviews/local/review/submitted/message' ) ) {
20 20
 		glsr_log()->notice( 'The "site-reviews/local/review/submitted/message" hook has been deprecated.' );
21 21
 	}
22 22
 });
23 23
 
24 24
 // Database/ReviewManager.php
25 25
 add_filter( 'site-reviews/create/review-values', function( $values, $command ) {
26
-	if( has_filter( 'site-reviews/local/review' )) {
26
+	if( has_filter( 'site-reviews/local/review' ) ) {
27 27
 		glsr_log()->notice( 'The "site-reviews/local/review" hook has been deprecated. Please use the "site-reviews/create/review-values" hook instead.' );
28 28
 		return apply_filters( 'site-reviews/local/review', $values, $command );
29 29
 	}
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 // Handlers/EnqueuePublicAssets.php
34 34
 add_filter( 'site-reviews/enqueue/public/localize', function( $variables ) {
35
-	if( has_filter( 'site-reviews/enqueue/localize' )) {
35
+	if( has_filter( 'site-reviews/enqueue/localize' ) ) {
36 36
 		glsr_log()->notice( 'The "site-reviews/enqueue/localize" hook has been deprecated. Please use the "site-reviews/enqueue/public/localize" hook instead.' );
37 37
 		return apply_filters( 'site-reviews/enqueue/localize', $variables );
38 38
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 // Modules/Rating.php
43 43
 add_filter( 'site-reviews/rating/average', function( $average ) {
44
-	if( has_filter( 'site-reviews/average/rating' )) {
44
+	if( has_filter( 'site-reviews/average/rating' ) ) {
45 45
 		glsr_log()->notice( 'The "site-reviews/average/rating" hook has been deprecated. Please use the "site-reviews/rating/average" hook instead.' );
46 46
 	}
47 47
 	return $average;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 // Modules/Rating.php
51 51
 add_filter( 'site-reviews/rating/ranking', function( $ranking ) {
52
-	if( has_filter( 'site-reviews/bayesian/ranking' )) {
52
+	if( has_filter( 'site-reviews/bayesian/ranking' ) ) {
53 53
 		glsr_log()->notice( 'The "site-reviews/bayesian/ranking" hook has been deprecated. Please use the "site-reviews/rating/ranking" hook instead.' );
54 54
 	}
55 55
 	return $ranking;
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
 
58 58
 // Modules/Html/Partials/SiteReviews.php
59 59
 add_filter( 'site-reviews/review/build/after', function( $renderedFields ) {
60
-	if( has_filter( 'site-reviews/rendered/field' )) {
60
+	if( has_filter( 'site-reviews/rendered/field' ) ) {
61 61
 		glsr_log()->notice( 'The "site-reviews/rendered/field" hook has been deprecated. Please use the "site-reviews/review/build/after" hook instead.' );
62 62
 	}
63
-	if( has_filter( 'site-reviews/reviews/review/text' )) {
63
+	if( has_filter( 'site-reviews/reviews/review/text' ) ) {
64 64
 		glsr_log()->notice( 'The "site-reviews/reviews/review/text" hook has been deprecated. Please use the "site-reviews/review/build/after" hook instead.' );
65 65
 	}
66
-	if( has_filter( 'site-reviews/reviews/review/title' )) {
66
+	if( has_filter( 'site-reviews/reviews/review/title' ) ) {
67 67
 		glsr_log()->notice( 'The "site-reviews/reviews/review/title" hook has been deprecated. Please use the "site-reviews/review/build/after" hook instead.' );
68 68
 	}
69 69
 	return $renderedFields;
@@ -71,19 +71,19 @@  discard block
 block discarded – undo
71 71
 
72 72
 // Modules/Html/Partials/SiteReviews.php
73 73
 add_filter( 'site-reviews/review/build/before', function( $review ) {
74
-	if( has_filter( 'site-reviews/rendered/review' )) {
74
+	if( has_filter( 'site-reviews/rendered/review' ) ) {
75 75
 		glsr_log()->notice( 'The "site-reviews/rendered/review" hook has been deprecated. Please either use a custom "review.php" template (refer to the documentation), or use the "site-reviews/review/build/after" hook instead.' );
76 76
 	}
77
-	if( has_filter( 'site-reviews/rendered/review/meta/order' )) {
77
+	if( has_filter( 'site-reviews/rendered/review/meta/order' ) ) {
78 78
 		glsr_log()->notice( 'The "site-reviews/rendered/review/meta/order" hook has been deprecated. Please use a custom "review.php" template instead (refer to the documentation).' );
79 79
 	}
80
-	if( has_filter( 'site-reviews/rendered/review/order' )) {
80
+	if( has_filter( 'site-reviews/rendered/review/order' ) ) {
81 81
 		glsr_log()->notice( 'The "site-reviews/rendered/review/order" hook has been deprecated. Please use a custom "review.php" template instead (refer to the documentation).' );
82 82
 	}
83
-	if( has_filter( 'site-reviews/rendered/review-form/login-register' )) {
83
+	if( has_filter( 'site-reviews/rendered/review-form/login-register' ) ) {
84 84
 		glsr_log()->notice( 'The "site-reviews/rendered/review-form/login-register" hook has been deprecated. Please use a custom "login-register.php" template instead (refer to the documentation).' );
85 85
 	}
86
-	if( has_filter( 'site-reviews/reviews/navigation_links' )) {
86
+	if( has_filter( 'site-reviews/reviews/navigation_links' ) ) {
87 87
 		glsr_log()->notice( 'The "site-reviews/reviews/navigation_links" hook has been deprecated. Please use a custom "pagination.php" template instead (refer to the documentation).' );
88 88
 	}
89 89
 	return $review;
Please login to merge, or discard this patch.