Completed
Push — master ( b8a416...8971e9 )
by Aleksey
16:11
created
src/SpeckCatalog/Controller/CatalogManagerController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@
 block discarded – undo
141 141
         return $this->getResponse()->setContent($html);
142 142
     }
143 143
 
144
+    /**
145
+     * @param string $helperName
146
+     */
144 147
     public function getViewHelper($helperName)
145 148
     {
146 149
         return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName);
Please login to merge, or discard this patch.
src/SpeckCatalog/Controller/ProductController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
         'product_image' => 'speckcatalog_product_image_service',
19 19
     );
20 20
 
21
+    /**
22
+     * @param string $name
23
+     */
21 24
     public function getService($name)
22 25
     {
23 26
         if (!array_key_exists($name, $this->services)) {
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
         return new ViewModel(array('images' => $images));
60 63
     }
61 64
 
65
+    /**
66
+     * @param string $helperName
67
+     */
62 68
     public function getViewHelper($helperName)
63 69
     {
64 70
         return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName);
Please login to merge, or discard this patch.
src/SpeckCatalog/Form/View/Helper/CatalogManagerFormRow.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Set the label position
177 177
      *
178
-     * @param $labelPosition
179
-     * @return FormRow
178
+     * @param string $labelPosition
179
+     * @return CatalogManagerFormRow
180 180
      * @throws \Zend\Form\Exception\InvalidArgumentException
181 181
      */
182 182
     public function setLabelPosition($labelPosition)
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      * Are the errors rendered by this helper ?
211 211
      *
212 212
      * @param  bool $renderErrors
213
-     * @return FormRow
213
+     * @return CatalogManagerFormRow
214 214
      */
215 215
     public function setRenderErrors($renderErrors)
216 216
     {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      * Set the attributes for the row label
231 231
      *
232 232
      * @param  array $labelAttributes
233
-     * @return FormRow
233
+     * @return CatalogManagerFormRow
234 234
      */
235 235
     public function setLabelAttributes($labelAttributes)
236 236
     {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      * Set the class that is added to element that have errors
253 253
      *
254 254
      * @param  string $inputErrorClass
255
-     * @return FormRow
255
+     * @return CatalogManagerFormRow
256 256
      */
257 257
     public function setInputErrorClass($inputErrorClass)
258 258
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
             }
139 139
         } else {
140 140
             if ($this->renderErrors) {
141
-                $markup = $elementString;  //. $elementErrors;
141
+                $markup = $elementString; //. $elementErrors;
142 142
             } else {
143 143
                 $markup = $elementString;
144 144
             }
Please login to merge, or discard this patch.
src/SpeckCatalog/Mapper/AbstractMapper.php 2 patches
Doc Comments   +20 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
     protected $paginatorOptions;
35 35
     protected $enabledOnly = false;
36 36
 
37
+    /**
38
+     * @param string $tableName
39
+     */
37 40
     public function getSelect($tableName = null)
38 41
     {
39 42
         return $this->getSql()->select($tableName ?: $this->getTableName());
@@ -85,6 +88,10 @@  discard block
 block discarded – undo
85 88
     }
86 89
 
87 90
     //return deleted nuber of rows
91
+
92
+    /**
93
+     * @param string $tableName
94
+     */
88 95
     public function delete(array $where, $tableName = null)
89 96
     {
90 97
         $tableName = $tableName ?: $this->getTableName();
@@ -135,6 +142,10 @@  discard block
 block discarded – undo
135 142
     }
136 143
 
137 144
     //returns affected number of rows
145
+
146
+    /**
147
+     * @param string $tableName
148
+     */
138 149
     public function update($dataOrModel, array $where, $tableName = null, HydratorInterface $hydrator = null)
139 150
     {
140 151
         $tableName = $tableName ?: $this->getTableName();
@@ -225,6 +236,9 @@  discard block
 block discarded – undo
225 236
         return $hydrator->hydrate($data, $model);
226 237
     }
227 238
 
239
+    /**
240
+     * @param Select $select
241
+     */
228 242
     public function initPaginator($select, ResultSet\ResultSetInterface $resultSet = null)
229 243
     {
230 244
         $paginator = new Paginator(new PaginatorDbSelect($select, $this->getDbAdapter(), $resultSet));
@@ -241,7 +255,7 @@  discard block
 block discarded – undo
241 255
     }
242 256
 
243 257
     /**
244
-     * @return hydrator
258
+     * @return null|HydratorInterface
245 259
      */
246 260
     public function getHydrator()
247 261
     {
@@ -302,7 +316,7 @@  discard block
 block discarded – undo
302 316
 
303 317
     /**
304 318
      * @param Sql
305
-     * @return AbstractDbMapper
319
+     * @return AbstractMapper
306 320
      */
307 321
     protected function setSql(Sql $sql)
308 322
     {
@@ -336,7 +350,7 @@  discard block
 block discarded – undo
336 350
     }
337 351
 
338 352
     /**
339
-     * @return dbAdapter
353
+     * @return Adapter
340 354
      */
341 355
     public function getDbAdapter()
342 356
     {
@@ -412,6 +426,9 @@  discard block
 block discarded – undo
412 426
         return $this->enabledOnly;
413 427
     }
414 428
 
429
+    /**
430
+     * @param boolean $bool
431
+     */
415 432
     public function setEnabledOnly($bool)
416 433
     {
417 434
         $this->enabledOnly = $bool;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
     public function hydrate(array $data, AbstractModel $model = null, HydratorInterface $hydrator = null)
221 221
     {
222 222
         $hydrator = $hydrator ?: $this->getHydrator();
223
-        $model    = $model    ?: $this->getModel();
223
+        $model    = $model ?: $this->getModel();
224 224
 
225 225
         return $hydrator->hydrate($data, $model);
226 226
     }
Please login to merge, or discard this patch.
src/SpeckCatalog/Mapper/Choice.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         return $this->selectManyModels($select);
28 28
     }
29 29
 
30
+    /**
31
+     * @param string $tableName
32
+     */
30 33
     public function insert($choice, $tableName = null, HydratorInterface $hydrator = null)
31 34
     {
32 35
         $choiceId = parent::insert($choice, $tableName, $hydrator);
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Availability/Relational.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @return parent
32
+     * @return AbstractModel
33 33
      */
34 34
     public function getParent()
35 35
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function __toString()
55 55
     {
56
-        $string = $this->has('distributor') ? $this->getDistributor()->getName(): '___' ;
56
+        $string = $this->has('distributor') ? $this->getDistributor()->getName() : '___';
57 57
         return $string;
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Choice.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     /**
26
-     * @param $choiceId
26
+     * @param integer $choiceId
27 27
      * @return self
28 28
      */
29 29
     public function setChoiceId($choiceId)
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @param $priceOverrideFixed
98
+     * @param integer|null $priceOverrideFixed
99 99
      * @return self
100 100
      */
101 101
     public function setPriceOverrideFixed($priceOverrideFixed)
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param $priceDiscountFixed
116
+     * @param integer|null $priceDiscountFixed
117 117
      * @return self
118 118
      */
119 119
     public function setPriceDiscountFixed($priceDiscountFixed)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-     * @param $priceDiscountPercent
134
+     * @param integer|null $priceDiscountPercent
135 135
      * @return self
136 136
      */
137 137
     public function setPriceDiscountPercent($priceDiscountPercent)
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     }
142 142
 
143 143
     /**
144
-     * @return priceNoCharge
144
+     * @return integer
145 145
      */
146 146
     public function getPriceNoCharge()
147 147
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-     * @param $priceNoCharge
152
+     * @param integer $priceNoCharge
153 153
      * @return self
154 154
      */
155 155
     public function setPriceNoCharge($priceNoCharge)
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 
161 161
     /**
162
-     * @return sortWeight
162
+     * @return integer
163 163
      */
164 164
     public function getSortWeight()
165 165
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      */
155 155
     public function setPriceNoCharge($priceNoCharge)
156 156
     {
157
-        $this->priceNoCharge = (bool)$priceNoCharge;
157
+        $this->priceNoCharge = (bool) $priceNoCharge;
158 158
         return $this;
159 159
     }
160 160
 
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Choice/Relational.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     }
185 185
 
186 186
     /**
187
-     * @return parent
187
+     * @return AbstractModel
188 188
      */
189 189
     public function getParent()
190 190
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         if ($this->getPriceDiscountFixed()) {
69 69
             return -$this->getPriceDiscountFixed();
70 70
         } elseif ($this->getPriceDiscountPercent()) {
71
-            return $parentPrice * -($this->getPriceDiscountPercent()/100);
71
+            return $parentPrice * -($this->getPriceDiscountPercent() / 100);
72 72
         } elseif ($this->getPriceNoCharge()) {
73 73
             return -$parentPrice;
74 74
         } elseif ($this->getPriceOverrideFixed()) {
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Product/Relational.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
 
266 266
     /**
267
-     * @return manufacturer
267
+     * @return \SpeckContact\Entity\Company|null
268 268
      */
269 269
     public function getManufacturer()
270 270
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     }
293 293
 
294 294
     /**
295
-     * @return parent
295
+     * @return AbstractModel
296 296
      */
297 297
     public function getParent()
298 298
     {
Please login to merge, or discard this patch.