Test Failed
Push — release_2_1 ( 3f8229...a38cec )
by Tomasz
34:27 queued 23:52
created
web/admin/overview_org.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 function displaySilverbulletPropertyWidget(&$theProfile, $readonly, &$uiElements) {
32 32
     ?>
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
                 <ul style='margin:1px'>
44 44
                     <?php
45 45
                     foreach ($completeness as $missing_attrib) {
46
-                        echo "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
46
+                        echo "<li>".$uiElements->displayName($missing_attrib)."</li>";
47 47
                     }
48 48
                     ?>
49 49
                 </ul>
50 50
             </div>
51 51
             <?php
52 52
         } else {
53
-            echo sprintf(_("You can create up to %d users."), $maxusers[0]['value']) . "<br/>" . sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $theProfile->realm);
53
+            echo sprintf(_("You can create up to %d users."), $maxusers[0]['value'])."<br/>".sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $theProfile->realm);
54 54
         }
55 55
         ?>
56 56
         <br/>
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         if ($readonly === FALSE) {
60 60
             ?>
61 61
             <form action='edit_silverbullet.php?inst_id=<?php echo $theProfile->institution; ?>&amp;profile_id=<?php echo $theProfile->identifier; ?>' method='POST'>
62
-                <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
62
+                <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
63 63
             </form>
64 64
             <?php
65 65
         }
@@ -95,21 +95,21 @@  discard block
 block discarded – undo
95 95
                 $has_overrides = TRUE;
96 96
             }
97 97
         }
98
-        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>" . _("<strong>EAP Types</strong> (in order of preference):") . "<br/>";
98
+        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>"._("<strong>EAP Types</strong> (in order of preference):")."<br/>";
99 99
         $typelist = $theProfile->getEapMethodsinOrderOfPreference();
100 100
         $allcomplete = TRUE;
101 101
         foreach ($typelist as $eaptype) {
102 102
             $buffer_eaptypediv .= $eaptype->getPrintableRep();
103 103
             $completeness = $theProfile->isEapTypeDefinitionComplete($eaptype);
104 104
             if ($completeness === true) {
105
-                $buffer_eaptypediv .= " <div class='acceptable'>" . _("OK") . "</div>";
105
+                $buffer_eaptypediv .= " <div class='acceptable'>"._("OK")."</div>";
106 106
             } else {
107 107
                 $buffer_eaptypediv .= " <div class='notacceptable'>";
108 108
                 $buffer_eaptypediv .= _("Information needed!");
109 109
                 if (is_array($completeness)) {
110 110
                     $buffer_eaptypediv .= "<ul style='margin:1px'>";
111 111
                     foreach ($completeness as $missing_attrib) {
112
-                        $buffer_eaptypediv .= "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
112
+                        $buffer_eaptypediv .= "<li>".$uiElements->displayName($missing_attrib)."</li>";
113 113
                     }
114 114
                     $buffer_eaptypediv .= "</ul>";
115 115
                 }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             foreach ($attribs as $attrib) {
122 122
                 if ($attrib['level'] == \core\Options::LEVEL_METHOD && !preg_match("/^internal:/", $attrib['name']) && !$justOnce) {
123 123
                     $justOnce = TRUE;
124
-                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Tabler/square-rounded-letter-e-blue.svg' alt='" . _("Options on EAP Method/Device level are in effect.") . "'>";
124
+                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Tabler/square-rounded-letter-e-blue.svg' alt='"._("Options on EAP Method/Device level are in effect.")."'>";
125 125
                 }
126 126
             }
127 127
             $buffer_eaptypediv .= "<br/>";
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if ($theProfile->isRedirected()) {
148 148
             $iconData = $uiElements->iconData('PROFILES_REDIRECTED');
149 149
             $iconData['text'] = _("Profile redirected");
150
-            $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData));
150
+            $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData));
151 151
             
152 152
         } 
153 153
         
@@ -155,15 +155,15 @@  discard block
 block discarded – undo
155 155
         switch ($certStatus) {
156 156
             case core\AbstractProfile::CERT_STATUS_OK:
157 157
                 $iconData = $uiElements->iconData('CERT_STATUS_OK');
158
-                $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData));
158
+                $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData));
159 159
                 break;
160 160
             case core\AbstractProfile::CERT_STATUS_WARN:
161 161
                 $iconData = $uiElements->iconData('CERT_STATUS_WARN');
162
-                $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData));                
162
+                $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData));                
163 163
                 break;
164 164
             case core\AbstractProfile::CERT_STATUS_ERROR:
165 165
                 $iconData = $uiElements->iconData('CERT_STATUS_ERROR');
166
-                $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData));
166
+                $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData));
167 167
                 break;            
168 168
         }
169 169
         $buffer_headline .= "</div>";
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
                 if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == "LOCAL") {
190 190
                     $diagUrl = "../diag/";
191 191
                 } else {
192
-                    $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] . "/diag/";
192
+                    $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS']."/diag/";
193 193
                 }
194 194
                 ?>
195
-                <form action='<?php echo $diagUrl . "action_realmcheck.php?inst_id=" . $theProfile->institution . "&profile_id=" . $theProfile->identifier ?>' method='post' accept-charset='UTF-8'>
196
-                    <input type='hidden' name='comefrom' value='<?php echo htmlspecialchars($link . $_SERVER['SCRIPT_NAME']); ?>'/>
195
+                <form action='<?php echo $diagUrl."action_realmcheck.php?inst_id=".$theProfile->institution."&profile_id=".$theProfile->identifier ?>' method='post' accept-charset='UTF-8'>
196
+                    <input type='hidden' name='comefrom' value='<?php echo htmlspecialchars($link.$_SERVER['SCRIPT_NAME']); ?>'/>
197 197
                     <button type='submit' name='profile_action' value='check' <?php echo ($has_realm ? "" : "disabled='disabled'"); ?> title='<?php echo _("The realm can only be checked if you configure the realm!"); ?>'>
198 198
                         <?php echo _("Check realm reachability"); ?>
199 199
                     </button>
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
                 ?>
242 242
                 <div style='display: flex;'>
243 243
                     <?php
244
-                    $idpLevelUrl = $link . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $theProfile->institution;
245
-                    $displayurl = $idpLevelUrl . "&amp;profile=" . $theProfile->identifier;
246
-                    $QRurl = $idpLevelUrl . "&profile=" . $theProfile->identifier;
244
+                    $idpLevelUrl = $link.dirname(dirname($_SERVER['SCRIPT_NAME']))."?idp=".$theProfile->institution;
245
+                    $displayurl = $idpLevelUrl."&amp;profile=".$theProfile->identifier;
246
+                    $QRurl = $idpLevelUrl."&profile=".$theProfile->identifier;
247 247
                     $qrCode = new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
248 248
                                 'outputType' => \chillerlan\QRCode\QRCode::OUTPUT_IMAGE_PNG,
249 249
                                 'eccLevel' => \chillerlan\QRCode\QRCode::ECC_H,
@@ -255,9 +255,9 @@  discard block
 block discarded – undo
255 255
                     if (empty($rawQr)) {
256 256
                         throw new Exception("Something went seriously wrong during QR code generation!");
257 257
                     }
258
-                    $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
258
+                    $uri = "data:image/png;base64,".base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
259 259
                     $size = getimagesize($uri);
260
-                    echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>";
260
+                    echo "<img width='".($size[0] / 4)."' height='".($size[1] / 4)."' src='$uri' alt='QR-code'/>";
261 261
 
262 262
                     //echo "<nobr>$displayurl</nobr></a>";
263 263
                     echo "<p>$displayurl</p></a>";
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             <h2><?php
302 302
                 switch ($deploymentObject->consortium) {
303 303
                     case "eduroam":
304
-                        $displayname = config\ConfAssistant::CONSORTIUM['name'] . " " . core\DeploymentManaged::PRODUCTNAME;
304
+                        $displayname = config\ConfAssistant::CONSORTIUM['name']." ".core\DeploymentManaged::PRODUCTNAME;
305 305
                         break;
306 306
                     case "OpenRoaming":
307 307
                         $displayname = "OpenRoaming ANP";
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                     default:
310 310
                         throw new Exception("We are supposed to operate on a roaming consortium we don't know.");
311 311
                 }
312
-                echo $displayname . " (<span style='color:" . ( $deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>" . _("inactive") : "green;'>" . _("active") ) . "</span>)";
312
+                echo $displayname." (<span style='color:".($deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>"._("inactive") : "green;'>"._("active"))."</span>)";
313 313
                 ?></h2>
314 314
             <table>
315 315
                 <caption><?php echo _("Deployment Details"); ?></caption>
@@ -323,13 +323,13 @@  discard block
 block discarded – undo
323 323
                     <td><strong><?php echo _("Your primary RADIUS server") ?></strong><br/>
324 324
                         <?php
325 325
                         if ($deploymentObject->host1_v4 !== NULL) {
326
-                            echo _("IPv4") . ": " . $deploymentObject->host1_v4;
326
+                            echo _("IPv4").": ".$deploymentObject->host1_v4;
327 327
                         }
328 328
                         if ($deploymentObject->host1_v4 !== NULL && $deploymentObject->host1_v6 !== NULL) {
329 329
                             echo "<br/>";
330 330
                         }
331 331
                         if ($deploymentObject->host1_v6 !== NULL) {
332
-                            echo _("IPv6") . ": " . $deploymentObject->host1_v6;
332
+                            echo _("IPv6").": ".$deploymentObject->host1_v6;
333 333
                         }
334 334
                         ?>
335 335
                     </td>
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
                     <td><?php echo $deploymentObject->port1; ?></td>
338 338
                     <td>
339 339
                         <?php
340
-                        echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_1]['icon'] .
341
-                        "' alt='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] .
342
-                        "' title='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . "' class='cat-icon'>";
340
+                        echo "<img src='".$radiusMessages[$deploymentObject->radius_status_1]['icon'].
341
+                        "' alt='".$radiusMessages[$deploymentObject->radius_status_1]['text'].
342
+                        "' title='".$radiusMessages[$deploymentObject->radius_status_1]['text']."' class='cat-icon'>";
343 343
                         ?>
344 344
                     </td>
345 345
                 </tr>
@@ -347,22 +347,22 @@  discard block
 block discarded – undo
347 347
                     <td><strong><?php echo _("Your backup RADIUS server") ?><br/></strong>
348 348
                         <?php
349 349
                         if ($deploymentObject->host2_v4 !== NULL) {
350
-                            echo _("IPv4") . ": " . $deploymentObject->host2_v4;
350
+                            echo _("IPv4").": ".$deploymentObject->host2_v4;
351 351
                         }
352 352
                         if ($deploymentObject->host2_v4 !== NULL && $deploymentObject->host2_v6 !== NULL) {
353 353
                             echo "<br/>";
354 354
                         }
355 355
                         if ($deploymentObject->host2_v6 !== NULL) {
356
-                            echo _("IPv6") . ": " . $deploymentObject->host2_v6;
356
+                            echo _("IPv6").": ".$deploymentObject->host2_v6;
357 357
                         }
358 358
                         ?></td>
359 359
                     <td><?php echo _("RADIUS port number: ") ?></td>
360 360
                     <td><?php echo $deploymentObject->port2; ?></td>
361 361
                     <td>
362 362
                         <?php
363
-                        echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_2]['icon'] .
364
-                        "' alt='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] .
365
-                        "' title='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . "' class='cat-icon'>";
363
+                        echo "<img src='".$radiusMessages[$deploymentObject->radius_status_2]['icon'].
364
+                        "' alt='".$radiusMessages[$deploymentObject->radius_status_2]['text'].
365
+                        "' title='".$radiusMessages[$deploymentObject->radius_status_2]['text']."' class='cat-icon'>";
366 366
                         ?>
367 367
                     </td>
368 368
                 </tr>
@@ -414,12 +414,12 @@  discard block
 block discarded – undo
414 414
                             if (array_key_exists('FAILURE', $res) && $res['FAILURE'] > 0) {
415 415
                                 echo '<br>';
416 416
                                 if ($res['FAILURE'] == 2) {
417
-                                    echo ' <span style="color: red;">' . _("Activation failure.") . '</span>';
417
+                                    echo ' <span style="color: red;">'._("Activation failure.").'</span>';
418 418
                                 } else {
419 419
                                     if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
420
-                                        echo ' <span style="color: red;">' . _("Activation failure for your primary RADIUS server.") . '</span>';
420
+                                        echo ' <span style="color: red;">'._("Activation failure for your primary RADIUS server.").'</span>';
421 421
                                     } else {
422
-                                        echo ' <span style="color: red;">' . _("Activation failure for your backup RADIUS server.") . '</span>';
422
+                                        echo ' <span style="color: red;">'._("Activation failure for your backup RADIUS server.").'</span>';
423 423
                                     }
424 424
                                 }
425 425
                             }
@@ -454,12 +454,12 @@  discard block
 block discarded – undo
454 454
                                 if ($res['FAILURE'] > 0) {
455 455
                                     echo '<br>';
456 456
                                     if ($res['FAILURE'] == 2) {
457
-                                        echo ' <span style="color: red;">' . _("Failure during deactivation, your request is queued for handling") . '</span>';
457
+                                        echo ' <span style="color: red;">'._("Failure during deactivation, your request is queued for handling").'</span>';
458 458
                                     } else {
459 459
                                         if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
460
-                                            echo ' <span style="color: red;">' . _("Deactivation failure for your primary RADIUS server, your request is queued.") . '</span>';
460
+                                            echo ' <span style="color: red;">'._("Deactivation failure for your primary RADIUS server, your request is queued.").'</span>';
461 461
                                         } else {
462
-                                            echo ' <span style="color: red;">' . _("Deactivation failure for your backup RADIUS server, your request is queued.") . '</span>';
462
+                                            echo ' <span style="color: red;">'._("Deactivation failure for your backup RADIUS server, your request is queued.").'</span>';
463 463
                                         }
464 464
                                     }
465 465
                                 }
@@ -480,24 +480,24 @@  discard block
 block discarded – undo
480 480
         </div>
481 481
         <div style='width:20px;'></div> <!-- QR code space, reserved -->
482 482
         <div style='display: table-cell; min-width:200px;'>
483
-            <?php $tablecaption = _("Hotspot Usage Statistics");?>
483
+            <?php $tablecaption = _("Hotspot Usage Statistics"); ?>
484 484
             <h1><?php echo $tablecaption; ?></h1>
485
-            <h2><?php echo _("5 most recent authentications");?></h2>
486
-            <p><?php echo _("(AP Identifier is a /-separated tuple of NAS-Identifier/NAS-IP-Address/NAS-IPv6-Address/Called-Station-Id)");?></p>
485
+            <h2><?php echo _("5 most recent authentications"); ?></h2>
486
+            <p><?php echo _("(AP Identifier is a /-separated tuple of NAS-Identifier/NAS-IP-Address/NAS-IPv6-Address/Called-Station-Id)"); ?></p>
487 487
             <table class='authrecord'>
488
-    <caption><?php echo $tablecaption;?></caption>
488
+    <caption><?php echo $tablecaption; ?></caption>
489 489
     <tr style='text-align: left;'>
490
-        <th scope="col"><strong><?php echo _("Timestamp (UTC)");?></strong></th>
491
-        <th scope="col"><strong><?php echo _("Realm");?></strong></th>
492
-        <th scope="col"><strong><?php echo _("MAC Address");?></strong></th>
493
-        <th scope="col"><strong><?php echo _("Chargeable-User-Identity");?></strong></th>
494
-        <th scope="col"><strong><?php echo _("Result");?></strong></th>
495
-        <th scope="col"><strong><?php echo _("AP Identifier");?></strong></th>
490
+        <th scope="col"><strong><?php echo _("Timestamp (UTC)"); ?></strong></th>
491
+        <th scope="col"><strong><?php echo _("Realm"); ?></strong></th>
492
+        <th scope="col"><strong><?php echo _("MAC Address"); ?></strong></th>
493
+        <th scope="col"><strong><?php echo _("Chargeable-User-Identity"); ?></strong></th>
494
+        <th scope="col"><strong><?php echo _("Result"); ?></strong></th>
495
+        <th scope="col"><strong><?php echo _("AP Identifier"); ?></strong></th>
496 496
     </tr>
497 497
     <?php
498
-    $userAuthData = $deploymentObject->retrieveStatistics(0,5);
498
+    $userAuthData = $deploymentObject->retrieveStatistics(0, 5);
499 499
     foreach ($userAuthData as $oneRecord) {
500
-        echo "<tr class='".($oneRecord['result'] == "OK" ? "auth-success" : "auth-fail" )."'>"
500
+        echo "<tr class='".($oneRecord['result'] == "OK" ? "auth-success" : "auth-fail")."'>"
501 501
                 . "<td>".$oneRecord['activity_time']."</td>"
502 502
                 . "<td>".$oneRecord['realm']."</td>"
503 503
                 . "<td>".$oneRecord['mac']."</td>"
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
             }
661 661
             ?>
662 662
         </h2>
663
-    <?php if(count($profiles_for_this_idp) > 1 && $readonly === FALSE && $editMode === 'fullaccess') { ?>
663
+    <?php if (count($profiles_for_this_idp) > 1 && $readonly === FALSE && $editMode === 'fullaccess') { ?>
664 664
                     <form method='post' action='sort_profiles.php?inst_id=<?php echo $my_inst->identifier; ?>' accept-charset='UTF-8'>
665 665
                         <div>
666 666
                             <button type='submit' name='profile_sorting'>
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
                         <div>
729 729
                             <input type="hidden" name="consortium" value="eduroam"/>
730 730
                             <button type='submit' <?php echo ($hasMail > 0 ? "" : "disabled"); ?> name='profile_action' value='new'>
731
-                                <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name'] . " " . \core\DeploymentManaged::PRODUCTNAME); ?>
731
+                                <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name']." ".\core\DeploymentManaged::PRODUCTNAME); ?>
732 732
                             </button>
733 733
                             <span style='color: red;'>
734 734
                             <?php if ($hasMail == 0) { 
Please login to merge, or discard this patch.
web/admin/duplicate_profile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
30
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
31 31
 
32 32
 $deco = new \web\lib\admin\PageDecoration();
33 33
 $validator = new \web\lib\common\InputValidation();
Please login to merge, or discard this patch.
web/admin/duplicate_profile_result.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 ?>
30 30
 
31 31
 <?php
32
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
32
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
33 33
 
34 34
 $deco = new \web\lib\admin\PageDecoration();
35 35
 $validator = new \web\lib\common\InputValidation();
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
     } 
102 102
 }
103 103
 
104
-$newProfileName =  $validator->string($_POST['new_profile'], true);
104
+$newProfileName = $validator->string($_POST['new_profile'], true);
105 105
 $origProfileName = $validator->string($_POST['orig_profile_name'], true);
106 106
 $handle = \core\DBConnection::handle("INST");
107 107
 
108 108
 $result = runSelect($my_profile->identifier, $fields, 'profile', $handle);
109 109
 $row = $result->fetch_assoc();
110
-$row['showtime']= 0;
110
+$row['showtime'] = 0;
111 111
 $row['preference'] = 1000;
112 112
 copyRow($row, $fields, 'profile', $handle);
113 113
 $newProfileId = $handle->lastID();
Please login to merge, or discard this patch.
web/admin/action_req_certificate.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
  */
28 28
 ?>
29 29
 <?php
30
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
30
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
31 31
 $auth = new \web\lib\admin\Authentication();
32 32
 $deco = new \web\lib\admin\PageDecoration();
33 33
 $validator = new \web\lib\common\InputValidation();
@@ -90,23 +90,23 @@  discard block
 block discarded – undo
90 90
     $subject_prefix = implode(', ', array_reverse($DN));
91 91
     /* Messages */
92 92
     $messages = [
93
-    'WRONG_SUBJECT' => _('Submitted Certificate Signing Request contains subject field that does not start with ') . 
94
-                       $subject_prefix  . '<br>' . _("See CSR generation rules below."),
93
+    'WRONG_SUBJECT' => _('Submitted Certificate Signing Request contains subject field that does not start with '). 
94
+                       $subject_prefix.'<br>'._("See CSR generation rules below."),
95 95
     'WRONG_CRL' => _('Submitted Certificate Signing Request is broken - unable to extract the public key from CSR')
96 96
     ];
97 97
     $settings = array();
98
-    if  (isset($_SESSION['CSR_ERRORS']) && $_SESSION['CSR_ERRORS'] != '') {
99
-        print '<h3 id="errorbox"><font color="red">'. $messages[$_SESSION['CSR_ERRORS']].'</font></h3>';
98
+    if (isset($_SESSION['CSR_ERRORS']) && $_SESSION['CSR_ERRORS'] != '') {
99
+        print '<h3 id="errorbox"><font color="red">'.$messages[$_SESSION['CSR_ERRORS']].'</font></h3>';
100 100
         unset($_SESSION['CSR_ERRORS']);
101 101
     }
102
-    if  (isset($_SESSION['FORM_SETTINGS']) && $_SESSION['FORM_SETTINGS'] != '') {
102
+    if (isset($_SESSION['FORM_SETTINGS']) && $_SESSION['FORM_SETTINGS'] != '') {
103 103
         $settings = $_SESSION['FORM_SETTINGS'];
104 104
         unset($_SESSION['FORM_SETTINGS']);
105 105
     }
106 106
     if (empty($settings) && isset($_POST['LEVEL'])) {
107 107
         $settings = array('LEVEL' => $_POST['LEVEL'], 'NRO-list' => $_POST['NRO-list'], 'INST-list' => $_POST['INST-list']);
108 108
     }
109
-    if  ( isset($_POST['requestcert']) && $_POST['requestcert'] == \web\lib\common\FormElements::BUTTON_SAVE) {
109
+    if (isset($_POST['requestcert']) && $_POST['requestcert'] == \web\lib\common\FormElements::BUTTON_SAVE) {
110 110
         // basic sanity checks before we hand this over to openssl
111 111
         $sanitisedCsr = $validator->string($_POST['CSR'] ?? "", TRUE);
112 112
         //print $sanitisedCsr; 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $dc = array();
122 122
         if (!empty($subject_keys) && $subject_keys[0] == 'DC' && $subject['DC']) {
123 123
             foreach ($subject['DC'] as $v) {
124
-                $dc[] = 'DC=' . $v;
124
+                $dc[] = 'DC='.$v;
125 125
             }
126 126
             if ($DN !== array_reverse($dc)) {
127 127
                 $dc = array();
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
                 }
142 142
                 $fed = $validator->existingFederation($_POST['NRO-list']);
143 143
                 $country = strtoupper($fed->tld);
144
-                $code = isset($cat->knownFederations[$country]['code']) ? $cat->knownFederations[$country]['code'] : $country ;
144
+                $code = isset($cat->knownFederations[$country]['code']) ? $cat->knownFederations[$country]['code'] : $country;
145 145
                 $DN[] = "C=$code";
146
-                $DN[] = "O=NRO of " . iconv('UTF-8', 'ASCII//TRANSLIT', $cat->knownFederations[$country]['name']);
146
+                $DN[] = "O=NRO of ".iconv('UTF-8', 'ASCII//TRANSLIT', $cat->knownFederations[$country]['name']);
147 147
                 $serverInfo = $externalDb->listExternalTlsServersFederation($fed->tld);
148 148
                 $serverList = explode(",", array_key_first($serverInfo));
149
-                $DN[] = "CN=" . $serverList[0];
149
+                $DN[] = "CN=".$serverList[0];
150 150
                 $policies[] = "eduroam IdP";
151 151
                 $policies[] = "eduroam SP";
152 152
                 $firstName = $serverInfo[array_key_first($serverInfo)][0]["name"];
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                     throw new Exception(sprintf("Sorry: you are not %s admin for the %s requested in the form.", $uiElements->nomenclatureFed, $uiElements->nomenclatureFed));
163 163
                 }
164 164
                 $country = strtoupper($matches[1]);
165
-                $code = isset($cat->knownFederations[$country]['code']) ? $cat->knownFederations[$country]['code'] : $country ;
165
+                $code = isset($cat->knownFederations[$country]['code']) ? $cat->knownFederations[$country]['code'] : $country;
166 166
                 $DN[] = "C=$code";
167 167
                 $serverInfo = $extInsts[$_POST['INST-list']];
168 168
                 if (isset($serverInfo["names"]["en"])) {
@@ -176,14 +176,14 @@  discard block
 block discarded – undo
176 176
 		    $modou = 1;
177 177
 		    $ou = str_replace(",", "/,", $ou);
178 178
 		}
179
-		$ou = preg_replace('/\s+/', ' ',  $ou);
179
+		$ou = preg_replace('/\s+/', ' ', $ou);
180 180
 		if (strlen($ou) >= 64) {
181 181
 			$ou = substr($ou, 0, 64);
182 182
 			$modou += 2;
183 183
 		}
184 184
                 $DN[] = "O=".iconv('UTF-8', 'ASCII//TRANSLIT', $ou);
185 185
                 $serverList = explode(",", $serverInfo["servers"]);
186
-                $DN[] = "CN=" . $serverList[0];
186
+                $DN[] = "CN=".$serverList[0];
187 187
                 switch ($serverInfo["type"]) {
188 188
                     case core\IdP::TYPE_IDPSP:
189 189
                         $policies[] = "eduroam IdP";
@@ -202,13 +202,13 @@  discard block
 block discarded – undo
202 202
             default:
203 203
                 throw new Exception("Sorry: Unknown level of issuance requested.");
204 204
         }
205
-        echo "<p style='font-size: large'>" . _("Requesting a certificate with the following properties");
205
+        echo "<p style='font-size: large'>"._("Requesting a certificate with the following properties");
206 206
         echo "<ul>";
207
-        echo "<li>" . _("Policy OIDs: ") . implode(", ", $policies) . "</li>";
208
-	echo "<li>" . _("Distinguished Name: ") . implode(", ", $DN);
207
+        echo "<li>"._("Policy OIDs: ").implode(", ", $policies)."</li>";
208
+	echo "<li>"._("Distinguished Name: ").implode(", ", $DN);
209 209
 	if ($modou > 0) {
210 210
 	    echo " (";
211
-            echo _("Organization field adjusted"). ': ';
211
+            echo _("Organization field adjusted").': ';
212 212
 	    $desc = array();
213 213
 	    if ($modou >= 2) {
214 214
 		$desc[] = _("truncated to 64 chars");
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
 	    echo ")";
221 221
 	}
222 222
         echo "</li>";
223
-        echo "<li>" . _("subjectAltName:DNS : ") . implode(", ", $serverList) . "</li>";
224
-        echo "<li>" . _("Requester Contact Details: ") . $firstName . " &lt;" . $firstMail . "&gt;" . "</li>";
223
+        echo "<li>"._("subjectAltName:DNS : ").implode(", ", $serverList)."</li>";
224
+        echo "<li>"._("Requester Contact Details: ").$firstName." &lt;".$firstMail."&gt;"."</li>";
225 225
         echo "</ul></p>";
226 226
 
227 227
         $vettedCsr = $validator->string($_POST['CSR'], true);
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $loggerInstance->debug(2, $DN, "CERT DN: ", "\n");
238 238
         // our certs can be good for max 5 years
239 239
         $fed->requestCertificate($user->identifier, $newCsrWithMeta, $expiryDays);
240
-        echo "<p>" . _("The certificate was requested.") . "</p>";
240
+        echo "<p>"._("The certificate was requested.")."</p>";
241 241
         ?>
242 242
         <form action="overview_certificates.php" method="GET">
243 243
             <button type="submit"><?php echo _("Back to Certificate Overview"); ?></button>
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         switch (count($feds)) {
256 256
             case 0:
257 257
                 echo "<div>";
258
-                echo $uiElements->boxRemark("<strong>" . sprintf(_("None of your %s servers has complete information in the database."),$uiElements->nomenclatureFed)."</strong>" . _("At least the DNS names of TLS servers and a role-based contact mail address are required."));
258
+                echo $uiElements->boxRemark("<strong>".sprintf(_("None of your %s servers has complete information in the database."), $uiElements->nomenclatureFed)."</strong>"._("At least the DNS names of TLS servers and a role-based contact mail address are required."));
259 259
                 echo "</div>";
260 260
                 break;
261 261
             case 1:
@@ -263,22 +263,22 @@  discard block
 block discarded – undo
263 263
                 if (empty($settings) || (isset($settings['LEVEL']) && $settings['LEVEL'] == 'NRO')) {
264 264
                     echo ' checked';
265 265
                 }
266
-                echo '>' . sprintf(_("Certificate for %s") ." ", $uiElements->nomenclatureFed) . '</input>';
267
-                echo " <strong>" . $cat->knownFederations[$feds[0]->tld]['name'] . "</strong>";
268
-                echo '<input type="hidden" name="NRO-list" id="NRO-list" value="' . $feds[0]->tld . '"/>';
266
+                echo '>'.sprintf(_("Certificate for %s")." ", $uiElements->nomenclatureFed).'</input>';
267
+                echo " <strong>".$cat->knownFederations[$feds[0]->tld]['name']."</strong>";
268
+                echo '<input type="hidden" name="NRO-list" id="NRO-list" value="'.$feds[0]->tld.'"/>';
269 269
                 break;
270 270
             default:
271 271
                 echo '<input type="radio" name="LEVEL" id="NRO" value="NRO"';
272 272
                 if (empty($settings) || isset($settings['LEVEL']) && $settings['LEVEL'] == 'NRO') {
273 273
                     echo ' checked';
274 274
                 }
275
-                echo '>' . sprintf(_("Certificate for %s") ." ", $uiElements->nomenclatureFed) . '</input>';
275
+                echo '>'.sprintf(_("Certificate for %s")." ", $uiElements->nomenclatureFed).'</input>';
276 276
                 ?>
277 277
                 <select name="NRO-list" id="NRO-list">
278 278
                     <option value="notset"><?php echo _("---PLEASE CHOOSE---"); ?></option>
279 279
                     <?php
280 280
                     foreach ($feds as $oneFed) {
281
-                        echo '<option value="' . strtoupper($oneFed->tld) . '">' . $cat->knownFederations[$oneFed->tld]['name'] . "</option>";
281
+                        echo '<option value="'.strtoupper($oneFed->tld).'">'.$cat->knownFederations[$oneFed->tld]['name']."</option>";
282 282
                         #echo '<option value="AAA' . strtoupper($oneFed->tld) . '">' . $oneIdP["names"][$langObject->getLang()] . "</option>";
283 283
                         
284 284
                     }
@@ -291,18 +291,18 @@  discard block
 block discarded – undo
291 291
         <script>
292 292
             var instservers = [];
293 293
             var instpolicies = [];
294
-            var nroservers = '<?php echo str_replace(",", ", ", array_key_first($serverInfo));?>';
294
+            var nroservers = '<?php echo str_replace(",", ", ", array_key_first($serverInfo)); ?>';
295 295
         <?php 
296 296
         $allIdPs = [];
297 297
         foreach ($allAuthorizedFeds as $oneFed) {
298 298
             foreach ($externalDb->listExternalTlsServersInstitution($oneFed['value']) as $id => $oneIdP) {
299
-                $allIdPs[$id] = '[' . substr($id, 0, 2) . '] ' . $oneIdP["name"];            
300
-                echo "instservers['" . $id . "']='" . str_replace(",", ", ", $oneIdP["servers"]) . "';\n";
301
-                echo "instpolicies['" . $id . "']='";
299
+                $allIdPs[$id] = '['.substr($id, 0, 2).'] '.$oneIdP["name"];            
300
+                echo "instservers['".$id."']='".str_replace(",", ", ", $oneIdP["servers"])."';\n";
301
+                echo "instpolicies['".$id."']='";
302 302
                 if ($oneIdP["type"] == 'IdPSP') {
303 303
                     echo "eduroam IdP/SP";
304 304
                 } else {
305
-                    echo "eduroam " . $oneIdP["type"];
305
+                    echo "eduroam ".$oneIdP["type"];
306 306
                 }
307 307
                 echo "';\n";
308 308
             }
@@ -340,9 +340,9 @@  discard block
 block discarded – undo
340 340
             <option value="notset"><?php echo _("---PLEASE CHOOSE---"); ?></option>
341 341
 <?php
342 342
 foreach ($allIdPs as $id => $name) {
343
-    echo '<option value="' . $id . '"';
343
+    echo '<option value="'.$id.'"';
344 344
     if (isset($settings['INST-list']) && $settings['INST-list'] == $id) { echo ' selected'; }
345
-    echo '>' . $name . "</option>";
345
+    echo '>'.$name."</option>";
346 346
 }
347 347
 ?>
348 348
         </select>
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             <?php 
352 352
             echo _('According to the above settings you will receive')
353 353
             ?>
354
-            <span id='certlevel'><?php echo _('NRO level certificate');?></span>
354
+            <span id='certlevel'><?php echo _('NRO level certificate'); ?></span>
355 355
             
356 356
         for server names:
357 357
         <span id='serversinfo'><?php echo str_replace(",", ", ", array_key_first($serverInfo)); ?></span>
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         <?php
368 368
         } else {
369 369
             echo "<div>";
370
-            echo $uiElements->boxRemark(sprintf(_("<strong>No organisation inside your %s has complete information in the database</strong>."." "._("At least the DNS names of TLS servers and a role-based contact mail address are required.")),$uiElements->nomenclatureFed), "No TLS capable org!", true);
370
+            echo $uiElements->boxRemark(sprintf(_("<strong>No organisation inside your %s has complete information in the database</strong>."." "._("At least the DNS names of TLS servers and a role-based contact mail address are required.")), $uiElements->nomenclatureFed), "No TLS capable org!", true);
371 371
             echo "</div>";
372 372
         }
373 373
         ?>
@@ -377,10 +377,10 @@  discard block
 block discarded – undo
377 377
         <h2><?php echo _("2. CSR generation"); ?></h2>
378 378
         <p>
379 379
         <?php 
380
-        echo _("The CSR subject field has to start with ") .'<b>' . $subject_prefix . '</b><br>';
380
+        echo _("The CSR subject field has to start with ").'<b>'.$subject_prefix.'</b><br>';
381 381
         echo _("One way to generate an acceptable certificate request is via this openssl one-liner:"); ?></p>
382 382
         <?php 
383
-        echo "<b>openssl req -new -newkey rsa:4096 -out test.csr -keyout test.key -subj /". implode('/', array_reverse($DN)) ."/C=XY/O=WillBeReplaced/CN=will.be.replaced</b>";
383
+        echo "<b>openssl req -new -newkey rsa:4096 -out test.csr -keyout test.key -subj /".implode('/', array_reverse($DN))."/C=XY/O=WillBeReplaced/CN=will.be.replaced</b>";
384 384
         ?>
385 385
         <h2><?php echo _("3. Submission"); ?></h2>
386 386
 <?php echo _("Please paste your CSR here:"); ?><br/><textarea name="CSR" id="CSR" rows="20" cols="85"/></textarea><br/>
Please login to merge, or discard this patch.
web/lib/admin/AbstractMap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         \core\common\Entity::intoThePotatoes();
138 138
         $wizard = new \web\lib\admin\Wizard($wizardMode);
139 139
         $retval = "<fieldset class='option_container_map'>
140
-        <legend><strong>" . _("Location") . "</strong></legend>";
140
+        <legend><strong>" . _("Location")."</strong></legend>";
141 141
         $retval .= $wizard->displayHelp("location");
142 142
         if ($additional) {
143 143
             $retval .= _("You can enter an <strong>additional</strong> location here. You can see the already defined locations in the 'General Information' field.");
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     protected function htmlPostEdit($allowDirectInput) {
156 156
         \core\common\Entity::intoThePotatoes();
157
-        $retval = "<br/>" . _("Latitude:") . " <input style='width:80px' name='geo_lat' id='geo_lat' " .($allowDirectInput ? "": "readonly"). ">" . _("Longitude:") . " <input name='geo_long' id='geo_long' style='width:80px' " .($allowDirectInput ? "": "readonly"). "></fieldset>";
157
+        $retval = "<br/>"._("Latitude:")." <input style='width:80px' name='geo_lat' id='geo_lat' ".($allowDirectInput ? "" : "readonly").">"._("Longitude:")." <input name='geo_long' id='geo_long' style='width:80px' ".($allowDirectInput ? "" : "readonly")."></fieldset>";
158 158
         \core\common\Entity::outOfThePotatoes();
159 159
         return $retval;
160 160
     }
Please login to merge, or discard this patch.
web/resources/css/cat.css.php 1 patch
Spacing   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 $colour1 = \config\Master::APPEARANCE['colour1'];
24 24
 $colour2 = \config\Master::APPEARANCE['colour2'];
25 25
 // we need to know if we are serving a RTL language so we can flip some heading
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 }
35 35
 
36 36
 body {
37
-    background: <?php echo $colour1;?>;
37
+    background: <?php echo $colour1; ?>;
38 38
     color: #000000;
39 39
     font-family:Verdana, Arial, Helvetica, sans-serif;
40 40
     font-size:11px;
41 41
     height: 100%;
42 42
     margin: 0px;
43 43
     padding: 0px;
44
-    padding-<?php echo $start;?>: 0px;
44
+    padding-<?php echo $start; ?>: 0px;
45 45
     min-width: 700px;
46 46
     font-size: 11px;
47 47
     font-weight: normal;
@@ -57,18 +57,18 @@  discard block
 block discarded – undo
57 57
 }
58 58
 
59 59
 button {
60
-    background: <?php echo $colour2;?>; 
60
+    background: <?php echo $colour2; ?>; 
61 61
     color: #FFFFFF; 
62 62
     min-height: 23px;
63
-    border-<?php echo $start;?>-style: outset; 
64
-    border-<?php echo $start;?>-width: 1px; 
65
-    border-<?php echo $start;?>-color: #8bbacb;
63
+    border-<?php echo $start; ?>-style: outset; 
64
+    border-<?php echo $start; ?>-width: 1px; 
65
+    border-<?php echo $start; ?>-color: #8bbacb;
66 66
     border-top-style: outset; 
67 67
     border-top-width: 1px; 
68 68
     border-top-color: #8bbacb;
69
-    border-<?php echo $end;?>-style: outset; 
70
-    border-<?php echo $end;?>-width: 2px; 
71
-    border-<?php echo $end;?>-color: #043d52;
69
+    border-<?php echo $end; ?>-style: outset; 
70
+    border-<?php echo $end; ?>-width: 2px; 
71
+    border-<?php echo $end; ?>-color: #043d52;
72 72
     border-bottom-style: outset; 
73 73
     border-bottom-width: 2px; 
74 74
     border-bottom-color: #043d52;
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
     background:#095e80;
79 79
     border-style:inset;
80 80
     position: relative;
81
-    <?php echo $start;?>: 3px;
81
+    <?php echo $start; ?>: 3px;
82 82
 }
83 83
 
84 84
 button.pressedDisabled {
85 85
     background:#999;
86 86
     border-style:inset;
87 87
     position: relative;
88
-    <?php echo $start;?>: 3px;
88
+    <?php echo $start; ?>: 3px;
89 89
 }
90 90
 
91 91
 button.delete {
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
 }
94 94
 
95 95
 .problemdescription {
96
-    padding-<?php echo $start;?>:40px;
96
+    padding-<?php echo $start; ?>:40px;
97 97
     padding-top: 10px;
98 98
     padding-bottom: 10px;
99 99
     background-color: lightyellow;
100 100
 }
101 101
 
102 102
 .problemsolution {
103
-    padding-<?php echo $start;?>:40px;
103
+    padding-<?php echo $start; ?>:40px;
104 104
     padding-top: 10px;
105 105
     padding-bottom: 10px;
106 106
     background-color: lightgreen;
@@ -109,15 +109,15 @@  discard block
 block discarded – undo
109 109
 .use_borders button.alertButton {
110 110
     color: maroon; 
111 111
     background: #bbb; 
112
-    border-<?php echo $start;?>-style: outset; 
113
-    border-<?php echo $start;?>-width: 1px; 
114
-    border-<?php echo $start;?>-color: #eee;
112
+    border-<?php echo $start; ?>-style: outset; 
113
+    border-<?php echo $start; ?>-width: 1px; 
114
+    border-<?php echo $start; ?>-color: #eee;
115 115
     border-top-style: outset; 
116 116
     border-top-width: 1px; 
117 117
     border-top-color: #eee;
118
-    border-<?php echo $end;?>-style: outset; 
119
-    border-<?php echo $end;?>-width: 2px; 
120
-    border-<?php echo $end;?>-color: #444;
118
+    border-<?php echo $end; ?>-style: outset; 
119
+    border-<?php echo $end; ?>-width: 2px; 
120
+    border-<?php echo $end; ?>-color: #444;
121 121
     border-bottom-style: outset; 
122 122
     border-bottom-width: 2px; 
123 123
     border-bottom-color: #444;
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
 button[disabled] {
128 128
     background: #bababa;
129 129
     color: #6a6a6a;
130
-    border-<?php echo $start;?>-style: inset;
131
-    border-<?php echo $start;?>-width: 1px;
132
-    border-<?php echo $start;?>-color: #dadada;
130
+    border-<?php echo $start; ?>-style: inset;
131
+    border-<?php echo $start; ?>-width: 1px;
132
+    border-<?php echo $start; ?>-color: #dadada;
133 133
     border-top-style: inset;
134 134
     border-top-width: 1px;
135 135
     border-top-color: #dadada;
136
-    border-<?php echo $end;?>-style: outset;
137
-    border-<?php echo $end;?>-width: 2px;
138
-    border-<?php echo $end;?>-color: #dadada;
136
+    border-<?php echo $end; ?>-style: outset;
137
+    border-<?php echo $end; ?>-width: 2px;
138
+    border-<?php echo $end; ?>-color: #dadada;
139 139
     border-bottom-style: outset;
140 140
     border-bottom-width: 2px;
141 141
     border-bottom-color: #dadada;
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
 div.profilemodulebuttons {
168 168
     position: inherit;
169 169
     bottom: 5px;
170
-    <?php echo $end;?>: 5px;
171
-    text-align: <?php echo $end;?>;
170
+    <?php echo $end; ?>: 5px;
171
+    text-align: <?php echo $end; ?>;
172 172
 }
173 173
 
174 174
 div.profilebox {
@@ -189,15 +189,15 @@  discard block
 block discarded – undo
189 189
     display: block;
190 190
     position: absolute;
191 191
     top:0;
192
-    <?php echo $end;?>:0;
193
-    padding-<?php echo $end;?>:20px;
192
+    <?php echo $end; ?>:0;
193
+    padding-<?php echo $end; ?>:20px;
194 194
     padding-top:7px;
195 195
 }
196 196
 
197 197
 div.sidebar {
198 198
     display: inline;
199
-    float: <?php echo $end;?>;
200
-    padding-<?php echo $end;?>: 20px;
199
+    float: <?php echo $end; ?>;
200
+    padding-<?php echo $end; ?>: 20px;
201 201
 }
202 202
 div.sidebar a {
203 203
     color: white;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 div.header {
207 207
     height: 54px;
208 208
     background: #FFFFFF;
209
-    padding-<?php echo $start;?>:30px;
209
+    padding-<?php echo $start; ?>:30px;
210 210
     padding-bottom: 10px;
211 211
     color: <?php echo $colour2?>;
212 212
 }
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
     top: 54px;
217 217
     bottom: 50px;
218 218
     padding-top: 10px;
219
-    padding-<?php echo $start;?>: 0px;
220
-    padding-<?php echo $end;?>: 0px;
219
+    padding-<?php echo $start; ?>: 0px;
220
+    padding-<?php echo $end; ?>: 0px;
221 221
     width:100%;
222 222
 }
223 223
 
@@ -231,18 +231,18 @@  discard block
 block discarded – undo
231 231
     color: #FFFFFF;
232 232
     min-height:100px;
233 233
     overflow: auto;
234
-    padding-<?php echo $start;?>:20px
234
+    padding-<?php echo $start; ?>:20px
235 235
 }
236 236
 
237 237
 #thirdrow {
238
-    padding-<?php echo $start;?>: 10px;
239
-    padding-<?php echo $end;?>: 10px;
238
+    padding-<?php echo $start; ?>: 10px;
239
+    padding-<?php echo $end; ?>: 10px;
240 240
 }
241 241
 
242 242
 #footer {
243 243
     width: 100%;
244
-    <?php echo $start;?>: 0;
245
-    <?php echo $end;?>: 0;
244
+    <?php echo $start; ?>: 0;
245
+    <?php echo $end; ?>: 0;
246 246
     bottom: 0;
247 247
     position: absolute;
248 248
     background: white;
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
     height: 100% !important;
269 269
     position: relative;
270 270
     min-width: 1000px;
271
-    margin-<?php echo $start;?>: auto;
272
-    margin-<?php echo $end;?>: auto;
271
+    margin-<?php echo $start; ?>: auto;
272
+    margin-<?php echo $end; ?>: auto;
273 273
 }
274 274
 
275 275
 div.device_info {
@@ -289,8 +289,8 @@  discard block
 block discarded – undo
289 289
     position: fixed;
290 290
     top: 0;
291 291
     bottom: 0;
292
-    <?php echo $start;?>: 0;
293
-    <?php echo $end;?>: 0;
292
+    <?php echo $start; ?>: 0;
293
+    <?php echo $end; ?>: 0;
294 294
     background-color: #000000;
295 295
     opacity: 0.5;
296 296
     z-index: 90;
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     padding: 15px;
317 317
     text-align: start;
318 318
     width: 850px;
319
-    <?php echo $start;?>: 100px;
319
+    <?php echo $start; ?>: 100px;
320 320
     top: 50px;
321 321
     z-index: 100;
322 322
 }
@@ -325,15 +325,15 @@  discard block
 block discarded – undo
325 325
     position: absolute;
326 326
     top: 0;
327 327
     bottom: 0;
328
-    <?php echo $start;?>: 0;
329
-    <?php echo $end;?>: 0;
328
+    <?php echo $start; ?>: 0;
329
+    <?php echo $end; ?>: 0;
330 330
     z-index: 100;
331 331
 }
332 332
 
333 333
 div#msgbox div {
334 334
     position: fixed;
335
-    <?php echo $start;?>: 0;
336
-    <?php echo $end;?>: 0;
335
+    <?php echo $start; ?>: 0;
336
+    <?php echo $end; ?>: 0;
337 337
 }
338 338
 
339 339
 div#msgbox div div.graybox {
@@ -347,13 +347,13 @@  discard block
 block discarded – undo
347 347
 div.graybox img {
348 348
     display: block;
349 349
     cursor: pointer;
350
-    float: <?php echo $end;?>;
350
+    float: <?php echo $end; ?>;
351 351
     margin: 0px 0px 10px 10px;
352 352
 }
353 353
 
354 354
 img.icon {
355
-    float: <?php echo $start;?>;
356
-    margin-<?php echo $end;?>: 5px;
355
+    float: <?php echo $start; ?>;
356
+    margin-<?php echo $end; ?>: 5px;
357 357
     margin-top: 3px;
358 358
 }
359 359
 
@@ -417,15 +417,15 @@  discard block
 block discarded – undo
417 417
 div.ca-summary {
418 418
     border: 1px dotted;
419 419
     background-color: #ccccff;
420
-    border-<?php echo $start;?>: 10px solid;
421
-    border-<?php echo $start;?>-color: green;
420
+    border-<?php echo $start; ?>: 10px solid;
421
+    border-<?php echo $start; ?>-color: green;
422 422
     padding: 2px;
423
-    padding-<?php echo $start;?>: 8px;
423
+    padding-<?php echo $start; ?>: 8px;
424 424
 }
425 425
 
426 426
 span.edu_cat {
427 427
     font-weight: bold;
428
-    color: <?php echo $colour2;?>;
428
+    color: <?php echo $colour2; ?>;
429 429
 }
430 430
 
431 431
 span.tooltip {
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 }
485 485
 
486 486
 table.authrecord td {
487
-    padding-<?php echo $end;?>: 10px;
487
+    padding-<?php echo $end; ?>: 10px;
488 488
 }
489 489
 
490 490
 p.MOTD {
@@ -502,15 +502,15 @@  discard block
 block discarded – undo
502 502
 }
503 503
 
504 504
 .use_borders button {
505
-    border-<?php echo $start;?>-style: outset; 
506
-    border-<?php echo $start;?>-width: 1px; 
507
-    border-<?php echo $start;?>-color: #8bbacb;
505
+    border-<?php echo $start; ?>-style: outset; 
506
+    border-<?php echo $start; ?>-width: 1px; 
507
+    border-<?php echo $start; ?>-color: #8bbacb;
508 508
     border-top-style: outset; 
509 509
     border-top-width: 1px; 
510 510
     border-top-color: #8bbacb;
511
-    border-<?php echo $end;?>-style: outset; 
512
-    border-<?php echo $end;?>-width: 2px; 
513
-    border-<?php echo $end;?>-color: #043d52;
511
+    border-<?php echo $end; ?>-style: outset; 
512
+    border-<?php echo $end; ?>-width: 2px; 
513
+    border-<?php echo $end; ?>-color: #043d52;
514 514
     border-bottom-style: outset; 
515 515
     border-bottom-width: 2px; 
516 516
     border-bottom-color: #043d52;
@@ -533,8 +533,8 @@  discard block
 block discarded – undo
533 533
     border-bottom-style:solid;
534 534
     border-top-width:5px; 
535 535
     border-bottom-width:5px; 
536
-    border-color: <?php echo $colour1;?>; 
537
-    padding-<?php echo $start;?>:30px;
536
+    border-color: <?php echo $colour1; ?>; 
537
+    padding-<?php echo $start; ?>:30px;
538 538
 }
539 539
 
540 540
 .no_borders button.disabledDevice {
@@ -550,13 +550,13 @@  discard block
 block discarded – undo
550 550
 }
551 551
 
552 552
 input {
553
-    margin-<?php echo $end;?>: 5px;
553
+    margin-<?php echo $end; ?>: 5px;
554 554
 
555 555
 }
556 556
 
557 557
 select {
558 558
     vertical-align: middle;
559
-    margin-<?php echo $start;?>: 10px;
559
+    margin-<?php echo $start; ?>: 10px;
560 560
 }
561 561
 
562 562
 td.notapplicable {
@@ -589,8 +589,8 @@  discard block
 block discarded – undo
589 589
 
590 590
 .signin_large {
591 591
     vertical-align: top;
592
-    padding-<?php echo $start;?>:20px;
593
-    padding-<?php echo $end;?>:20px;
592
+    padding-<?php echo $start; ?>:20px;
593
+    padding-<?php echo $end; ?>:20px;
594 594
     color: #bfd5dc;
595 595
     font-size: 20px;
596 596
 }
@@ -603,34 +603,34 @@  discard block
 block discarded – undo
603 603
 }
604 604
 
605 605
 #close_button {
606
-    background: <?php echo $colour2;?>; 
606
+    background: <?php echo $colour2; ?>; 
607 607
     color: #FFFFFF; 
608 608
     height: 23px;
609
-    border-<?php echo $start;?>-style: inset; 
610
-    border-<?php echo $start;?>-width: 1px; 
611
-    border-<?php echo $start;?>-color: #8bbacb;
609
+    border-<?php echo $start; ?>-style: inset; 
610
+    border-<?php echo $start; ?>-width: 1px; 
611
+    border-<?php echo $start; ?>-color: #8bbacb;
612 612
     border-top-style: inset; 
613 613
     border-top-width: 1px; 
614 614
     border-top-color: #8bbacb;
615
-    border-<?php echo $end;?>-style: outset; 
616
-    border-<?php echo $end;?>-width: 2px; 
617
-    border-<?php echo $end;?>-color: #043d52;
615
+    border-<?php echo $end; ?>-style: outset; 
616
+    border-<?php echo $end; ?>-width: 2px; 
617
+    border-<?php echo $end; ?>-color: #043d52;
618 618
     border-bottom-style: outset; 
619 619
     border-bottom-width: 2px; 
620 620
     border-bottom-color: #043d52;
621
-    padding-<?php echo $start;?>: 5px;
622
-    padding-<?php echo $end;?>: 5px;
621
+    padding-<?php echo $start; ?>: 5px;
622
+    padding-<?php echo $end; ?>: 5px;
623 623
     padding-top: 1px;
624 624
     padding-bottom: 1px;
625 625
     position: relative;
626
-    <?php echo $start;?>: 640px;
626
+    <?php echo $start; ?>: 640px;
627 627
     cursor:pointer;
628 628
 }
629 629
 
630 630
 #loading_ico {
631 631
     display: none;
632 632
     position: absolute;
633
-    <?php echo $start;?>: 200px;
633
+    <?php echo $start; ?>: 200px;
634 634
     top: 220px;
635 635
     z-index: 200;
636 636
     text-align: center;
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
     z-index: 100;
645 645
     position: absolute;
646 646
     width: 700px;
647
-    <?php echo $start;?>: 200px;
647
+    <?php echo $start; ?>: 200px;
648 648
     text-align: justify;
649 649
     top: 200px;
650 650
     box-shadow: 5px 5px 5px #666666;
@@ -652,23 +652,23 @@  discard block
 block discarded – undo
652 652
 }
653 653
 
654 654
 #user_info {
655
-    padding-<?php echo $start;?>: 30px; 
655
+    padding-<?php echo $start; ?>: 30px; 
656 656
     font-size: 11px;  
657 657
     font-weight: normal; 
658 658
 }
659 659
 
660 660
 #user_welcome {
661 661
     background: #ffffff;
662
-    padding-<?php echo $start;?>: 30px; 
662
+    padding-<?php echo $start; ?>: 30px; 
663 663
     padding-top: 20px; 
664
-    padding-<?php echo $end;?>: 180px;
664
+    padding-<?php echo $end; ?>: 180px;
665 665
     font-size: 12px;  
666 666
     font-weight: normal; 
667 667
 }
668 668
 
669 669
 #devices {
670 670
     z-index:90;
671
-    padding-<?php echo $start;?>: 30px;
671
+    padding-<?php echo $start; ?>: 30px;
672 672
     font-size: 11px;  
673 673
     font-weight: normal;
674 674
     position: relative;
@@ -676,15 +676,15 @@  discard block
 block discarded – undo
676 676
 
677 677
 #profile_list {
678 678
     width: 30em; 
679
-    padding-<?php echo $start;?>: 10px; 
680
-    padding-<?php echo $end;?>: 0px; 
681
-    background: <?php echo $colour2;?>; 
679
+    padding-<?php echo $start; ?>: 10px; 
680
+    padding-<?php echo $end; ?>: 0px; 
681
+    background: <?php echo $colour2; ?>; 
682 682
     color: white; 
683 683
     box-shadow: 10px 10px 5px #888888;
684 684
 }
685 685
 
686 686
 #profile_redirect {
687
-    padding-<?php echo $start;?>: 30px;
687
+    padding-<?php echo $start; ?>: 30px;
688 688
     padding-top: 20px;
689 689
     font-size: 11px;
690 690
     font-weight: normal;
@@ -694,13 +694,13 @@  discard block
 block discarded – undo
694 694
 }
695 695
 
696 696
 #profiles {
697
-    padding-<?php echo $start;?>: 30px; 
697
+    padding-<?php echo $start; ?>: 30px; 
698 698
     font-size: 11px; 
699 699
     padding-bottom: 10px 
700 700
 }
701 701
 
702 702
 #signin {
703
-    padding-<?php echo $start;?>: 30px;
703
+    padding-<?php echo $start; ?>: 30px;
704 704
     padding-top: 10px;
705 705
 }
706 706
 
@@ -724,8 +724,8 @@  discard block
 block discarded – undo
724 724
     font-size: 14px; 
725 725
     padding-top: 4px; 
726 726
     padding-bottom: 12px; 
727
-    padding-<?php echo $start;?>: 30px; 
728
-    background: <?php echo $colour1;?>; 
727
+    padding-<?php echo $start; ?>: 30px; 
728
+    background: <?php echo $colour1; ?>; 
729 729
     text-align: start; 
730 730
     text-shadow: 10px 10px 5px #888888;
731 731
 }
@@ -735,9 +735,9 @@  discard block
 block discarded – undo
735 735
     border-bottom-style:solid;
736 736
     border-top-width:5px;
737 737
     border-bottom-width:5px;
738
-    border-color: <?php echo $colour1;?>;
739
-    padding-<?php echo $start;?>:30px;
740
-    color: <?php echo $colour2;?>;
738
+    border-color: <?php echo $colour1; ?>;
739
+    padding-<?php echo $start; ?>:30px;
740
+    color: <?php echo $colour2; ?>;
741 741
 }
742 742
 
743 743
 #heading h1 { 
@@ -752,11 +752,11 @@  discard block
 block discarded – undo
752 752
 
753 753
 #welcome {
754 754
     padding: 20px;
755
-    padding-<?php echo $start;?>: 30px;
755
+    padding-<?php echo $start; ?>: 30px;
756 756
     text-align: justify;
757 757
     border-bottom-style:solid;
758 758
     border-bottom-width:5px;
759
-    border-color: <?php echo $colour1;?>;
759
+    border-color: <?php echo $colour1; ?>;
760 760
     font-size: 11px;
761 761
     font-weight: normal;
762 762
 }
@@ -765,14 +765,14 @@  discard block
 block discarded – undo
765 765
 #main_menu_info { 
766 766
                     position: relative;
767 767
                     top: 15px;
768
-                    <?php echo $start;?>: 0px;
769
-                    padding:10px; padding-<?php echo $start;?>:20px; padding-<?php echo $end;?>:20px;
768
+                    <?php echo $start; ?>: 0px;
769
+                    padding:10px; padding-<?php echo $start; ?>:20px; padding-<?php echo $end; ?>:20px;
770 770
                     background: #f0f0f0;
771 771
                     border: 1px solid #dddddd;
772
-                    margin-<?php echo $start;?>: 25px;
773
-                    padding-<?php echo $start;?>: 25px;
774
-                    margin-<?php echo $end;?>: 25px;
775
-                    padding-<?php echo $end;?>: 25px;
772
+                    margin-<?php echo $start; ?>: 25px;
773
+                    padding-<?php echo $start; ?>: 25px;
774
+                    margin-<?php echo $end; ?>: 25px;
775
+                    padding-<?php echo $end; ?>: 25px;
776 776
                     padding-bottom: 10px;
777 777
                     vertical-align: top;
778 778
                     box-shadow: 5px 5px 5px #666666;
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
 
804 804
 #faq {
805 805
     padding: 20px;
806
-    color: <?php echo $colour2;?>;
806
+    color: <?php echo $colour2; ?>;
807 807
     background: #ffffff;
808 808
 }
809 809
 
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
 #idp_logo {
822 822
    display:none;
823 823
    position:absolute;
824
-   <?php echo $end;?>:30px;
824
+   <?php echo $end; ?>:30px;
825 825
    max-height:150px;
826 826
    max-width:150px;
827 827
    padding-top:10px;
@@ -844,18 +844,18 @@  discard block
 block discarded – undo
844 844
 #slides img {
845 845
     position: absolute;
846 846
     top: 145px;
847
-    <?php echo $end;?>: 60px;
847
+    <?php echo $end; ?>: 60px;
848 848
 }
849 849
 
850 850
 #slides span {
851 851
     position: absolute;
852
-    <?php echo $start;?>: 180px;
852
+    <?php echo $start; ?>: 180px;
853 853
     z-index: 20;
854 854
 }
855 855
 
856 856
 #line1 {
857 857
     top:145px;
858
-    color: <?php echo $colour2;?>;
858
+    color: <?php echo $colour2; ?>;
859 859
     font-size:20px;
860 860
 }
861 861
 
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
 
868 868
 #line3 {
869 869
     top:245px;
870
-    <?php echo $start;?>: 200px;
870
+    <?php echo $start; ?>: 200px;
871 871
     color: maroon;
872 872
     font-size:25px;
873 873
 }
@@ -896,16 +896,16 @@  discard block
 block discarded – undo
896 896
     height:100%;
897 897
     border-spacing:0; 
898 898
     border-collapse:collapse;
899
-    padding-<?php echo $start;?>:200px;
899
+    padding-<?php echo $start; ?>:200px;
900 900
     padding-top:10px;
901 901
 }
902 902
 
903 903
 #front_page_leftmenu {
904
-    border-<?php echo $end;?>:solid; 
905
-    border-color: <?php echo $colour1;?>; 
904
+    border-<?php echo $end; ?>:solid; 
905
+    border-color: <?php echo $colour1; ?>; 
906 906
     border-width:5px; 
907 907
     min-height:400px; 
908
-    padding-<?php echo $start;?>: 10px; 
908
+    padding-<?php echo $start; ?>: 10px; 
909 909
     vertical-align:top; 
910 910
     width:110px; 
911 911
     padding-top:30px;
@@ -915,8 +915,8 @@  discard block
 block discarded – undo
915 915
     vertical-align: top;
916 916
     height:280px;
917 917
     background: #fff;
918
-    padding-<?php echo $start;?>: 20px;
919
-    padding-<?php echo $end;?>: 20px;
918
+    padding-<?php echo $start; ?>: 20px;
919
+    padding-<?php echo $end; ?>: 20px;
920 920
 }
921 921
 
922 922
 #user_button_td {
@@ -927,11 +927,11 @@  discard block
 block discarded – undo
927 927
 }
928 928
 
929 929
 a:link {
930
-    color:<?php echo $colour2;?>;
930
+    color:<?php echo $colour2; ?>;
931 931
 }
932 932
 
933 933
 a:visited {
934
-    color:<?php echo $colour2;?>;
934
+    color:<?php echo $colour2; ?>;
935 935
 }
936 936
 
937 937
 a:hover {
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
 }
940 940
 
941 941
 a:active {
942
-    color:<?php echo $colour2;?>;
942
+    color:<?php echo $colour2; ?>;
943 943
 }
944 944
 
945 945
 .comment {
@@ -970,14 +970,14 @@  discard block
 block discarded – undo
970 970
 table.user_overview th {
971 971
     text-align: start;  
972 972
     background: #f0f0f0;
973
-    padding-<?php echo $start;?>: 4px;
974
-    padding-<?php echo $end;?>: 4px;
973
+    padding-<?php echo $start; ?>: 4px;
974
+    padding-<?php echo $end; ?>: 4px;
975 975
 }
976 976
 
977 977
 table.user_overview td {
978 978
     border-top-style: none;
979
-    padding-<?php echo $start;?>: 4px;
980
-    padding-<?php echo $end;?>: 4px;
979
+    padding-<?php echo $start; ?>: 4px;
980
+    padding-<?php echo $end; ?>: 4px;
981 981
     vertical-align: middle;
982 982
     height: 28px;
983 983
 }
@@ -994,14 +994,14 @@  discard block
 block discarded – undo
994 994
 .download_button_text {
995 995
     width: 380px;
996 996
     position:absolute;
997
-    <?php echo $end;?>: 5px;
997
+    <?php echo $end; ?>: 5px;
998 998
     padding-top:0px;
999 999
 }
1000 1000
 
1001 1001
 #download_info {
1002 1002
    background: #f0f0f0;
1003
-   padding-<?php echo $start;?>: 20px;
1004
-   padding-<?php echo $end;?>: 20px;
1003
+   padding-<?php echo $start; ?>: 20px;
1004
+   padding-<?php echo $end; ?>: 20px;
1005 1005
    padding-top:3px;
1006 1006
    padding-bottom:3px;
1007 1007
 }
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
 }
1046 1046
 
1047 1047
 .downloads tr td {
1048
-    text-align: <?php echo $end;?>;
1048
+    text-align: <?php echo $end; ?>;
1049 1049
     padding-left: 5px;
1050 1050
     padding-right: 5px;
1051 1051
     border-bottom-style: solid;
@@ -1053,5 +1053,5 @@  discard block
 block discarded – undo
1053 1053
 }
1054 1054
 
1055 1055
 .downloads tr td:first-child {
1056
-    text-align: <?php echo $start;?>;
1056
+    text-align: <?php echo $start; ?>;
1057 1057
 }
1058 1058
\ No newline at end of file
Please login to merge, or discard this patch.
core/AbstractProfile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
                     // for now (no OpenRoaming client certs available) only run server-side tests
332 332
                     foreach ($listOfIPs as $oneIP) {
333 333
                         $connectionResult = $connectionTests->cApathCheck($oneIP);
334
-                        if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || ( isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) {
334
+                        if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || (isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) {
335 335
                             $allHostsOkay = FALSE;
336 336
                         } else {
337 337
                             $oneHostOkay = TRUE;
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
         }
642 642
 
643 643
         $monthlyList = [];
644
-        $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i",  $this->identifier);
644
+        $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i", $this->identifier);
645 645
         while ($statsQuery = mysqli_fetch_object(/** @scrutinizer ignore-type */ $monthly)) {
646 646
             $monthlyList[$statsQuery->device_id] = $statsQuery->downloads_user;
647 647
         }
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
         }        
654 654
         
655 655
         \core\common\Entity::intoThePotatoes();
656
-        ksort($finalarray, SORT_STRING|SORT_FLAG_CASE);
656
+        ksort($finalarray, SORT_STRING | SORT_FLAG_CASE);
657 657
         \core\common\Entity::outOfThePotatoes();
658 658
         return $finalarray;
659 659
     }
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
         $profileStatus = self::CERT_STATUS_NONE;
964 964
         foreach ($rows as $row) {
965 965
             $encodedCert = $row[0];
966
-            $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t']- time();
966
+            $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t'] - time();
967 967
             if ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_critical']) {
968 968
                 $certStatus = self::CERT_STATUS_ERROR;
969 969
             } elseif ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_warning']) {
Please login to merge, or discard this patch.