Skip to content

Commit 492e264

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2354: Fixed Code Style Issues
1 parent 10dacaa commit 492e264

File tree

7 files changed

+48
-3
lines changed

7 files changed

+48
-3
lines changed

app/code/Magento/Catalog/Block/Product/ProductList/Crosssell.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*/
1010
namespace Magento\Catalog\Block\Product\ProductList;
1111

12+
/**
13+
* Crosssell block for product
14+
*/
1215
class Crosssell extends \Magento\Catalog\Block\Product\AbstractProduct
1316
{
1417
/**
@@ -43,6 +46,7 @@ protected function _prepareData()
4346

4447
/**
4548
* Before rendering html process
49+
*
4650
* Prepare items collection
4751
*
4852
* @return \Magento\Catalog\Block\Product\ProductList\Crosssell

app/code/Magento/Catalog/Block/Product/ProductList/Related.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public function __construct(
7777
}
7878

7979
/**
80+
* Prepare data
81+
*
8082
* @return $this
8183
*/
8284
protected function _prepareData()
@@ -103,6 +105,8 @@ protected function _prepareData()
103105
}
104106

105107
/**
108+
* Before to html handler
109+
*
106110
* @return $this
107111
*/
108112
protected function _beforeToHtml()
@@ -112,6 +116,8 @@ protected function _beforeToHtml()
112116
}
113117

114118
/**
119+
* Get collection items
120+
*
115121
* @return Collection
116122
*/
117123
public function getItems()

app/code/Magento/Catalog/Block/Product/ProductList/Upsell.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function __construct(
9191
}
9292

9393
/**
94+
* Prepare data
95+
*
9496
* @return $this
9597
*/
9698
protected function _prepareData()
@@ -121,6 +123,8 @@ protected function _prepareData()
121123
}
122124

123125
/**
126+
* Before to html handler
127+
*
124128
* @return $this
125129
*/
126130
protected function _beforeToHtml()
@@ -130,6 +134,8 @@ protected function _beforeToHtml()
130134
}
131135

132136
/**
137+
* Get items collection
138+
*
133139
* @return Collection
134140
*/
135141
public function getItemCollection()
@@ -145,6 +151,8 @@ public function getItemCollection()
145151
}
146152

147153
/**
154+
* Get collection items
155+
*
148156
* @return \Magento\Framework\DataObject[]
149157
*/
150158
public function getItems()
@@ -156,6 +164,8 @@ public function getItems()
156164
}
157165

158166
/**
167+
* Get row count
168+
*
159169
* @return float
160170
*/
161171
public function getRowCount()
@@ -164,6 +174,8 @@ public function getRowCount()
164174
}
165175

166176
/**
177+
* Set column count
178+
*
167179
* @param string $columns
168180
* @return $this
169181
*/
@@ -176,6 +188,8 @@ public function setColumnCount($columns)
176188
}
177189

178190
/**
191+
* Get column count
192+
*
179193
* @return int
180194
*/
181195
public function getColumnCount()
@@ -184,6 +198,8 @@ public function getColumnCount()
184198
}
185199

186200
/**
201+
* Reset items iterator
202+
*
187203
* @return void
188204
*/
189205
public function resetItemsIterator()
@@ -193,6 +209,8 @@ public function resetItemsIterator()
193209
}
194210

195211
/**
212+
* Get iterable item
213+
*
196214
* @return mixed
197215
*/
198216
public function getIterableItem()
@@ -204,6 +222,7 @@ public function getIterableItem()
204222

205223
/**
206224
* Set how many items we need to show in upsell block
225+
*
207226
* Notice: this parameter will be also applied
208227
*
209228
* @param string $type
@@ -219,6 +238,8 @@ public function setItemLimit($type, $limit)
219238
}
220239

221240
/**
241+
* Get item limit
242+
*
222243
* @param string $type
223244
* @return array|int
224245
*/

app/code/Magento/ImportExport/Controller/Adminhtml/History/Download.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
@@ -9,6 +8,9 @@
98
use Magento\Framework\App\Action\HttpGetActionInterface;
109
use Magento\Framework\App\Filesystem\DirectoryList;
1110

11+
/**
12+
* Download history controller
13+
*/
1214
class Download extends \Magento\ImportExport\Controller\Adminhtml\History implements HttpGetActionInterface
1315
{
1416
/**

app/code/Magento/Newsletter/Model/Plugin/CustomerPlugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Magento\Newsletter\Model\SubscriberFactory;
1515
use Magento\Store\Model\StoreManagerInterface;
1616

17+
/**
18+
* Newsletter Plugin for customer
19+
*/
1720
class CustomerPlugin
1821
{
1922
/**

app/code/Magento/Review/Model/ResourceModel/Rating.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ protected function _afterSave(\Magento\Framework\Model\AbstractModel $object)
178178
}
179179

180180
/**
181+
* Process rating codes
182+
*
181183
* @param \Magento\Framework\Model\AbstractModel $object
182184
* @return $this
183185
*/
@@ -201,6 +203,8 @@ protected function processRatingCodes(\Magento\Framework\Model\AbstractModel $ob
201203
}
202204

203205
/**
206+
* Process rating stores
207+
*
204208
* @param \Magento\Framework\Model\AbstractModel $object
205209
* @return $this
206210
*/
@@ -224,6 +228,8 @@ protected function processRatingStores(\Magento\Framework\Model\AbstractModel $o
224228
}
225229

226230
/**
231+
* Delete rating data
232+
*
227233
* @param int $ratingId
228234
* @param string $table
229235
* @param array $storeIds
@@ -247,6 +253,8 @@ protected function deleteRatingData($ratingId, $table, array $storeIds)
247253
}
248254

249255
/**
256+
* Insert rating data
257+
*
250258
* @param string $table
251259
* @param array $data
252260
* @return void
@@ -269,6 +277,7 @@ protected function insertRatingData($table, array $data)
269277

270278
/**
271279
* Perform actions after object delete
280+
*
272281
* Prepare rating data for reaggregate all data for reviews
273282
*
274283
* @param \Magento\Framework\Model\AbstractModel $object

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/header/actions-group/_notifications.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@
9797
display: inline-block;
9898
font-size: @notifications__font-size;
9999
font-weight: @font-weight__bold;
100+
height: 18px;
100101
left: 50%;
101102
margin-left: .3em;
102103
margin-top: -1.1em;
104+
min-width: 18px;
103105
padding: .3em .5em;
104106
position: absolute;
105107
top: 50%;
106-
min-width: 18px;
107-
height: 18px;
108108
}
109109
}
110110

0 commit comments

Comments
 (0)