Completed
Push — master ( 1ffdef...2f548d )
by Jesus
01:59
created
bbb_ajax.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
 define('AJAX_SCRIPT', true);
27 27
 
28
-require(__DIR__.'/../../config.php');
29
-require_once(__DIR__.'/locallib.php');
30
-require_once(__DIR__.'/brokerlib.php');
28
+require(__DIR__ . '/../../config.php');
29
+require_once(__DIR__ . '/locallib.php');
30
+require_once(__DIR__ . '/brokerlib.php');
31 31
 
32 32
 global $PAGE, $USER, $CFG, $SESSION, $DB;
33 33
 
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 require_sesskey();
45 45
 
46 46
 if (empty($params['action'])) {
47
-    header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included');
47
+    header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included');
48 48
     return;
49 49
 }
50 50
 
51 51
 $error = bigbluebuttonbn_broker_validate_parameters($params);
52 52
 if (!empty($error)) {
53
-    header('HTTP/1.0 400 Bad Request. '.$error);
53
+    header('HTTP/1.0 400 Bad Request. ' . $error);
54 54
     return;
55 55
 }
56 56
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         echo $completionvalidate;
136 136
         return;
137 137
     }
138
-    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist');
138
+    header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist');
139 139
 } catch (Exception $e) {
140
-    header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage());
140
+    header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage());
141 141
 }
Please login to merge, or discard this patch.