@@ -123,6 +123,9 @@ |
||
| 123 | 123 | return $find[0]; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $input |
|
| 128 | + */ |
|
| 126 | 129 | public function tooltip($input) { |
| 127 | 130 | $descriptions = []; |
| 128 | 131 | if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $dummy_inst1 = _("identity provider"); |
| 48 | 48 | $dummy_inst2 = _("organisation"); |
| 49 | 49 | // and do something useless with the strings so that there's no "unused" complaint |
| 50 | - if ( $dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") { |
|
| 50 | + if ($dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") { |
|
| 51 | 51 | // Oh well. |
| 52 | 52 | $dummy_NRO = "useless"; |
| 53 | 53 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | break; |
| 189 | 189 | case "boolean": |
| 190 | - $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off") ) . "</strong></td></tr>"; |
|
| 190 | + $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off")) . "</strong></td></tr>"; |
|
| 191 | 191 | break; |
| 192 | 192 | default: |
| 193 | 193 | $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>$content</strong></td></tr>"; |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | private function checkROWIDpresence($reference) { |
| 316 | 316 | $found = preg_match("/^ROWID-.*/", $reference); |
| 317 | - if ($found != 1) { // get excited on not-found AND on execution error |
|
| 317 | + if ($found != 1) { // get excited on not-found AND on execution error |
|
| 318 | 318 | throw new Exception("Error, ROWID expected."); |
| 319 | 319 | } |
| 320 | 320 | } |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | |
| 338 | 338 | $details['name'] = preg_replace('/(.)\/(.)/', "$1<br/>$2", $details['name']); |
| 339 | 339 | $details['name'] = preg_replace('/\//', "", $details['name']); |
| 340 | - $certstatus = ( $details['root'] == 1 ? "R" : "I"); |
|
| 340 | + $certstatus = ($details['root'] == 1 ? "R" : "I"); |
|
| 341 | 341 | if ($details['ca'] == 0 && $details['root'] != 1) { |
| 342 | 342 | return "<div class='ca-summary' style='background-color:red'><div style='position:absolute; right: 0px; width:20px; height:20px; background-color:maroon; border-radius:10px; text-align: center;'><div style='padding-top:3px; font-weight:bold; color:#ffffff;'>S</div></div>" . _("This is a <strong>SERVER</strong> certificate!") . "<br/>" . $details['name'] . "</div>"; |
| 343 | 343 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $dummy_inst2 = _("organisation"); |
| 104 | 104 | // and do something useless with the strings so that there's no "unused" complaint |
| 105 | 105 | // by Scrutinizer |
| 106 | - if( $dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") { |
|
| 106 | + if ($dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") { |
|
| 107 | 107 | // oh well. |
| 108 | 108 | $dummy_NRO = "useless"; |
| 109 | 109 | } |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | if (isset($this->attributes['general:logo_file'])) { |
| 216 | 216 | $this->loggerInstance->debug(5, "saving IDP logo\n"); |
| 217 | - $this->attributes['internal:logo_file'] = $this->saveLogoFile($this->attributes['general:logo_file'],'idp'); |
|
| 217 | + $this->attributes['internal:logo_file'] = $this->saveLogoFile($this->attributes['general:logo_file'], 'idp'); |
|
| 218 | 218 | } |
| 219 | 219 | if (isset($this->attributes['fed:logo_file'])) { |
| 220 | 220 | $this->loggerInstance->debug(5, "saving FED logo\n"); |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | * @return array list of filenames and the mime types |
| 587 | 587 | * @throws Exception |
| 588 | 588 | */ |
| 589 | - private function saveLogoFile($logos,$type) { |
|
| 589 | + private function saveLogoFile($logos, $type) { |
|
| 590 | 590 | $iterator = 0; |
| 591 | 591 | $returnarray = []; |
| 592 | 592 | foreach ($logos as $blob) { |