@@ -52,6 +52,9 @@ |
||
52 | 52 | */ |
53 | 53 | const PRODUCTNAME = "Managed IdP"; |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $length |
|
57 | + */ |
|
55 | 58 | public static function random_str( |
56 | 59 | $length, $keyspace = '23456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' |
57 | 60 | ) { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * |
32 | - * @return number |
|
32 | + * @return integer |
|
33 | 33 | */ |
34 | 34 | public function size(){ |
35 | 35 | return count($this->rows); |
@@ -53,7 +53,6 @@ discard block |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * |
56 | - * @param array $row |
|
57 | 56 | */ |
58 | 57 | public function addRowArray($cells){ |
59 | 58 | $this->addRow(new Row($cells)); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param unknown $input |
16 | 16 | * @param unknown $owner |
17 | 17 | * @throws Exception |
18 | - * @return mixed |
|
18 | + * @return MockInstitution |
|
19 | 19 | */ |
20 | 20 | private function valid_IdP($input, $owner){ |
21 | 21 | if ($input == 1){ |
@@ -478,6 +478,9 @@ discard block |
||
478 | 478 | return $cmdline; |
479 | 479 | } |
480 | 480 | |
481 | + /** |
|
482 | + * @param string $tmpDir |
|
483 | + */ |
|
481 | 484 | private function thoroughChainChecks(&$testresults, &$intermOdditiesCAT, $tmpDir, $servercert, $eapIntermediates, $eapIntermediateCRLs) { |
482 | 485 | |
483 | 486 | // collect CA certificates, both the incoming EAP chain and from CAT config |
@@ -636,6 +639,14 @@ discard block |
||
636 | 639 | } |
637 | 640 | } |
638 | 641 | |
642 | + /** |
|
643 | + * @param string $tmpDir |
|
644 | + * @param integer $probeindex |
|
645 | + * @param string $innerUser |
|
646 | + * @param string $password |
|
647 | + * @param boolean $opnameCheck |
|
648 | + * @param boolean $frag |
|
649 | + */ |
|
639 | 650 | private function executeEapolTest($tmpDir, $probeindex, $eaptype, $innerUser, $password, $opnameCheck, $frag) { |
640 | 651 | $finalInner = $innerUser; |
641 | 652 | $finalOuter = $this->outerUsernameForChecks; |
@@ -120,6 +120,9 @@ |
||
120 | 120 | return Telepath::STATUS_GOOD; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param string $homeFlr |
|
125 | + */ |
|
123 | 126 | private function checkNROFlow($visitedFlr, $homeFlr) { |
124 | 127 | // TODO: this is a stub, need eduroam OT API to query the current server status |
125 | 128 | // APIQueryNRODirect($visitedFlr, $homeFlr); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * |
56 | - * @param $silverbulletUser SilverbulletUser |
|
56 | + * @param SilverbulletUser|null $silverbulletUser SilverbulletUser |
|
57 | 57 | */ |
58 | 58 | public function __construct($silverbulletUser) { |
59 | 59 | parent::__construct(self::TABLE, self::TYPE_INST); |
@@ -230,7 +230,7 @@ |
||
230 | 230 | * @param int $rowid the HTML field base name of the option to be displayed |
231 | 231 | * @param string $optionName the name of the option to display |
232 | 232 | * @param string $optionValue the value of the option to display |
233 | - * @param mixed $optionLang the language of the option to display |
|
233 | + * @param null|string $optionLang the language of the option to display |
|
234 | 234 | * @param int $locationIndex which n of m locations is this, in case we are displaying a coordinate |
235 | 235 | * @param int $allLocationCount how many locations in total exist, in case we are displaying a coordinate |
236 | 236 | * @return string HTML code |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | return $find[0]; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param string $input |
|
125 | + */ |
|
123 | 126 | public function tooltip($input) { |
124 | 127 | $descriptions = []; |
125 | 128 | if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) { |
@@ -256,6 +259,10 @@ discard block |
||
256 | 259 | return $number . " B"; |
257 | 260 | } |
258 | 261 | |
262 | + /** |
|
263 | + * @param string $ref |
|
264 | + * @param boolean $checkpublic |
|
265 | + */ |
|
259 | 266 | public static function getBlobFromDB($ref, $checkpublic) { |
260 | 267 | $validator = new \web\lib\common\InputValidation(); |
261 | 268 | $reference = $validator->databaseReference($ref); |
@@ -402,7 +409,7 @@ discard block |
||
402 | 409 | * @param string $text the text to display |
403 | 410 | * @param string $caption the caption to display |
404 | 411 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
405 | - * @return type |
|
412 | + * @return string |
|
406 | 413 | */ |
407 | 414 | public function boxOkay(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
408 | 415 | return $this->boxFlexible(\core\common\Entity::L_OK, $text, $caption, $omittabletags); |
@@ -414,7 +421,7 @@ discard block |
||
414 | 421 | * @param string $text the text to display |
415 | 422 | * @param string $caption the caption to display |
416 | 423 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
417 | - * @return type |
|
424 | + * @return string |
|
418 | 425 | */ |
419 | 426 | public function boxRemark(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
420 | 427 | return $this->boxFlexible(\core\common\Entity::L_REMARK, $text, $caption, $omittabletags); |
@@ -426,7 +433,7 @@ discard block |
||
426 | 433 | * @param string $text the text to display |
427 | 434 | * @param string $caption the caption to display |
428 | 435 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
429 | - * @return type |
|
436 | + * @return string |
|
430 | 437 | */ |
431 | 438 | public function boxWarning(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
432 | 439 | return $this->boxFlexible(\core\common\Entity::L_WARN, $text, $caption, $omittabletags); |
@@ -438,7 +445,7 @@ discard block |
||
438 | 445 | * @param string $text the text to display |
439 | 446 | * @param string $caption the caption to display |
440 | 447 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
441 | - * @return type |
|
448 | + * @return string |
|
442 | 449 | */ |
443 | 450 | public function boxError(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
444 | 451 | return $this->boxFlexible(\core\common\Entity::L_ERROR, $text, $caption, $omittabletags); |
@@ -89,6 +89,12 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected $frontendHandle; |
91 | 91 | |
92 | + /** |
|
93 | + * @param integer $idpIdentifier |
|
94 | + * @param string $deviceId |
|
95 | + * @param string $area |
|
96 | + * @param string $lang |
|
97 | + */ |
|
92 | 98 | protected function saveDownloadDetails($idpIdentifier, $profileId, $deviceId, $area, $lang, $eapType) { |
93 | 99 | if (CONFIG['PATHS']['logdir']) { |
94 | 100 | $f = fopen(CONFIG['PATHS']['logdir'] . "/download_details.log", "a"); |
@@ -275,6 +281,8 @@ discard block |
||
275 | 281 | * |
276 | 282 | * @param string device the device identifier string |
277 | 283 | * @param string path the path where the new installer can be found |
284 | + * @param string $device |
|
285 | + * @param string $path |
|
278 | 286 | */ |
279 | 287 | abstract public function updateCache($device, $path, $mime, $integerEapType); |
280 | 288 | |
@@ -600,7 +608,7 @@ discard block |
||
600 | 608 | * it? Silverbullet will always return TRUE; RADIUS profiles need to do some |
601 | 609 | * heavy lifting here. |
602 | 610 | * |
603 | - * * @return boolean TRUE if enough info is set to enable installers |
|
611 | + * * @return integer TRUE if enough info is set to enable installers |
|
604 | 612 | */ |
605 | 613 | public function readinessLevel() { |
606 | 614 | $result = $this->databaseHandle->exec("SELECT sufficient_config, showtime FROM profile WHERE profile_id = ?", "i", $this->identifier); |