Passed
Push — master ( 472df8...8d8bb0 )
by Chris
04:24
created
templates/archive-activity.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,9 +32,12 @@
 block discarded – undo
32 32
 
33 33
 				</div>
34 34
 
35
-			<?php else : ?>
35
+			<?php else {
36
+	: ?>
36 37
 
37
-				<?php get_template_part( 'partials/content', 'none' ); ?>
38
+				<?php get_template_part( 'partials/content', 'none' );
39
+}
40
+?>
38 41
 
39 42
 			<?php endif; ?>
40 43
 
Please login to merge, or discard this patch.
classes/class-lsx-activities.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		public function post_types_slugs_filter($post_types){
145 145
 			if(is_array($post_types)){
146 146
 				$post_types = array_merge($post_types,$this->post_type_slugs);
147
-			}else{
147
+			} else{
148 148
 				$post_types = $this->post_type_slugs;
149 149
 			}
150 150
 			return $post_types;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 		public function post_types_filter($post_types){
157 157
 			if(is_array($post_types) && is_array($this->post_types)){
158 158
 				$post_types = array_merge($post_types,$this->post_types);
159
-			}elseif(is_array($this->post_types)){
159
+			} elseif(is_array($this->post_types)){
160 160
 				$post_types = $this->post_types;
161 161
 			}
162 162
 			return $post_types;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 		public function post_types_singular_filter($post_types_singular){
169 169
 			if(is_array($post_types_singular) && is_array($this->post_types_singular)){
170 170
 				$post_types_singular = array_merge($post_types_singular,$this->post_types_singular);
171
-			}elseif(is_array($this->post_types_singular)){
171
+			} elseif(is_array($this->post_types_singular)){
172 172
 				$post_types_singular = $this->post_types_singular;
173 173
 			}
174 174
 			return $post_types_singular;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 		public function taxonomies_filter($taxonomies){
181 181
 			if(is_array($taxonomies) && is_array($this->taxonomies)){
182 182
 				$taxonomies = array_merge($taxonomies,$this->taxonomies);
183
-			}elseif(is_array($this->taxonomies)){
183
+			} elseif(is_array($this->taxonomies)){
184 184
 				$taxonomies = $this->taxonomies;
185 185
 			}
186 186
 			return $taxonomies;
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 		public function taxonomies_plural_filter($taxonomies_plural){
193 193
 			if(is_array($taxonomies_plural) && is_array($this->taxonomies_plural)){
194 194
 				$taxonomies_plural = array_merge($taxonomies_plural,$this->taxonomies_plural);
195
-			}elseif(is_array($this->taxonomies_plural)){
195
+			} elseif(is_array($this->taxonomies_plural)){
196 196
 				$taxonomies_plural = $this->taxonomies_plural;
197 197
 			}
198 198
 			return $taxonomies_plural;
Please login to merge, or discard this patch.
classes/class-template-redirects.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 		$name = (string) $name;
135 135
 		if ( '' !== $name ){
136 136
 			$template = "{$slug}-{$name}.php";
137
-		}else{
137
+		} else{
138 138
 			$template = "{$slug}.php";
139 139
 		}
140 140
 		$original_name = $template;
@@ -142,15 +142,15 @@  discard block
 block discarded – undo
142 142
 
143 143
 		if ( '' == locate_template( array( $template ) ) && file_exists( $path.'templates/'.$template) ) {
144 144
 			$template = $path.'templates/'.$template;
145
-		}elseif(file_exists( get_stylesheet_directory().'/'.$template)){
145
+		} elseif(file_exists( get_stylesheet_directory().'/'.$template)){
146 146
 			$template = get_stylesheet_directory().'/'.$template;
147
-		}else{
147
+		} else{
148 148
 			$template = false;
149 149
 		}
150 150
 		
151 151
 		if(false !== $template){
152 152
 			load_template( $template, false );
153
-		}else {
153
+		} else {
154 154
 			echo wp_kses_post('<p>No '.$original_name.' can be found.</p>');
155 155
 		}
156 156
 	}
Please login to merge, or discard this patch.