Completed
Push — master ( 9a4ef0...878baf )
by
unknown
01:47
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/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/SwUploadHandler.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/Common/DirectoryChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @param int $mode
42 42
      * @param     $redirectFile
43 43
      *
44
-     * @return bool|string
44
+     * @return false|string
45 45
      */
46 46
     public static function getDirectoryStatus($path, $mode = 0777, $redirectFile = null)
47 47
     {
Please login to merge, or discard this patch.
class/Common/FileChecker.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param string      $file_path
41 41
      * @param string|null $original_file_path
42 42
      * @param string      $redirectFile
43
-     * @return bool|string
43
+     * @return false|string
44 44
      */
45 45
     public static function getFileStatus($file_path, $original_file_path, $redirectFile)
46 46
     {
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-     * @param   $file1_path
101
-     * @param   $file2_path
100
+     * @param   string $file1_path
101
+     * @param   string $file2_path
102 102
      *
103 103
      * @return bool
104 104
      */
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
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     }
235 235
 
236 236
     /**
237
-     * @param $file
237
+     * @param \stdClass $file
238 238
      */
239 239
     protected function set_file_delete_properties($file)
240 240
     {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
     /**
255 255
      * @param $size
256
-     * @return float|int
256
+     * @return null|string
257 257
      */
258 258
     protected function fix_integer_overflow($size)
259 259
     {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     }
291 291
 
292 292
     /**
293
-     * @param $file_name
293
+     * @param string $file_name
294 294
      * @return null|\stdClass
295 295
      */
296 296
     protected function get_file_object($file_name)
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     }
339 339
 
340 340
     /**
341
-     * @param $file_name
341
+     * @param string $file_name
342 342
      * @param $version
343 343
      * @param $options
344 344
      * @return bool
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     }
415 415
 
416 416
     /**
417
-     * @param $val
417
+     * @param string $val
418 418
      * @return float|int
419 419
      */
420 420
     public function get_config_bytes($val)
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 
438 438
     /**
439 439
      * @param $uploaded_file
440
-     * @param $file
440
+     * @param \stdClass $file
441 441
      * @param $error
442 442
      * @param $index
443 443
      * @return bool
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
     }
531 531
 
532 532
     /**
533
-     * @param $name
533
+     * @param string $name
534 534
      * @param $type
535 535
      * @param $index
536 536
      * @param $content_range
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      * @param $type
559 559
      * @param $index
560 560
      * @param $content_range
561
-     * @return mixed|string
561
+     * @return string
562 562
      */
563 563
     protected function trim_file_name($name, $type, $index, $content_range)
564 564
     {
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
     }
592 592
 
593 593
     /**
594
-     * @param $file
594
+     * @param \stdClass $file
595 595
      * @param $index
596 596
      */
597 597
     protected function handle_form_data($file, $index)
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     }
601 601
 
602 602
     /**
603
-     * @param $file_path
603
+     * @param string $file_path
604 604
      * @return bool
605 605
      */
606 606
     protected function orient_image($file_path)
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
     }
735 735
 
736 736
     /**
737
-     * @param $file_path
737
+     * @param string $file_path
738 738
      * @return false|int
739 739
      */
740 740
     protected function readfile($file_path)
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
     }
744 744
 
745 745
     /**
746
-     * @param $str
746
+     * @param string $str
747 747
      */
748 748
     protected function body($str)
749 749
     {
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
     }
752 752
 
753 753
     /**
754
-     * @param $str
754
+     * @param string $str
755 755
      */
756 756
     protected function header($str)
757 757
     {
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
     }
803 803
 
804 804
     /**
805
-     * @param $file_path
805
+     * @param string $file_path
806 806
      * @return string
807 807
      */
808 808
     protected function get_file_type($file_path)
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
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
      * - Remove user image dir in uploads.
91 91
      * @param int         $userid
92 92
      * @param string|bool $directory
93
-     * @param bool|int    $empty
94
-     * @return bool
93
+     * @param boolean    $empty
94
+     * @return boolean|null
95 95
      */
96 96
     public function smallworld_remDir($userid, $directory, $empty = false)
97 97
     {
@@ -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.