Completed
Push — 1.11.x ( ca7787...41c0f2 )
by José
31:51
created
plugin/dashboard/block_teacher/block_teacher.class.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,8 +118,11 @@  discard block
 block discarded – undo
118 118
 	 			$time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id));
119 119
 	 			$last_connection = Tracking :: get_last_connection_date($teacher_id);
120 120
 
121
-				if ($i%2 == 0) $class_tr = 'row_odd';
122
-			    else $class_tr = 'row_even';
121
+				if ($i%2 == 0) {
122
+				    $class_tr = 'row_odd';
123
+				} else {
124
+			        $class_tr = 'row_even';
125
+			    }
123 126
 
124 127
 				$teachers_table .= '
125 128
 									<tr class="'.$class_tr.'">
@@ -174,8 +177,11 @@  discard block
 block discarded – undo
174 177
 				$username	= $teacher['username'];
175 178
 	 			$time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id,true));
176 179
 
177
-	 			if ($i%2 == 0) $class_tr = 'row_odd';
178
-	    		else $class_tr = 'row_even';
180
+	 			if ($i%2 == 0) {
181
+	 			    $class_tr = 'row_odd';
182
+	 			} else {
183
+	    		    $class_tr = 'row_even';
184
+	    		}
179 185
 	    		$teachers_table .= '<tr class="'.$class_tr.'">
180 186
 										<td>'.api_get_person_name($firstname,$lastname).' ('.$username.')</td>
181 187
 										<td align="right">'.$time_on_platform.'</td>
Please login to merge, or discard this patch.
plugin/dashboard/block_session/block_session.class.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,11 @@
 block discarded – undo
116 116
 
117 117
 	 			$count_courses_in_session = count(Tracking::get_courses_list_from_session($session_id));
118 118
 
119
-				if ($i%2 == 0) $class_tr = 'row_odd';
120
-	    		else $class_tr = 'row_even';
119
+				if ($i%2 == 0) {
120
+				    $class_tr = 'row_odd';
121
+				} else {
122
+	    		    $class_tr = 'row_even';
123
+	    		}
121 124
 
122 125
 				$sessions_table .= '<tr class="'.$class_tr.'">
123 126
 										<td>'.$title.'</td>
Please login to merge, or discard this patch.
plugin/jcapture/action.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,12 @@
 block discarded – undo
5 5
  * @author Pavel Vlasov
6 6
  */
7 7
  
8
-if (!defined('DOKU_INC')) die();
9
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
8
+if (!defined('DOKU_INC')) {
9
+    die();
10
+}
11
+if (!defined('DOKU_PLUGIN')) {
12
+    define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
13
+}
10 14
 require_once (DOKU_PLUGIN . 'action.php');
11 15
  
12 16
 class action_plugin_jcapture extends DokuWiki_Action_Plugin {
Please login to merge, or discard this patch.
plugin/jcapture/applet.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
 	  parse_str($HTTP_RAW_POST_DATA, $_POST);
6 6
 	}
7 7
 	
8
-	if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../');
8
+	if(!defined('DOKU_INC')) {
9
+	    define('DOKU_INC',dirname(__FILE__).'/../../../');
10
+	}
9 11
 	require_once(DOKU_INC.'inc/init.php');
10 12
 	require_once(DOKU_INC.'inc/common.php');
11 13
 	require_once(DOKU_INC.'inc/pageutils.php');
Please login to merge, or discard this patch.
plugin/search_course/lib/search_course_widget.class.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@  discard block
 block discarded – undo
123 123
         if ($has_content)
124 124
         {
125 125
             echo '<div class="list">';
126
-        }
127
-        else
126
+        } else
128 127
         {
129 128
             echo '<div>';
130 129
         }
@@ -132,8 +131,7 @@  discard block
 block discarded – undo
132 131
         if (RegisterCourseWidget::factory()->run())
133 132
         {
134 133
             $result = true;
135
-        }
136
-        else
134
+        } else
137 135
         {
138 136
             $result = $this->action_display();
139 137
         }
@@ -337,8 +335,7 @@  discard block
 block discarded – undo
337 335
         if (api_is_anonymous())
338 336
         {
339 337
             $course_fiter = 'visibility = ' . COURSE_VISIBILITY_OPEN_WORLD;
340
-        }
341
-        else
338
+        } else
342 339
         {
343 340
             $course_fiter = 'visibility = ' . COURSE_VISIBILITY_OPEN_WORLD . ' OR ';
344 341
             $course_fiter .= 'visibility = ' . COURSE_VISIBILITY_OPEN_PLATFORM . ' OR ';
Please login to merge, or discard this patch.
custompages/first_login-dist.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@
 block discarded – undo
13 13
 /**
14 14
  * Security checks
15 15
  */
16
-if (! isset($_SESSION['conditional_login']['uid']))
16
+if (! isset($_SESSION['conditional_login']['uid'])) {
17 17
   die("Not Authorised");
18
+}
18 19
 
19 20
 if (isset($_POST['password'])) {
20 21
     $u = api_get_user_info($_SESSION['conditional_login']['uid']);
Please login to merge, or discard this patch.
custompages/language.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,8 +48,9 @@
 block discarded – undo
48 48
 );
49 49
 $lang_match = $chamilo_langs[get_preferred_language($available_langs)];
50 50
 // recover previous value ...
51
-if (isset($_SESSION['user_language_choice']))
51
+if (isset($_SESSION['user_language_choice'])) {
52 52
 	$lang_match = $_SESSION['user_language_choice'];
53
+}
53 54
 
54 55
 // Chamilo parameter, on logout
55 56
 if (isset($_REQUEST['language']) && !empty($_REQUEST['language']) && in_array($_REQUEST['language'], $chamilo_langs)) {
Please login to merge, or discard this patch.
main/auth/openid/xrds.lib.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
     if (in_array(OPENID_NS_2_0 .'/signon', $xrds_current_service['types']) ||
46 46
         in_array(OPENID_NS_2_0 .'/server', $xrds_current_service['types'])) {
47 47
       $xrds_current_service['version'] = 2;
48
-    }
49
-    elseif (in_array(OPENID_NS_1_1, $xrds_current_service['types']) ||
48
+    } elseif (in_array(OPENID_NS_1_1, $xrds_current_service['types']) ||
50 49
             in_array(OPENID_NS_1_0, $xrds_current_service['types'])) {
51 50
       $xrds_current_service['version'] = 1;
52 51
     }
Please login to merge, or discard this patch.
main/auth/openid/openid.lib.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,9 @@
 block discarded – undo
61 61
  */
62 62
 function _openid_is_xri($identifier) {
63 63
     $firstchar = substr($identifier, 0, 1);
64
-    if ($firstchar == "@" || $firstchar == "=")
65
-        return TRUE;
64
+    if ($firstchar == "@" || $firstchar == "=") {
65
+            return TRUE;
66
+    }
66 67
 
67 68
     if (stristr($identifier, 'xri://') !== FALSE) {
68 69
         return TRUE;
Please login to merge, or discard this patch.