Completed
Push — 1.11.x ( ac8a66...46c8b4 )
by José
126:29 queued 89:25
created
main/messages/outbox.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
 api_block_anonymous_users();
10 10
 
11 11
 if (isset($_GET['messages_page_nr'])) {
12
-	if (api_get_setting('allow_social_tool')=='true' &&
13
-        api_get_setting('allow_message_tool')=='true'
12
+	if (api_get_setting('allow_social_tool') == 'true' &&
13
+        api_get_setting('allow_message_tool') == 'true'
14 14
     ) {
15 15
 		$social_link = '';
16
-		if ($_REQUEST['f']=='social') {
16
+		if ($_REQUEST['f'] == 'social') {
17 17
 			$social_link = '&f=social';
18 18
 		}
19 19
 		header('Location:outbox.php?pager='.Security::remove_XSS($_GET['messages_page_nr']).$social_link.'');
@@ -51,46 +51,46 @@  discard block
 block discarded – undo
51 51
 */
52 52
 if (isset($_GET['f']) && $_GET['f'] === 'social') {
53 53
 	$this_section = SECTION_SOCIAL;
54
-	$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social'));
55
-	$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox'));
54
+	$interbreadcrumb[] = array('url' => api_get_path(WEB_PATH).'main/social/home.php', 'name' => get_lang('Social'));
55
+	$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Outbox'));
56 56
 } else {
57 57
 	$this_section = SECTION_MYPROFILE;
58
-	$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/auth/profile.php','name' => get_lang('Profile'));
59
-	$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox'));
58
+	$interbreadcrumb[] = array('url' => api_get_path(WEB_PATH).'main/auth/profile.php', 'name' => get_lang('Profile'));
59
+	$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Outbox'));
60 60
 }
61 61
 
62 62
 $actions = '';
63 63
 if (api_get_setting('extended_profile') == 'true') {
64 64
     if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') {
65
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
65
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.
66 66
             Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>';
67 67
     }
68 68
     if (api_get_setting('allow_message_tool') == 'true') {
69 69
         //echo '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png').' '.get_lang('Messages').'</a>';
70
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
71
-            Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>';
72
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
73
-            Display::return_icon('inbox.png',get_lang('Inbox')).'</a>';
74
-        $actions .=  '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.
75
-            Display::return_icon('outbox.png',get_lang('Outbox')).'</a>';
70
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.
71
+            Display::return_icon('message_new.png', get_lang('ComposeMessage')).'</a>';
72
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.
73
+            Display::return_icon('inbox.png', get_lang('Inbox')).'</a>';
74
+        $actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.
75
+            Display::return_icon('outbox.png', get_lang('Outbox')).'</a>';
76 76
     }
77 77
 }
78 78
 
79 79
 
80
-$info_delete_outbox =array();
81
-$info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',',$_GET['form_delete_outbox']) : '';
80
+$info_delete_outbox = array();
81
+$info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',', $_GET['form_delete_outbox']) : '';
82 82
 $count_delete_outbox = count($info_delete_outbox) - 1;
83 83
 
84 84
 if (isset($info_delete_outbox[0]) && trim($info_delete_outbox[0]) == 'delete') {
85 85
     for ($i = 1; $i <= $count_delete_outbox; $i++) {
86
-		MessageManager::delete_message_by_user_sender(api_get_user_id(),$info_delete_outbox[$i]);
86
+		MessageManager::delete_message_by_user_sender(api_get_user_id(), $info_delete_outbox[$i]);
87 87
 	}
88
-    $message_box=get_lang('SelectedMessagesDeleted').
88
+    $message_box = get_lang('SelectedMessagesDeleted').
89 89
         '&nbsp
90 90
         <br><a href="../social/index.php?#remote-tab-3">'.
91 91
         get_lang('BackToOutbox').
92 92
         '</a>';
93
-    Display::display_normal_message(api_xml_http_response_encode($message_box),false);
93
+    Display::display_normal_message(api_xml_http_response_encode($message_box), false);
94 94
     exit;
95 95
 }
96 96
 
@@ -117,23 +117,23 @@  discard block
 block discarded – undo
117 117
 }
118 118
 //MAIN CONTENT
119 119
 if ($action == 'delete') {
120
-    $delete_list_id=array();
120
+    $delete_list_id = array();
121 121
     if (isset($_POST['out'])) {
122
-        $delete_list_id=$_POST['out'];
122
+        $delete_list_id = $_POST['out'];
123 123
     }
124 124
     if (isset($_POST['id'])) {
125
-        $delete_list_id=$_POST['id'];
125
+        $delete_list_id = $_POST['id'];
126 126
     }
127 127
     for ($i = 0; $i < count($delete_list_id); $i++) {
128 128
         MessageManager::delete_message_by_user_sender(api_get_user_id(), $delete_list_id[$i]);
129 129
     }
130
-    $delete_list_id=array();
130
+    $delete_list_id = array();
131 131
     $social_right_content .= MessageManager::outbox_display($keyword);
132 132
 } elseif ($action == 'deleteone') {
133 133
     $delete_list_id = array();
134 134
     $id = Security::remove_XSS($_GET['id']);
135 135
     MessageManager::delete_message_by_user_sender(api_get_user_id(), $id);
136
-    $delete_list_id=array();
136
+    $delete_list_id = array();
137 137
     $social_right_content .= MessageManager::outbox_display($keyword);
138 138
 } else {
139 139
     $social_right_content .= MessageManager::outbox_display($keyword);
Please login to merge, or discard this patch.
main/course_home/3column.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         "</td>\n".
127 127
         "<td>\n".
128 128
         "<select name=\"image\">\n".
129
-        "<option selected>". $image. "</option>\n";
129
+        "<option selected>".$image."</option>\n";
130 130
 
131 131
     if ($dir = @opendir($chemin)) {
132 132
         while ($file = readdir($dir)) {
133 133
             if ($file == '..' || $file == '.') {
134 134
                 unset($file);
135 135
             }
136
-            $content .= "<option>". $file. "</option>\n";
136
+            $content .= "<option>".$file."</option>\n";
137 137
         }
138 138
         closedir($dir);
139 139
     }
@@ -142,15 +142,15 @@  discard block
 block discarded – undo
142 142
         "</td>\n".
143 143
         "</tr>\n".
144 144
         "<tr>\n".
145
-        "<td>". get_lang('NameOfTheLink'). " : </td>\n".
146
-        "<td><input type=\"text\" name=\"name\" value=\"". $name. "\"></td>\n".
145
+        "<td>".get_lang('NameOfTheLink')." : </td>\n".
146
+        "<td><input type=\"text\" name=\"name\" value=\"".$name."\"></td>\n".
147 147
         "</tr>\n".
148 148
         "<tr>\n".
149 149
         "<td>Lien :</td>\n".
150
-        "<td><input type=\"text\" name=\"link\" value=\"". $link. "\"></td>\n".
150
+        "<td><input type=\"text\" name=\"link\" value=\"".$link."\"></td>\n".
151 151
         "</tr>\n".
152 152
         "<tr>\n".
153
-        "<td colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"". get_lang('Ok'). "\"></td>\n".
153
+        "<td colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"".get_lang('Ok')."\"></td>\n".
154 154
         "</tr>\n".
155 155
         "</form>\n".
156 156
         "</table>\n".
@@ -203,21 +203,21 @@  discard block
 block discarded – undo
203 203
         "<tr><td colspan=\"6\"><font color=\"#F66105\">\n".get_lang('CourseAdminOnly')."</font>
204 204
         </td></tr>\n";
205 205
     $content .= "<tr>\n<td colspan=\"6\">";
206
-    $content .=CourseHome::show_tool_3column('courseAdmin');
206
+    $content .= CourseHome::show_tool_3column('courseAdmin');
207 207
     $content .= "</td>\n</tr>\n";
208 208
 }
209 209
 
210 210
 /*	TOOLS FOR PLATFORM ADMIN ONLY */
211 211
 if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) {
212
-    $content .=  "<tr>"."<td colspan=\"6\">".
212
+    $content .= "<tr>"."<td colspan=\"6\">".
213 213
         "<hr noshade size=\"1\" />".
214 214
         "</td>"."</tr>\n".
215 215
         "<tr>\n"."<td colspan=\"6\">\n".
216
-        "<font color=\"#F66105\" >". get_lang('PlatformAdminOnly'). "</font>\n".
216
+        "<font color=\"#F66105\" >".get_lang('PlatformAdminOnly')."</font>\n".
217 217
         "</td>\n"."</tr>\n";
218
-    $content .=  "<tr>\n<td colspan=\"6\">";
218
+    $content .= "<tr>\n<td colspan=\"6\">";
219 219
     $content .= CourseHome::show_tool_3column('platformAdmin');
220
-    $content .=  "</td>\n</tr>\n";
220
+    $content .= "</td>\n</tr>\n";
221 221
 }
222 222
 
223
-$content .=  "</table>\n";
223
+$content .= "</table>\n";
Please login to merge, or discard this patch.
main/course_home/2column.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     // Show message to confirm that a tool it to be hidden from available tools
57 57
     // visibility 0,1->2
58 58
     if (!empty($_GET['askDelete'])) {
59
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
59
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
60 60
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
61 61
             <a href="'.api_get_self().'?delete=yes&id='.intval($_GET['id']).'">'.get_lang('Yes').'</a>
62 62
         </div>';
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /*	INACTIVE TOOLS - HIDDEN (GREY) LINKS */
94 94
 
95
-    $content .=	"<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
95
+    $content .= "<tr><td colspan=\"4\"><hr style='color:\"#4171B5\"' noshade=\"noshade\" size=\"1\" /></td></tr>\n".
96 96
             "<tr>\n".
97 97
             "<td colspan=\"4\">\n".
98 98
             "<div style=\"margin-bottom: 10px;\"><font color=\"#808080\">\n".get_lang('InLnk')."</font></div>".
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 
102 102
     $content .= CourseHome::show_tool_2column(TOOL_PUBLIC_BUT_HIDDEN);
103 103
 
104
-    $content .=	"</table>";
105
-    $content .=	"</div> ";
104
+    $content .= "</table>";
105
+    $content .= "</div> ";
106 106
 }
107 107
 
108 108
 /*	Tools for platform admin only */
109 109
 
110 110
 if (api_is_platform_admin() && api_is_allowed_to_edit(null, true) && !api_is_coach()) {
111
-    $content .='<div class="platformadminview">
111
+    $content .= '<div class="platformadminview">
112 112
     <span class="viewcaption">'.get_lang('PlatformAdminOnly').'</span>
113 113
     <table width="100%">
114 114
         '.CourseHome::show_tool_2column(TOOL_PLATFORM_ADMIN).'
Please login to merge, or discard this patch.
main/course_home/vertical_activity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     // Show message to confirm that a tool it to be hidden from available tools
38 38
     // visibility 0,1->2
39 39
     if (!empty($_GET['askDelete'])) {
40
-        $content .='<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
40
+        $content .= '<div id="toolhide">'.get_lang('DelLk').'<br />&nbsp;&nbsp;&nbsp;
41 41
             <a href="'.api_get_self().'">'.get_lang('No').'</a>&nbsp;|&nbsp;
42 42
             <a href="'.api_get_self().'?delete=yes&id='.$id.'">'.get_lang('Yes').'</a>
43 43
         </div>';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 
56 56
 // Start of tools for CourseAdmins (teachers/tutors)
57 57
 if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
58
-    $content .=  '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
58
+    $content .= '<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px;">
59 59
     <div class="normal-message" id="id_normal_message" style="display:none">';
60
-        $content .=  '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
-        $content .=  get_lang('PleaseStandBy');
60
+        $content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
61
+        $content .= get_lang('PleaseStandBy');
62 62
 
63
-    $content .=  '</div>
63
+    $content .= '</div>
64 64
         <div class="confirmation-message" id="id_confirmation_message" style="display:none"></div></div>';
65
-    $content .=  '<div id="activity-3col">';
65
+    $content .= '<div id="activity-3col">';
66 66
 
67 67
     if (api_get_setting('show_session_data') == 'true' && $session_id > 0) {
68 68
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
         $content .= '<div class="courseadminview-activity-3col"><span class="viewcaption">'.get_lang('SessionData').'</span>
91 91
             <table width="100%">';
92 92
                 $content .= CourseHome::show_session_data($session_id);
93
-             $content .=  '</table></div>';
93
+             $content .= '</table></div>';
94 94
     }
95 95
 
96
-    $content .=  '<div class="Authoringview">';
96
+    $content .= '<div class="Authoringview">';
97 97
                 $my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW);
98 98
                 $content .= CourseHome::show_tools_category($my_list);
99 99
     $content .= '</div>';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $order_tool_list = array();
107 107
         foreach ($my_list as $key => $new_tool) {
108 108
             $tool_name = CourseHome::translate_tool_name($new_tool);
109
-            $order_tool_list [$key]= $tool_name;
109
+            $order_tool_list [$key] = $tool_name;
110 110
         }
111 111
         natsort($order_tool_list);
112 112
         $my_temp_tool_array = array();
Please login to merge, or discard this patch.
main/course_description/listing.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@  discard block
 block discarded – undo
11 11
 api_protect_course_script(true);
12 12
 
13 13
 // display actions menu
14
-if (api_is_allowed_to_edit(null,true)) {
14
+if (api_is_allowed_to_edit(null, true)) {
15 15
     $categories = array();
16 16
     foreach ($default_description_titles as $id => $title) {
17 17
         $categories[$id] = $title;
18 18
     }
19 19
     $categories[ADD_BLOCK] = get_lang('NewBloc');
20 20
 
21
-	$i=1;
21
+	$i = 1;
22 22
 	echo '<div class="actions" style="margin-bottom:30px">';
23 23
 	ksort($categories);
24 24
 	foreach ($categories as $id => $title) {
25
-		if ($i==ADD_BLOCK) {
25
+		if ($i == ADD_BLOCK) {
26 26
 			echo '<a href="index.php?'.api_get_cidreq().'&action=add">'.
27 27
                 Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
28 28
 			break;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             <tr>
44 44
                 <td><h3>'.get_lang('ThematicAdvanceHistory').'</h3></td>
45 45
                 <td align="right"><a href="index.php?action=listing">'.
46
-                Display::return_icon('info.png',get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'),ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
46
+                Display::return_icon('info.png', get_lang('BackToCourseDesriptionList'), array('style'=>'vertical-align:middle;'), ICON_SIZE_SMALL).' '.get_lang('BackToCourseDesriptionList').'</a></td></tr></table></div>';
47 47
 }
48 48
 
49 49
 $user_info = api_get_user_info();
@@ -52,21 +52,21 @@  discard block
 block discarded – undo
52 52
 	foreach ($descriptions as $id => $description) {
53 53
         if (!empty($description)) {
54 54
             $actions = '';
55
-            if (api_is_allowed_to_edit(null,true) && !$history) {
55
+            if (api_is_allowed_to_edit(null, true) && !$history) {
56 56
                 if (api_get_session_id() == $description['session_id']) {
57 57
                     $description['title'] = $description['title'].' '.api_get_session_image(api_get_session_id(), $user_info['status']);
58 58
 
59 59
                     // delete
60
-                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,api_get_system_encoding())).'\')) return false;">';
61
-                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
60
+                    $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=delete&description_type='.$description['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, api_get_system_encoding())).'\')) return false;">';
61
+                    $actions .= Display::return_icon('delete.png', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
62 62
                     $actions .= '</a> ';
63 63
 
64 64
                     // edit
65 65
                     $actions .= '<a href="'.api_get_self().'?id='.$description['id'].'&'.api_get_cidreq_params(api_get_course_id(), $description['session_id']).'&action=edit&description_type='.$description['description_type'].'">';
66
-                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'),ICON_SIZE_SMALL);
66
+                    $actions .= Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align:middle;float:right; padding-right:4px;'), ICON_SIZE_SMALL);
67 67
                     $actions .= '</a> ';
68 68
                 } else {
69
-                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'),ICON_SIZE_SMALL);
69
+                    $actions .= Display::return_icon('edit_na.png', get_lang('EditionNotAvailableFromSession'), array('style' => 'vertical-align:middle;float:right;'), ICON_SIZE_SMALL);
70 70
                 }
71 71
             }
72 72
             echo Display::panel(
Please login to merge, or discard this patch.
main/course_description/edit.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,21 +34,21 @@  discard block
 block discarded – undo
34 34
 }
35 35
 $categories[ADD_BLOCK] = get_lang('NewBloc');
36 36
 
37
-$i=1;
37
+$i = 1;
38 38
 echo '<div class="actions" style="margin-bottom:30px">';
39 39
 echo '<a href="index.php?'.api_get_cidreq().'">'.
40
-		Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('ToolCourseDescription'),'',ICON_SIZE_MEDIUM).
40
+		Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM).
41 41
 	'</a>';
42 42
 
43 43
 ksort($categories);
44 44
 foreach ($categories as $id => $title) {
45
-	if ($i==ADD_BLOCK) {
45
+	if ($i == ADD_BLOCK) {
46 46
 		echo '<a href="index.php?'.api_get_cidreq().'&action=add">'.
47
-			Display::return_icon($default_description_icon[$id], $title,'',ICON_SIZE_MEDIUM).'</a>';
47
+			Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
48 48
 		break;
49 49
 	} else {
50 50
 		echo '<a href="index.php?action=edit&'.api_get_cidreq().'&description_type='.$id.'">'.
51
-			Display::return_icon($default_description_icon[$id], $title,'',ICON_SIZE_MEDIUM).'</a>';
51
+			Display::return_icon($default_description_icon[$id], $title, '', ICON_SIZE_MEDIUM).'</a>';
52 52
 		$i++;
53 53
 	}
54 54
 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 // error messages
58 58
 if (isset($error) && intval($error) == 1) {
59
-	Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'),false);
59
+	Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false);
60 60
 }
61 61
 
62 62
 // default header title form
Please login to merge, or discard this patch.
main/inc/lib/attendance.lib.php 1 patch
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $course_id = intval($course_id);
74 74
         }
75 75
 
76
-        $session_id = isset($session_id)?intval($session_id):api_get_session_id();
76
+        $session_id = isset($session_id) ? intval($session_id) : api_get_session_id();
77 77
         $condition_session = api_get_session_condition($session_id);
78 78
 
79 79
         // Get attendance data
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $from = intval($from);
109 109
         $number_of_items = intval($number_of_items);
110 110
 
111
-        if (!in_array($direction, array('ASC','DESC'))) {
111
+        if (!in_array($direction, array('ASC', 'DESC'))) {
112 112
             $direction = 'ASC';
113 113
         }
114 114
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 LIMIT $from,$number_of_items ";
136 136
 
137 137
         $res = Database::query($sql);
138
-        $attendances = array ();
138
+        $attendances = array();
139 139
         $user_info = api_get_user_info();
140 140
         $allowDelete = api_get_setting('allow_delete_attendance');
141 141
 
@@ -190,8 +190,8 @@  discard block
 block discarded – undo
190 190
                         $attendance[2] = '<span class="muted">'.$attendance[2].'</span>';
191 191
                     }
192 192
                     if ($allowDelete === 'true') {
193
-                        $actions .= '<a href="index.php?' . api_get_cidreq() . '&action=attendance_delete&attendance_id=' . $attendance[0]. '">' .
194
-                            Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) . '</a>';
193
+                        $actions .= '<a href="index.php?'.api_get_cidreq().'&action=attendance_delete&attendance_id='.$attendance[0].'">'.
194
+                            Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL).'</a>';
195 195
                     }
196 196
                 } else {
197 197
                     $is_locked_attendance = self::is_locked_attendance($attendance[0]);
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                             $attendance[2] = '<span class="muted">'.$attendance[2].'</span>';
212 212
                         }
213 213
                         if ($allowDelete === 'true') {
214
-                            $actions .= ' <a href="index.php?' . api_get_cidreq() . '&action=attendance_delete&attendance_id=' . $attendance[0].'">' .
215
-                                Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL) . '</a>';
214
+                            $actions .= ' <a href="index.php?'.api_get_cidreq().'&action=attendance_delete&attendance_id='.$attendance[0].'">'.
215
+                                Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL).'</a>';
216 216
                         }
217 217
                     }
218 218
                 }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 $is_done_all_calendar = self::is_all_attendance_calendar_done($attendance[0]);
222 222
 
223 223
                 if ($is_done_all_calendar) {
224
-                    $locked   = $attendance[4];
224
+                    $locked = $attendance[4];
225 225
                     if ($locked == 0) {
226 226
                         if (api_is_platform_admin()) {
227 227
                             $message_alert = get_lang('AreYouSureToLockTheAttendance');
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 }
242 242
                 $actions .= '</center>';
243 243
 
244
-                $attendances[] = array($attendance[0], $attendance[1], $attendance[2], $attendance[3],$actions);
244
+                $attendances[] = array($attendance[0], $attendance[1], $attendance[2], $attendance[3], $actions);
245 245
             } else {
246 246
                 $attendance[0] = '&nbsp;';
247 247
                 $attendances[] = array($attendance[0], $attendance[1], $attendance[2], $attendance[3]);
@@ -282,13 +282,13 @@  discard block
 block discarded – undo
282 282
     public function attendance_add($link_to_gradebook = false)
283 283
     {
284 284
         $_course = api_get_course_info();
285
-        $tbl_attendance	= Database :: get_course_table(TABLE_ATTENDANCE);
285
+        $tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE);
286 286
         $table_link = Database:: get_main_table(TABLE_MAIN_GRADEBOOK_LINK);
287 287
         $session_id = api_get_session_id();
288 288
         $user_id = api_get_user_id();
289 289
         $course_code = $_course['code'];
290 290
         $course_id = $_course['real_id'];
291
-        $title_gradebook= $this->attendance_qualify_title;
291
+        $title_gradebook = $this->attendance_qualify_title;
292 292
         $value_calification = 0;
293 293
         $weight_calification = floatval($this->attendance_weight);
294 294
 
@@ -434,12 +434,12 @@  discard block
 block discarded – undo
434 434
     public function attendance_restore($attendance_id)
435 435
     {
436 436
         $_course = api_get_course_info();
437
-        $tbl_attendance	= Database :: get_course_table(TABLE_ATTENDANCE);
437
+        $tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE);
438 438
         $user_id = api_get_user_id();
439 439
         $course_id = $_course['real_id'];
440 440
         if (is_array($attendance_id)) {
441 441
             foreach ($attendance_id as $id) {
442
-                $id	= intval($id);
442
+                $id = intval($id);
443 443
                 $sql = "UPDATE $tbl_attendance SET active = 1
444 444
                         WHERE c_id = $course_id AND id = '$id'";
445 445
                 $result = Database::query($sql);
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
                     );
456 456
                 }
457 457
             }
458
-        } else  {
459
-            $attendance_id	= intval($attendance_id);
458
+        } else {
459
+            $attendance_id = intval($attendance_id);
460 460
             $sql = "UPDATE $tbl_attendance SET active = 1
461 461
                     WHERE c_id = $course_id AND id = '$attendance_id'";
462 462
             $result = Database::query($sql);
@@ -484,13 +484,13 @@  discard block
 block discarded – undo
484 484
     public function attendance_delete($attendance_id)
485 485
     {
486 486
         $_course = api_get_course_info();
487
-        $tbl_attendance	= Database :: get_course_table(TABLE_ATTENDANCE);
487
+        $tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE);
488 488
         $user_id = api_get_user_id();
489 489
         $course_id = $_course['real_id'];
490 490
 
491 491
         if (is_array($attendance_id)) {
492 492
             foreach ($attendance_id as $id) {
493
-                $id	= intval($id);
493
+                $id = intval($id);
494 494
                 $sql = "UPDATE $tbl_attendance SET active = 2
495 495
                         WHERE c_id = $course_id AND id = '$id'";
496 496
                 $result = Database::query($sql);
@@ -506,8 +506,8 @@  discard block
 block discarded – undo
506 506
                     );
507 507
                 }
508 508
             }
509
-        } else  {
510
-            $attendance_id= intval($attendance_id);
509
+        } else {
510
+            $attendance_id = intval($attendance_id);
511 511
             $sql = "UPDATE $tbl_attendance SET active = 2
512 512
                     WHERE c_id = $course_id AND id = '$attendance_id'";
513 513
 
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
     public function changeVisibility($attendanceId, $status = 1)
539 539
     {
540 540
         $_course = api_get_course_info();
541
-        $tbl_attendance	= Database :: get_course_table(TABLE_ATTENDANCE);
541
+        $tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE);
542 542
         $user_id = api_get_user_id();
543 543
         $course_id = $_course['real_id'];
544 544
         $status = intval($status);
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 
551 551
         if (is_array($attendanceId)) {
552 552
             foreach ($attendanceId as $id) {
553
-                $id	= intval($id);
553
+                $id = intval($id);
554 554
                 $sql = "UPDATE $tbl_attendance SET active = $status
555 555
                         WHERE c_id = $course_id AND id = '$id'";
556 556
                 $result = Database::query($sql);
@@ -560,8 +560,8 @@  discard block
 block discarded – undo
560 560
                     api_item_property_update($_course, TOOL_ATTENDANCE, $id, $action, $user_id);
561 561
                 }
562 562
             }
563
-        } else  {
564
-            $attendanceId	= intval($attendanceId);
563
+        } else {
564
+            $attendanceId = intval($attendanceId);
565 565
             $sql = "UPDATE $tbl_attendance SET active = $status
566 566
                     WHERE c_id = $course_id AND id = '$attendanceId'";
567 567
             $result = Database::query($sql);
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
         $tbl_attendance = Database::get_course_table(TABLE_ATTENDANCE);
592 592
         $course_id = api_get_course_int_id();
593 593
         $attendance_id = intval($attendance_id);
594
-        $locked = ($lock)?1:0;
594
+        $locked = ($lock) ? 1 : 0;
595 595
         $upd = "UPDATE $tbl_attendance SET locked = $locked
596 596
                 WHERE c_id = $course_id AND id = $attendance_id";
597 597
         $result = Database::query($upd);
@@ -720,8 +720,8 @@  discard block
 block discarded – undo
720 720
      */
721 721
     public function attendance_sheet_add($calendar_id, $users_present, $attendance_id)
722 722
     {
723
-        $tbl_attendance_sheet 	= Database::get_course_table(TABLE_ATTENDANCE_SHEET);
724
-        $tbl_attendance_calendar= Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
723
+        $tbl_attendance_sheet = Database::get_course_table(TABLE_ATTENDANCE_SHEET);
724
+        $tbl_attendance_calendar = Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
725 725
 
726 726
         $calendar_id = intval($calendar_id);
727 727
         $attendance_id = intval($attendance_id);
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
         $course_id = api_get_course_int_id();
730 730
 
731 731
         $user_ids = array_keys($users);
732
-        $users_absent = array_diff($user_ids,$users_present);
732
+        $users_absent = array_diff($user_ids, $users_present);
733 733
         $affected_rows = 0;
734 734
 
735 735
         // get last edit type
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
         }
1013 1013
 
1014 1014
         $faults = $faults > 0 ? $faults : 0;
1015
-        $faults_porcent = $calendar_count > 0 ?round(($faults*100)/$calendar_count,0):0;
1015
+        $faults_porcent = $calendar_count > 0 ? round(($faults * 100) / $calendar_count, 0) : 0;
1016 1016
         $results['faults'] = $faults;
1017 1017
         $results['total'] = $calendar_count;
1018 1018
         $results['faults_porcent'] = $faults_porcent;
@@ -1046,13 +1046,13 @@  discard block
 block discarded – undo
1046 1046
             //$course_code = $course['code'];
1047 1047
             //$course_info = api_get_course_info($course_code);
1048 1048
             $course_id = $course['real_id'];
1049
-            $tbl_attendance_result 	= Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1049
+            $tbl_attendance_result = Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1050 1050
 
1051 1051
             $attendances_by_course = $this->get_attendances_list($course_id);
1052 1052
 
1053 1053
             foreach ($attendances_by_course as $attendance) {
1054 1054
                 // get total faults and total weight
1055
-                $total_done_attendance 	= $attendance['attendance_qualify_max'];
1055
+                $total_done_attendance = $attendance['attendance_qualify_max'];
1056 1056
                 $sql = "SELECT score
1057 1057
                         FROM $tbl_attendance_result
1058 1058
                         WHERE
@@ -1065,16 +1065,16 @@  discard block
 block discarded – undo
1065 1065
                     $row = Database::fetch_array($rs);
1066 1066
                     $score = $row['score'];
1067 1067
                 }
1068
-                $faults = $total_done_attendance-$score;
1069
-                $faults = $faults > 0 ? $faults:0;
1068
+                $faults = $total_done_attendance - $score;
1069
+                $faults = $faults > 0 ? $faults : 0;
1070 1070
                 $total_faults += $faults;
1071 1071
                 $total_weight += $total_done_attendance;
1072 1072
             }
1073 1073
         }
1074 1074
 
1075
-        $porcent = $total_weight > 0 ?round(($total_faults*100)/$total_weight,0):0;
1075
+        $porcent = $total_weight > 0 ? round(($total_faults * 100) / $total_weight, 0) : 0;
1076 1076
         $results['faults'] 	= $total_faults;
1077
-        $results['total']	= $total_weight;
1077
+        $results['total'] = $total_weight;
1078 1078
         $results['porcent'] = $porcent;
1079 1079
 
1080 1080
         return $results;
@@ -1092,7 +1092,7 @@  discard block
 block discarded – undo
1092 1092
     {
1093 1093
         // Database tables and variables
1094 1094
         $course_info = api_get_course_info($course_code);
1095
-        $tbl_attendance_result 	= Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1095
+        $tbl_attendance_result = Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1096 1096
         $user_id = intval($user_id);
1097 1097
         $results = array();
1098 1098
         $total_faults = $total_weight = $porcent = 0;
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
 
1101 1101
         foreach ($attendances_by_course as $attendance) {
1102 1102
             // Get total faults and total weight
1103
-            $total_done_attendance 	= $attendance['attendance_qualify_max'];
1103
+            $total_done_attendance = $attendance['attendance_qualify_max'];
1104 1104
             $sql = "SELECT score FROM $tbl_attendance_result
1105 1105
                     WHERE
1106 1106
                         c_id = {$course_info['real_id']} AND
@@ -1112,15 +1112,15 @@  discard block
 block discarded – undo
1112 1112
                 $row = Database::fetch_array($rs);
1113 1113
                 $score = $row['score'];
1114 1114
             }
1115
-            $faults = $total_done_attendance-$score;
1116
-            $faults = $faults > 0 ? $faults:0;
1115
+            $faults = $total_done_attendance - $score;
1116
+            $faults = $faults > 0 ? $faults : 0;
1117 1117
             $total_faults += $faults;
1118 1118
             $total_weight += $total_done_attendance;
1119 1119
         }
1120 1120
 
1121
-        $porcent = $total_weight > 0 ?round(($total_faults*100)/$total_weight,0):0;
1121
+        $porcent = $total_weight > 0 ? round(($total_faults * 100) / $total_weight, 0) : 0;
1122 1122
         $results['faults'] 	= $total_faults;
1123
-        $results['total']	= $total_weight;
1123
+        $results['total'] = $total_weight;
1124 1124
         $results['porcent'] = $porcent;
1125 1125
 
1126 1126
         return $results;
@@ -1134,8 +1134,8 @@  discard block
 block discarded – undo
1134 1134
      */
1135 1135
     public function get_users_attendance_sheet($attendance_id, $user_id = 0, $groupId = null)
1136 1136
     {
1137
-        $tbl_attendance_sheet 	= Database::get_course_table(TABLE_ATTENDANCE_SHEET);
1138
-        $tbl_attendance_calendar= Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
1137
+        $tbl_attendance_sheet = Database::get_course_table(TABLE_ATTENDANCE_SHEET);
1138
+        $tbl_attendance_calendar = Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
1139 1139
 
1140 1140
         $attendance_calendar = $this->get_attendance_calendar($attendance_id, 'all', null, $groupId);
1141 1141
         $calendar_ids = array();
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
                             WHERE
1158 1158
                                 c_id = $course_id AND
1159 1159
                                 user_id = '$uid' AND
1160
-                                attendance_calendar_id IN(".implode(',',$calendar_ids).")
1160
+                                attendance_calendar_id IN(".implode(',', $calendar_ids).")
1161 1161
                             ";
1162 1162
                     $res = Database::query($sql);
1163 1163
                     if (Database::num_rows($res) > 0) {
@@ -1179,7 +1179,7 @@  discard block
 block discarded – undo
1179 1179
                             att.c_id = $course_id AND
1180 1180
                             cal.c_id =  $course_id AND
1181 1181
                             att.user_id = '$user_id' AND
1182
-                            att.attendance_calendar_id IN (".implode(',',$calendar_ids).")
1182
+                            att.attendance_calendar_id IN (".implode(',', $calendar_ids).")
1183 1183
                         ORDER BY date_time";
1184 1184
                 $res = Database::query($sql);
1185 1185
                 if (Database::num_rows($res) > 0) {
@@ -1257,7 +1257,7 @@  discard block
 block discarded – undo
1257 1257
      */
1258 1258
     public function get_user_score($user_id, $attendance_id, $groupId = null)
1259 1259
     {
1260
-        $tbl_attendance_result 	= Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1260
+        $tbl_attendance_result = Database::get_course_table(TABLE_ATTENDANCE_RESULT);
1261 1261
         $tbl_attendance_sheet = Database::get_course_table(TABLE_ATTENDANCE_SHEET);
1262 1262
         $tbl_attendance_cal_rel_group = Database::get_course_table(TABLE_ATTENDANCE_CALENDAR_REL_GROUP);
1263 1263
         $tbl_attendance_cal = Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
@@ -1370,7 +1370,7 @@  discard block
 block discarded – undo
1370 1370
                    ";
1371 1371
         }
1372 1372
 
1373
-        if (!in_array($type, array('today', 'all', 'all_done', 'all_not_done','calendar_id'))) {
1373
+        if (!in_array($type, array('today', 'all', 'all_done', 'all_not_done', 'calendar_id'))) {
1374 1374
             $type = 'all';
1375 1375
         }
1376 1376
 
@@ -1378,7 +1378,7 @@  discard block
 block discarded – undo
1378 1378
             case 'calendar_id':
1379 1379
                 $calendar_id = intval($calendar_id);
1380 1380
                 if (!empty($calendar_id)) {
1381
-                    $sql.= " AND c.id = $calendar_id";
1381
+                    $sql .= " AND c.id = $calendar_id";
1382 1382
                 }
1383 1383
                 break;
1384 1384
             case 'today':
@@ -1399,7 +1399,7 @@  discard block
 block discarded – undo
1399 1399
         $rs = Database::query($sql);
1400 1400
         $data = array();
1401 1401
         if (Database::num_rows($rs) > 0) {
1402
-            while ($row = Database::fetch_array($rs,'ASSOC')) {
1402
+            while ($row = Database::fetch_array($rs, 'ASSOC')) {
1403 1403
                 $row['db_date_time'] = $row['date_time'];
1404 1404
                 $row['date_time'] = api_get_local_time($row['date_time']);
1405 1405
                 $row['date'] = api_format_date($row['date_time'], DATE_FORMAT_SHORT);
@@ -1764,14 +1764,14 @@  discard block
 block discarded – undo
1764 1764
      * @param   int     The number of years to add
1765 1765
      * @return  int     The new timestamp
1766 1766
      */
1767
-    private function add_month($timestamp, $num=1)
1767
+    private function add_month($timestamp, $num = 1)
1768 1768
     {
1769 1769
         $values = api_get_utc_datetime($timestamp);
1770
-        $values = str_replace(array(':','-',' '), '/', $values);
1771
-        list($y, $m, $d, $h, $n, $s) = split('/',$values);
1772
-        if($m+$num>12) {
1773
-            $y += floor($num/12);
1774
-            $m += $num%12;
1770
+        $values = str_replace(array(':', '-', ' '), '/', $values);
1771
+        list($y, $m, $d, $h, $n, $s) = split('/', $values);
1772
+        if ($m + $num > 12) {
1773
+            $y += floor($num / 12);
1774
+            $m += $num % 12;
1775 1775
         } else {
1776 1776
             $m += $num;
1777 1777
         }
@@ -1829,7 +1829,7 @@  discard block
 block discarded – undo
1829 1829
      * @param	bool	true for removing all calendar inside current attendance, false for removing by calendar id
1830 1830
      * @return	int affected rows
1831 1831
      */
1832
-    public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false)
1832
+    public function attendance_calendar_delete($calendar_id, $attendance_id, $all_delete = false)
1833 1833
     {
1834 1834
         $tbl_attendance_calendar = Database::get_course_table(TABLE_ATTENDANCE_CALENDAR);
1835 1835
         $tbl_attendance_sheet = Database::get_course_table(TABLE_ATTENDANCE_SHEET);
@@ -1986,7 +1986,7 @@  discard block
 block discarded – undo
1986 1986
 
1987 1987
         $dateTimeStartOriginal = new DateTime($startDate);
1988 1988
         $dateTimeStart = new DateTime($startDate);
1989
-        $dateTimeEnd= new DateTime($endDate);
1989
+        $dateTimeEnd = new DateTime($endDate);
1990 1990
         $interval = $dateTimeStart->diff($dateTimeEnd);
1991 1991
         $days = intval($interval->format('%a'));
1992 1992
 
@@ -2059,7 +2059,7 @@  discard block
 block discarded – undo
2059 2059
                 0,
2060 2060
                 $user['lastname'].' '.$user['firstname'].' ('.$user['username'].')'
2061 2061
             );
2062
-            $row ++;
2062
+            $row++;
2063 2063
         }
2064 2064
 
2065 2065
         $column = 1;
@@ -2136,7 +2136,7 @@  discard block
 block discarded – undo
2136 2136
         $tableToString = $table->toHtml();
2137 2137
 
2138 2138
         $params = array(
2139
-            'filename' => get_lang('Attendance') . '_' . api_get_utc_datetime(),
2139
+            'filename' => get_lang('Attendance').'_'.api_get_utc_datetime(),
2140 2140
             'pdf_title' => get_lang('Attendance'),
2141 2141
             'course_code' => api_get_course_id(),
2142 2142
             'show_real_course_teachers' => true
Please login to merge, or discard this patch.
main/inc/lib/app_view.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param string  tool name (optional)
17 17
      * @param string $template_path
18 18
      */
19
-    public function __construct($toolname = '', $template_path=null)
19
+    public function __construct($toolname = '', $template_path = null)
20 20
     {
21 21
         if (!empty($toolname)) {
22 22
             if (isset($template_path)) {
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             if (is_dir($path)) {
28 28
                 $this->tool_path = $path;
29 29
             } else {
30
-                throw new Exception('View::__construct() $path directory does not exist ' . $path);
30
+                throw new Exception('View::__construct() $path directory does not exist '.$path);
31 31
             }
32 32
         }
33 33
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function set_data($data)
40 40
     {
41 41
         if (!is_array($data)) {
42
-            throw new Exception('View::set_data() $data must to be an array, you have sent a' . gettype( $data ));
42
+            throw new Exception('View::set_data() $data must to be an array, you have sent a'.gettype($data));
43 43
         }
44 44
         $this->data = $data;
45 45
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param string layout view
50 50
      * @param string $layout
51 51
      */
52
-    public function set_layout( $layout )
52
+    public function set_layout($layout)
53 53
     {
54 54
         $this->layout = $layout;
55 55
     }
Please login to merge, or discard this patch.
main/course_progress/thematic_plan.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 // actions menu
11 11
 $new_thematic_plan_data = array();
12 12
 if (!empty($thematic_plan_data))
13
-foreach($thematic_plan_data as $thematic_item) {
13
+foreach ($thematic_plan_data as $thematic_item) {
14 14
     $thematic_simple_list[] = $thematic_item['description_type'];
15 15
     $new_thematic_plan_data[$thematic_item['description_type']] = $thematic_item;
16 16
 }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     }
26 26
 }
27 27
 
28
-$i=1;
28
+$i = 1;
29 29
 
30 30
 echo Display::tag('h2', $thematic_data['title']);
31 31
 echo $thematic_data['content'];
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
             $thematic_plan = null;
68 68
         } else {
69 69
             $thematic_plan = null;
70
-            $default['title['.$id.']']       = $title;
71
-            $default['description['.$id.']']= '';
70
+            $default['title['.$id.']'] = $title;
71
+            $default['description['.$id.']'] = '';
72 72
         }
73 73
         $form->setDefaults($default);
74 74
     }
Please login to merge, or discard this patch.