@@ -79,6 +79,7 @@ |
||
| 79 | 79 | * |
| 80 | 80 | * @param int Exception code |
| 81 | 81 | * @param string Message to display |
| 82 | + * @param integer $code |
|
| 82 | 83 | * @return PENSException Exception created |
| 83 | 84 | */ |
| 84 | 85 | public function __construct($code, $message = null) { |
@@ -236,6 +236,7 @@ discard block |
||
| 236 | 236 | * @param PENSRequest Original collect request |
| 237 | 237 | * @param PENSResponse Reponse to send in the receipt or the alert |
| 238 | 238 | * @param string Mode (alert | receipt) |
| 239 | + * @param string $mode |
|
| 239 | 240 | * @return PENSResponse Response |
| 240 | 241 | */ |
| 241 | 242 | protected function sendAlertOrReceipt($request, $response, $mode) { |
@@ -283,6 +284,7 @@ discard block |
||
| 283 | 284 | * |
| 284 | 285 | * @param PENSRequest Original collect request |
| 285 | 286 | * @param PENSResponse Response to send in the receipt |
| 287 | + * @param PENSResponse $receipt |
|
| 286 | 288 | * @return PENSResponse Response |
| 287 | 289 | */ |
| 288 | 290 | protected function sendReceipt($request, $receipt) { |
@@ -294,6 +296,7 @@ discard block |
||
| 294 | 296 | * |
| 295 | 297 | * @param PENSRequest Original collect request |
| 296 | 298 | * @param string Path to the package on the hard drive |
| 299 | + * @param string $path_to_package |
|
| 297 | 300 | */ |
| 298 | 301 | protected function processPackage($request, $path_to_package) { |
| 299 | 302 | return $this->_package_handler->processPackage($request, $path_to_package); |
@@ -76,6 +76,11 @@ |
||
| 76 | 76 | return PENSRequestFactory::createPENSRequest($myargs); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $key |
|
| 81 | + * @param string|null $value |
|
| 82 | + * @param integer $code |
|
| 83 | + */ |
|
| 79 | 84 | public function exceptionTestForValue($key, $value, $code) { |
| 80 | 85 | try { |
| 81 | 86 | $myargs = $this->args; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Handle the subscribe action. |
| 59 | 59 | * |
| 60 | - * @return bool |
|
| 60 | + * @return null|boolean |
|
| 61 | 61 | */ |
| 62 | 62 | function action_subscribe_user() |
| 63 | 63 | { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * |
| 154 | - * @param type $course_code |
|
| 154 | + * @param string $course_code |
|
| 155 | 155 | * @return type |
| 156 | 156 | */ |
| 157 | 157 | function retrieve_course($course_code) |
@@ -40,11 +40,19 @@ |
||
| 40 | 40 | return isset($_GET[$key]) ? $_GET[$key] : $default; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $key |
|
| 45 | + * |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 43 | 48 | public static function server($key, $default = '') |
| 44 | 49 | { |
| 45 | 50 | return isset($_SERVER[$key]) ? $_SERVER[$key] : $default; |
| 46 | 51 | } |
| 47 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $name |
|
| 55 | + */ |
|
| 48 | 56 | public static function get_lang($name) |
| 49 | 57 | { |
| 50 | 58 | return SearchCoursePlugin::create()->get_lang($name); |
@@ -532,7 +532,6 @@ discard block |
||
| 532 | 532 | /** |
| 533 | 533 | * Set sslPubKey |
| 534 | 534 | * |
| 535 | - * @param string $sslPubKey |
|
| 536 | 535 | * @return BranchSync |
| 537 | 536 | */ |
| 538 | 537 | public function setBranchType($branchType) |
@@ -714,7 +713,7 @@ discard block |
||
| 714 | 713 | } |
| 715 | 714 | |
| 716 | 715 | /** |
| 717 | - * @return mixed |
|
| 716 | + * @return null|BranchSync |
|
| 718 | 717 | */ |
| 719 | 718 | public function getParent() |
| 720 | 719 | { |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * @param $user |
|
| 142 | + * @param User $user |
|
| 143 | 143 | * @return $this |
| 144 | 144 | */ |
| 145 | 145 | public function setUser($user) |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | * @param $tool learnpath | document | etc |
| 23 | 23 | * @param $itemId |
| 24 | 24 | * @param Course $course |
| 25 | - * @param int $sessionId |
|
| 26 | - * @param int $groupId |
|
| 25 | + * @param int $session |
|
| 26 | + * @param int $group |
|
| 27 | 27 | * |
| 28 | 28 | * @return \Doctrine\ORM\QueryBuilder |
| 29 | 29 | */ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return string |
|
| 61 | + * @return integer |
|
| 62 | 62 | */ |
| 63 | 63 | public function getType() |
| 64 | 64 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * @param mixed $sequence |
|
| 126 | + * @param Sequence $sequence |
|
| 127 | 127 | * @return $this |
| 128 | 128 | */ |
| 129 | 129 | public function setSequence(Sequence $sequence) |