Passed
Push — 1.10.x ( 084dcf...a2cc02 )
by Yannick
585:41 queued 540:21
created
plugin/ticket/src/assign_tickets.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 /**
4
- *
5
- * @package chamilo.plugin.ticket
6
- */
4
+     *
5
+     * @package chamilo.plugin.ticket
6
+     */
7 7
 
8 8
 require_once '../config.php';
9 9
 $plugin = TicketPlugin::create();
10 10
 
11 11
 api_protect_course_script();
12 12
 if (!api_is_allowed_to_edit()) {
13
-	api_not_allowed();
13
+    api_not_allowed();
14 14
 }
15 15
 $course_info = api_get_course_info();
16 16
 $course_code = $course_info['code'];
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 echo '<div id="confirmation"></div>';
20 20
 $id = intval($_GET['id']);
21 21
 $tblWeeklyReport = Database::get_main_table('rp_reporte_semanas');
22
-$sql ="SELECT * FROM $tblWeeklyReport WHERE id = '$id'";
22
+$sql = "SELECT * FROM $tblWeeklyReport WHERE id = '$id'";
23 23
 $sql_tasks = "SELECT id AS colid, title as coltitle
24 24
     FROM ".Database::get_course_table(TABLE_STUDENT_PUBLICATION)."
25 25
     WHERE parent_id = 0
@@ -44,27 +44,27 @@  discard block
 block discarded – undo
44 44
 $result_forum = Database::query($sql_forum);
45 45
 
46 46
 echo '<div class="row">
47
-        <input type="hidden" id="rs_id" name ="rs_id" value="' . $id . '">
48
-        <div class="formw">' . get_lang('PleaseSelectTasks') . '</div>
47
+        <input type="hidden" id="rs_id" name ="rs_id" value="' . $id.'">
48
+        <div class="formw">' . get_lang('PleaseSelectTasks').'</div>
49 49
     </div>';
50 50
 echo '<div class="row"><div class="formw"><select name ="work_id" id="work_id">';
51
-echo '<option value="0"' . (($row['colid'] == $rs->work_id) ? "selected" : "") . '>' . get_lang('PleaseSelect') . '</option>';
51
+echo '<option value="0"'.(($row['colid'] == $rs->work_id) ? "selected" : "").'>'.get_lang('PleaseSelect').'</option>';
52 52
 while ($row = Database::fetch_assoc($result_tasks)) {
53
-    echo '<option value="' . $row['colid'] . '"' . (($row['colid'] == $rs->work_id) ? "selected" : "") . '>' . $row['coltitle'] . '</option>';
53
+    echo '<option value="'.$row['colid'].'"'.(($row['colid'] == $rs->work_id) ? "selected" : "").'>'.$row['coltitle'].'</option>';
54 54
 }
55 55
 echo '</select></div><div>';
56 56
 echo '<div class="row">
57
-        <div class="formw">' . get_lang('PleaseSelectThread') . '</div>
57
+        <div class="formw">' . get_lang('PleaseSelectThread').'</div>
58 58
     </div>';
59 59
 echo '<div class="row"><div class="formw"><select name ="forum_id" id="forum_id">';
60
-echo '<option value="0"' . (($row['colid'] == $rs->work_id) ? "forum_id" : "") . '>' . get_lang('PleaseSelect') . '</option>';
60
+echo '<option value="0"'.(($row['colid'] == $rs->work_id) ? "forum_id" : "").'>'.get_lang('PleaseSelect').'</option>';
61 61
 while ($row = Database::fetch_assoc($result_forum)) {
62
-    echo '<option value="' . $row['colid'] . '"' . (($row['colid'] == $rs->forum_id) ? "selected" : "") . '>' . $row['coltitle'] . '</option>';
62
+    echo '<option value="'.$row['colid'].'"'.(($row['colid'] == $rs->forum_id) ? "selected" : "").'>'.$row['coltitle'].'</option>';
63 63
 }
64 64
 echo '</select></div><div>';
65 65
 echo '<div class="row">
66 66
         <div class="formw">
67
-        <button class="save" name="edit" type="button" value="' . get_lang('Edit') . '" onClick="save(' . "$id" . ');">' . get_lang('Edit') . '</button>
67
+        <button class="save" name="edit" type="button" value="' . get_lang('Edit').'" onClick="save('."$id".');">'.get_lang('Edit').'</button>
68 68
         </div>
69 69
     </div>';
70 70
 echo '</form>';
Please login to merge, or discard this patch.
plugin/ticket/src/tutor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         var url     = this.href;
18 18
         var dialog  = $("#dialog");
19 19
         if ($("#dialog").length == 0) {
20
-                dialog  = $("' . '<div id="dialog" style="display:hidden"></div>' . '").appendTo("body");
20
+                dialog  = $("' . '<div id="dialog" style="display:hidden"></div>'.'").appendTo("body");
21 21
         }
22 22
 
23 23
         // load remote content
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 $.ajax({
57 57
 		contentType: "application/x-www-form-urlencoded",
58 58
 		beforeSend: function(objeto) {
59
-		$("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH) . 'javascript/indicator.gif\" />"); },
59
+		$("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH).'javascript/indicator.gif\" />"); },
60 60
 		type: "POST",
61 61
 		url: "update_report.php",
62 62
 		data: "work_id="+work_id+"&forum_id="+forum_id+"&rs_id="+rs_id,
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 $course_code = api_get_course_id();
96 96
 $results = initializeReport($course_code);
97 97
 if (isset($_GET['action'])) {
98
-    Export::arrayToXls($results['export'], "COURSE_USER_REPORT" . $course_code);
98
+    Export::arrayToXls($results['export'], "COURSE_USER_REPORT".$course_code);
99 99
 } else {
100 100
     Display::display_header();
101 101
     api_protect_course_script();
Please login to merge, or discard this patch.
plugin/ticket/src/update_report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 if (!api_is_allowed_to_edit()) {
17 17
     Display::display_error_message($plugin->get_lang("DeniedAccess"));
18 18
 } else {
19
-    $sql = "UPDATE " . Database::get_main_table('rp_reporte_semanas') . "
19
+    $sql = "UPDATE ".Database::get_main_table('rp_reporte_semanas')."
20 20
         SET work_id = '$work_id', forum_id = '$forum_id'
21 21
         WHERE  id ='$rs_id'";
22 22
     Database::query($sql);
Please login to merge, or discard this patch.
plugin/ticket/database.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         'name' => $status
186 186
     );
187 187
     Database::insert($table, $attributes);
188
-    $i ++;
188
+    $i++;
189 189
 }
190 190
 //END
191 191
 
@@ -221,5 +221,5 @@  discard block
 block discarded – undo
221 221
 $rsTab = $objPlugin->addTab('Ticket', 'plugin/ticket/src/myticket.php');
222 222
 
223 223
 if ($rsTab) {
224
-    echo "<script>location.href = '" . $_SERVER['REQUEST_URI'] . "';</script>";
224
+    echo "<script>location.href = '".$_SERVER['REQUEST_URI']."';</script>";
225 225
 }
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Contains the SQL for the tickets management plugin database structure
4
- */
3
+     * Contains the SQL for the tickets management plugin database structure
4
+     */
5 5
 
6 6
 $objPlugin = TicketPlugin::create();
7 7
 
Please login to merge, or discard this patch.
plugin/ticket/lang/spanish.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 $strings['SrcEmail'] = "Email";
54 54
 $strings['SrcPhone'] = "Teléfono";
55 55
 $strings['SrcPresential'] = "Presencial";
56
-$strings['TicketAssignedMsg']    = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>";
56
+$strings['TicketAssignedMsg'] = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>";
57 57
 $strings['TicketAssignX'] = "[TICKETS] Asignación de Ticket #%s ";
58 58
 $strings['AreYouSureYouWantToCloseTheTicket'] = "¿Está seguro que quiere cerrar el ticket?";
59 59
 $strings['AreYouSureYouWantToUnassignTheTicket'] = "¿Está seguro que quiere desasignarse el ticket?";
Please login to merge, or discard this patch.
plugin/ticket/config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 define('CAT_FORO', 'FOR');
39 39
 define('CAT_ANNU', 'ANN');
40 40
 
41
-require_once __DIR__ . '/../../main/inc/global.inc.php';
41
+require_once __DIR__.'/../../main/inc/global.inc.php';
42 42
 
43
-require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php';
44
-require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php';
43
+require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket_plugin.class.php';
44
+require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket.class.php';
Please login to merge, or discard this patch.
plugin/date/index.act.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
  * Initialization
8 8
  */
9 9
 $convert_lang_to_code = array(
10
-  "english" => "en_US",
11
-  "french"  => "fr_BE",
12
-  "dutch" => "nl_NL",
13
-  "german" => "de_DE",
14
-  "japanese" => "ja_JP",
15
-  "danish" => "da_DK",
10
+    "english" => "en_US",
11
+    "french"  => "fr_BE",
12
+    "dutch" => "nl_NL",
13
+    "german" => "de_DE",
14
+    "japanese" => "ja_JP",
15
+    "danish" => "da_DK",
16 16
 );
17 17
 if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){
18
-  $code = $convert_lang_to_code[$_SESSION['user_language_choice']];
19
-  $locale = setlocale(LC_TIME,$code);
18
+    $code = $convert_lang_to_code[$_SESSION['user_language_choice']];
19
+    $locale = setlocale(LC_TIME,$code);
20 20
 }
21 21
 $date = strftime('%c');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
   "japanese" => "ja_JP",
15 15
   "danish" => "da_DK",
16 16
 );
17
-if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){
17
+if (!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])) {
18 18
   $code = $convert_lang_to_code[$_SESSION['user_language_choice']];
19
-  $locale = setlocale(LC_TIME,$code);
19
+  $locale = setlocale(LC_TIME, $code);
20 20
 }
21 21
 $date = strftime('%c');
Please login to merge, or discard this patch.
plugin/date/index.dsp.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Display script for example date plugin
4
- * @package chamilo.plugin.date
5
- */
3
+     * Display script for example date plugin
4
+     * @package chamilo.plugin.date
5
+     */
6 6
 /**
7
- * Display
8
- */
7
+     * Display
8
+     */
9 9
 echo '<div class="well">'.strip_tags($date).'</div>';
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
plugin/date/plugin.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
4
- * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
5
- * @package chamilo.plugin
6
- * @author Yannick Warnier <[email protected]>
7
- */
3
+     * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
4
+     * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
5
+     * @package chamilo.plugin
6
+     * @author Yannick Warnier <[email protected]>
7
+     */
8 8
 /**
9
- * Plugin details (must be present)
10
- */
9
+     * Plugin details (must be present)
10
+     */
11 11
 //the plugin title
12 12
 $plugin_info['title']='Date';
13 13
 //the comments that go with the plugin
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
  * Plugin details (must be present)
10 10
  */
11 11
 //the plugin title
12
-$plugin_info['title']='Date';
12
+$plugin_info['title'] = 'Date';
13 13
 //the comments that go with the plugin
14
-$plugin_info['comment']="Multinational date display";
14
+$plugin_info['comment'] = "Multinational date display";
15 15
 //the plugin version
16
-$plugin_info['version']='1.0';
16
+$plugin_info['version'] = '1.0';
17 17
 //the plugin author
18
-$plugin_info['author']='Yannick Warnier';
18
+$plugin_info['author'] = 'Yannick Warnier';
Please login to merge, or discard this patch.