@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * user is a federation administrator of *any* federation. When given a parameter (ISO shortname of federation), it checks |
| 81 | 81 | * if the user administers this particular federation. |
| 82 | 82 | * |
| 83 | - * @param string $federation optional: federation to be checked |
|
| 83 | + * @param integer $federation optional: federation to be checked |
|
| 84 | 84 | * @return boolean TRUE if the user is federation admin, FALSE if not |
| 85 | 85 | */ |
| 86 | 86 | public function isFederationAdmin($federation = 0) { |
@@ -124,6 +124,9 @@ discard block |
||
| 124 | 124 | return FALSE; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $content |
|
| 129 | + */ |
|
| 127 | 130 | public function sendMailToUser($subject, $content) { |
| 128 | 131 | $mailaddr = $this->getAttributes("user:email"); |
| 129 | 132 | if (count($mailaddr) == 0) { // we don't know user's mail address |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | $lookFor .= "$name"; |
| 188 | 188 | } |
| 189 | - $finding = preg_match("/^(".$lookFor."):(.*)/", $oneRow->user_id, $matches); |
|
| 189 | + $finding = preg_match("/^(" . $lookFor . "):(.*)/", $oneRow->user_id, $matches); |
|
| 190 | 190 | if ($finding === 0 || $finding === FALSE) { |
| 191 | 191 | return FALSE; |
| 192 | 192 | } |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $url = CONFIG_DIAGNOSTICS['eduGainResolver']['url'] . "?action=get_entity_name&type=idp&e_id=$idp&lang=pl"; |
| 208 | 208 | $ch = curl_init($url); |
| 209 | 209 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 210 | - curl_setopt($ch,CURLOPT_TIMEOUT, CONFIG_DIAGNOSTICS['eduGainResolver']['timeout']); |
|
| 210 | + curl_setopt($ch, CURLOPT_TIMEOUT, CONFIG_DIAGNOSTICS['eduGainResolver']['timeout']); |
|
| 211 | 211 | $response = curl_exec($ch); |
| 212 | 212 | if ($response == FALSE) { |
| 213 | 213 | $skipCurl = 1; |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | case $providerStrings[3]: |
| 225 | 225 | case $providerStrings[4]: |
| 226 | 226 | case $providerStrings[5]: |
| 227 | - if (!in_array(User::PROVIDER_STRINGS[$matches[1]],$listOfProviders)) { |
|
| 227 | + if (!in_array(User::PROVIDER_STRINGS[$matches[1]], $listOfProviders)) { |
|
| 228 | 228 | $providerName = $this->getEdugainName(User::PROVIDER_STRINGS[$matches[1]]); |
| 229 | 229 | $listOfProviders[] = $providerName . "xx"; |
| 230 | 230 | // $listOfProviders[] = User::PROVIDER_STRINGS[$matches[1]]; |