Skip to content

Commit 4762727

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2445: Fixed code style issues
1 parent 7237529 commit 4762727

File tree

13 files changed

+46
-18
lines changed

13 files changed

+46
-18
lines changed

app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Generate.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\SalesRule\Controller\Adminhtml\Promo\Quote;
87

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
99
use Magento\SalesRule\Model\CouponGenerator;
1010

11-
class Generate extends \Magento\SalesRule\Controller\Adminhtml\Promo\Quote
11+
/**
12+
* Generate promo quote
13+
*/
14+
class Generate extends \Magento\SalesRule\Controller\Adminhtml\Promo\Quote implements HttpPostActionInterface
1215
{
1316
/**
1417
* @var CouponGenerator

app/code/Magento/SalesRule/Model/Coupon.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public function getTimesUsed()
190190
}
191191

192192
/**
193+
* Set Times Used
194+
*
193195
* @param int $timesUsed
194196
* @return $this
195197
*/
@@ -273,6 +275,8 @@ public function getType()
273275
}
274276

275277
/**
278+
* Set type
279+
*
276280
* @param int $type
277281
* @return $this
278282
*/

app/code/Magento/SalesRule/Model/Data/Rule.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ public function getIsAdvanced()
270270
}
271271

272272
/**
273+
* Set Is Advanced
274+
*
273275
* @param bool $isAdvanced
274276
* @return $this
275277
*/
@@ -373,6 +375,8 @@ public function getSortOrder()
373375
}
374376

375377
/**
378+
* Set Sort Order
379+
*
376380
* @param int $sortOrder
377381
* @return $this
378382
*/
@@ -616,7 +620,7 @@ public function setSimpleFreeShipping($simpleFreeShipping)
616620
}
617621

618622
/**
619-
* {@inheritdoc}
623+
* @inheritdoc
620624
*
621625
* @return \Magento\SalesRule\Api\Data\RuleExtensionInterface|null
622626
*/
@@ -626,7 +630,7 @@ public function getExtensionAttributes()
626630
}
627631

628632
/**
629-
* {@inheritdoc}
633+
* @inheritdoc
630634
*
631635
* @param \Magento\SalesRule\Api\Data\RuleExtensionInterface $extensionAttributes
632636
* @return $this

app/code/Magento/SalesRule/Model/Plugin/QuoteConfigProductAttributes.php

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

88
use Magento\SalesRule\Model\ResourceModel\Rule as RuleResource;
99

10+
/**
11+
* Quote Config Product Attributes Class
12+
*/
1013
class QuoteConfigProductAttributes
1114
{
1215
/**

app/code/Magento/SalesRule/Model/ResourceModel/ReadHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ public function __construct(
3636
}
3737

3838
/**
39+
* Read handler
40+
*
3941
* @param string $entityType
4042
* @param array $entityData
4143
* @param array $arguments
4244
* @return array
4345
* @throws \Exception
46+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4447
*/
4548
public function execute($entityType, $entityData, $arguments = [])
4649
{

app/code/Magento/SalesRule/Model/ResourceModel/SaveHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ public function __construct(
3636
}
3737

3838
/**
39+
* Save handler
40+
*
3941
* @param string $entityType
4042
* @param array $entityData
4143
* @param array $arguments
4244
* @return array
4345
* @throws \Exception
46+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4447
*/
4548
public function execute($entityType, $entityData, $arguments = [])
4649
{

app/code/Magento/SalesRule/Model/Rule/Action/Discount/CartFixed.php

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

5151
/**
52+
* Fixed discount for cart calculation
53+
*
5254
* @param \Magento\SalesRule\Model\Rule $rule
5355
* @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
5456
* @param float $qty

app/code/Magento/SalesRule/Model/RuleRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function __construct(
106106
}
107107

108108
/**
109-
* {@inheritdoc}
109+
* @inheritdoc
110110
*/
111111
public function save(\Magento\SalesRule\Api\Data\RuleInterface $rule)
112112
{
@@ -118,7 +118,7 @@ public function save(\Magento\SalesRule\Api\Data\RuleInterface $rule)
118118
}
119119

120120
/**
121-
* {@inheritdoc}
121+
* @inheritdoc
122122
*/
123123
public function getById($id)
124124
{
@@ -135,7 +135,7 @@ public function getById($id)
135135
}
136136

137137
/**
138-
* {@inheritdoc}
138+
* @inheritdoc
139139
*/
140140
public function getList(SearchCriteriaInterface $searchCriteria)
141141
{

app/code/Magento/SalesRule/Setup/Patch/Data/ConvertSerializedDataToJson.php

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

1212
/**
1313
* Class ConvertSerializedDataToJson
14+
*
1415
* @package Magento\SalesRule\Setup\Patch
1516
*/
1617
class ConvertSerializedDataToJson implements DataPatchInterface, PatchVersionInterface
@@ -58,7 +59,7 @@ public function apply()
5859
}
5960

6061
/**
61-
* {@inheritdoc}
62+
* @inheritdoc
6263
*/
6364
public static function getDependencies()
6465
{
@@ -68,15 +69,15 @@ public static function getDependencies()
6869
}
6970

7071
/**
71-
* {@inheritdoc}
72+
* @inheritdoc
7273
*/
7374
public static function getVersion()
7475
{
7576
return '2.0.2';
7677
}
7778

7879
/**
79-
* {@inheritdoc}
80+
* @inheritdoc
8081
*/
8182
public function getAliases()
8283
{

app/code/Magento/SalesRule/Setup/Patch/Data/FillSalesRuleProductAttributeTable.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Class FillSalesRuleProductAttributeTable
15+
*
1516
* @package Magento\SalesRule\Setup\Patch
1617
*/
1718
class FillSalesRuleProductAttributeTable implements DataPatchInterface, PatchVersionInterface
@@ -64,7 +65,7 @@ public function __construct(
6465
}
6566

6667
/**
67-
* {@inheritdoc}
68+
* @inheritdoc
6869
*/
6970
public function apply()
7071
{
@@ -101,7 +102,7 @@ public function fillSalesRuleProductAttributeTable()
101102
}
102103

103104
/**
104-
* {@inheritdoc}
105+
* @inheritdoc
105106
*/
106107
public static function getDependencies()
107108
{
@@ -111,15 +112,15 @@ public static function getDependencies()
111112
}
112113

113114
/**
114-
* {@inheritdoc}
115+
* @inheritdoc
115116
*/
116117
public static function getVersion()
117118
{
118119
return '2.0.3';
119120
}
120121

121122
/**
122-
* {@inheritdoc}
123+
* @inheritdoc
123124
*/
124125
public function getAliases()
125126
{

0 commit comments

Comments
 (0)