Passed
Push — master ( dfcc60...d308ca )
by Paul
03:56
created
plugin/Defaults/DefaultsAbstract.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
 	 */
14 14
 	public function __call( $name, array $args = [] )
15 15
 	{
16
-		if( !method_exists( $this, $name ))return;
16
+		if( !method_exists( $this, $name )) {
17
+			return;
18
+		}
17 19
 		$defaults = call_user_func_array( [$this, $name], $args );
18 20
 		$hookName = (new ReflectionClass( $this ))->getShortName();
19 21
 		$hookName = str_replace( 'Defaults', '', $hookName );
Please login to merge, or discard this patch.
plugin/Controllers/AdminController.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,9 @@  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 )) {
113
+			return;
114
+		}
113 115
 		glsr()->render( 'partials/editor/review', [
114 116
 			'post' => $post,
115 117
 		]);
@@ -121,7 +123,9 @@  discard block
 block discarded – undo
121 123
 	 */
122 124
 	public function renderReviewNotice( WP_Post $post )
123 125
 	{
124
-		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post ))return;
126
+		if( !$this->isReviewPostType( $post ) || $this->isReviewEditable( $post )) {
127
+			return;
128
+		}
125 129
 		glsr( Notice::class )->addWarning( __( 'This review is read-only.', 'site-reviews' ));
126 130
 		glsr( Html::class )->renderTemplate( 'partials/editor/notice', [
127 131
 			'context' => [
@@ -136,12 +140,16 @@  discard block
 block discarded – undo
136 140
 	 */
137 141
 	public function renderTinymceButton()
138 142
 	{
139
-		if( glsr_current_screen()->base != 'post' )return;
143
+		if( glsr_current_screen()->base != 'post' ) {
144
+			return;
145
+		}
140 146
 		$shortcodes = [];
141 147
 		foreach( glsr()->mceShortcodes as $shortcode => $values ) {
142 148
 			$shortcodes[$shortcode] = $values;
143 149
 		}
144
-		if( empty( $shortcodes ))return;
150
+		if( empty( $shortcodes )) {
151
+			return;
152
+		}
145 153
 		glsr()->render( 'partials/editor/tinymce', [
146 154
 			'shortcodes' => $shortcodes,
147 155
 		]);
Please login to merge, or discard this patch.