Test Setup Failed
Push — master ( 4e700f...c7183e )
by Julito
63:12
created
main/inc/lib/export.lib.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @param string Name of common tag to place each line in
158 158
      * @param string Name of the root element. A root element should always be given.
159 159
      * @param string Encoding in which the data is provided
160
-     * @return void  Prompts the user for a file download
160
+     * @return boolean  Prompts the user for a file download
161 161
      */
162 162
     public static function export_complex_table_xml(
163 163
         $data,
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @param string $name
284 284
      * @param string $format
285 285
      *
286
-     * @return bool
286
+     * @return false|null
287 287
      */
288 288
     public static function htmlToOdt($html, $name, $format = 'odt')
289 289
     {
Please login to merge, or discard this patch.
main/inc/lib/course_home.lib.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     /**
219 219
      * Displays the tools of a certain category.
220 220
      *
221
-     * @return void
221
+     * @return string
222 222
      * @param string $course_tool_category	contains the category of tools to display:
223 223
      * "Public", "PublicButHide", "courseAdmin", "claroAdmin"
224 224
      */
@@ -1000,6 +1000,7 @@  discard block
 block discarded – undo
1000 1000
      * Shows the general data for a particular meeting
1001 1001
      *
1002 1002
      * @param id	session id
1003
+     * @param integer $id_session
1003 1004
      * @return string	session data
1004 1005
      */
1005 1006
     public static function show_session_data($id_session)
Please login to merge, or discard this patch.
main/document/document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1703,7 +1703,7 @@
 block discarded – undo
1703 1703
         // Record an image clip from my webcam
1704 1704
         if (api_get_setting('enable_webcam_clip') == 'true') {
1705 1705
             $actionsLeft .= Display::url(
1706
-                Display::return_icon('webcam.png', get_lang('WebCamClip'), '',  ICON_SIZE_MEDIUM),
1706
+                Display::return_icon('webcam.png', get_lang('WebCamClip'), '', ICON_SIZE_MEDIUM),
1707 1707
                 api_get_path(WEB_CODE_PATH).'document/webcam_clip.php?'.api_get_cidreq().'&id='.$document_id
1708 1708
             );
1709 1709
         }
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb.lib.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,7 +209,8 @@  discard block
 block discarded – undo
209 209
      * This value can be overridden by course-specific values
210 210
      * @return  int Maximum number of users set globally
211 211
      */
212
-    public function getMaxUsersLimit() {
212
+    public function getMaxUsersLimit()
213
+    {
213 214
         $limit = $this->maxUsersLimit;
214 215
         if ($limit <= 0) {
215 216
             $limit = 0;
@@ -252,7 +253,8 @@  discard block
 block discarded – undo
252 253
      * Sets the global limit of users in a video-conference room.
253 254
      * @param   int Maximum number of users (globally)
254 255
      */
255
-    public function setMaxUsersLimit($max) {
256
+    public function setMaxUsersLimit($max)
257
+    {
256 258
         if ($max < 0) {
257 259
             $max = 0;
258 260
         }
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Driver/DropBoxDriver.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Close connection
138 138
      *
139
-     * @return void
139
+     * @return boolean
140 140
      * @author Dmitry (dio) Levashov
141 141
      **/
142 142
     public function umount()
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
      * Close opened file
499 499
      *
500 500
      * @param  resource  $fp  file pointer
501
-     * @return bool
501
+     * @return boolean|null
502 502
      * @author Dmitry (dio) Levashov
503 503
      **/
504 504
     protected function _fclose($fp, $path = '')
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
      *
517 517
      * @param  string  $path  parent dir path
518 518
      * @param string  $name  new directory name
519
-     * @return string|bool
519
+     * @return string|false
520 520
      * @author Dmitry (dio) Levashov
521 521
      **/
522 522
     protected function _mkdir($path, $name)
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,8 @@
 block discarded – undo
305 305
     protected function loadFilePath($path)
306 306
     {
307 307
         $realPath = realpath($path);
308
-        if (DIRECTORY_SEPARATOR == '\\') { // windows
308
+        if (DIRECTORY_SEPARATOR == '\\') {
309
+// windows
309 310
             $realPath = str_replace('\\', '\\\\', $realPath);
310 311
         }
311 312
         return $this->db->real_escape_string($realPath);
Please login to merge, or discard this patch.
main/lp/lp_subscribe_users.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 } else {
66 66
     $session
67 67
         ->getUserCourseSubscriptionsByStatus($course, Session::STUDENT)
68
-        ->forAll(function ($i, SessionRelCourseRelUser $sessionCourseUser) use (&$subscribedUsers) {
68
+        ->forAll(function($i, SessionRelCourseRelUser $sessionCourseUser) use (&$subscribedUsers) {
69 69
             $subscribedUsers[$i] = $sessionCourseUser->getUser();
70 70
         });
71 71
 }
Please login to merge, or discard this patch.
main/exercise/multiple_answer.class.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     /**
185 185
      * @inheritdoc
186 186
      */
187
-	public function processAnswersCreation($form, $exercise)
187
+    public function processAnswersCreation($form, $exercise)
188 188
     {
189 189
         $questionWeighting = $nbrGoodAnswers = 0;
190 190
         $objAnswer  = new Answer($this->id);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
      * @inheritdoc
186 186
      */
187 187
 	public function processAnswersCreation($form, $exercise)
188
-    {
188
+	{
189 189
         $questionWeighting = $nbrGoodAnswers = 0;
190 190
         $objAnswer  = new Answer($this->id);
191 191
         $nb_answers = $form->getSubmitValue('nb_answers');
Please login to merge, or discard this patch.
main/exercise/multiple_answer_combination.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,8 +177,8 @@
 block discarded – undo
177 177
     }
178 178
 
179 179
     /**
180
-	 * @inheritdoc
181
-	 */
180
+     * @inheritdoc
181
+     */
182 182
     public function processAnswersCreation($form, $exercise)
183 183
     {
184 184
         $questionWeighting = $nbrGoodAnswers = 0;
Please login to merge, or discard this patch.
main/exercise/unique_answer_no_option.class.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class UniqueAnswerNoOption extends Question
16 16
 {
17
-	public static $typePicture = 'mcuao.png';
18
-	public static $explanationLangVar = 'UniqueAnswerNoOption';
17
+    public static $typePicture = 'mcuao.png';
18
+    public static $explanationLangVar = 'UniqueAnswerNoOption';
19 19
 
20 20
     /**
21 21
      * Constructor
@@ -397,15 +397,15 @@  discard block
 block discarded – undo
397 397
         // sets the total weighting of the question
398 398
         $this->updateWeighting($questionWeighting);
399 399
         $this->save($exercise);
400
-	}
400
+    }
401 401
 
402 402
     /**
403 403
      * @inheritdoc
404 404
      */
405
-	public function return_header($exercise, $counter = null, $score = null)
405
+    public function return_header($exercise, $counter = null, $score = null)
406 406
     {
407
-	    $header = parent::return_header($exercise, $counter, $score);
408
-	    $header .= '<table class="'.$this->question_table_class.'">
407
+        $header = parent::return_header($exercise, $counter, $score);
408
+        $header .= '<table class="'.$this->question_table_class.'">
409 409
 			<tr>
410 410
 				<th>'.get_lang("Choice").'</th>
411 411
 				<th>'.get_lang("ExpectedChoice").'</th>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
      * @inheritdoc
404 404
      */
405 405
 	public function return_header($exercise, $counter = null, $score = null)
406
-    {
406
+	{
407 407
 	    $header = parent::return_header($exercise, $counter, $score);
408 408
 	    $header .= '<table class="'.$this->question_table_class.'">
409 409
 			<tr>
Please login to merge, or discard this patch.