Completed
Push — master ( 6eccd4...8e591c )
by
unknown
01:46
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/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/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 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
  * @author       Michael Albertsen (http://culex.dk) <[email protected]>
21 21
  */
22 22
 
23
-use Xmf\Request;
24 23
 use Xoopsmodules\smallworld;
25 24
 //require_once __DIR__ . '/common.php';
26 25
 
Please login to merge, or discard this patch.
class/UploadHandler.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     }
227 227
 
228 228
     /**
229
-     * @param $file
229
+     * @param \stdClass $file
230 230
      */
231 231
     protected function set_file_delete_properties($file)
232 232
     {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     // works for sizes up to 2^32-1 bytes (4 GiB - 1):
245 245
     /**
246 246
      * @param $size
247
-     * @return float|int
247
+     * @return null|string
248 248
      */
249 249
     protected function fix_integer_overflow($size)
250 250
     {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 
280 280
     /**
281
-     * @param $file_name
281
+     * @param string $file_name
282 282
      * @return null|\stdClass
283 283
      */
284 284
     protected function get_file_object($file_name)
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-     * @param $file_name
326
+     * @param string $file_name
327 327
      * @param $version
328 328
      * @param $options
329 329
      * @return bool
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     }
398 398
 
399 399
     /**
400
-     * @param $val
400
+     * @param string $val
401 401
      * @return float|int
402 402
      */
403 403
     public function get_config_bytes($val)
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 
420 420
     /**
421 421
      * @param $uploaded_file
422
-     * @param $file
422
+     * @param \stdClass $file
423 423
      * @param $error
424 424
      * @param $index
425 425
      * @return bool
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     }
501 501
 
502 502
     /**
503
-     * @param $name
503
+     * @param string $name
504 504
      * @param $type
505 505
      * @param $index
506 506
      * @param $content_range
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      * @param $type
528 528
      * @param $index
529 529
      * @param $content_range
530
-     * @return mixed|string
530
+     * @return string
531 531
      */
532 532
     protected function trim_file_name($name, $type, $index, $content_range)
533 533
     {
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     }
560 560
 
561 561
     /**
562
-     * @param $file
562
+     * @param \stdClass $file
563 563
      * @param $index
564 564
      */
565 565
     protected function handle_form_data($file, $index)
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
     }
569 569
 
570 570
     /**
571
-     * @param $file_path
571
+     * @param string $file_path
572 572
      * @return bool
573 573
      */
574 574
     protected function orient_image($file_path)
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
     }
700 700
 
701 701
     /**
702
-     * @param $file_path
702
+     * @param string $file_path
703 703
      * @return false|int
704 704
      */
705 705
     protected function readfile($file_path)
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
     }
709 709
 
710 710
     /**
711
-     * @param $str
711
+     * @param string $str
712 712
      */
713 713
     protected function body($str)
714 714
     {
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
     }
717 717
 
718 718
     /**
719
-     * @param $str
719
+     * @param string $str
720 720
      */
721 721
     protected function header($str)
722 722
     {
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
     }
766 766
 
767 767
     /**
768
-     * @param $file_path
768
+     * @param string $file_path
769 769
      * @return string
770 770
      */
771 771
     protected function get_file_type($file_path)
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
  * @author       Michael Albertsen (http://culex.dk) <[email protected]>
21 21
  */
22 22
 
23
-use Xoopsmodules\smallworld;
24
-
25 23
 $moduleDirName = basename(dirname(__DIR__));
26 24
 require_once __DIR__ . '/../../../include/cp_header.php';
27 25
 require_once __DIR__ . '/../include/common.php';
Please login to merge, or discard this patch.
class/SmallworldAdmin.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|bool $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/SmallWorldDB.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|bool $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.