Completed
Push — master ( dde21d...97dd3e )
by Andrew
02:33
created
app/classy/classy-hierarchy.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,9 +55,11 @@  discard block
 block discarded – undo
55 55
 
56 56
 		elseif ( is_paged() ) : return 'paged';
57 57
 
58
-		else :
58
+		else {
59
+			:
59 60
 		
60 61
 			return 'index';
62
+		}
61 63
 
62 64
 		endif;
63 65
 
@@ -96,7 +98,8 @@  discard block
 block discarded – undo
96 98
 
97 99
 			return THEME_PATH . $folder . '/' . $view . '.blade.php';			
98 100
 		
99
-		} elseif ($type == 'scope') {
101
+		}
102
+		elseif ($type == 'scope') {
100 103
 
101 104
 			$folder = ClassyScope::$folder;
102 105
 
@@ -235,7 +238,8 @@  discard block
 block discarded – undo
235 238
 				
236 239
 					list( $type, $subtype ) = explode( '/', $attachment->post_mime_type );
237 240
 				
238
-				} else {
241
+				}
242
+				else {
239 243
 				
240 244
 					list( $type, $subtype ) = array( $attachment->post_mime_type, '' );
241 245
 				
@@ -351,9 +355,11 @@  discard block
 block discarded – undo
351 355
 
352 356
 		// Default
353 357
 
354
-		else:
358
+		else {
359
+			:
355 360
 
356 361
 			$views[] = $type;
362
+		}
357 363
 
358 364
 		endif;
359 365
 
@@ -386,7 +392,9 @@  discard block
 block discarded – undo
386 392
 
387 393
 		preg_match('/classy\-(.*)/', $template_slug, $matches);
388 394
 
389
-		if ( $matches && isset($matches[1]) ) return $matches[1];
395
+		if ( $matches && isset($matches[1]) ) {
396
+			return $matches[1];
397
+		}
390 398
 
391 399
 		return false;
392 400
 
Please login to merge, or discard this patch.