Completed
Push — master ( 77803a...2e041b )
by Dwain
26:34
created
includes/class-sensei-analysis-user-profile-list-table.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 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
  * Sensei Analysis User Profile List Table Class
Please login to merge, or discard this patch.
includes/class-sensei-admin.php 1 patch
Braces   +18 added lines, -9 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
  * Sensei Administration Class
@@ -210,13 +213,15 @@  discard block
 block discarded – undo
210 213
 
211 214
 		$option_value = get_option( $option );
212 215
 
213
-		if ( $option_value > 0 && get_post( $option_value ) )
214
-			return;
216
+		if ( $option_value > 0 && get_post( $option_value ) ) {
217
+					return;
218
+		}
215 219
 
216 220
 		$page_found = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;", $slug ) );
217 221
 		if ( $page_found ) :
218
-			if ( ! $option_value )
219
-				update_option( $option, $page_found );
222
+			if ( ! $option_value ) {
223
+							update_option( $option, $page_found );
224
+			}
220 225
 			return;
221 226
 		endif;
222 227
 
@@ -723,7 +728,9 @@  discard block
 block discarded – undo
723 728
 		$types = array( 'course', 'lesson', 'question' );
724 729
 
725 730
 		foreach( $types as $type ) {
726
-			if( ! post_type_exists( $type ) ) continue;
731
+			if( ! post_type_exists( $type ) ) {
732
+				continue;
733
+			}
727 734
 
728 735
 			$num_posts = wp_count_posts( $type );
729 736
 
@@ -791,7 +798,9 @@  discard block
 block discarded – undo
791 798
 
792 799
 		$html = '';
793 800
 
794
-		if( 0 == count( $settings ) ) return $html;
801
+		if( 0 == count( $settings ) ) {
802
+			return $html;
803
+		}
795 804
 
796 805
 		$html .= '<div class="sensei-options-panel">' . "\n";
797 806
 
@@ -873,11 +882,11 @@  discard block
 block discarded – undo
873 882
                                     //backwards compatibility
874 883
                                     if( empty( $data ) || 'on' == $data ){
875 884
                                         $checked_value = 'on';
876
-                                    }elseif( 'yes' == $data  ) {
885
+                                    } elseif( 'yes' == $data  ) {
877 886
 
878 887
                                         $checked_value = 'yes';
879 888
 
880
-                                    }elseif( 'auto' == $data  ) {
889
+                                    } elseif( 'auto' == $data  ) {
881 890
 
882 891
                                         $checked_value = 'auto';
883 892
 
Please login to merge, or discard this patch.
templates/loop-message.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/user/login-form.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 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
  * Sensei Analysis User Profile List Table Class
Please login to merge, or discard this patch.
templates/loop-lesson.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/single-course/modules.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination-quiz.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/pagination-posts.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.
templates/globals/wrapper-end.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	exit;
4
+}
3 5
 /**
4 6
  * The Template for displaying the my course page data.
5 7
  *
Please login to merge, or discard this patch.