@@ -599,6 +599,8 @@ discard block |
||
599 | 599 | * @param int message id |
600 | 600 | * @param int message user id (receiver user id or sender user id) |
601 | 601 | * @param int group id (optional) |
602 | + * @param integer $message_id |
|
603 | + * @param integer $message_uid |
|
602 | 604 | * @return void |
603 | 605 | */ |
604 | 606 | public static function delete_message_attachment_file($message_id, $message_uid, $group_id = 0) |
@@ -643,7 +645,7 @@ discard block |
||
643 | 645 | * update messages by user id and message id |
644 | 646 | * @param int $user_id |
645 | 647 | * @param int $message_id |
646 | - * @return resource |
|
648 | + * @return false|null |
|
647 | 649 | */ |
648 | 650 | public static function update_message($user_id, $message_id) |
649 | 651 | { |
@@ -663,7 +665,7 @@ discard block |
||
663 | 665 | * @param int $user_id |
664 | 666 | * @param int $message_id |
665 | 667 | * @param string $type |
666 | - * @return bool |
|
668 | + * @return false|null |
|
667 | 669 | */ |
668 | 670 | public static function update_message_status($user_id, $message_id, $type) |
669 | 671 | { |
@@ -701,6 +703,7 @@ discard block |
||
701 | 703 | /** |
702 | 704 | * get messages by group id |
703 | 705 | * @param int group id |
706 | + * @param integer $group_id |
|
704 | 707 | * @return array |
705 | 708 | */ |
706 | 709 | public static function get_messages_by_group($group_id) |
@@ -1479,7 +1482,7 @@ discard block |
||
1479 | 1482 | * Sort date by desc from a multi-dimensional array |
1480 | 1483 | * @param array $array1 first array to compare |
1481 | 1484 | * @param array $array2 second array to compare |
1482 | - * @return bool |
|
1485 | + * @return integer |
|
1483 | 1486 | */ |
1484 | 1487 | public function order_desc_date($array1, $array2) |
1485 | 1488 | { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
23 | - * @return array |
|
23 | + * @return string[] |
|
24 | 24 | */ |
25 | 25 | public static function get_tags() |
26 | 26 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param string $course_code |
43 | 43 | * @param int $session_id |
44 | 44 | * |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public static function parse_content($userId, $content, $course_code, $session_id = 0) |
48 | 48 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param int $courseId |
192 | 192 | * @param int $userId |
193 | 193 | * |
194 | - * @return array |
|
194 | + * @return integer |
|
195 | 195 | */ |
196 | 196 | public static function getAnnouncementInfoById($announcementId, $courseId, $userId) |
197 | 197 | { |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | * @param string $file_comment Comment describing the attachment |
401 | 401 | * @param string $end_date |
402 | 402 | * @param bool $sendToUsersInSession |
403 | - * @return int false on failure, ID of the announcement on success |
|
403 | + * @return false|string false on failure, ID of the announcement on success |
|
404 | 404 | */ |
405 | 405 | public static function add_announcement( |
406 | 406 | $emailTitle, |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | * @param string $file_comment |
512 | 512 | * @param bool $sendToUsersInSession |
513 | 513 | * |
514 | - * @return bool|int |
|
514 | + * @return false|string |
|
515 | 515 | */ |
516 | 516 | public static function add_group_announcement( |
517 | 517 | $emailTitle, |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | |
754 | 754 | /** |
755 | 755 | * @param int $insert_id |
756 | - * @return bool |
|
756 | + * @return false|null |
|
757 | 757 | */ |
758 | 758 | public static function update_mail_sent($insert_id) |
759 | 759 | { |
@@ -773,6 +773,7 @@ discard block |
||
773 | 773 | * Gets all announcements from a user by course |
774 | 774 | * @param string course db |
775 | 775 | * @param int user id |
776 | + * @param integer $user_id |
|
776 | 777 | * @return array html with the content and count of announcements or false otherwise |
777 | 778 | */ |
778 | 779 | public static function get_all_annoucement_by_user_course($course_code, $user_id) |
@@ -1018,6 +1019,7 @@ discard block |
||
1018 | 1019 | * has been sent to |
1019 | 1020 | * @param string The tool (announcement, agenda, ...) |
1020 | 1021 | * @param int ID of the element of the corresponding type |
1022 | + * @param string $tool |
|
1021 | 1023 | * @return array Array of users and groups to whom the element has been sent |
1022 | 1024 | */ |
1023 | 1025 | public static function sent_to($tool, $id) |
@@ -1088,6 +1090,7 @@ discard block |
||
1088 | 1090 | * @param int announcement id |
1089 | 1091 | * @param string file comment |
1090 | 1092 | * @param array uploaded file $_FILES |
1093 | + * @param string|null $file_comment |
|
1091 | 1094 | * @return int -1 if failed, 0 if unknown (should not happen), 1 if success |
1092 | 1095 | */ |
1093 | 1096 | public static function add_announcement_attachment_file($announcement_id, $file_comment, $file) |
@@ -1146,6 +1149,8 @@ discard block |
||
1146 | 1149 | * @param int attach id |
1147 | 1150 | * @param array uploaded file $_FILES |
1148 | 1151 | * @param string file comment |
1152 | + * @param integer $id_attach |
|
1153 | + * @param string $file_comment |
|
1149 | 1154 | * @return int |
1150 | 1155 | */ |
1151 | 1156 | public static function edit_announcement_attachment_file($id_attach, $file, $file_comment) |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * This function is used with $extraField->addElements() |
76 | 76 | * @param array $params array for the insertion into the *_field_values table |
77 | 77 | * @param bool $showQuery |
78 | - * @return mixed false on empty params, void otherwise |
|
78 | + * @return false|null false on empty params, void otherwise |
|
79 | 79 | * @assert (array()) === false |
80 | 80 | */ |
81 | 81 | public function saveFieldValues($params, $showQuery = false) |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | * @param int $item_id Item ID (It could be a session_id, course_id or user_id) |
532 | 532 | * @param int $field_id Field ID (the ID from the *_field table) |
533 | 533 | * @param bool $transform Whether to transform the result to a human readable strings |
534 | - * @return mixed A structured array with the field_id and field_value, or false on error |
|
534 | + * @return string A structured array with the field_id and field_value, or false on error |
|
535 | 535 | * @assert (-1,-1) === false |
536 | 536 | */ |
537 | 537 | public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false) |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | * @param int $item_id Item ID from the original table |
625 | 625 | * @param string $field_variable The name of the field we are looking for |
626 | 626 | * @param bool $transform |
627 | - * @param bool $allVisibility |
|
627 | + * @param bool $visibility |
|
628 | 628 | * |
629 | 629 | * @return mixed Array of results, or false on error or not found |
630 | 630 | * @assert (-1,'') === false |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * @param string $field_value Data we are looking for in the given field |
687 | 687 | * @param bool $transform Whether to transform the result to a human readable strings |
688 | 688 | * @param bool $last Whether to return the last element or simply the first one we get |
689 | - * @return mixed Give the ID if found, or false on failure or not found |
|
689 | + * @return string|null Give the ID if found, or false on failure or not found |
|
690 | 690 | * @assert (-1,-1) === false |
691 | 691 | */ |
692 | 692 | public function get_item_id_from_field_variable_and_field_value( |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @param string $token |
20 | 20 | * |
21 | - * @return UserInterface |
|
21 | + * @return \FOS\UserBundle\Model\UserInterface|null |
|
22 | 22 | */ |
23 | 23 | public function findUserByConfirmationToken($token) |
24 | 24 | { |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * Read and validate the quiz module XML |
404 | 404 | * |
405 | 405 | * @param resource $moduleXml XML file |
406 | - * @return mixed | array if is a valid xml file, false otherwise |
|
406 | + * @return string | array if is a valid xml file, false otherwise |
|
407 | 407 | */ |
408 | 408 | public function readQuizModule($moduleXml) |
409 | 409 | { |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | * Fix moodle files that contains spaces |
622 | 622 | * @param array $importedFiles |
623 | 623 | * @param string $text |
624 | - * @return mixed |
|
624 | + * @return string |
|
625 | 625 | */ |
626 | 626 | public function fixPathInText($importedFiles, &$text) |
627 | 627 | { |
@@ -642,10 +642,10 @@ discard block |
||
642 | 642 | * |
643 | 643 | * @param array $questionList |
644 | 644 | * @param string $questionType |
645 | - * @param object $questionInstance Question/Answer instance |
|
645 | + * @param Question $questionInstance Question/Answer instance |
|
646 | 646 | * @param array $currentQuestion |
647 | 647 | * @param array $importedFiles |
648 | - * @return integer db response |
|
648 | + * @return boolean|null db response |
|
649 | 649 | */ |
650 | 650 | public function processAnswers($questionList, $questionType, $questionInstance, $currentQuestion, $importedFiles) |
651 | 651 | { |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | /** |
801 | 801 | * Process Chamilo Unique Answer |
802 | 802 | * |
803 | - * @param object $objAnswer |
|
803 | + * @param Answer $objAnswer |
|
804 | 804 | * @param array $answerValues |
805 | 805 | * @param integer $position |
806 | 806 | * @param integer $questionWeighting |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | /** |
837 | 837 | * Process Chamilo True False |
838 | 838 | * |
839 | - * @param object $objAnswer |
|
839 | + * @param Answer $objAnswer |
|
840 | 840 | * @param array $answerValues |
841 | 841 | * @param integer $position |
842 | 842 | * @param integer $questionWeighting |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | /** |
874 | 874 | * Process Chamilo FillBlanks |
875 | 875 | * |
876 | - * @param object $objAnswer |
|
876 | + * @param Answer $objAnswer |
|
877 | 877 | * @param array $questionType |
878 | 878 | * @param array $answerValues |
879 | 879 | * @param string $placeholder |
@@ -1026,7 +1026,7 @@ discard block |
||
1026 | 1026 | * Litle utility to delete the unuseful tags |
1027 | 1027 | * |
1028 | 1028 | * @param $array |
1029 | - * @param $keys |
|
1029 | + * @param string[] $keys |
|
1030 | 1030 | */ |
1031 | 1031 | public function traverseArray(&$array, $keys) |
1032 | 1032 | { |
@@ -130,9 +130,9 @@ discard block |
||
130 | 130 | /** |
131 | 131 | * Validates the password |
132 | 132 | * |
133 | - * @param $encoded |
|
134 | - * @param $raw |
|
135 | - * @param $salt |
|
133 | + * @param string $encoded |
|
134 | + * @param string $raw |
|
135 | + * @param string $salt |
|
136 | 136 | * @return bool |
137 | 137 | */ |
138 | 138 | public static function isPasswordValid($encoded, $raw, $salt) |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * @param string $raw |
148 | 148 | * @param User $user |
149 | 149 | * |
150 | - * @return bool |
|
150 | + * @return string |
|
151 | 151 | */ |
152 | 152 | public static function encryptPassword($raw, User $user) |
153 | 153 | { |
@@ -1094,6 +1094,7 @@ discard block |
||
1094 | 1094 | /** |
1095 | 1095 | * Disables a user |
1096 | 1096 | * @param int User id |
1097 | + * @param integer $user_id |
|
1097 | 1098 | * @return bool |
1098 | 1099 | * @uses UserManager::change_active_state() to actually disable the user |
1099 | 1100 | * @assert (0) === false |
@@ -1110,6 +1111,7 @@ discard block |
||
1110 | 1111 | /** |
1111 | 1112 | * Enable a user |
1112 | 1113 | * @param int User id |
1114 | + * @param integer $user_id |
|
1113 | 1115 | * @return bool |
1114 | 1116 | * @uses UserManager::change_active_state() to actually disable the user |
1115 | 1117 | * @assert (0) === false |
@@ -1276,6 +1278,7 @@ discard block |
||
1276 | 1278 | * Checks whether the user id exists in the database |
1277 | 1279 | * |
1278 | 1280 | * @param int User id |
1281 | + * @param integer $userId |
|
1279 | 1282 | * @return bool True if user id was found, false otherwise |
1280 | 1283 | */ |
1281 | 1284 | public static function is_user_id_valid($userId) |
@@ -1417,7 +1420,7 @@ discard block |
||
1417 | 1420 | /** |
1418 | 1421 | * Get a list of users of which the given conditions match with a LIKE '%cond%' |
1419 | 1422 | * @param array $conditions a list of condition (exemple : status=>STUDENT) |
1420 | - * @param array $order_by a list of fields on which sort |
|
1423 | + * @param string[] $order_by a list of fields on which sort |
|
1421 | 1424 | * @return array An array with all users of the platform. |
1422 | 1425 | * @todo optional course code parameter, optional sorting parameters... |
1423 | 1426 | * @todo security filter order_by |
@@ -1488,7 +1491,7 @@ discard block |
||
1488 | 1491 | * @param array $userInfo user information to avoid query the DB |
1489 | 1492 | * returns the /main/img/unknown.jpg image set it at true |
1490 | 1493 | * |
1491 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1494 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1492 | 1495 | * the dir and file as the name implies if image does not exist it will |
1493 | 1496 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1494 | 1497 | */ |
@@ -1980,7 +1983,7 @@ discard block |
||
1980 | 1983 | /** |
1981 | 1984 | * Returns an array with the user's productions. |
1982 | 1985 | * |
1983 | - * @param $user_id User id |
|
1986 | + * @param integer $user_id User id |
|
1984 | 1987 | * @return array An array containing the user's productions |
1985 | 1988 | */ |
1986 | 1989 | public static function get_user_productions($user_id) |
@@ -2135,7 +2138,7 @@ discard block |
||
2135 | 2138 | |
2136 | 2139 | /** |
2137 | 2140 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
2138 | - * @param $user_id |
|
2141 | + * @param integer $user_id |
|
2139 | 2142 | * @param $extra_field |
2140 | 2143 | * @param bool $force |
2141 | 2144 | * @param bool $showDelete |
@@ -2240,7 +2243,7 @@ discard block |
||
2240 | 2243 | * @param int $fieldType Field's type |
2241 | 2244 | * @param string $displayText Field's language var name |
2242 | 2245 | * @param string $default Field's default value |
2243 | - * @return int |
|
2246 | + * @return boolean |
|
2244 | 2247 | */ |
2245 | 2248 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2246 | 2249 | { |
@@ -2274,6 +2277,7 @@ discard block |
||
2274 | 2277 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2275 | 2278 | * @param boolean Whether to return invisible fields as well |
2276 | 2279 | * @param boolean Whether to split multiple-selection fields or not |
2280 | + * @param boolean $field_filter |
|
2277 | 2281 | * @return array Array of fields => value for the given user |
2278 | 2282 | */ |
2279 | 2283 | public static function get_extra_user_data( |
@@ -3121,7 +3125,7 @@ discard block |
||
3121 | 3125 | * @param string $user_id User ID |
3122 | 3126 | * @param string $course course directory |
3123 | 3127 | * @param string $resourcetype resourcetype: images, all |
3124 | - * @return int User ID (or false if not found) |
|
3128 | + * @return string User ID (or false if not found) |
|
3125 | 3129 | */ |
3126 | 3130 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
3127 | 3131 | { |
@@ -3205,7 +3209,7 @@ discard block |
||
3205 | 3209 | /** |
3206 | 3210 | * Adds a new API key to the users' account |
3207 | 3211 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
3208 | - * @return boolean True on success, false on failure |
|
3212 | + * @return false|string True on success, false on failure |
|
3209 | 3213 | */ |
3210 | 3214 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
3211 | 3215 | { |
@@ -3260,6 +3264,7 @@ discard block |
||
3260 | 3264 | * Regenerate an API key from the user's account |
3261 | 3265 | * @param int user ID (defaults to the results of api_get_user_id()) |
3262 | 3266 | * @param string API key's internal ID |
3267 | + * @param string $api_service |
|
3263 | 3268 | * @return int num |
3264 | 3269 | */ |
3265 | 3270 | public static function update_api_key($user_id, $api_service) |
@@ -3289,6 +3294,7 @@ discard block |
||
3289 | 3294 | /** |
3290 | 3295 | * @param int user ID (defaults to the results of api_get_user_id()) |
3291 | 3296 | * @param string API key's internal ID |
3297 | + * @param string $api_service |
|
3292 | 3298 | * @return int row ID, or return false if not found |
3293 | 3299 | */ |
3294 | 3300 | public static function get_api_key_id($user_id, $api_service) |
@@ -3504,7 +3510,7 @@ discard block |
||
3504 | 3510 | * @param int $field_id |
3505 | 3511 | * @param bool $show_links show links or not |
3506 | 3512 | * |
3507 | - * @return array |
|
3513 | + * @return string |
|
3508 | 3514 | */ |
3509 | 3515 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3510 | 3516 | { |
@@ -3601,7 +3607,7 @@ discard block |
||
3601 | 3607 | * @param mixed $tag |
3602 | 3608 | * @param int $user_id |
3603 | 3609 | * @param int $field_id field id of the tag |
3604 | - * @return bool |
|
3610 | + * @return boolean|null |
|
3605 | 3611 | */ |
3606 | 3612 | public static function add_tag($tag, $user_id, $field_id) |
3607 | 3613 | { |
@@ -5047,7 +5053,7 @@ discard block |
||
5047 | 5053 | } |
5048 | 5054 | |
5049 | 5055 | /** |
5050 | - * @return array |
|
5056 | + * @return string[] |
|
5051 | 5057 | */ |
5052 | 5058 | public static function get_user_field_types() |
5053 | 5059 | { |
@@ -5339,7 +5345,7 @@ discard block |
||
5339 | 5345 | |
5340 | 5346 | /** |
5341 | 5347 | * Get the boss user ID from a followed user id |
5342 | - * @param $userId |
|
5348 | + * @param integer $userId |
|
5343 | 5349 | * @return bool |
5344 | 5350 | */ |
5345 | 5351 | public static function getStudentBossList($userId) |
@@ -5391,7 +5397,7 @@ discard block |
||
5391 | 5397 | * Get either a Gravatar URL or complete image tag for a specified email address. |
5392 | 5398 | * |
5393 | 5399 | * @param string $email The email address |
5394 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5400 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5395 | 5401 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
5396 | 5402 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
5397 | 5403 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | * @param string $courseCode the course code |
737 | 737 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
738 | 738 | * |
739 | - * @return boolean true if added succesfully, false otherwise. |
|
739 | + * @return boolean|string true if added succesfully, false otherwise. |
|
740 | 740 | */ |
741 | 741 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
742 | 742 | { |
@@ -2607,7 +2607,7 @@ discard block |
||
2607 | 2607 | * then the courses that the user is allowed or not to see in catalogue |
2608 | 2608 | * |
2609 | 2609 | * @param boolean $allowed Either if the courses have some users that are or are not allowed to see in catalogue |
2610 | - * @param boolean $byUserId if the courses are or are not allowed to see to the user |
|
2610 | + * @param integer $byUserId if the courses are or are not allowed to see to the user |
|
2611 | 2611 | * @return array Course codes allowed or not to see in catalogue by some user or the user |
2612 | 2612 | */ |
2613 | 2613 | public static function getCatalogueCourseList($allowed = true, $byUserId = -1) |
@@ -3151,6 +3151,7 @@ discard block |
||
3151 | 3151 | * @param int $limit |
3152 | 3152 | * @param string $column |
3153 | 3153 | * @param string $direction |
3154 | + * @param integer $status |
|
3154 | 3155 | * @return array courses |
3155 | 3156 | */ |
3156 | 3157 | public static function get_courses_followed_by_drh( |
@@ -4902,7 +4903,7 @@ discard block |
||
4902 | 4903 | /** |
4903 | 4904 | * Returns the SQL conditions to filter course only visible by the user in the catalogue |
4904 | 4905 | * |
4905 | - * @param $courseTableAlias Alias of the course table |
|
4906 | + * @param string $courseTableAlias Alias of the course table |
|
4906 | 4907 | * @return string SQL conditions |
4907 | 4908 | */ |
4908 | 4909 | public static function getCourseVisibilitySQLCondition($courseTableAlias) { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * provides a side connection to a vchamilo database |
185 | 185 | * @param array $_configuration |
186 | 186 | * |
187 | - * @return \Doctrine\DBAL\Driver\Connection |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | public static function bootConnection(&$_configuration) |
190 | 190 | { |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | |
373 | 373 | /** |
374 | 374 | * get a proper SQLdump command |
375 | - * @param object $vchamilodata the complete new host information |
|
375 | + * @param stdClass $vchamilodata the complete new host information |
|
376 | 376 | * @return string the shell command |
377 | 377 | */ |
378 | 378 | public static function getDatabaseDumpCmd($vchamilodata) |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | |
457 | 457 | /** |
458 | 458 | * Backups a database for having a snapshot. |
459 | - * @param $vchamilo object The Vchamilo object. |
|
460 | - * @param $outputfilerad string The output SQL file radical. |
|
459 | + * @param stdClass $vchamilo object The Vchamilo object. |
|
460 | + * @param string $outputfilerad string The output SQL file radical. |
|
461 | 461 | * @return bool If TRUE, dumping database was a success, otherwise FALSE. |
462 | 462 | */ |
463 | 463 | public static function backupDatabase($vchamilo, $outputfilerad) |
@@ -619,6 +619,8 @@ discard block |
||
619 | 619 | * this function set will map standard moodle API calls to chamilo |
620 | 620 | * internal primitives. This avoids too many changes to do in imported |
621 | 621 | * code |
622 | + * @param string $module |
|
623 | + * @param string $key |
|
622 | 624 | */ |
623 | 625 | public static function getConfig($module, $key, $isplugin = true) |
624 | 626 | { |
@@ -698,7 +700,7 @@ discard block |
||
698 | 700 | /** |
699 | 701 | * @param string $path |
700 | 702 | * |
701 | - * @return mixed |
|
703 | + * @return string |
|
702 | 704 | */ |
703 | 705 | public static function chopLastSlash($path) |
704 | 706 | { |
@@ -852,7 +854,7 @@ discard block |
||
852 | 854 | |
853 | 855 | /** |
854 | 856 | * @param object $instance |
855 | - * @return bool|\Doctrine\DBAL\Connection |
|
857 | + * @return Doctrine\ORM\EntityManagerInterface |
|
856 | 858 | */ |
857 | 859 | public static function getConnectionFromInstance($instance, $getManager = false) |
858 | 860 | { |
@@ -1297,7 +1299,7 @@ discard block |
||
1297 | 1299 | /** |
1298 | 1300 | * @param stdClass $instance |
1299 | 1301 | * |
1300 | - * @return bool|string returns the original version of the app |
|
1302 | + * @return string|false returns the original version of the app |
|
1301 | 1303 | */ |
1302 | 1304 | public static function canBeUpgraded($instance) |
1303 | 1305 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Install the plugin |
46 | - * @return void |
|
46 | + * @return boolean |
|
47 | 47 | */ |
48 | 48 | public function install() |
49 | 49 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Uninstall the plugin |
55 | - * @return void |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | public function uninstall() |
58 | 58 | { |