Passed
Push — 1.10.x ( aae6b1...e5a590 )
by Yannick
131:05 queued 81:36
created
main/inc/lib/phpdocx/lib/log4php/configurators/LoggerConfiguratorPhp.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
 		$this->_bbbServerBaseUrl 	= CONFIG_SERVER_BASE_URL;
60 60
 	}
61 61
 
62
+	/**
63
+	 * @param string $url
64
+	 */
62 65
 	private function _processXmlResponse($url){
63 66
 	/*
64 67
 	A private utility method used by other public methods to process XML responses.
Please login to merge, or discard this patch.
main/inc/lib/phpseclib/Crypt/AES.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -98,6 +98,7 @@  discard block
 block discarded – undo
98 98
      * CRYPT_DES_MODE_ECB or CRYPT_DES_MODE_CBC.  If not explictly set, CRYPT_DES_MODE_CBC will be used.
99 99
      *
100 100
      * @param optional Integer $mode
101
+     * @param integer $mode
101 102
      * @return Crypt_TripleDES
102 103
      * @access public
103 104
      */
@@ -318,6 +319,7 @@  discard block
 block discarded – undo
318 319
      *
319 320
      * @access public
320 321
      * @param String $plaintext
322
+     * @return string
321 323
      */
322 324
     function encrypt($plaintext)
323 325
     {
Please login to merge, or discard this patch.
main/inc/lib/phpseclib/Crypt/Blowfish.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -563,6 +563,7 @@  discard block
 block discarded – undo
563 563
      * If not explictly set, CRYPT_TWOFISH_MODE_CBC will be used.
564 564
      *
565 565
      * @param optional Integer $mode
566
+     * @param integer $mode
566 567
      * @access public
567 568
      */
568 569
     function Crypt_Twofish($mode = CRYPT_TWOFISH_MODE_CBC)
@@ -1072,6 +1073,7 @@  discard block
 block discarded – undo
1072 1073
      *
1073 1074
      * @see Crypt_Twofish::_unpad()
1074 1075
      * @access private
1076
+     * @param string $text
1075 1077
      */
1076 1078
     function _pad($text)
1077 1079
     {
@@ -1099,6 +1101,7 @@  discard block
 block discarded – undo
1099 1101
      *
1100 1102
      * @see Crypt_Twofish::_pad()
1101 1103
      * @access private
1104
+     * @param string $text
1102 1105
      */
1103 1106
     function _unpad($text)
1104 1107
     {
Please login to merge, or discard this patch.
main/newscorm/openoffice_text.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
      * Manages page splitting
165 166
      * @param	string	Page header
166 167
      * @param	string	Page body
168
+     * @param string $body
167 169
      * @return	void
168 170
      */
169 171
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/user/subscribe_user.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -735,7 +735,6 @@
 block discarded – undo
735 735
  * lock = the user can no longer use this account
736 736
  * @author Patrick Cool <[email protected]>, Ghent University
737 737
  * @param int $active the current state of the account
738
- * @param int $user_id The user id
739 738
  * @param string $urlParams
740 739
  *
741 740
  * @return string Some HTML-code with the lock/unlock button
Please login to merge, or discard this patch.
main/webservices/access_url.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
 define('WS_ERROR_SECRET_KEY', 1);
22 22
 
23
+/**
24
+ * @param integer $code
25
+ */
23 26
 function return_error($code) {
24 27
     $fault = null;
25 28
     switch ($code) {
Please login to merge, or discard this patch.
main/webservices/cm_webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -453,6 +453,7 @@
 block discarded – undo
453 453
 	 * @param string Session id field name
454 454
 	 * @param string Session id value
455 455
 	 * @param int State (1 to subscribe, 0 to unsubscribe)
456
+	 * @param integer $state
456 457
 	 * @return mixed True on success, WSError otherwise
457 458
 	 */
458 459
 	protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) {
Please login to merge, or discard this patch.
main/webservices/webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -453,6 +453,7 @@
 block discarded – undo
453 453
 	 * @param string Session id field name
454 454
 	 * @param string Session id value
455 455
 	 * @param int State (1 to subscribe, 0 to unsubscribe)
456
+	 * @param integer $state
456 457
 	 * @return mixed True on success, WSError otherwise
457 458
 	 */
458 459
 	protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) {
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Doc Comments   +21 added lines, -18 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      *  @param string
279 279
      *  @param string
280
-     * 	@return true if the user is allowed to see the document, false otherwise
280
+     * 	@return boolean if the user is allowed to see the document, false otherwise
281 281
      * 	@author Sergio A Kessler, first version
282 282
      * 	@author Roan Embrechts, bugfix
283 283
      *  @todo not only check if a file is visible, but also check if the user is allowed to see the file??
@@ -1527,7 +1527,7 @@  discard block
 block discarded – undo
1527 1527
      * Return true if the documentpath have visibility=1 as
1528 1528
      * item_property (you should use the is_visible_by_id)
1529 1529
      *
1530
-     * @param string $document_path the relative complete path of the document
1530
+     * @param string $doc_path the relative complete path of the document
1531 1531
      * @param array  $course the _course array info of the document's course
1532 1532
      * @param int
1533 1533
      * @param string
@@ -1612,6 +1612,8 @@  discard block
 block discarded – undo
1612 1612
      * @param   int
1613 1613
      * @param   int
1614 1614
      * @param bool
1615
+     * @param integer $session_id
1616
+     * @param integer $user_id
1615 1617
      * @return  bool
1616 1618
      */
1617 1619
     public static function is_visible_by_id(
@@ -2090,6 +2092,7 @@  discard block
 block discarded – undo
2090 2092
      * @param	bool  	is file or string html
2091 2093
      * @param	string	type (one of the app tools) - optional (otherwise takes the current item's type)
2092 2094
      * @param	int		level of recursivity we're in
2095
+     * @param string $source_html
2093 2096
      * @return	array	List of file paths. An additional field containing 'local' or 'remote' helps determine
2094 2097
      * if the file should be copied into the zip or just linked
2095 2098
      */
@@ -2913,6 +2916,7 @@  discard block
 block discarded – undo
2913 2916
 
2914 2917
     /**
2915 2918
      * Obtains the text inside the file with the right parser
2919
+     * @param string $doc_path
2916 2920
      */
2917 2921
     public static function get_text_content($doc_path, $doc_mime)
2918 2922
     {
@@ -3163,6 +3167,7 @@  discard block
 block discarded – undo
3163 3167
      * Shows a play icon next to the document title in the document list
3164 3168
      * @param int
3165 3169
      * @param string
3170
+     * @param integer|null $i
3166 3171
      * @return string	html content
3167 3172
      */
3168 3173
     static function generate_media_preview($i, $type = 'simple')
@@ -3557,7 +3562,7 @@  discard block
 block discarded – undo
3557 3562
      * @param bool $add_move_button
3558 3563
      * @param string $target
3559 3564
      * @param string $overwrite_url
3560
-     * @return null|string
3565
+     * @return string
3561 3566
      */
3562 3567
     private static function parseFile(
3563 3568
         $course_info,
@@ -4058,7 +4063,7 @@  discard block
 block discarded – undo
4058 4063
     }
4059 4064
 
4060 4065
     /**
4061
-     * @return array
4066
+     * @return string[]
4062 4067
      */
4063 4068
     public static function get_web_odf_extension_list()
4064 4069
     {
@@ -4067,10 +4072,10 @@  discard block
 block discarded – undo
4067 4072
 
4068 4073
     /**
4069 4074
      * Set of extension allowed to use Jodconverter
4070
-     * @param $mode 'from'
4075
+     * @param string $mode 'from'
4071 4076
      *              'to'
4072 4077
      *              'all'
4073
-     * @param $format   'text'
4078
+     * @param string $format   'text'
4074 4079
      *                  'spreadsheet'
4075 4080
      *                  'presentation'
4076 4081
      *                  'drawing'
@@ -4274,7 +4279,7 @@  discard block
 block discarded – undo
4274 4279
     }
4275 4280
 
4276 4281
     /**
4277
-     * @return array
4282
+     * @return string[]
4278 4283
      */
4279 4284
     public static function get_system_folders()
4280 4285
     {
@@ -4292,7 +4297,7 @@  discard block
 block discarded – undo
4292 4297
     }
4293 4298
 
4294 4299
     /**
4295
-     * @return array
4300
+     * @return string[]
4296 4301
      */
4297 4302
     public static function getProtectedFolderFromStudent()
4298 4303
     {
@@ -4448,7 +4453,7 @@  discard block
 block discarded – undo
4448 4453
      * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg
4449 4454
      * @param string $wavFile
4450 4455
      * @param bool $removeWavFileIfSuccess
4451
-     * @return bool
4456
+     * @return string|false
4452 4457
      */
4453 4458
     public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false)
4454 4459
     {
@@ -5536,9 +5541,6 @@  discard block
 block discarded – undo
5536 5541
     /**
5537 5542
      * Creates the row of edit icons for a file/folder
5538 5543
      *
5539
-     * @param string $curdirpath current path (cfr open folder)
5540
-     * @param string $type (file/folder)
5541
-     * @param string $path dbase path of file/folder
5542 5544
      * @param int $visibility (1/0)
5543 5545
      * @param int $id dbase id of the document
5544 5546
      * @return string html img tags with hyperlinks
@@ -5867,7 +5869,7 @@  discard block
 block discarded – undo
5867 5869
     /**
5868 5870
      * Gets the path translated with title of docs and folders
5869 5871
      * @param string $path the real path
5870
-     * @return the path which should be displayed
5872
+     * @return string path which should be displayed
5871 5873
      */
5872 5874
     public static function get_titles_of_path($path)
5873 5875
     {
@@ -5922,7 +5924,8 @@  discard block
 block discarded – undo
5922 5924
 
5923 5925
     /**
5924 5926
      * Checks whether the user is in shared folder
5925
-     * @return return bool Return true when user is into shared folder
5927
+     * @param integer $current_session_id
5928
+     * @return boolean bool Return true when user is into shared folder
5926 5929
      */
5927 5930
     public static function is_shared_folder($curdirpath, $current_session_id)
5928 5931
     {
@@ -5938,7 +5941,7 @@  discard block
 block discarded – undo
5938 5941
 
5939 5942
     /**
5940 5943
      * Checks whether the user is into any user shared folder
5941
-     * @return return bool Return true when user is in any user shared folder
5944
+     * @return boolean bool Return true when user is in any user shared folder
5942 5945
      */
5943 5946
     public static function is_any_user_shared_folder($path, $current_session_id)
5944 5947
     {
@@ -6152,7 +6155,7 @@  discard block
 block discarded – undo
6152 6155
      * @param int $id
6153 6156
      * @param array $courseInfo
6154 6157
      * @param int $sessionId
6155
-     * @return bool
6158
+     * @return boolean|null
6156 6159
      */
6157 6160
     public static function downloadDeletedDocument($id, $courseInfo, $sessionId)
6158 6161
     {
@@ -6171,7 +6174,7 @@  discard block
 block discarded – undo
6171 6174
      * @param array $courseInfo
6172 6175
      * @param int $sessionId
6173 6176
      *
6174
-     * @return bool
6177
+     * @return false|null
6175 6178
      */
6176 6179
     public static function downloadAllDeletedDocument($courseInfo, $sessionId)
6177 6180
     {
@@ -6210,7 +6213,7 @@  discard block
 block discarded – undo
6210 6213
      * @param array $courseInfo
6211 6214
      * @param int $sessionId
6212 6215
      *
6213
-     * @return bool
6216
+     * @return false|null
6214 6217
      */
6215 6218
     public function deleteDocumentsFromSession($courseInfo, $sessionId)
6216 6219
     {
Please login to merge, or discard this patch.