Passed
Push — master ( 606919...d35033 )
by Maja
07:18 queued 23s
created
web/admin/sanity_tests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     'mailer',
29 29
 ];
30 30
 
31
-if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL" || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL" ) {
31
+if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL" || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
32 32
     $Tests[] = 'makensis';
33 33
     $Tests[] = 'makensis=>NSISmodules';
34 34
 }
Please login to merge, or discard this patch.
core/diag/Logopath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
             // leave his mail address, remove him/her from the list of recipients
240 240
             foreach (Logopath::CATEGORYBINDING as $index => $functionName) {
241 241
                 if (in_array(Logopath::ENDUSER, $theMail[$index]) && $this->userEmail === FALSE) {
242
-                    $theMail[$index] = array_diff($theMail[$index], [Logopath::ENDUSER] );
242
+                    $theMail[$index] = array_diff($theMail[$index], [Logopath::ENDUSER]);
243 243
                 }
244 244
             }
245 245
             
Please login to merge, or discard this patch.
core/DeviceConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $dummy_inst2 = _("organisation");
104 104
         // and do something useless with the strings so that there's no "unused" complaint
105 105
         // by Scrutinizer
106
-        if( $dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") {
106
+        if ($dummy_NRO . $dummy_inst1 . $dummy_inst2 == "") {
107 107
             // oh well.
108 108
         }
109 109
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         }
214 214
         if (isset($this->attributes['general:logo_file'])) {
215 215
             $this->loggerInstance->debug(5, "saving IDP logo\n");
216
-            $this->attributes['internal:logo_file'] = $this->saveLogoFile($this->attributes['general:logo_file'],'idp');
216
+            $this->attributes['internal:logo_file'] = $this->saveLogoFile($this->attributes['general:logo_file'], 'idp');
217 217
         }
218 218
         if (isset($this->attributes['fed:logo_file'])) {
219 219
             $this->loggerInstance->debug(5, "saving FED logo\n");
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
      * @return array list of filenames and the mime types
586 586
      * @throws Exception
587 587
      */
588
-    private function saveLogoFile($logos,$type) {
588
+    private function saveLogoFile($logos, $type) {
589 589
         $iterator = 0;
590 590
         $returnarray = [];
591 591
         foreach ($logos as $blob) {
Please login to merge, or discard this patch.
core/diag/Telepath.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
      * realm (and indirectly that of the links and statuses of involved proxies
217 217
      * and returns a judgment whether external Monitoring API tests are warranted
218 218
      * or not
219
-     * @return boolean TRUE if external tests have to be run
219
+     * @return boolean|null TRUE if external tests have to be run
220 220
      */
221 221
     private function CATInternalTests() {
222 222
         // we are expecting to get a REJECT from all runs, because that means the packet got through to the IdP.
Please login to merge, or discard this patch.
web/admin/112365365321.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     <th>Device</th>
119 119
                     <th>Admin Downloads</th>
120 120
                     <th>User Downloads (classic)</th>
121
-                    <th>User Downloads (<?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>)</th>
121
+                    <th>User Downloads (<?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>)</th>
122 122
                     <th>User Downloads (total)</th>
123 123
                 </tr>
124 124
                 <?php
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     $admin_query = $dbHandle->exec("SELECT SUM(downloads_admin) AS admin, SUM(downloads_user) AS user, SUM(downloads_silverbullet) as silverbullet FROM downloads WHERE device_id = '$index'");
131 131
                     // SELECT -> mysqli_result, not boolean
132 132
                     while ($a = mysqli_fetch_object(/** @scrutinizer ignore-type */ $admin_query)) {
133
-                        echo "<td>" . $device_array['display'] . "</td><td>" . $a->admin . "</td><td>" . $a->user . "</td><td>" . $a->silverbullet . "</td><td>" . sprintf("%s",$a->user + $a->silverbullet) . "</td>";
133
+                        echo "<td>" . $device_array['display'] . "</td><td>" . $a->admin . "</td><td>" . $a->user . "</td><td>" . $a->silverbullet . "</td><td>" . sprintf("%s", $a->user + $a->silverbullet) . "</td>";
134 134
                         $gross_admin = $gross_admin + $a->admin;
135 135
                         $gross_user = $gross_user + $a->user;
136 136
                         $gross_silverbullet = $gross_silverbullet + $a->silverbullet;
Please login to merge, or discard this patch.
web/skins/classic/basic.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public function listIdPs() {
142 142
         $instList = $this->orderIdentityProviders($this->country->tld);
143 143
         $out = '';
144
-        $out .= sprintf(_("Select your %s"), $this->nomenclature_inst );
144
+        $out .= sprintf(_("Select your %s"), $this->nomenclature_inst);
145 145
         $out .= '<select name="idp" onchange="submit_form(this)">';
146 146
         if (!empty($instList)) {
147 147
             if (!isset($this->idp)) {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 }
236 236
             }
237 237
             $out .= '>' . $disp . '</option>';
238
-            $deviceRedirects .= 'redirects[' . $iterator . '] = ' . ( $oneDevice['redirect'] ? 1 : 0 ) . ';';
238
+            $deviceRedirects .= 'redirects[' . $iterator . '] = ' . ($oneDevice['redirect'] ? 1 : 0) . ';';
239 239
             $iterator++;
240 240
         }
241 241
         $out .= '</select>';
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         </script>
430 430
     </head>
431 431
     <body style="">
432
-        <?php print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp' ) . '</div>'; ?>
432
+        <?php print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp') . '</div>'; ?>
433 433
         <form name="my_form" method="POST" action="<?php echo $_SERVER['SCRIPT_NAME'] ?>" accept-charset='UTF-8'>
434 434
             <img src="<?php echo $skinObject->findResourceUrl("IMAGES", "consortium_logo.png"); ?>" style="width: 20%; padding-right:20px; padding-top:0px; float:right" alt="logo" />
435 435
             <?php
Please login to merge, or discard this patch.
core/EntityWithDBProperties.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             case "core\User":
115 115
                 return $this->userName;
116 116
             default:
117
-                throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - ".get_class($this)."!");
117
+                throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - " . get_class($this) . "!");
118 118
         }
119 119
     }
120 120
     
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $handle = DBConnection::handle("INST");
246 246
         $blobQuery = $handle->exec("SELECT option_value from $table WHERE row = $row");
247 247
         // SELECT -> returns resource, not boolean
248
-        while ($returnedData =  /** @scrutinizer ignore-type */ mysqli_fetch_object($blobQuery)) {
248
+        while ($returnedData = /** @scrutinizer ignore-type */ mysqli_fetch_object($blobQuery)) {
249 249
             $blob = $returnedData->option_value;
250 250
         }
251 251
         if (!isset($blob)) {
Please login to merge, or discard this patch.
core/UserAPI.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@
 block discarded – undo
549 549
             if (count($logoAttribute) == 0) {
550 550
                 return(NULL);
551 551
             }
552
-            $this->loggerInstance->debug(4,"RESIZE:$width:$height\n");
552
+            $this->loggerInstance->debug(4, "RESIZE:$width:$height\n");
553 553
             $meta = $this->processImage($logoAttribute[0]['value'], $logoFile, $width, $height, $resize);
554 554
             $filetype = $meta['filetype'];
555 555
             $expiresString = $meta['expires'];
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -138,6 +138,7 @@  discard block
 block discarded – undo
138 138
      * 
139 139
      * @param string $device
140 140
      * @param AbstractProfile $profile
141
+     * @param string $generatedFor
141 142
      * @return array info about the new installer (mime and link)
142 143
      */
143 144
     private function generateNewInstaller($device, $profile, $generatedFor, $token, $password) {
@@ -329,6 +330,7 @@  discard block
 block discarded – undo
329 330
      * @param string either 'idp' or 'federation' is allowed 
330 331
      * @param int $width maximum width of the generated image - if 0 then it is treated as no upper bound
331 332
      * @param int $height  maximum height of the generated image - if 0 then it is treated as no upper bound
333
+     * @param string $type
332 334
      * @return array|null array with image information or NULL if there is no logo
333 335
      */
334 336
     protected function getLogo($identifier, $type, $width = 0, $height = 0) {
@@ -470,6 +472,7 @@  discard block
 block discarded – undo
470 472
     /**
471 473
      * Order active identity providers according to their distance and name
472 474
      * @param array $currentLocation - current location
475
+     * @param string $country
473 476
      * @return array $IdPs -  list of arrays ('id', 'name');
474 477
      */
475 478
     public function orderIdentityProviders($country, $currentLocation = NULL) {
Please login to merge, or discard this patch.