Completed
Push — master ( 6f9e7a...de5671 )
by Dwain
09:23
created
includes/class-sensei-admin.php 1 patch
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Handles all admin views, assets and navigation.
@@ -732,7 +735,9 @@  discard block
 block discarded – undo
732 735
 		$types = array( 'course', 'lesson', 'question' );
733 736
 
734 737
 		foreach( $types as $type ) {
735
-			if( ! post_type_exists( $type ) ) continue;
738
+			if( ! post_type_exists( $type ) ) {
739
+				continue;
740
+			}
736 741
 
737 742
 			$num_posts = wp_count_posts( $type );
738 743
 
@@ -800,7 +805,9 @@  discard block
 block discarded – undo
800 805
 
801 806
 		$html = '';
802 807
 
803
-		if( 0 == count( $settings ) ) return $html;
808
+		if( 0 == count( $settings ) ) {
809
+			return $html;
810
+		}
804 811
 
805 812
 		$html .= '<div class="sensei-options-panel">' . "\n";
806 813
 
@@ -882,11 +889,11 @@  discard block
 block discarded – undo
882 889
                                     //backwards compatibility
883 890
                                     if( empty( $data ) || 'on' == $data ){
884 891
                                         $checked_value = 'on';
885
-                                    }elseif( 'yes' == $data  ) {
892
+                                    } elseif( 'yes' == $data  ) {
886 893
 
887 894
                                         $checked_value = 'yes';
888 895
 
889
-                                    }elseif( 'auto' == $data  ) {
896
+                                    } elseif( 'auto' == $data  ) {
890 897
 
891 898
                                         $checked_value = 'auto';
892 899
 
Please login to merge, or discard this patch.