Test Setup Failed
Push — master ( 194661...f85b2d )
by Stefan
06:51
created
web/lib/admin/OptionParser.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 $optionClass = \core\Options::instance();
102 102
                 $optionProps = $optionClass->optionType($optiontype);
103 103
                 $allowedValues = explode(',', substr($optionProps["flags"], 7));
104
-                if (in_array($incomingBinary,$allowedValues))  {
104
+                if (in_array($incomingBinary, $allowedValues)) {
105 105
                     return TRUE;
106 106
                 }
107 107
                 return FALSE;
@@ -346,14 +346,14 @@  discard block
 block discarded – undo
346 346
                 case \core\Options::TYPECODE_TEXT:
347 347
                 case \core\Options::TYPECODE_COORDINATES:
348 348
                 case \core\Options::TYPECODE_INTEGER:
349
-                    $varName = $listOfEntries["$objId-" . self::VALIDATOR_FUNCTIONS[$optioninfo['type']]['field']];
349
+                    $varName = $listOfEntries["$objId-".self::VALIDATOR_FUNCTIONS[$optioninfo['type']]['field']];
350 350
                     if (!empty($varName)) {
351 351
                         $content = call_user_func_array([$this->validator, self::VALIDATOR_FUNCTIONS[$optioninfo['type']]['function']], array_merge([$varName], self::VALIDATOR_FUNCTIONS[$optioninfo['type']]['extraarg']));
352 352
                         break;
353 353
                     }
354 354
                     continue 2;
355 355
                 case \core\Options::TYPECODE_BOOLEAN:
356
-                    $varName = $listOfEntries["$objId-" . \core\Options::TYPECODE_BOOLEAN];
356
+                    $varName = $listOfEntries["$objId-".\core\Options::TYPECODE_BOOLEAN];
357 357
                     if (!empty($varName)) {
358 358
                         $contentValid = $this->validator->boolean($varName);
359 359
                         if ($contentValid) {
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
                     }
367 367
                     continue 2;
368 368
                 case \core\Options::TYPECODE_STRING:
369
-                    $previsionalContent = $listOfEntries["$objId-" . \core\Options::TYPECODE_STRING];
369
+                    $previsionalContent = $listOfEntries["$objId-".\core\Options::TYPECODE_STRING];
370 370
                     if (!empty($previsionalContent)) {
371 371
                         $content = $this->furtherStringChecks($objValue, $previsionalContent, $bad);
372 372
                         if ($content === FALSE) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                     continue 2;
378 378
                     
379 379
                 case \core\Options::TYPECODE_ENUM_OPENROAMING:
380
-                    $previsionalContent = $listOfEntries["$objId-" . \core\Options::TYPECODE_ENUM_OPENROAMING];
380
+                    $previsionalContent = $listOfEntries["$objId-".\core\Options::TYPECODE_ENUM_OPENROAMING];
381 381
                     if (!empty($previsionalContent)) {
382 382
                         $content = $this->furtherStringChecks($objValue, $previsionalContent, $bad);
383 383
                         if ($content === FALSE) {
@@ -388,15 +388,15 @@  discard block
 block discarded – undo
388 388
                     continue 2;    
389 389
                 case \core\Options::TYPECODE_FILE:
390 390
                     // this is either actually an uploaded file, or a reference to a DB entry of a previously uploaded file
391
-                    $reference = $listOfEntries["$objId-" . \core\Options::TYPECODE_STRING];
391
+                    $reference = $listOfEntries["$objId-".\core\Options::TYPECODE_STRING];
392 392
                     if (!empty($reference)) { // was already in, by ROWID reference, extract
393 393
                         // ROWID means it's a multi-line string (simple strings are inline in the form; so allow whitespace)
394 394
                         $content = $this->validator->string(urldecode($reference), TRUE);
395 395
                         break;
396 396
                     }
397
-                    $fileName = $listOfEntries["$objId-" . \core\Options::TYPECODE_FILE] ?? "";
397
+                    $fileName = $listOfEntries["$objId-".\core\Options::TYPECODE_FILE] ?? "";
398 398
                     if ($fileName != "") { // let's do the download
399
-                        $rawContent = \core\common\OutsideComm::downloadFile("file:///" . $fileName);
399
+                        $rawContent = \core\common\OutsideComm::downloadFile("file:///".$fileName);
400 400
 
401 401
                         if ($rawContent === FALSE || !$this->checkUploadSanity($objValue, $rawContent)) {
402 402
                             $bad[] = $objValue;
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
                     }
408 408
                     continue 2;
409 409
                 default:
410
-                    throw new Exception("Internal Error: Unknown option type " . $objValue . "!");
410
+                    throw new Exception("Internal Error: Unknown option type ".$objValue."!");
411 411
             }
412 412
             // lang can be NULL here, if it's not a multilang attribute, or a ROWID reference. Never mind that.
413 413
             $retval[] = ["$objValue" => ["lang" => $languageFlag, "content" => $content]];
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             \core\Options::TYPECODE_BOOLEAN => ["html" => "input type='checkbox'", "tail" => ''],
93 93
             \core\Options::TYPECODE_INTEGER => ["html" => "input type='number'", "tail" => ''],
94 94
             \core\Options::TYPECODE_STRING => ["html" => "input type='string'", "tail" => ''],
95
-            \core\Options::TYPECODE_ENUM_OPENROAMING => ["html" => "select", "tail" => "><option value='ask'>" . $this->enumPrettyPrints["ask"]  . "</option><option value='always'>" . $this->enumPrettyPrints["always"] . "</option></select"],
95
+            \core\Options::TYPECODE_ENUM_OPENROAMING => ["html" => "select", "tail" => "><option value='ask'>".$this->enumPrettyPrints["ask"]."</option><option value='always'>".$this->enumPrettyPrints["always"]."</option></select"],
96 96
             \core\Options::TYPECODE_TEXT => ["html" => "textarea cols='30' rows='3'", "tail" => '></textarea'],
97 97
         ];
98 98
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function prefilledOptionTable(string $attributePrefix, $fed)
108 108
     {
109
-        $retval = "<table id='expandable_$attributePrefix" . "_options'>";
109
+        $retval = "<table id='expandable_$attributePrefix"."_options'>";
110 110
 
111 111
         $prepopulate = [];
112 112
         foreach ($this->listOfOptions as $existingAttribute) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 $prepopulate[] = $existingAttribute;
115 115
             }
116 116
         }
117
-        if (is_array($prepopulate) && ( count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific" )) { // editing... fill with values
117
+        if (is_array($prepopulate) && (count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific")) { // editing... fill with values
118 118
             $retval .= $this->addOptionEdit($attributePrefix, $prepopulate);
119 119
         } else {
120 120
             $retval .= $this->addOptionNew($attributePrefix, $fed);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 $optiontypearray = $optioninfo->optionType($option['name']);
148 148
                 $loggerInstance = new \core\common\Logging();
149 149
                 $loggerInstance->debug(5, "About to execute optiontext with PREFILL!\n");
150
-                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-' . $option['level'] . '-' . $option['row'] : $option['value']), $option['lang']);
150
+                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-'.$option['level'].'-'.$option['row'] : $option['value']), $option['lang']);
151 151
             }
152 152
         }
153 153
         return $retval;
@@ -246,18 +246,18 @@  discard block
 block discarded – undo
246 246
         }
247 247
         $descriptions["media:force_proxy"] = sprintf(_("The format of this option is: IPv4|IPv6|hostname:port . Forcing your users through a content filter of your own is a significant invasion of user self-determination. It also has technical issues. Please throughly read the discussion at %s before specifying a proxy with this option. This feature is currently experimental and only has an effect in Apple installers."), "https://github.com/GEANT/CAT/issues/96");
248 248
         $descriptions["managedsp:realmforvlan"] = sprintf(_("If you are also using %s, then your own realm is automatically tagged with the VLAN you choose, there is no need to add it here manually."), \core\ProfileSilverbullet::PRODUCTNAME);
249
-        $descriptions["media:openroaming"] = sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."), "eduroam Ecosystem Broker OpenRoaming Identity Provider Policy") .
250
-                " " .
251
-                sprintf(_("Note that your requirement to inform users about the OpenRoaming End User Terms and Conditions is fulfilled when directing your end users to the %s download portal for installer download. Any other means of providing the installers needs to present this information via its own channel."), \config\Master::APPEARANCE['productname']) .
252
-                " " .
253
-                _("You are also aware that for best technical interoperability, you need to add a DNS entry into the DNS zone of your RADIUS realm.") .
254
-                " " .
249
+        $descriptions["media:openroaming"] = sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."), "eduroam Ecosystem Broker OpenRoaming Identity Provider Policy").
250
+                " ".
251
+                sprintf(_("Note that your requirement to inform users about the OpenRoaming End User Terms and Conditions is fulfilled when directing your end users to the %s download portal for installer download. Any other means of providing the installers needs to present this information via its own channel."), \config\Master::APPEARANCE['productname']).
252
+                " ".
253
+                _("You are also aware that for best technical interoperability, you need to add a DNS entry into the DNS zone of your RADIUS realm.").
254
+                " ".
255 255
                 _("Read the instructions in the wiki.");
256 256
         \core\common\Entity::outOfThePotatoes();
257 257
         if (!isset($descriptions[$input])) {
258 258
             return "";
259 259
         }
260
-        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:" . ($isVisible ? "block" : "none") . "' onclick='alert(\"" . $descriptions[$input] . "\")'><img src='../resources/images/icons/question-mark-icon.png" . "'></span>";
260
+        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:".($isVisible ? "block" : "none")."' onclick='alert(\"".$descriptions[$input]."\")'><img src='../resources/images/icons/question-mark-icon.png"."'></span>";
261 261
     }
262 262
 
263 263
     /**
@@ -271,19 +271,19 @@  discard block
 block discarded – undo
271 271
     private function selectElement($rowid, $list)
272 272
     {
273 273
         $jsmagic = "onchange='
274
-                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
274
+                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid."-select\").value)) {
275 275
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"block\";
276 276
                                    } else {
277 277
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"none\";
278 278
                                    }";
279 279
         foreach (array_keys($this->htmlDatatypeTexts) as $key) {
280
-            $jsmagic .= "if (/#" . $key . "#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
281
-                                  document.getElementById(\"S$rowid-input-file\").style.display = \"" . ($key == \core\Options::TYPECODE_FILE ? "block" : "none") . "\";
282
-                                  document.getElementById(\"S$rowid-input-text\").style.display = \"" . ($key == \core\Options::TYPECODE_TEXT ? "block" : "none") . "\";
283
-                                  document.getElementById(\"S$rowid-input-string\").style.display = \"" . ($key == \core\Options::TYPECODE_STRING ? "block" : "none") . "\";
284
-                                  document.getElementById(\"S$rowid-input-enum_openroaming\").style.display = \"" . ($key == \core\Options::TYPECODE_ENUM_OPENROAMING ? "block" : "none") . "\";
285
-                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"" . ($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none") . "\";
286
-                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"" . ($key == \core\Options::TYPECODE_INTEGER ? "block" : "none") . "\";
280
+            $jsmagic .= "if (/#".$key."#/.test(document.getElementById(\"option-S".$rowid."-select\").value)) {
281
+                                  document.getElementById(\"S$rowid-input-file\").style.display = \"".($key == \core\Options::TYPECODE_FILE ? "block" : "none")."\";
282
+                                  document.getElementById(\"S$rowid-input-text\").style.display = \"".($key == \core\Options::TYPECODE_TEXT ? "block" : "none")."\";
283
+                                  document.getElementById(\"S$rowid-input-string\").style.display = \"".($key == \core\Options::TYPECODE_STRING ? "block" : "none")."\";
284
+                                  document.getElementById(\"S$rowid-input-enum_openroaming\").style.display = \"".($key == \core\Options::TYPECODE_ENUM_OPENROAMING ? "block" : "none")."\";
285
+                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"".($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none")."\";
286
+                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"".($key == \core\Options::TYPECODE_INTEGER ? "block" : "none")."\";
287 287
                              }
288 288
                              ";
289 289
             // hide all tooltips (each is a <span>, and there are no other <span>s)
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                 $value = array_shift($list);
315 315
                 $listtype = $optioninfo->optionType($value);
316 316
                 $retval .= $uiElements->displayName($value);
317
-                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#'/>";
317
+                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#".$listtype["type"]."#".$listtype["flag"]."#'/>";
318 318
                 $activelisttype = $listtype;
319 319
                 $tooltips = $this->tooltip($rowid, $value, TRUE);
320 320
                 break;
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                 $retval .= "<select id='option-S$rowid-select' name='option[S$rowid]' $jsmagic>";
323 323
                 foreach ($list as $value) {
324 324
                     $listtype = $optioninfo->optionType($value);
325
-                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ";
325
+                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#".$listtype["type"]."#".$listtype["flag"]."#' ";
326 326
                     if ($iterator == $this->optionIterator) {
327 327
                         $retval .= "selected='selected'";
328 328
                         $activelisttype = $listtype;
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
                     } else {
331 331
                         $tooltips .= $this->tooltip($rowid, $value, FALSE);
332 332
                     }
333
-                    $retval .= ">" . $uiElements->displayName($value) . "</option>";
333
+                    $retval .= ">".$uiElements->displayName($value)."</option>";
334 334
                     $iterator++;
335 335
                 }
336 336
 
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
     private function selectLanguage($rowid, $makeVisible)
357 357
     {
358 358
         \core\common\Entity::intoThePotatoes();
359
-        $retval = "<select style='display:" . ($makeVisible ? "block" : "none") . "' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect'>
360
-            <option value='' name='select_language' selected>" . _("select language") . "</option>
361
-            <option value='C' name='all_languages'>" . _("default/other languages") . "</option>";
359
+        $retval = "<select style='display:".($makeVisible ? "block" : "none")."' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect'>
360
+            <option value='' name='select_language' selected>" . _("select language")."</option>
361
+            <option value='C' name='all_languages'>" . _("default/other languages")."</option>";
362 362
         foreach (\config\Master::LANGUAGES as $langindex => $possibleLang) {
363 363
             $thislang = $possibleLang['display'];
364 364
             $retval .= "<option value='$langindex' name='$langindex'>$thislang</option>";
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     {
380 380
         $retval = "";
381 381
         foreach ($this->htmlDatatypeTexts as $key => $type) {
382
-            $retval .= "<" . $type['html'] . " style='display:" . ($activetype['type'] == $key ? "block" : "none") . "' name='value[S$rowid-$key]' id='S" . $rowid . "-input-" . $key . "'" . $type['tail'] . ">";
382
+            $retval .= "<".$type['html']." style='display:".($activetype['type'] == $key ? "block" : "none")."' name='value[S$rowid-$key]' id='S".$rowid."-input-".$key."'".$type['tail'].">";
383 383
         }
384 384
         return $retval;
385 385
     }
@@ -395,11 +395,11 @@  discard block
 block discarded – undo
395 395
     {
396 396
         // first column: the <select> element with the names of options and their field-toggling JS magic
397 397
         $selectorInfo = $this->selectElement($rowid, $list);
398
-        $retval = "<td>" . $selectorInfo["TEXT"] . "</td>";
398
+        $retval = "<td>".$selectorInfo["TEXT"]."</td>";
399 399
         // second column: the <select> element for language selection - only visible if the active option is multi-lang
400
-        $retval .= "<td>" . $this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML") . "</td>";
400
+        $retval .= "<td>".$this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML")."</td>";
401 401
         // third column: the actual input fields; the data type of the active option is visible, all others hidden
402
-        $retval .= "<td>" . $this->inputFields($rowid, $selectorInfo['ACTIVE']) . "</td>";
402
+        $retval .= "<td>".$this->inputFields($rowid, $selectorInfo['ACTIVE'])."</td>";
403 403
         return $retval;
404 404
     }
405 405
 
@@ -423,20 +423,20 @@  discard block
 block discarded – undo
423 423
         $retval .= "<td>";
424 424
         $uiElements = new UIElements();
425 425
         $listtype = $optioninfo->optionType($optionName);
426
-        $retval .= "<span style='display:flex;'>" . $uiElements->displayName($optionName);
427
-        $retval .= $this->tooltip($rowid, $optionName, TRUE) . "</span>";
428
-        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ></td>";
426
+        $retval .= "<span style='display:flex;'>".$uiElements->displayName($optionName);
427
+        $retval .= $this->tooltip($rowid, $optionName, TRUE)."</span>";
428
+        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#".$listtype["type"]."#".$listtype["flag"]."#' ></td>";
429 429
 
430 430
         // language tag if any
431 431
         $retval .= "<td>";
432 432
         if ($listtype["flag"] == "ML") {
433 433
 
434
-            $language = "(" . strtoupper($optionLang) . ")";
434
+            $language = "(".strtoupper($optionLang).")";
435 435
             if ($optionLang == 'C') {
436 436
                 $language = _("(default/other languages)");
437 437
             }
438 438
             $retval .= $language;
439
-            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect' value='" . $optionLang . "' style='display:block'>";
439
+            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect' value='".$optionLang."' style='display:block'>";
440 440
         }
441 441
         $retval .= "</td>";
442 442
 // attribute content
@@ -446,12 +446,12 @@  discard block
 block discarded – undo
446 446
             case \core\Options::TYPECODE_COORDINATES:
447 447
                 $this->allLocationCount = $this->allLocationCount + 1;
448 448
                 // display of the locations varies by map provider
449
-                $classname = "\web\lib\admin\Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'];
449
+                $classname = "\web\lib\admin\Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'];
450 450
                 $link = $classname::optionListDisplayCode($optionValue, $this->allLocationCount);
451
-                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-" . \core\Options::TYPECODE_TEXT . "]' id='S$rowid-input-text' value='$optionValue'>$link";
451
+                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-".\core\Options::TYPECODE_TEXT."]' id='S$rowid-input-text' value='$optionValue'>$link";
452 452
                 break;
453 453
             case \core\Options::TYPECODE_FILE:
454
-                $retval .= "<input readonly type='text' name='value[S$rowid-" . \core\Options::TYPECODE_STRING . "]' id='S" . $rowid . "-input-string' style='display:none' value='" . urlencode($optionValue) . "'>";
454
+                $retval .= "<input readonly type='text' name='value[S$rowid-".\core\Options::TYPECODE_STRING."]' id='S".$rowid."-input-string' style='display:none' value='".urlencode($optionValue)."'>";
455 455
                 $uiElements = new UIElements();
456 456
                 switch ($optionName) {
457 457
                     case "eap:ca_file":
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
                 break;
474 474
             case \core\Options::TYPECODE_ENUM_OPENROAMING: // is a string after all
475 475
                 $displayedVariant = $this->enumPrettyPrints[$optionValue];
476
-                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>";
476
+                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>";
477 477
                 break;
478 478
             case \core\Options::TYPECODE_STRING:
479 479
             // fall-thorugh is intentional; mostly identical HTML code for the three types
@@ -481,11 +481,11 @@  discard block
 block discarded – undo
481 481
             // fall-thorugh is intentional; mostly identical HTML code for the three types
482 482
             case \core\Options::TYPECODE_TEXT:
483 483
                 $displayedVariant = $optionValue; // for all three types, value tag and actual display are identical
484
-                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>";
484
+                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>";
485 485
                 break;
486 486
             case \core\Options::TYPECODE_BOOLEAN:
487 487
                 $displayedVariant = ($optionValue == "on" ? _("on") : _("off"));
488
-                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>";
488
+                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>";
489 489
                 break;
490 490
             default:
491 491
                 // this should never happen!
@@ -531,10 +531,10 @@  discard block
 block discarded – undo
531 531
        <td>
532 532
           <button type='button' class='delete' onclick='";
533 533
         if ($prefillValue !== NULL && $item == "general:geo_coordinates") {
534
-            $funcname = "Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'] . 'DeleteCoord';
535
-            $retval .= 'if (typeof ' . $funcname . ' === "function") { ' . $funcname . '(' . $this->allLocationCount . '); } ';
534
+            $funcname = "Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'].'DeleteCoord';
535
+            $retval .= 'if (typeof '.$funcname.' === "function") { '.$funcname.'('.$this->allLocationCount.'); } ';
536 536
         }
537
-        $retval .= 'deleteOption("option-S' . $rowid . '")';
537
+        $retval .= 'deleteOption("option-S'.$rowid.'")';
538 538
         $retval .= "'>-</button>
539 539
        </td>
540 540
     </tr>";
Please login to merge, or discard this patch.