Completed
Push — master ( d208aa...25518b )
by Lars
12:37
created
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.
src/Intraface/modules/invoice/PaymentGateway.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
         $this->dbquery = $this->getDBQuery();
20 20
     }
21 21
 
22
+    /**
23
+     * @param string|null $id
24
+     */
22 25
     function findById($id)
23 26
     {
24 27
         $db = new DB_Sql;
@@ -113,7 +116,7 @@  discard block
 block discarded – undo
113 116
     /**
114 117
      * returns possible payment types
115 118
      *
116
-     * @return array payment types
119
+     * @return string[] payment types
117 120
      *
118 121
      */
119 122
     public static function getTypes()
@@ -128,7 +131,7 @@  discard block
 block discarded – undo
128 131
     /**
129 132
      * returns the possible types payments can be for.
130 133
      *
131
-     * @return array payment for types
134
+     * @return string[] payment for types
132 135
      */
133 136
     private static function getPaymentForTypes()
134 137
     {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/Reminder.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         return $this->dbquery;
37 37
     }
38 38
 
39
+    /**
40
+     * @param string $type
41
+     */
39 42
     function getItems($type = null)
40 43
     {
41 44
         $this->loadItem();
@@ -297,7 +300,8 @@  discard block
 block discarded – undo
297 300
     /**
298 301
      * Sets status for the reminder
299 302
      *
300
-     * @return true / false
303
+     * @param string $status
304
+     * @return boolean / false
301 305
      */
302 306
     function setStatus($status)
303 307
     {
@@ -356,7 +360,7 @@  discard block
 block discarded – undo
356 360
     /**
357 361
      * returns DebtorAccount object
358 362
      *
359
-     * @return object DebtorAccount
363
+     * @return DebtorAccount DebtorAccount
360 364
      */
361 365
     public function getDebtorAccount()
362 366
     {
@@ -575,6 +579,11 @@  discard block
 block discarded – undo
575 579
      * @param object year stating year
576 580
      * @param integer voucher_number
577 581
      * @param string voucher_date
582
+     * @param Year $year
583
+     * @param integer $voucher_number
584
+     * @param string $voucher_date
585
+     * @param integer $credit_account_number
586
+     * @param Stub_Translation $translation
578 587
      * @return boolean true or false
579 588
      */
580 589
     function state($year, $voucher_number, $voucher_date, $credit_account_number, $translation)
@@ -687,7 +696,7 @@  discard block
 block discarded – undo
687 696
     /**
688 697
      * returns possible status types
689 698
      *
690
-     * @return array possible status types
699
+     * @return string[] possible status types
691 700
      */
692 701
     private static function getStatusTypes()
693 702
     {
@@ -702,7 +711,7 @@  discard block
 block discarded – undo
702 711
     /**
703 712
      * returns possible payment methods
704 713
      *
705
-     * @return array possible payment methods
714
+     * @return string[] possible payment methods
706 715
      */
707 716
     private static function getPaymentMethods()
708 717
     {
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/ListGateway.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
         return new NewsletterList($this->kernel, $id);
14 14
     }
15 15
 
16
+    /**
17
+     * @param string $contact_id
18
+     */
16 19
     function findByContactId($contact_id)
17 20
     {
18 21
         $db = new DB_Sql;
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/NewsletterSubscriber.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Adds an existing contact
178 178
      *
179
-     * @param integer $contact_id Contact id
179
+     * @param integer $contact Contact id
180 180
      *
181 181
      * @return integer of the id of the subscriber
182 182
      */
@@ -489,6 +489,9 @@  discard block
 block discarded – undo
489 489
         }
490 490
     }
491 491
 
492
+    /**
493
+     * @param Contact $contact
494
+     */
492 495
     private function getLoginUrl($contact)
493 496
     {
494 497
         if (!$link = $this->list->get('optin_link')) {
@@ -548,7 +551,7 @@  discard block
 block discarded – undo
548 551
     }
549 552
 
550 553
     /**
551
-     * @param object $observer Must implement an update() method
554
+     * @param FakeObserver $observer Must implement an update() method
552 555
      */
553 556
     public function addObserver($observer)
554 557
     {
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/Observer/OptinMail.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * Constructor
20 20
      *
21
-     * @param object $list Newsletter list
21
+     * @param FakeNewsletterList $list Newsletter list
22 22
      *
23 23
      * @return void
24 24
      */
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/Procurement.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,6 +280,9 @@  discard block
 block discarded – undo
280 280
         return true;
281 281
     }
282 282
 
283
+    /**
284
+     * @param string $dk_paid_date
285
+     */
283 286
     function setPaid($dk_paid_date)
284 287
     {
285 288
         if ($this->get('id') == 0) {
@@ -369,6 +372,11 @@  discard block
 block discarded – undo
369 372
      *
370 373
      * @param object year year object
371 374
      * @param integer voucher_number
375
+     * @param Year $year
376
+     * @param integer $voucher_number
377
+     * @param string $voucher_date
378
+     * @param integer $credit_account_id
379
+     * @param Stub_Translation $translation
372 380
      *
373 381
      * @return boolean
374 382
      */
@@ -685,7 +693,7 @@  discard block
 block discarded – undo
685 693
      *
686 694
      * @todo: duplicate in Procurement class
687 695
      *
688
-     * @return array status types
696
+     * @return string[] status types
689 697
      */
690 698
     private function getStatusTypes()
691 699
     {
@@ -700,7 +708,7 @@  discard block
 block discarded – undo
700 708
      * returns the possible regions where procurement is bought
701 709
      * @todo: duplicate in Procurement class
702 710
      *
703
-     * @return array possible regions
711
+     * @return string[] possible regions
704 712
      */
705 713
     public function getRegionTypes()
706 714
     {
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/ProcurementItem.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,8 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param object Procurement
60 60
      * @param integer item id
61
+     * @param Procurement $procurement
62
+     * @param integer $id
61 63
      * @return void
62 64
      */
63 65
     public function __construct($procurement, $id)
@@ -201,7 +203,7 @@  discard block
 block discarded – undo
201 203
     /**
202 204
      * Gets the tax percent on the individual product
203 205
      *
204
-     * @return float
206
+     * @return integer
205 207
      */
206 208
     public function getProductTaxPercent()
207 209
     {
Please login to merge, or discard this patch.
src/Intraface/modules/product/Product/Details.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     /**
185 185
      * Returns the price of the product
186 186
      *
187
-     * @return object Ilib_Variable_Float with price
187
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price
188 188
      */
189 189
     public function getPrice()
190 190
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     /**
195 195
      * Used to set price
196 196
      *
197
-     * @param object $price Ilib_Variable_Float
197
+     * @param Ilib_Variable_Float $price Ilib_Variable_Float
198 198
      * @return void
199 199
      */
200 200
     public function setPrice(Ilib_Variable_Float $price)
@@ -206,9 +206,9 @@  discard block
 block discarded – undo
206 206
      * Returns the price of the product in given currency
207 207
      *
208 208
      * @param object $currency Intraface_modules_currency_Currency
209
-     * @param integer $exchange_rage_id
209
+     * @param integer $exchange_rate_id
210 210
      *
211
-     * @return obejct Ilib_Variable_Float with price of the variation in given currency
211
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency
212 212
      */
213 213
     public function getPriceInCurrency($currency, $exchange_rate_id = 0)
214 214
     {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     /**
219 219
      * Returns price include vat of the product
220 220
      *
221
-     * @return object Ilib_Variable_Float with price including vat
221
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat
222 222
      */
223 223
     public function getPriceIncludingVat()
224 224
     {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      *
231 231
      * @param object $currency Intraface_modules_currency_Currency
232 232
      * @param integer $exchange_rate_id
233
-     * @return object Ilib_Variable_Float with price including vat in given currency
233
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency
234 234
      */
235 235
     public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id)
236 236
     {
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * Returns the before price of the product
247 247
      *
248
-     * @return object Ilib_Variable_Float with price
248
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price
249 249
      */
250 250
     public function getBeforePrice()
251 251
     {
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
      * Returns the before price of the product in given currency
257 257
      *
258 258
      * @param object $currency Intraface_modules_currency_Currency
259
-     * @param integer $exchange_rage_id
259
+     * @param integer $exchange_rate_id
260 260
      *
261
-     * @return obejct Ilib_Variable_Float with price of the variation in given currency
261
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency
262 262
      */
263 263
     public function getBeforePriceInCurrency($currency, $exchange_rate_id = 0)
264 264
     {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     /**
269 269
      * Returns before price include vat of the product
270 270
      *
271
-     * @return object Ilib_Variable_Float with price including vat
271
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat
272 272
      */
273 273
     public function getBeforePriceIncludingVat()
274 274
     {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      *
281 281
      * @param object $currency Intraface_modules_currency_Currency
282 282
      * @param integer $exchange_rate_id
283
-     * @return object Ilib_Variable_Float with price including vat in given currency
283
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency
284 284
      */
285 285
     public function getBeforePriceIncludingVatInCurrency($currency, $exchange_rate_id)
286 286
     {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
     /**
291 291
      * Sets the weight
292
-     * @param object $value Ilib_Value_Float
292
+     * @param Ilib_Variable_Float $value Ilib_Value_Float
293 293
      * @return void
294 294
      */
295 295
     public function setWeight(Ilib_Variable_Float $value)
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * Returns the weight of the product
302 302
      *
303
-     * @return object Ilib_Variable_Float with price
303
+     * @return Ilib_Variable_Float Ilib_Variable_Float with price
304 304
      */
305 305
     public function getWeight()
306 306
     {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     /**
362 362
      * Returns the var percenttage of the product
363 363
      *
364
-     * @return object Ilib_Variable_Float with vat percent
364
+     * @return Ilib_Variable_Float Ilib_Variable_Float with vat percent
365 365
      */
366 366
     public function getVatPercent()
367 367
     {
Please login to merge, or discard this patch.