Completed
Pull Request — master (#20)
by Lars
15:27
created
src/Intraface/modules/product/Product.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
      *
595 595
      * @deprecated
596 596
      *
597
-     * @return object
597
+     * @return Keyword
598 598
      */
599 599
     public function getKeywords()
600 600
     {
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     /**
605 605
      * Get keywords object
606 606
      *
607
-     * @return object
607
+     * @return Keyword
608 608
      */
609 609
     public function getKeyword()
610 610
     {
@@ -660,7 +660,6 @@  discard block
 block discarded – undo
660 660
     /**
661 661
      * Delete all related product
662 662
      *
663
-     * @param integer $id     Product id to relate to this product
664 663
      *
665 664
      * @return boolean
666 665
      */
@@ -1040,7 +1039,7 @@  discard block
 block discarded – undo
1040 1039
     /**
1041 1040
      * Gets the details
1042 1041
      *
1043
-     * @return object
1042
+     * @return ProductDetail
1044 1043
      */
1045 1044
     function getDetails()
1046 1045
     {
Please login to merge, or discard this patch.
src/Intraface/modules/product/ProductDetail.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Constructor
45 45
      *
46
-     * @param object  $product       Product object
46
+     * @param Product  $product       Product object
47 47
      * @param integer $old_detail_id Only used with old product details
48 48
      *
49 49
      * @return void
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @param array $array_var An array with data to save, @see $this->fields
157 157
      *
158
-     * @return integer
158
+     * @return boolean
159 159
      */
160 160
     public function save($array_var)
161 161
     {
Please login to merge, or discard this patch.
src/Intraface/modules/product/ProductDoctrine.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,6 @@
 block discarded – undo
259 259
     /**
260 260
      * Set attribute for product
261 261
      *
262
-     * @param integer $id     Attribute id to relate to this product
263 262
      *
264 263
      * @return boolean
265 264
      */
Please login to merge, or discard this patch.
src/Intraface/modules/product/Variation/Gateway.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Find a variation from id
67 67
      * 
68
+     * @param integer $id
68 69
      * @return object Intraface_modules_product_Variation_OneAttributeGroup or Intraface_modules_product_Variation_TwoAttributeGroups
69 70
      */
70 71
     public function findById($id)
Please login to merge, or discard this patch.
src/Intraface/modules/shop/Controller/Categories.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -82,6 +82,9 @@
 block discarded – undo
82 82
         return $this->context->getKernel();
83 83
     }
84 84
 
85
+    /**
86
+     * @return integer
87
+     */
85 88
     function getShopId()
86 89
     {
87 90
         if ($this->query('shop_id')) {
Please login to merge, or discard this patch.
src/Intraface/modules/stock/Stock.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
     public $value;
10 10
     private $kernel;
11 11
 
12
+    /**
13
+     * @param Intraface_modules_product_Variation $variation
14
+     */
12 15
     function __construct($product, $variation = NULL)
13 16
     {
14 17
         $this->product = $product;
Please login to merge, or discard this patch.
src/Intraface/Pdf.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @param string $headerImg The filepath for the header image
139 139
      *
140
-     * @return void
140
+     * @return false|null
141 141
      */
142 142
     public function addHeader($headerImg = '')
143 143
     {
@@ -191,6 +191,7 @@  discard block
 block discarded – undo
191 191
      * write the document to a file
192 192
      *
193 193
      * @param string $data The data to write
194
+     * @param string $filnavn
194 195
      *
195 196
      * @return void
196 197
      */
Please login to merge, or discard this patch.
src/Intraface/Shared.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
         return $this->controlpanel_files;
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $file
64
+     */
62 65
     function addPreloadFile($file)
63 66
     {
64 67
         $this->preload_file[] = $file;
@@ -81,6 +84,7 @@  discard block
 block discarded – undo
81 84
 
82 85
     /**
83 86
      * @todo why is this not using getPath()
87
+     * @param string $file
84 88
      */
85 89
     function includeSettingFile($file)
86 90
     {
Please login to merge, or discard this patch.
src/Intraface/shared/email/Email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -351,7 +351,7 @@
 block discarded – undo
351 351
      * @param integer $file_id  Id of file in the file system
352 352
      * @param string  $filename Which filename to use
353 353
      *
354
-     * @return boolean
354
+     * @return integer
355 355
      */
356 356
     function attachFile($file_id, $filename)
357 357
     {
Please login to merge, or discard this patch.