Completed
Pull Request — master (#5)
by Michael
01:56
created
class/Admin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
      * Fetch content of comma separated text file
335 335
      * will attempt to use the fopen method first, then curl, then socket
336 336
      * @param string $url
337
-     * @param array  $methods
337
+     * @param string[]  $methods
338 338
      * @returns string
339 339
      * @return bool|false|string
340 340
      * @return bool|false|string
Please login to merge, or discard this patch.
class/DoSync.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
      * - Remove user image dir in uploads.
90 90
      * @param int         $userid
91 91
      * @param string|bool $directory
92
-     * @param bool|int    $empty
93
-     * @return true
92
+     * @param boolean    $empty
93
+     * @return boolean|null
94 94
      */
95 95
     public function smallworld_remDir($userid, $directory, $empty = false)
96 96
     {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * SmallworldDeleteDirectory function
132 132
      * - Delete images from users on delete
133 133
      * @param int $userid
134
-     * @return true
134
+     * @return boolean
135 135
      */
136 136
     public function SmallworldDeleteDirectory($userid)
137 137
     {
Please login to merge, or discard this patch.
class/Mail.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * @param             $fromUserID
45 45
      * @param             $toUserID
46
-     * @param             $event
46
+     * @param             string $event
47 47
      * @param null|string $link
48 48
      * @param array       $data
49 49
      * @throws \phpmailerException
@@ -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/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.
friendinvite.php 1 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
 
26 25
 require_once __DIR__ . '/header.php';
Please login to merge, or discard this patch.
include/functions.php 2 patches
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
 
26 25
 //require_once __DIR__ . '/common.php';
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 // If array check for magicQuotes.
49 49
 // Pass string to Smallworld_cleanup_string
50 50
 /**
51
- * @param $text
51
+ * @param string $text
52 52
  * @return array|mixed
53 53
  */
54 54
 function Smallworld_cleanup($text)
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 }
136 136
 
137 137
 /**
138
- * @param $folderUrl
138
+ * @param string $folderUrl
139 139
  */
140 140
 function Smallworld_CreateIndexFiles($folderUrl)
141 141
 {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 // Return only url/link
282 282
 // If url is image link return <img>
283 283
 /**
284
- * @param $text
284
+ * @param string $text
285 285
  * @param $uid
286 286
  * @return string
287 287
  */
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
 /**
935 935
  * @param $width
936 936
  * @param $height
937
- * @param $target
937
+ * @param integer $target
938 938
  * @return string
939 939
  */
940 940
 function smallworld_imageResize($width, $height, $target)
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
  * will attempt to use the getimagesiz method first, then curl
962 962
  * @param int $w
963 963
  * @param int $h
964
- * @param url $url
964
+ * @param string $url
965 965
  * @returns array
966 966
  * @return array|false|string[]
967 967
  * @return array|false|string[]
@@ -1070,7 +1070,7 @@  discard block
 block discarded – undo
1070 1070
 /**
1071 1071
  * @Get string and shorten so contains only ? chars
1072 1072
  * @param $text
1073
- * @param $chars
1073
+ * @param integer $chars
1074 1074
  * @return string
1075 1075
  */
1076 1076
 function smallworld_shortenText($text, $chars)
@@ -1084,8 +1084,8 @@  discard block
 block discarded – undo
1084 1084
 
1085 1085
 /**
1086 1086
  * @Get languagefile if constants are not defined
1087
- * @param $def
1088
- * @param $file
1087
+ * @param string $def
1088
+ * @param string $file
1089 1089
  * return file include
1090 1090
  */
1091 1091
 function smallworld_isDefinedLanguage($def, $file)
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
 }
1136 1136
 
1137 1137
 /**
1138
- * @return array of groups
1138
+ * @return string[] of groups
1139 1139
  * return array
1140 1140
  *
1141 1141
  */
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
 require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
26 24
 require_once dirname(__DIR__) . '/include/common.php';
27 25
 
Please login to merge, or discard this patch.
friends.php 1 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
 
26 25
 require_once __DIR__ . '/header.php';
Please login to merge, or discard this patch.
galleryshow.php 1 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
 
26 25
 require_once __DIR__ . '/header.php';
Please login to merge, or discard this patch.