Completed
Push — master ( d208aa...25518b )
by Lars
12:37
created
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)) {
@@ -93,6 +99,14 @@  discard block
 block discarded – undo
93 99
         return $return;
94 100
     }
95 101
 
102
+    /**
103
+     * @param Year $year
104
+     * @param integer $voucher_number
105
+     * @param string $voucher_date
106
+     * @param Stub_Translation $translation
107
+     *
108
+     * @return boolean
109
+     */
96 110
     function state($year, $voucher_number, $voucher_date, $translation)
97 111
     {
98 112
         if (!is_object($year)) {
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/OnlinePayment.php 1 patch
Doc Comments   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -298,6 +298,10 @@  discard block
 block discarded – undo
298 298
         return $this->id;
299 299
     }
300 300
 
301
+    /**
302
+     * @param string $belong_to
303
+     * @param integer $belong_to_id
304
+     */
301 305
     function changeBelongTo($belong_to, $belong_to_id)
302 306
     {
303 307
         if ($this->id == 0) {
@@ -320,6 +324,9 @@  discard block
 block discarded – undo
320 324
         return $this->id;
321 325
     }
322 326
 
327
+    /**
328
+     * @param string $status
329
+     */
323 330
     function setStatus($status)
324 331
     {
325 332
         if ($this->id == 0) {
@@ -580,7 +587,7 @@  discard block
 block discarded – undo
580 587
     /**
581 588
      * returns the possible status types
582 589
      *
583
-     * @return array with status types
590
+     * @return string[] with status types
584 591
      */
585 592
     static function getStatusTypes()
586 593
     {
@@ -596,7 +603,7 @@  discard block
 block discarded – undo
596 603
     /**
597 604
      * returns possible belong to types
598 605
      *
599
-     * @return array with belong to types
606
+     * @return string[] with belong to types
600 607
      */
601 608
     private function getBelongToTypes()
602 609
     {
@@ -609,7 +616,7 @@  discard block
 block discarded – undo
609 616
     /**
610 617
      * returns the implemented providers
611 618
      *
612
-     * @return array with providers
619
+     * @return string[] with providers
613 620
      */
614 621
     static function getImplementedProviders()
615 622
     {
Please login to merge, or discard this patch.
src/Intraface/modules/contact/ContactReminder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
             throw new Exception('Could not save information in ContactReminder->update' . $result->getUserInfo());
225 225
             return false;
226 226
         }
227
-         return $this->id;
227
+            return $this->id;
228 228
     }
229 229
 
230 230
     /**
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
             throw new Exception('Could not postphone reminder' . $result->getUserInfo());
245 245
             return false;
246 246
         }
247
-         $this->load();
248
-         return true;
247
+            $this->load();
248
+            return true;
249 249
     }
250 250
 
251 251
     /**
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         if ($result->numRows() == 0) {
278 278
             return array();
279 279
         }
280
-         return $result->fetchAll(MDB2_FETCHMODE_ASSOC);
280
+            return $result->fetchAll(MDB2_FETCHMODE_ASSOC);
281 281
     }
282 282
 
283 283
     /**
@@ -295,8 +295,8 @@  discard block
 block discarded – undo
295 295
             throw new Exception('Could not postphone reminder' . $result->getUserInfo());
296 296
             return false;
297 297
         }
298
-         $this->load();
299
-         return true;
298
+            $this->load();
299
+            return true;
300 300
     }
301 301
 
302 302
     public function getDBQuery()
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server0100.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
         return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop')));
591 591
     }
592 592
 
593
-   /**
593
+    /**
594 594
      * Gets featured products
595 595
      *
596 596
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
         return $this->prepareResponseData($related_products);
641 641
     }
642 642
 
643
-   /**
643
+    /**
644 644
      * Gets product keywords which can be used to sort ones webshop
645 645
      *
646 646
      *
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server2.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         return $this->prepareResponseData($product->getRelatedProducts());
234 234
     }
235 235
 
236
-   /**
236
+    /**
237 237
      * Gets featured products
238 238
      *
239 239
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         return $this->prepareResponseData($related_products);
278 278
     }
279 279
 
280
-   /**
280
+    /**
281 281
      * Gets product keywords which can be used to sort ones webshop
282 282
      *
283 283
      *
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         return $product->getRelatedProducts();
155 155
     }
156 156
 
157
-   /**
157
+    /**
158 158
      * Gets featured products
159 159
      *
160 160
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         return $related_products;
199 199
     }
200 200
 
201
-   /**
201
+    /**
202 202
      * Gets product keywords which can be used to sort ones webshop
203 203
      *
204 204
      * Method is experimental and only used by nylivsstil.dk. If you need to use it
Please login to merge, or discard this patch.
src/Intraface/XMLRPC/Shop/Server0004.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
         return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop')));
591 591
     }
592 592
 
593
-   /**
593
+    /**
594 594
      * Gets featured products
595 595
      *
596 596
      * Method is experimental and only used by discimport.dk. If you need to use it
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
         return $this->prepareResponseData($related_products);
641 641
     }
642 642
 
643
-   /**
643
+    /**
644 644
      * Gets product keywords which can be used to sort ones webshop
645 645
      *
646 646
      *
Please login to merge, or discard this patch.
tests/unit/Accounting/VatPeriodTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@  discard block
 block discarded – undo
47 47
         $this->value['saldo'] = 100;
48 48
     }
49 49
 
50
+    /**
51
+     * @param string $type
52
+     */
50 53
     function getSaldo($type, $date_from, $date_to)
51 54
     {
52 55
     }
@@ -77,6 +80,9 @@  discard block
 block discarded – undo
77 80
         return 1;
78 81
     }
79 82
 
83
+    /**
84
+     * @param integer $id
85
+     */
80 86
     function getAccount($id)
81 87
     {
82 88
         return new FakeVatPeriodAccount(new FakeVatPeriodYear, $id);
Please login to merge, or discard this patch.
tests/unit/Debtor/DebtorTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@  discard block
 block discarded – undo
63 63
 class FakeDebtorSetting
64 64
 {
65 65
 
66
+    /**
67
+     * @param string $type
68
+     * @param string $setting
69
+     */
66 70
     function get($type, $setting)
67 71
     {
68 72
 
@@ -144,6 +148,9 @@  discard block
 block discarded – undo
144 148
         return $currency;
145 149
     }
146 150
 
151
+    /**
152
+     * @param Invoice $debtor
153
+     */
147 154
     function createPayment($debtor)
148 155
     {
149 156
         $payment = new Payment($debtor);
Please login to merge, or discard this patch.