Completed
Pull Request — master (#5)
by Michael
01:56
created
class/SwDatabase.php 1 patch
Doc Comments   +7 added lines, -6 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)
Please login to merge, or discard this patch.
class/SwUploadHandler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param $file_name
50
+     * @param string $file_name
51 51
      * @return null|\stdClass
52 52
      */
53 53
     private function get_file_object($file_name)
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @param $file_name
68
+     * @param string $file_name
69 69
      * @return bool
70 70
      */
71 71
     private function create_thumbnail($file_name)
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * @param $size
127 127
      * @param $type
128 128
      * @param $error
129
-     * @return stdClass
129
+     * @return \stdClass
130 130
      */
131 131
     private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
132 132
     {
Please login to merge, or discard this patch.
index.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.