Passed
Push — master ( f95f27...0adbbf )
by Maja
04:05
created
core/AbstractProfile.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -96,6 +96,12 @@
 block discarded – undo
96 96
      */
97 97
     protected $frontendHandle;
98 98
 
99
+    /**
100
+     * @param integer $idpIdentifier
101
+     * @param string $deviceId
102
+     * @param string $area
103
+     * @param string $lang
104
+     */
99 105
     protected function saveDownloadDetails($idpIdentifier, $profileId, $deviceId, $area, $lang, $eapType) {
100 106
         if (CONFIG['PATHS']['logdir']) {
101 107
             $file = fopen(CONFIG['PATHS']['logdir'] . "/download_details.log", "a");
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.
core/ProfileSilverbullet.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
      * create a CSR
255 255
      * 
256 256
      * @param resource $privateKey the private key to create the CSR with
257
-     * @return array with the CSR and some meta info
257
+     * @return integer with the CSR and some meta info
258 258
      */
259 259
     private function generateCsr($privateKey) {
260 260
         // token leads us to the NRO, to set the OU property of the cert
Please login to merge, or discard this patch.
core/UserAPI.php 1 patch
Doc Comments   +7 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) {
@@ -327,6 +328,7 @@  discard block
 block discarded – undo
327 328
      * @param string either 'idp' or 'federation' is allowed 
328 329
      * @param int $width maximum width of the generated image - if 0 then it is treated as no upper bound
329 330
      * @param int $height  maximum height of the generated image - if 0 then it is treated as no upper bound
331
+     * @param string $type
330 332
      * @return array|null array with image information or NULL if there is no logo
331 333
      */
332 334
     protected function getLogo($identifier, $type, $width = 0, $height = 0) {
@@ -371,6 +373,10 @@  discard block
 block discarded – undo
371 373
         return ["filetype" => $filetype, "expires" => $expiresString, "blob" => $blob];
372 374
     }
373 375
     
376
+    /**
377
+     * @param integer $width
378
+     * @param integer $height
379
+     */
374 380
     private function testForResize($width, $height) {
375 381
         if (is_numeric($width) && is_numeric($height) && ($width > 0 || $height > 0)) {
376 382
             if ($height == 0) {
@@ -474,6 +480,7 @@  discard block
 block discarded – undo
474 480
     /**
475 481
      * Order active identity providers according to their distance and name
476 482
      * @param array $currentLocation - current location
483
+     * @param string $country
477 484
      * @return array $IdPs -  list of arrays ('id', 'name');
478 485
      */
479 486
     public function orderIdentityProviders($country, $currentLocation = NULL) {
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,6 +142,9 @@  discard block
 block discarded – undo
142 142
         return $retval;
143 143
     }
144 144
 
145
+    /**
146
+     * @param integer $rowid
147
+     */
145 148
     private function selectElement($rowid, $list) {
146 149
         $jsmagic = "onchange='
147 150
                                if (/#ML#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
@@ -183,6 +186,10 @@  discard block
 block discarded – undo
183 186
         return ["TEXT" => $retval, "ACTIVE" => $activelisttype];
184 187
     }
185 188
 
189
+    /**
190
+     * @param integer $rowid
191
+     * @param boolean $makeVisible
192
+     */
186 193
     private function selectLanguage($rowid, $makeVisible) {
187 194
         $retval = "<select style='display:" . ($makeVisible ? "block" : "none") . "' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect'>
188 195
             <option value='' name='select_language' selected>" . _("select language") . "</option>
@@ -203,6 +210,9 @@  discard block
 block discarded – undo
203 210
         \core\Options::TYPECODE_TEXT => ["html" => "textarea cols='30' rows='3'", "tail" => '></textarea'],
204 211
     ];
205 212
 
213
+    /**
214
+     * @param integer $rowid
215
+     */
206 216
     private function inputFields($rowid, $activetype) {
207 217
         $retval = "";
208 218
         foreach (OptionDisplay::HTML_DATATYPE_TEXTS as $key => $type) {
@@ -235,7 +245,7 @@  discard block
 block discarded – undo
235 245
      * @param int $rowid the HTML field base name of the option to be displayed
236 246
      * @param string $optionName the name of the option to display
237 247
      * @param string $optionValue the value of the option to display
238
-     * @param mixed $optionLang the language of the option to display
248
+     * @param null|string $optionLang the language of the option to display
239 249
      * @return string HTML code
240 250
      * @throws Exception
241 251
      */
Please login to merge, or discard this patch.
devices/xml/Device_XML.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -287,6 +287,9 @@  discard block
 block discarded – undo
287 287
         }
288 288
     }
289 289
 
290
+    /**
291
+     * @param Type $eaptype
292
+     */
290 293
     private function setServerSideCredentials($eaptype) {
291 294
         $attr = $this->attributes;
292 295
         $serversidecredential = new ServerSideCredential();
@@ -331,6 +334,9 @@  discard block
 block discarded – undo
331 334
         return($clientsidecredential);
332 335
     }
333 336
     
337
+    /**
338
+     * @param Type $eaptype
339
+     */
334 340
     private function setEapMethod($eaptype) {
335 341
         $attr = $this->attributes;
336 342
         $eapmethod = new EAPMethod();
Please login to merge, or discard this patch.