@@ -267,7 +267,7 @@ |
||
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | - * @return string |
|
| 270 | + * @return CatalogCategory |
|
| 271 | 271 | */ |
| 272 | 272 | public function getParentPage() |
| 273 | 273 | { |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $i = 0; |
| 116 | 116 | foreach ($this->Categories()->sort('SortOrder') as $category) { |
| 117 | 117 | $list .= $category->Title; |
| 118 | - if(++$i !== $this->Categories()->Count()) { |
|
| 118 | + if (++$i !== $this->Categories()->Count()) { |
|
| 119 | 119 | $list .= ", "; |
| 120 | 120 | } |
| 121 | 121 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | return $this->product; |
| 78 | 78 | } |
| 79 | 79 | /** |
| 80 | - * @param null $request |
|
| 80 | + * @param null|SS_HTTPRequest $request |
|
| 81 | 81 | * @return DataObject|void |
| 82 | 82 | * @throws SS_HTTPResponse_Exception |
| 83 | 83 | */ |
@@ -96,6 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | /** |
| 98 | 98 | * @param $event |
| 99 | + * @param DataObject|null $product |
|
| 99 | 100 | * @return $this |
| 100 | 101 | */ |
| 101 | 102 | public function setProduct($product) |
@@ -47,9 +47,9 @@ |
||
| 47 | 47 | |
| 48 | 48 | if ($this->owner->Products()->exists()) { |
| 49 | 49 | $i = 0; |
| 50 | - foreach($this->owner->Products() as $product) { |
|
| 50 | + foreach ($this->owner->Products() as $product) { |
|
| 51 | 51 | $list .= $product->Title; |
| 52 | - if(++$i !== $this->owner->Products()->Count()) { |
|
| 52 | + if (++$i !== $this->owner->Products()->Count()) { |
|
| 53 | 53 | $list .= ", "; |
| 54 | 54 | } |
| 55 | 55 | } |