Completed
Pull Request — 1.10.x (#1499)
by
unknown
52:23 queued 20:38
created
main/webservices/webservice.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,8 @@  discard block
 block discarded – undo
37 37
 	 *
38 38
 	 * @param int Error code
39 39
 	 * @param string Error message
40
+	 * @param integer $code
41
+	 * @param string $message
40 42
 	 */
41 43
 	public function __construct($code, $message) {
42 44
 		$this->code = $code;
@@ -47,6 +49,7 @@  discard block
 block discarded – undo
47 49
 	 * Sets the error handler
48 50
 	 *
49 51
 	 * @param WSErrorHandler Error handler
52
+	 * @param WSSoapErrorHandler $handler
50 53
 	 */
51 54
 	public static function setErrorHandler($handler) {
52 55
 		if($handler instanceof WSErrorHandler) {
@@ -81,6 +84,7 @@  discard block
 block discarded – undo
81 84
 	 * Handle method
82 85
 	 *
83 86
 	 * @param WSError Error
87
+	 * @return void
84 88
 	 */
85 89
 	public function handle($error);
86 90
 }
@@ -107,7 +111,7 @@  discard block
 block discarded – undo
107 111
 	 * Verifies the API key
108 112
 	 *
109 113
 	 * @param string Secret key
110
-	 * @return mixed WSError in case of failure, null in case of success
114
+	 * @return WSError|null WSError in case of failure, null in case of success
111 115
 	 */
112 116
 	protected function verifyKey($secret_key) {
113 117
 		$ip = trim($_SERVER['REMOTE_ADDR']);
Please login to merge, or discard this patch.
main/webservices/webservice_session.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_user.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @param array Users
38 38
 	 * @param int Set to 1 to enable and to 0 to disable
39
+	 * @param integer $state
39 40
 	 * @return array Array of results
40 41
 	 */
41 42
 	protected function changeUsersActiveState($users, $state) {
@@ -217,6 +218,11 @@  discard block
 block discarded – undo
217 218
 	 * @param string Phone.
218 219
 	 * @param string Expiration date
219 220
 	 * @param array Extra fields. An array with elements of the form ('field_name' => 'name_of_the_field', 'field_value' => 'value_of_the_field').
221
+	 * @param integer|null $visibility
222
+	 * @param string|null $email
223
+	 * @param string|null $language
224
+	 * @param string|null $phone
225
+	 * @param string|null $expiration_date
220 226
 	 * @return mixed New user id generated by the system, WSError otherwise
221 227
 	 */
222 228
 	protected function createUserHelper($firstname, $lastname, $status, $login, $password, $encrypt_method, $user_id_field_name, $user_id_value, $visibility, $email, $language, $phone, $expiration_date, $extras = array()) {
Please login to merge, or discard this patch.
main/wiki/wiki.inc.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -1,14 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 
4
-use Chamilo\CoreBundle\Component\Editor\Connector;
5 4
 use Chamilo\CoreBundle\Component\Filesystem\Data;
6 5
 use ChamiloSession as Session;
7
-use MediaAlchemyst\Alchemyst;
8
-use MediaAlchemyst\DriversContainer;
9
-use Neutron\TemporaryFilesystem\Manager;
10
-use Neutron\TemporaryFilesystem\TemporaryFilesystem;
11
-use Symfony\Component\Filesystem\Filesystem;
12 6
 
13 7
 /**
14 8
  * Class Wiki
Please login to merge, or discard this patch.
main/work/upload_corrections.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 
4
-use ChamiloSession as Session;
5 4
 use Symfony\Component\Finder\Finder;
6 5
 
7 6
 require_once '../inc/global.inc.php';
Please login to merge, or discard this patch.
plugin/advanced_subscription/src/AdvancedSubscriptionPlugin.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      * Register a user into a queue for a session
371 371
      * @param $userId
372 372
      * @param $sessionId
373
-     * @return bool|int
373
+     * @return false|string
374 374
      */
375 375
     public function addToQueue($userId, $sessionId)
376 376
     {
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
      * Register message with type and status
397 397
      * @param $mailId
398 398
      * @param $userId
399
-     * @param $sessionId
399
+     * @param integer $sessionId
400 400
      * @return bool|int
401 401
      */
402 402
     public function saveLastMessage($mailId, $userId, $sessionId)
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 
510 510
     /**
511 511
      * Check if session is open for subscription
512
-     * @param $sessionId
512
+     * @param integer $sessionId
513 513
      * @param string $fieldVariable
514 514
      * @return bool
515 515
      */
@@ -531,8 +531,8 @@  discard block
 block discarded – undo
531 531
 
532 532
     /**
533 533
      * Check if user is in the session's target group based on its area
534
-     * @param $userId
535
-     * @param $sessionId
534
+     * @param integer $userId
535
+     * @param integer $sessionId
536 536
      * @param string $userFieldVariable
537 537
      * @param string $sessionFieldVariable
538 538
      * @return bool
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
     /**
1003 1003
      * Return the session details data from a session ID (including the extra
1004 1004
      * fields used for the advanced subscription mechanism)
1005
-     * @param $sessionId
1005
+     * @param integer $sessionId
1006 1006
      * @return bool|mixed
1007 1007
      */
1008 1008
     public function getSessionDetails($sessionId)
@@ -1102,7 +1102,7 @@  discard block
 block discarded – undo
1102 1102
 
1103 1103
     /**
1104 1104
      * Return the url to go to session
1105
-     * @param $sessionId
1105
+     * @param integer $sessionId
1106 1106
      *
1107 1107
      * @return string
1108 1108
      */
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb_api.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.
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      *
35
-     * @return StaticPlugin
35
+     * @return BuyCoursesPlugin
36 36
      */
37 37
     static function create()
38 38
     {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     /**
200 200
      * Save a transfer account information
201 201
      * @param array $params The transfer account
202
-     * @return int Rows affected. Otherwise return false
202
+     * @return false|string Rows affected. Otherwise return false
203 203
      */
204 204
     public function saveTransferAccount($params)
205 205
     {
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
     /**
610 610
      * Get session info
611 611
      * @param array $sessionId The session ID
612
-     * @return array
612
+     * @return Chamilo\CoreBundle\Entity\Session
613 613
      */
614 614
     public function getSessionInfo($sessionId)
615 615
     {
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      * Register a sale
703 703
      * @param int $itemId The product ID
704 704
      * @param int $paymentType The payment type
705
-     * @return boolean
705
+     * @return false|string
706 706
      */
707 707
     public function registerSale($itemId, $paymentType)
708 708
     {
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 
885 885
     /**
886 886
      * Get payment types
887
-     * @return array
887
+     * @return string[]
888 888
      */
889 889
     public function getPaymentTypes()
890 890
     {
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
 
923 923
     /**
924 924
      * Get the statuses for sales
925
-     * @return array
925
+     * @return string[]
926 926
      */
927 927
     public function getSaleStatuses()
928 928
     {
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
     
936 936
     /**
937 937
      * Get the statuses for Payouts
938
-     * @return array
938
+     * @return string[]
939 939
      */
940 940
     public function getPayoutStatuses()
941 941
     {
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
 
949 949
     /**
950 950
      * Get the list of product types
951
-     * @return array
951
+     * @return string[]
952 952
      */
953 953
     public function getProductTypes()
954 954
     {
@@ -1329,7 +1329,7 @@  discard block
 block discarded – undo
1329 1329
     /**
1330 1330
      * Register a item
1331 1331
      * @param array $itemData The item data
1332
-     * @return int The item ID. Otherwise return false
1332
+     * @return false|string The item ID. Otherwise return false
1333 1333
      */
1334 1334
     public function registerItem(array $itemData)
1335 1335
     {
@@ -1487,7 +1487,7 @@  discard block
 block discarded – undo
1487 1487
     /**
1488 1488
      * Verify if the beneficiary have a paypal account
1489 1489
      * @param int $userId
1490
-     * @return true if the user have a paypal account, false if not
1490
+     * @return boolean if the user have a paypal account, false if not
1491 1491
      */
1492 1492
     public function verifyPaypalAccountByBeneficiary($userId)
1493 1493
     {
Please login to merge, or discard this patch.
plugin/buycourses/src/paypalfunctions.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -324,6 +324,8 @@
 block discarded – undo
324 324
  * @nvpStr is nvp string.
325 325
  * returns an associtive array containing the response from the server.
326 326
  *
327
+ * @param string $methodName
328
+ * @param string $nvpStr
327 329
  */
328 330
 function hash_call($methodName, $nvpStr)
329 331
 {
Please login to merge, or discard this patch.