Passed
Push — master ( fa669d...d9aa8d )
by Ashley
03:15
created
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.
classes/class-to-reviews.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 		public function post_types_slugs_filter($post_types){
127 127
 			if(is_array($post_types)){
128 128
 				$post_types = array_merge($post_types,$this->post_type_slugs);
129
-			}else{
129
+			} else{
130 130
 				$post_types = $this->post_type_slugs;
131 131
 			}
132 132
 			return $post_types;
Please login to merge, or discard this patch.
templates/archive-review.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.