Completed
Pull Request — master (#5)
by Michael
01:30
created
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/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/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 = null, $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/common/SysUtility.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,7 @@
 block discarded – undo
23 23
  * @author       Mamba <[email protected]>
24 24
  */
25 25
 
26
-use MyTextSanitizer;
27 26
 use XoopsFormDhtmlTextArea;
28
-use XoopsFormTextArea;
29 27
 use XoopsModules\Smallworld;
30 28
 use XoopsModules\Smallworld\Helper;
31 29
 
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/SwDatabase.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
     /**
149 149
      * saveImage function
150
-     * @param $values
150
+     * @param string $values
151 151
      * @return void
152 152
      */
153 153
     public function saveImage($values)
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      * deleteWallMsg function
458 458
      * @param int $id
459 459
      * @param int $smallworld_msg_id
460
-     * @return true
460
+     * @return boolean
461 461
      */
462 462
     public function deleteWallMsg($id, $smallworld_msg_id)
463 463
     {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * deleteWallComment function
477 477
      * - Delete Comments
478 478
      * @param int $smallworld_com_id
479
-     * @return true
479
+     * @return boolean
480 480
      */
481 481
     public function deleteWallComment($smallworld_com_id)
482 482
     {
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
      * SmallworldDeleteDirectory function
552 552
      * - Delete images from users on delete
553 553
      * @param int $userid
554
-     * @return true
554
+     * @return boolean
555 555
      */
556 556
     public function SmallworldDeleteDirectory($userid)
557 557
     {
@@ -581,8 +581,8 @@  discard block
 block discarded – undo
581 581
      * - Remove user image dir in uploads.
582 582
      * @param int         $userid
583 583
      * @param string|bool $directory
584
-     * @param bool|int    $empty
585
-     * @return true
584
+     * @param boolean    $empty
585
+     * @return boolean|null
586 586
      */
587 587
     public function smallworld_remDir($userid, $directory, $empty = false)
588 588
     {
@@ -622,6 +622,7 @@  discard block
 block discarded – undo
622 622
      * Update private settings
623 623
      * @param int id ($userid)
624 624
      * @param string posts (serialized values)
625
+     * @param string $posts
625 626
      * @return void
626 627
      */
627 628
     public function saveSettings($id, $posts)
@@ -642,7 +643,7 @@  discard block
 block discarded – undo
642 643
     /**
643 644
      * Retrieve private settings
644 645
      * @param int userid
645
-     * @return serialized|string
646
+     * @return null|string
646 647
      */
647 648
     public function GetSettings($userid)
648 649
     {
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.