Completed
Push — master ( 6ed6e7...ca5679 )
by Lars
26:16 queued 07:58
created
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.
src/Intraface/modules/intranetmaintenance/UserMaintenance.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      *
96 96
      * @param string $action Which action to perform?
97 97
      *
98
-     * @return void
98
+     * @return boolean
99 99
      */
100 100
     function transactionAction($action)
101 101
     {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/CreditNote.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
         parent::__construct($kernel, 'credit_note', $id);
16 16
     }
17 17
 
18
+    /**
19
+     * @param string $status
20
+     */
18 21
     function setStatus($status)
19 22
     {
20 23
         $return = parent::setStatus($status);
@@ -37,6 +40,9 @@  discard block
 block discarded – undo
37 40
         }
38 41
     }
39 42
 
43
+    /**
44
+     * @return boolean
45
+     */
40 46
     function readyForState($year, $check_products = 'check_products')
41 47
     {
42 48
         if (!is_object($year)) {
@@ -94,6 +100,14 @@  discard block
 block discarded – undo
94 100
 
95 101
     }
96 102
 
103
+    /**
104
+     * @param Year $year
105
+     * @param integer $voucher_number
106
+     * @param string $voucher_date
107
+     * @param Stub_Translation $translation
108
+     *
109
+     * @return boolean
110
+     */
97 111
     function state($year, $voucher_number, $voucher_date, $translation)
98 112
     {
99 113
         if (!is_object($year)) {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/Depreciation.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,10 +39,11 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * States the payment i the given year
41 41
      *
42
-     * @param object $year Accounting Year object
42
+     * @param Year $year Accounting Year object
43 43
      * @param integer $voucher_number
44 44
      * @param string $voucher_date
45 45
      * @param integer $state_account_number
46
+     * @param Stub_Translation $translation
46 47
      *
47 48
      * @return boolean true on succes or false.
48 49
      */
@@ -136,7 +137,7 @@  discard block
 block discarded – undo
136 137
     /**
137 138
      * returns possible payment types
138 139
      *
139
-     * @return array payment types
140
+     * @return string[] payment types
140 141
      *
141 142
      */
142 143
     public static function getTypes()
@@ -149,7 +150,7 @@  discard block
 block discarded – undo
149 150
     /**
150 151
      * returns the possible types payments can be for.
151 152
      *
152
-     * @return array payment for types
153
+     * @return string[] payment for types
153 154
      */
154 155
     private static function getPaymentForTypes()
155 156
     {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/Invoice.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
         parent::__construct($kernel, 'invoice', $id);
18 18
     }
19 19
 
20
+    /**
21
+     * @param string $status
22
+     */
20 23
     function setStatus($status)
21 24
     {
22 25
         if ($status == 'cancelled') {
@@ -58,7 +61,7 @@  discard block
 block discarded – undo
58 61
     /**
59 62
      * returns DebtorAccount object
60 63
      *
61
-     * @return object DebtorAccount
64
+     * @return DebtorAccount DebtorAccount
62 65
      */
63 66
     public function getDebtorAccount()
64 67
     {
@@ -150,6 +153,10 @@  discard block
 block discarded – undo
150 153
      * @param object year stating year
151 154
      * @param integer voucher_number
152 155
      * @param string voucher_date
156
+     * @param Year $year
157
+     * @param integer $voucher_number
158
+     * @param string $voucher_date
159
+     * @param Stub_Translation $translation
153 160
      * @return boolean true or false
154 161
      */
155 162
     function state($year, $voucher_number, $voucher_date, $translation)
Please login to merge, or discard this patch.