Passed
Push — master ( 013966...40c3d8 )
by Stefan
04:52
created
web/diag/magicTelepath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 require_once(dirname(dirname(__DIR__)) . "/config/_config.php");
12 12
 $realm = filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING);
13
-$visited = filter_input(INPUT_GET,'visited', FILTER_SANITIZE_STRING);
13
+$visited = filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING);
14 14
 if (session_status() != PHP_SESSION_ACTIVE) {
15 15
     session_start();
16 16
 }
Please login to merge, or discard this patch.
web/lib/admin/UIElements.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
         $dummy_inst1 = _("identity provider");
48 48
         $dummy_inst2 = _("organisation");
49 49
         // and do something useless with the strings so that there's no "unused" complaint
50
-        if ( $dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") {
50
+        if ($dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") {
51 51
             // Oh well.
52
-            explode(' ',$dummy_NRO);
52
+            explode(' ', $dummy_NRO);
53 53
         }
54 54
         $this->nomenclature_fed = _(CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_federation']);
55 55
         $this->nomenclature_inst = _(CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                         }
188 188
                         break;
189 189
                     case "boolean":
190
-                        $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off") ) . "</strong></td></tr>";
190
+                        $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>" . ($content == "on" ? _("on") : _("off")) . "</strong></td></tr>";
191 191
                         break;
192 192
                     default:
193 193
                         $retval .= "<tr><td>" . $this->displayName($option['name']) . "</td><td>$language</td><td><strong>$content</strong></td></tr>";
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     
315 315
     private function checkROWIDpresence($reference) {
316 316
         $found = preg_match("/^ROWID-.*/", $reference);
317
-        if ($found  != 1) { // get excited on not-found AND on execution error
317
+        if ($found != 1) { // get excited on not-found AND on execution error
318 318
             throw new Exception("Error, ROWID expected.");
319 319
         }
320 320
     }
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 
338 338
         $details['name'] = preg_replace('/(.)\/(.)/', "$1<br/>$2", $details['name']);
339 339
         $details['name'] = preg_replace('/\//', "", $details['name']);
340
-        $certstatus = ( $details['root'] == 1 ? "R" : "I");
340
+        $certstatus = ($details['root'] == 1 ? "R" : "I");
341 341
         if ($details['ca'] == 0 && $details['root'] != 1) {
342 342
             return "<div class='ca-summary' style='background-color:red'><div style='position:absolute; right: 0px; width:20px; height:20px; background-color:maroon;  border-radius:10px; text-align: center;'><div style='padding-top:3px; font-weight:bold; color:#ffffff;'>S</div></div>" . _("This is a <strong>SERVER</strong> certificate!") . "<br/>" . $details['name'] . "</div>";
343 343
         }
@@ -482,15 +482,15 @@  discard block
 block discarded – undo
482 482
         $scale = sqrt($maxoccupy / $totallogopixels);
483 483
         $loggerInstance->debug(4, "Scaling info: $scale, $maxoccupy, $totallogopixels\n");
484 484
         // determine final pixel size - round to multitude of $symbolsize to match exact symbol boundary
485
-        $targetwidth = $symbolsize * (int)round($sizelogo[0] * $scale / $symbolsize);
486
-        $targetheight = $symbolsize * (int)round($sizelogo[1] * $scale / $symbolsize);
485
+        $targetwidth = $symbolsize * (int) round($sizelogo[0] * $scale / $symbolsize);
486
+        $targetheight = $symbolsize * (int) round($sizelogo[1] * $scale / $symbolsize);
487 487
         // paint white below the logo, in case it has transparencies (looks bad)
488 488
         // have one symbol in each direction extra white space
489 489
         $whiteimage = imagecreate($targetwidth + 2 * $symbolsize, $targetheight + 2 * $symbolsize);
490 490
         imagecolorallocate($whiteimage, 255, 255, 255);
491 491
         // also make sure the initial placement is a multitude of 12; otherwise "two half" symbols might be affected
492
-        $targetplacementx = $symbolsize * (int)round(($sizeinput[0] / 2 - ($targetwidth - $symbolsize) / 2) / $symbolsize);
493
-        $targetplacementy = $symbolsize * (int)round(($sizeinput[1] / 2 - ($targetheight - $symbolsize) / 2) / $symbolsize);
492
+        $targetplacementx = $symbolsize * (int) round(($sizeinput[0] / 2 - ($targetwidth - $symbolsize) / 2) / $symbolsize);
493
+        $targetplacementy = $symbolsize * (int) round(($sizeinput[1] / 2 - ($targetheight - $symbolsize) / 2) / $symbolsize);
494 494
         imagecopyresized($inputgd, $whiteimage, $targetplacementx - $symbolsize, $targetplacementy - $symbolsize, 0, 0, $targetwidth + 2 * $symbolsize, $targetheight + 2 * $symbolsize, $targetwidth + 2 * $symbolsize, $targetheight + 2 * $symbolsize);
495 495
         imagecopyresized($inputgd, $logogd, $targetplacementx, $targetplacementy, 0, 0, $targetwidth, $targetheight, $sizelogo[0], $sizelogo[1]);
496 496
         ob_start();
Please login to merge, or discard this patch.
web/lib/admin/PageDecoration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                         <select id='lang' name='lang' onchange='this.form.submit()'>";
66 66
 
67 67
         foreach (CONFIG['LANGUAGES'] as $lang => $value) {
68
-            $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $value['display'] . "</option> ";
68
+            $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "") . " >" . $value['display'] . "</option> ";
69 69
         }
70 70
         $retval .= "</select>";
71 71
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $advancedControls = TRUE;
124 124
         switch ($area) {
125 125
             case "ADMIN-IDP":
126
-                $cap2 = sprintf(_("Administrator Interface - Identity Provider"),$this->ui->nomenclature_inst);
126
+                $cap2 = sprintf(_("Administrator Interface - Identity Provider"), $this->ui->nomenclature_inst);
127 127
                 break;
128 128
             case "ADMIN-IDP-USERS":
129 129
                 $cap2 = sprintf(_("Administrator Interface - %s User Management"), \core\ProfileSilverbullet::PRODUCTNAME);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 $cap2 = _("Management of User Details");
136 136
                 break;
137 137
             case "FEDERATION":
138
-                $cap2 = sprintf(_("Administrator Interface - %s Management"),$this->ui->nomenclature_fed);
138
+                $cap2 = sprintf(_("Administrator Interface - %s Management"), $this->ui->nomenclature_fed);
139 139
                 break;
140 140
             case "USER":
141 141
                 $cap1 = sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         // content from here on will SCROLL instead of being fixed at the top
158 158
         $retval .= "<div class='pagecontent'>"; // closes in footer again
159 159
         $retval .= "<div class='trick'>"; // closes in footer again
160
-        $retval .= "<div id='secondrow' style='border-bottom:5px solid ".CONFIG['APPEARANCE']['colour1']."; min-height:100px;'>
160
+        $retval .= "<div id='secondrow' style='border-bottom:5px solid " . CONFIG['APPEARANCE']['colour1'] . "; min-height:100px;'>
161 161
             <div id='secondarycaptions' style='display:inline-block; float:left'>
162 162
                 <h2>$cap2</h2>
163 163
             </div><!--secondarycaptions-->";
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         if ($host === FALSE) {
207 207
             throw new Exception("We don't know our own hostname!");
208 208
         }
209
-        $cssUrl = "//$host" . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition )."/resources/css/cat.css.php";
209
+        $cssUrl = "//$host" . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/css/cat.css.php";
210 210
         
211 211
         $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />";
212 212
         $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>";
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         if ($host === FALSE) {
238 238
             throw new Exception("We don't know our own hostname!");
239 239
         }
240
-        $logoBase = "//$host" . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition)."/resources/images";
240
+        $logoBase = "//$host" . substr($_SERVER['PHP_SELF'], 0, $cutoffPosition) . "/resources/images";
241 241
 
242 242
         return "<span id='logos' style='position:fixed; left:50%;'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/>
243 243
               <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span>
Please login to merge, or discard this patch.