Skip to content

Commit 1a92f1c

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2252: Code style fixes
1 parent 962883b commit 1a92f1c

File tree

31 files changed

+176
-25
lines changed

31 files changed

+176
-25
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Main/Formgroup.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
use Magento\Backend\Block\Widget\Form;
1313

14+
/**
15+
* Form group for attribute set
16+
*/
1417
class Formgroup extends \Magento\Backend\Block\Widget\Form\Generic
1518
{
1619
/**
@@ -37,6 +40,8 @@ public function __construct(
3740
}
3841

3942
/**
43+
* Prepare form elements
44+
*
4045
* @return void
4146
*/
4247
protected function _prepareForm()
@@ -77,6 +82,8 @@ protected function _prepareForm()
7782
}
7883

7984
/**
85+
* Returns set id
86+
*
8087
* @return int
8188
*/
8289
protected function _getSetId()

app/code/Magento/Config/Model/Config/Backend/Currency/Cron.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace Magento\Config\Model\Config\Backend\Currency;
1111

1212
/**
13+
* Cron job configuration for currency
14+
*
1315
* @api
1416
* @since 100.0.2
1517
*/
@@ -47,6 +49,8 @@ public function __construct(
4749
}
4850

4951
/**
52+
* After save handler
53+
*
5054
* @return $this
5155
* @throws \Exception
5256
*/

app/code/Magento/Config/Model/Config/Backend/Log/Cron.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace Magento\Config\Model\Config\Backend\Log;
1111

1212
/**
13+
* Cron logger configuration
14+
*
1315
* @api
1416
* @since 100.0.2
1517
*/

app/code/Magento/Cron/Model/Config/Backend/Product/Alert.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
namespace Magento\Cron\Model\Config\Backend\Product;
1313

14+
/**
15+
* Cron job Alert configuration
16+
*/
1417
class Alert extends \Magento\Framework\App\Config\Value
1518
{
1619
/**
@@ -61,7 +64,7 @@ public function __construct(
6164
}
6265

6366
/**
64-
* {@inheritdoc}
67+
* @inheritdoc
6568
*
6669
* @return $this
6770
* @throws \Exception

app/code/Magento/Cron/Model/Config/Backend/Sitemap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
namespace Magento\Cron\Model\Config\Backend;
1313

14+
/**
15+
* Sitemap configuration
16+
*/
1417
class Sitemap extends \Magento\Framework\App\Config\Value
1518
{
1619
/**
@@ -61,6 +64,8 @@ public function __construct(
6164
}
6265

6366
/**
67+
* After save handler
68+
*
6469
* @return $this
6570
* @throws \Exception
6671
*/

app/code/Magento/Customer/Block/Adminhtml/Edit/Tab/View/PersonalInfo.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,12 @@ public function __construct(
152152
/**
153153
* Set customer registry
154154
*
155-
* @param \Magento\Framework\Registry $coreRegistry
155+
* @param \Magento\Framework\Registry $customerRegistry
156156
* @return void
157157
* @deprecated 100.1.0
158158
*/
159159
public function setCustomerRegistry(\Magento\Customer\Model\CustomerRegistry $customerRegistry)
160160
{
161-
162161
$this->customerRegistry = $customerRegistry;
163162
}
164163

app/code/Magento/Customer/Model/Address.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ public function __construct(
122122
}
123123

124124
/**
125+
* Init model
126+
*
125127
* @return void
126128
*/
127129
protected function _construct()
@@ -165,7 +167,7 @@ public function updateData(AddressInterface $address)
165167
}
166168

167169
/**
168-
* {@inheritdoc}
170+
* @inheritdoc
169171
*/
170172
public function getDataModel($defaultBillingAddressId = null, $defaultShippingAddressId = null)
171173
{
@@ -258,6 +260,8 @@ public function getDefaultAttributeCodes()
258260
}
259261

260262
/**
263+
* Clone object handler
264+
*
261265
* @return void
262266
*/
263267
public function __clone()
@@ -298,6 +302,8 @@ public function setRegionId($regionId)
298302
}
299303

300304
/**
305+
* Create customer model
306+
*
301307
* @return Customer
302308
*/
303309
protected function _createCustomer()
@@ -353,7 +359,7 @@ public function reindex()
353359
}
354360

355361
/**
356-
* {@inheritdoc}
362+
* @inheritdoc
357363
* @since 100.0.6
358364
*/
359365
protected function getCustomAttributesCodes()
@@ -363,6 +369,7 @@ protected function getCustomAttributesCodes()
363369

364370
/**
365371
* Get new AttributeList dependency for application code.
372+
*
366373
* @return \Magento\Customer\Model\Address\CustomAttributeListInterface
367374
* @deprecated 100.0.6
368375
*/

app/code/Magento/Customer/Model/Customer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,8 @@ public function getResetPasswordLinkExpirationPeriod()
12951295
}
12961296

12971297
/**
1298+
* Create address instance
1299+
*
12981300
* @return Address
12991301
*/
13001302
protected function _createAddressInstance()
@@ -1303,6 +1305,8 @@ protected function _createAddressInstance()
13031305
}
13041306

13051307
/**
1308+
* Create address collection instance
1309+
*
13061310
* @return \Magento\Customer\Model\ResourceModel\Address\Collection
13071311
*/
13081312
protected function _createAddressCollection()
@@ -1311,6 +1315,8 @@ protected function _createAddressCollection()
13111315
}
13121316

13131317
/**
1318+
* Returns templates types
1319+
*
13141320
* @return array
13151321
*/
13161322
protected function getTemplateTypes()

app/code/Magento/Customer/Model/Renderer/Region.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public function __construct(
5454
}
5555

5656
/**
57+
* Render element
58+
*
5759
* @param AbstractElement $element
5860
* @return string
5961
* @SuppressWarnings(PHPMD.CyclomaticComplexity)

app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function __construct(
161161
}
162162

163163
/**
164-
* {@inheritdoc}
164+
* @inheritdoc
165165
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
166166
* @SuppressWarnings(PHPMD.NPathComplexity)
167167
*/
@@ -289,7 +289,7 @@ private function populateCustomerWithSecureData($customerModel, $passwordHash =
289289
}
290290

291291
/**
292-
* {@inheritdoc}
292+
* @inheritdoc
293293
*/
294294
public function get($email, $websiteId = null)
295295
{
@@ -298,7 +298,7 @@ public function get($email, $websiteId = null)
298298
}
299299

300300
/**
301-
* {@inheritdoc}
301+
* @inheritdoc
302302
*/
303303
public function getById($customerId)
304304
{
@@ -307,7 +307,7 @@ public function getById($customerId)
307307
}
308308

309309
/**
310-
* {@inheritdoc}
310+
* @inheritdoc
311311
*/
312312
public function getList(SearchCriteriaInterface $searchCriteria)
313313
{
@@ -347,15 +347,15 @@ public function getList(SearchCriteriaInterface $searchCriteria)
347347
}
348348

349349
/**
350-
* {@inheritdoc}
350+
* @inheritdoc
351351
*/
352352
public function delete(CustomerInterface $customer)
353353
{
354354
return $this->deleteById($customer->getId());
355355
}
356356

357357
/**
358-
* {@inheritdoc}
358+
* @inheritdoc
359359
*/
360360
public function deleteById($customerId)
361361
{

0 commit comments

Comments
 (0)