Completed
Pull Request — master (#142)
by Jesus
02:01
created
lib.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
  * @uses FEATURE_GRADE_OUTCOMES
102 102
  * @uses FEATURE_SHOW_DESCRIPTION
103 103
  * @param string $feature
104
- * @return mixed True if yes (some features may use other values)
104
+ * @return null|boolean True if yes (some features may use other values)
105 105
  */
106 106
 function bigbluebuttonbn_supports($feature) {
107 107
     if (!$feature) {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
  *
221 221
  * @param object $bigbluebuttonbn Id of the module instance
222 222
  *
223
- * @return bool Success/Failure
223
+ * @return boolean|null Success/Failure
224 224
  */
225 225
 function bigbluebuttonbn_delete_instance_log($bigbluebuttonbn) {
226 226
     global $DB;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
  * @param object $mod
242 242
  * @param object $bigbluebuttonbn
243 243
  *
244
- * @return bool
244
+ * @return string
245 245
  */
246 246
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
247 247
     if ($completed = bigbluebuttonbn_user_complete($course, $user, $mod, $bigbluebuttonbn)) {
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
  * @param stdClass $context       context object
783 783
  * @param string   $filearea      file area
784 784
  *
785
- * @return false|null false if file not valid
785
+ * @return boolean false if file not valid
786 786
  */
787 787
 function bigbluebuttonbn_pluginfile_valid($context, $filearea) {
788 788
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
  * Remove this block when restored
65 65
  */
66 66
 
67
- /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
67
+    /** @var BIGBLUEBUTTONBN_DEFAULT_SERVER_URL string of default bigbluebutton server url */
68 68
 const BIGBLUEBUTTONBN_DEFAULT_SERVER_URL = 'http://test-install.blindsidenetworks.com/bigbluebutton/';
69 69
 /** @var BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET string of default bigbluebutton server shared secret */
70 70
 const BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET = '8cd8ef52e8e101574e400365b55e11a6';
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     $sql = "SELECT COUNT(*) FROM {bigbluebuttonbn_logs} ";
279 279
     $sql .= "WHERE courseid = ? AND bigbluebuttonbnid = ? AND userid = ? AND (log = ? OR log = ?)";
280 280
     $result = $DB->count_records_sql($sql, array($course->id, $bigbluebuttonbn->id, $user->id,
281
-                                              BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
281
+                                                BIGBLUEBUTTONBN_LOG_EVENT_JOIN, BIGBLUEBUTTONBN_LOG_EVENT_PLAYED));
282 282
     return $result;
283 283
 }
284 284
 
@@ -507,12 +507,12 @@  discard block
 block discarded – undo
507 507
     $str  = '<div class="bigbluebuttonbn overview">'."\n";
508 508
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
509 509
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
510
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
510
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
511 511
     $str .= '  </div>'."\n";
512 512
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
513 513
         '</div>'."\n";
514 514
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
515
-      .'</div>'."\n";
515
+        .'</div>'."\n";
516 516
     $str .= '</div>'."\n";
517 517
     return $str;
518 518
 }
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
             $bigbluebuttonbn->coursemodule,
718 718
             'bigbluebuttonbn',
719 719
             $bigbluebuttonbn->id, $bigbluebuttonbn->completionexpected
720
-          );
720
+            );
721 721
     }
722 722
 }
723 723
 /**
Please login to merge, or discard this patch.