Completed
Push — master ( 45c601...330830 )
by Michael
01:45
created
class/adminclass.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      * Fetch content of comma separated text file
331 331
      * will attempt to use the fopen method first, then curl, then socket
332 332
      * @param string $url
333
-     * @param array $methods
333
+     * @param string[] $methods
334 334
      * @returns string
335 335
      */
336 336
     public function fetchURL($url, $methods = ['fopen', 'curl', 'socket'])
@@ -522,8 +522,8 @@  discard block
 block discarded – undo
522 522
      * - Remove user image dir in uploads.
523 523
      * @param  int $userid
524 524
      * @param  string $directory
525
-     * @param bool|int $empty
526
-     * @return true
525
+     * @param boolean $empty
526
+     * @return boolean|null
527 527
      */
528 528
     public function smallworld_remDir($userid, $directory, $empty = false)
529 529
     {
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
      * SmallworldDeleteDirectory function
565 565
      * - Delete images from users on delete
566 566
      * @param  int $userid
567
-     * @return true
567
+     * @return boolean
568 568
      */
569 569
     public function SmallworldDeleteDirectory($userid)
570 570
     {
Please login to merge, or discard this patch.
class/db.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * saveImage function
149
-     * @param $values
149
+     * @param string $values
150 150
      * @return void
151 151
      */
152 152
     public function saveImage($values)
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      * deleteWallMsg function
457 457
      * @param int $id
458 458
      * @param int $smallworld_msg_id
459
-     * @return true
459
+     * @return boolean
460 460
      */
461 461
     public function deleteWallMsg($id, $smallworld_msg_id)
462 462
     {
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
      * deleteWallComment function
476 476
      * - Delete Comments
477 477
      * @param int $smallworld_com_id
478
-     * @return true
478
+     * @return boolean
479 479
      */
480 480
     public function deleteWallComment($smallworld_com_id)
481 481
     {
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
      * SmallworldDeleteDirectory function
551 551
      * - Delete images from users on delete
552 552
      * @param int $userid
553
-     * @return true
553
+     * @return boolean
554 554
      */
555 555
     public function SmallworldDeleteDirectory($userid)
556 556
     {
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
      * - Remove user image dir in uploads.
581 581
      * @param int    $userid
582 582
      * @param string $directory
583
-     * @param bool|int $empty
584
-     * @return true
583
+     * @param boolean $empty
584
+     * @return boolean|null
585 585
      */
586 586
     public function smallworld_remDir($userid, $directory, $empty = false)
587 587
     {
@@ -621,6 +621,7 @@  discard block
 block discarded – undo
621 621
      * Update private settings
622 622
      * @param int id ($userid)
623 623
      * @param string posts (serialized values)
624
+     * @param string $posts
624 625
      * @return void
625 626
      */
626 627
     public function saveSettings($id, $posts)
@@ -641,7 +642,7 @@  discard block
 block discarded – undo
641 642
     /**
642 643
      * Retrieve private settings
643 644
      * @param int userid
644
-     * @return serialized|string
645
+     * @return null|string
645 646
      */
646 647
     public function GetSettings($userid)
647 648
     {
Please login to merge, or discard this patch.
class/mail.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param       $fromUserID
44 44
      * @param       $toUserID
45
-     * @param       $event
46
-     * @param null  $link
45
+     * @param       string $event
46
+     * @param string  $link
47 47
      * @param array $data
48 48
      * @throws \phpmailerException
49 49
      */
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
     /**
211 211
      * @param $msgid
212
-     * @return mixed
212
+     * @return string
213 213
      */
214 214
     public function getOwnerUpdateFromMsgID($msgid)
215 215
     {
Please login to merge, or discard this patch.
class/uploadclass.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @param $file_name
48
+     * @param string $file_name
49 49
      * @return null|\stdClass
50 50
      */
51 51
     private function get_file_object($file_name)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $file_name
66
+     * @param string $file_name
67 67
      * @return bool
68 68
      */
69 69
     private function create_thumbnail($file_name)
Please login to merge, or discard this patch.
class/UploadHandler.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     }
225 225
 
226 226
     /**
227
-     * @param $file
227
+     * @param stdClass $file
228 228
      */
229 229
     protected function set_file_delete_properties($file)
230 230
     {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     }
280 280
 
281 281
     /**
282
-     * @param $file_name
282
+     * @param string $file_name
283 283
      * @return null|\stdClass
284 284
      */
285 285
     protected function get_file_object($file_name)
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     }
325 325
 
326 326
     /**
327
-     * @param $file_name
327
+     * @param string $file_name
328 328
      * @param $version
329 329
      * @param $options
330 330
      * @return bool
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     }
397 397
 
398 398
     /**
399
-     * @param $val
399
+     * @param string $val
400 400
      * @return float|int
401 401
      */
402 402
     public function get_config_bytes($val)
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
     /**
420 420
      * @param $uploaded_file
421
-     * @param $file
421
+     * @param stdClass $file
422 422
      * @param $error
423 423
      * @param $index
424 424
      * @return bool
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     }
500 500
 
501 501
     /**
502
-     * @param $name
502
+     * @param string $name
503 503
      * @param $type
504 504
      * @param $index
505 505
      * @param $content_range
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
      * @param $type
527 527
      * @param $index
528 528
      * @param $content_range
529
-     * @return mixed|string
529
+     * @return string
530 530
      */
531 531
     protected function trim_file_name($name, $type, $index, $content_range)
532 532
     {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
     }
559 559
 
560 560
     /**
561
-     * @param $file
561
+     * @param stdClass $file
562 562
      * @param $index
563 563
      */
564 564
     protected function handle_form_data($file, $index)
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
     }
568 568
 
569 569
     /**
570
-     * @param $file_path
570
+     * @param string $file_path
571 571
      * @return bool
572 572
      */
573 573
     protected function orient_image($file_path)
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     }
697 697
 
698 698
     /**
699
-     * @param $file_path
699
+     * @param string $file_path
700 700
      * @return false|int
701 701
      */
702 702
     protected function readfile($file_path)
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
     }
706 706
 
707 707
     /**
708
-     * @param $str
708
+     * @param string $str
709 709
      */
710 710
     protected function body($str)
711 711
     {
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
     }
714 714
 
715 715
     /**
716
-     * @param $str
716
+     * @param string $str
717 717
      */
718 718
     protected function header($str)
719 719
     {
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
     }
763 763
 
764 764
     /**
765
-     * @param $file_path
765
+     * @param string $file_path
766 766
      * @return string
767 767
      */
768 768
     protected function get_file_type($file_path)
Please login to merge, or discard this patch.
class/user.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
      * @Check if user is follower
136 136
      * @param int $userid
137 137
      * @param int $friendid
138
-     * @return int
138
+     * @return integer[]
139 139
      */
140 140
     public function following_or($userid, $friendid)
141 141
     {
Please login to merge, or discard this patch.
include/functions.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 // If array check for magicQuotes.
41 41
 // Pass string to Smallworld_cleanup_string
42 42
 /**
43
- * @param $text
43
+ * @param string $text
44 44
  * @return array|mixed
45 45
  */
46 46
 function Smallworld_cleanup($text)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 }
128 128
 
129 129
 /**
130
- * @param $folderUrl
130
+ * @param string $folderUrl
131 131
  */
132 132
 function Smallworld_CreateIndexFiles($folderUrl)
133 133
 {
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 // Return only url/link
274 274
 // If url is image link return <img>
275 275
 /**
276
- * @param $text
276
+ * @param string $text
277 277
  * @param $uid
278 278
  * @return string
279 279
  */
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
 /**
934 934
  * @param $width
935 935
  * @param $height
936
- * @param $target
936
+ * @param integer $target
937 937
  * @return string
938 938
  */
939 939
 function smallworld_imageResize($width, $height, $target)
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
  * will attempt to use the getimagesiz method first, then curl
961 961
  * @param int $w
962 962
  * @param int $h
963
- * @param url $url
963
+ * @param string $url
964 964
  * @returns array
965 965
  */
966 966
 function smallworld_getImageSize($w, $h, $url)
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
 /**
1051 1051
  * @Get htmlentities
1052 1052
  * @param $text
1053
- * @return translated string to utf-8
1053
+ * @return string string to utf-8
1054 1054
  */
1055 1055
 function smallworld_decodeEntities($text)
1056 1056
 {
@@ -1063,7 +1063,7 @@  discard block
 block discarded – undo
1063 1063
 /**
1064 1064
  * @Get string and shorten so contains only ? chars
1065 1065
  * @param $text
1066
- * @param $chars
1066
+ * @param integer $chars
1067 1067
  * @return string
1068 1068
  */
1069 1069
 function smallworld_shortenText($text, $chars)
@@ -1077,8 +1077,8 @@  discard block
 block discarded – undo
1077 1077
 
1078 1078
 /**
1079 1079
  * @Get languagefile if constants are not defined
1080
- * @param $def
1081
- * @param $file
1080
+ * @param string $def
1081
+ * @param string $file
1082 1082
  * return file include
1083 1083
  */
1084 1084
 function smallworld_isDefinedLanguage($def, $file)
@@ -1128,7 +1128,7 @@  discard block
 block discarded – undo
1128 1128
 }
1129 1129
 
1130 1130
 /**
1131
- * @return array of groups
1131
+ * @return string[] of groups
1132 1132
  * return array
1133 1133
  *
1134 1134
  */
Please login to merge, or discard this patch.