Completed
Pull Request — master (#24)
by Lars
12:05
created
src/Intraface/modules/filemanager/FileHandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * Creates a filehandler
200 200
      *
201
-     * @param object $kernel     Kernel object
201
+     * @param Stub_Kernel $kernel     Kernel object
202 202
      * @param string $access_key The accesskey
203 203
      *
204 204
      * @return object
@@ -359,7 +359,8 @@  discard block
 block discarded – undo
359 359
      * creates and temporary file handler
360 360
      *
361 361
      * @param string optional file name
362
-     * @return object temporary file
362
+     * @param string $file_name
363
+     * @return TemporaryFile temporary file
363 364
      */
364 365
     public function createTemporaryFile($file_name = null)
365 366
     {
@@ -689,8 +690,7 @@  discard block
 block discarded – undo
689 690
     /**
690 691
      * Returns RandomKeyGenerator
691 692
      *
692
-     * @param integer $length the length of the random key
693
-     * @return object RandomKeyGenerator
693
+     * @return Ilib_RandomKeyGenerator RandomKeyGenerator
694 694
      */
695 695
     private function getRandomKeyGenerator()
696 696
     {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/FileManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     /**
51 51
      * Creates the keywords object
52 52
      *
53
-     * @return object
53
+     * @return Keyword
54 54
      */
55 55
     public function getKeywords()
56 56
     {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/ImageHandler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Constructor
30 30
      *
31
-     * @param object $file_handler
31
+     * @param FileHandler $file_handler
32 32
      *
33 33
      * @return void
34 34
      */
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
      *
142 142
      * @param float  $width  Width
143 143
      * @param float  $height Height
144
-     * @param float $offset_x offset x
145
-     * @param float $offset_y offset y
144
+     * @param integer $offset_x offset x
145
+     * @param integer $offset_y offset y
146 146
      *
147 147
      * @return string new file name
148 148
      */
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/ImageRandomizer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * Constructor
23 23
      *
24
-     * @param object $file_manager file handler
24
+     * @param Intraface_modules_filemanager_FileManager $file_manager file handler
25 25
      * @param array  $keywords     array with keywords
26 26
      *
27 27
      * @return void
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * returns dbquery
72 72
      *
73
-     * @return object dbquery
73
+     * @return Ilib_DBQuery dbquery
74 74
      */
75 75
     protected function getDBQuery()
76 76
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * return an file object with random image
88 88
      *
89
-     * @return object file_manager with random image loaded
89
+     * @return FileHandler file_manager with random image loaded
90 90
      */
91 91
     public function getRandomImage()
92 92
     {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/InstanceHandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param object  $file_handler File handler object
35 35
      * @param integer $id           Optional id
36 36
      *
37
-     * @return void
37
+     * @return string
38 38
      */
39 39
     function __construct($file_handler, $id = 0)
40 40
     {
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * Factory
67 67
      *
68
-     * @param object $file_handler File handler
69
-     * @param string $type         the instance type
68
+     * @param FileHandler $file_handler File handler
70 69
      * @param array  $param        one or more of crop_width, crop_height, crop_offset_x, crop_offset_y
70
+     * @param string $type_name
71 71
      *
72
-     * @return object
72
+     * @return InstanceHandler
73 73
      */
74 74
     function factory($file_handler, $type_name, $param = array())
75 75
     {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/TemporaryFile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * Constructor
36 36
      *
37
-     * @param object $file_handler
37
+     * @param object $filehandler
38 38
      * @param string $file_name the name of the temporary file.
39 39
      */
40 40
     public function __construct($filehandler, $file_name = null)
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/UploadHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      *       then the filehandler->save method should rather accept some kind of file object which this
71 71
      *       object could generate?
72 72
      *
73
-     * @param object $file_handler A filehandler
73
+     * @param FileHandler $file_handler A filehandler
74 74
      *
75 75
      * @return void
76 76
      */
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/IntranetMaintenance.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * Removes the intranets access to a module
117 117
      *
118 118
      * @param mixed module_id either name or id on module
119
-     * @return boolean true on success
119
+     * @return null|boolean true on success
120 120
      */
121 121
     public function removeModuleAccess($module_id)
122 122
     {
@@ -230,6 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
     /**
232 232
      * Saves who the intranet is maintained by
233
+     * @return boolean
233 234
      */
234 235
     public function setMaintainedByUser($id, $current_intranet_id)
235 236
     {
@@ -322,8 +323,7 @@  discard block
 block discarded – undo
322 323
     /**
323 324
      * returns the RandomKeyGenerator
324 325
      *
325
-     * @param integer $length the length of the generated key
326
-     * @return object RandomKeyGenerator
326
+     * @return Ilib_RandomKeyGenerator RandomKeyGenerator
327 327
      */
328 328
     private function getRandomKeyGenerator()
329 329
     {
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/ModuleMaintenance.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@
 block discarded – undo
85 85
         }
86 86
     }
87 87
 
88
+    /**
89
+     * @param string $module_name
90
+     */
88 91
     public function registerModule($module_name)
89 92
     {
90 93
         $gateway = new Intraface_ModuleGateway(MDB2::singleton(DB_DSN));
Please login to merge, or discard this patch.