Failed Conditions
Push — psr2 ( de3699...36dc94 )
by Andreas
06:50 queued 03:31
created
inc/PassHash.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
      * @param string|null &$salt  The salt, pass null if you want one generated
114 114
      * @param int          $len   The length of the salt
115 115
      * @param bool         $cut   Apply length restriction to existing salt?
116
+     * @param string|null $salt
116 117
      */
117 118
     public function init_salt(&$salt, $len = 32, $cut = true) {
118 119
         if(is_null($salt)) {
Please login to merge, or discard this patch.
inc/remote.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 block discarded – undo
306 306
     /**
307 307
      * Transform file to xml
308 308
      *
309
-     * @param mixed $data
309
+     * @param string|boolean $data
310 310
      * @return mixed
311 311
      */
312 312
     public function toFile($data) {
Please login to merge, or discard this patch.
inc/utf8.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -614,7 +614,7 @@
 block discarded – undo
614 614
     /**
615 615
      * Decodes numeric HTML entities to their correct UTF-8 characters
616 616
      *
617
-     * @param $ent string A numeric entity
617
+     * @param string $ent string A numeric entity
618 618
      * @return string|false
619 619
      */
620 620
     function utf8_decode_numeric($ent) {
Please login to merge, or discard this patch.
lib/plugins/authmysql/auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -765,7 +765,7 @@
 block discarded – undo
765 765
      * @author Matthias Grimm <[email protected]>
766 766
      *
767 767
      * @param  string $user  user's nick to get data for
768
-     * @return false|array false on error, user info on success
768
+     * @return string false on error, user info on success
769 769
      */
770 770
     protected function _retrieveUserInfo($user) {
771 771
         $sql    = str_replace('%{user}', $this->_escape($user), $this->getConf('getUserInfo'));
Please login to merge, or discard this patch.
lib/plugins/usermanager/admin.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1035,6 +1035,7 @@
 block discarded – undo
1035 1035
      *
1036 1036
      * @param array  $user   data of user
1037 1037
      * @param string &$error reference catched error message
1038
+     * @param string $error
1038 1039
      * @return bool whether successful
1039 1040
      */
1040 1041
     protected function _addImportUser($user, & $error){
Please login to merge, or discard this patch.
inc/Form/Form.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
      * Adds a label referencing another input element, allows HTML for content
287 287
      *
288 288
      * @param string $content
289
-     * @param string|Element $for
289
+     * @param string $for
290 290
      * @param int $pos
291 291
      * @return Element
292 292
      */
Please login to merge, or discard this patch.
lib/plugins/auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
      * @param   string  $user    Username
184 184
      * @param   string  $pass    Cleartext Password
185 185
      * @param   bool    $sticky  Cookie should not expire
186
-     * @return  bool             true on successful auth
186
+     * @return  boolean|null             true on successful auth
187 187
      */
188 188
     public function trustExternal($user, $pass, $sticky = false) {
189 189
         /* some example:
Please login to merge, or discard this patch.
lib/plugins/authplain/auth.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @author  Andreas Gohr <[email protected]>
83 83
      * @param string $user
84 84
      * @param bool $requireGroups  (optional) ignored by this plugin, grps info always supplied
85
-     * @return array|false
85
+     * @return string
86 86
      */
87 87
     public function getUserData($user, $requireGroups=true) {
88 88
         if($this->users === null) $this->_loadUserData();
@@ -380,6 +380,9 @@  discard block
 block discarded – undo
380 380
         return $users;
381 381
     }
382 382
 
383
+    /**
384
+     * @param string $line
385
+     */
383 386
     protected function _splitUserData($line){
384 387
         // due to a bug in PCRE 6.6, preg_split will fail with the regex we use here
385 388
         // refer github issues 877 & 885
Please login to merge, or discard this patch.
inc/confutils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  *
24 24
  * @param string $file file name
25 25
  * @param bool   $knownonly
26
- * @return array with extension, mimetype and if it should be downloaded
26
+ * @return string with extension, mimetype and if it should be downloaded
27 27
  */
28 28
 function mimetype($file, $knownonly=true){
29 29
     $mtypes = getMimeTypes();     // known mimetypes
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
  * @param string $file
245 245
  * @param bool $lower
246 246
  *
247
- * @return array
247
+ * @return string
248 248
  */
249 249
 function confToHash($file,$lower=false) {
250 250
     $conf = array();
Please login to merge, or discard this patch.