Skip to content

Commit 1c98cf8

Browse files
karyna-tandrewbess
authored andcommitted
magento#34505: fix failed static tests
1 parent b0fff30 commit 1c98cf8

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

app/code/Magento/Bundle/Pricing/Price/BundleSelectionPrice.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@ class BundleSelectionPrice extends AbstractPrice
2626
/**
2727
* Price model code
2828
*/
29-
const PRICE_CODE = 'bundle_selection';
29+
public const PRICE_CODE = 'bundle_selection';
3030

3131
/**
3232
* @var \Magento\Catalog\Model\Product
3333
*/
3434
protected $bundleProduct;
3535

3636
/**
37-
* Event manager
38-
*
3937
* @var \Magento\Framework\Event\ManagerInterface
4038
*/
4139
protected $eventManager;
@@ -181,6 +179,8 @@ public function getAmount()
181179
}
182180

183181
/**
182+
* Returns the bundle product.
183+
*
184184
* @return SaleableInterface
185185
*/
186186
public function getProduct()

app/code/Magento/Cms/Model/Block.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ class Block extends AbstractModel implements BlockInterface, IdentityInterface
2929
/**
3030
* CMS block cache tag
3131
*/
32-
const CACHE_TAG = 'cms_b';
32+
public const CACHE_TAG = 'cms_b';
3333

3434
/**#@+
3535
* Block's statuses
3636
*/
37-
const STATUS_ENABLED = 1;
38-
const STATUS_DISABLED = 0;
37+
public const STATUS_ENABLED = 1;
38+
public const STATUS_DISABLED = 0;
3939

40-
/**#@-*/
41-
42-
/**#@-*/
40+
/**
41+
* @var string
42+
*/
4343
protected $_cacheTag = self::CACHE_TAG;
4444

4545
/**

app/code/Magento/Cms/Model/Block/DataProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class DataProvider extends \Magento\Ui\DataProvider\ModifierPoolDataProvider
3030
protected $loadedData;
3131

3232
/**
33-
* Constructor
34-
*
3533
* @param string $name
3634
* @param string $primaryFieldName
3735
* @param string $requestFieldName

app/code/Magento/Sales/Model/Order.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,6 +2029,7 @@ public function getRelatedObjects()
20292029
* Get customer name
20302030
*
20312031
* @return string
2032+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
20322033
*/
20332034
public function getCustomerName()
20342035
{

lib/internal/Magento/Framework/Image/Adapter/Gd2.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
class Gd2 extends AbstractAdapter
1818
{
1919
/**
20-
* Required extensions
21-
*
2220
* @var array
2321
*/
2422
protected $_requiredExtensions = ["gd"];
@@ -475,6 +473,7 @@ public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity =
475473
* @return false|resource
476474
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
477475
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
476+
* @SuppressWarnings(PHPMD.NPathComplexity)
478477
*/
479478
private function createWatermarkBasedOnPosition(
480479
$watermark,

lib/internal/Magento/Framework/Search/Dynamic/Algorithm/Auto.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(DataProviderInterface $dataProvider, OptionsInterfac
3434
}
3535

3636
/**
37-
* {@inheritdoc}
37+
* @inheritdoc
3838
*/
3939
public function getItems(
4040
BucketInterface $bucket,
@@ -53,6 +53,8 @@ public function getItems(
5353
}
5454

5555
/**
56+
* Returns price range.
57+
*
5658
* @param BucketInterface $bucket
5759
* @param array $dimensions
5860
* @param EntityStorage $entityStorage
@@ -84,6 +86,8 @@ private function getMaxPriceInt(EntityStorage $entityStorage)
8486
}
8587

8688
/**
89+
* Return Minimal range power.
90+
*
8791
* @return int
8892
*/
8993
private function getMinRangePower()

setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@
2121
*/
2222
class GenerateFixturesCommand extends Command
2323
{
24-
/**
25-
* Profile argument
26-
*/
27-
const PROFILE_ARGUMENT = 'profile';
24+
public const PROFILE_ARGUMENT = 'profile';
2825

29-
const SKIP_REINDEX_OPTION = 'skip-reindex';
26+
public const SKIP_REINDEX_OPTION = 'skip-reindex';
3027

3128
/**
3229
* @var FixtureModel
@@ -43,7 +40,7 @@ public function __construct(FixtureModel $fixtureModel)
4340
}
4441

4542
/**
46-
* {@inheritdoc}
43+
* @inheritdoc
4744
*/
4845
protected function configure()
4946
{
@@ -66,7 +63,7 @@ protected function configure()
6663
}
6764

6865
/**
69-
* {@inheritdoc}
66+
* @inheritdoc
7067
*/
7168
protected function execute(InputInterface $input, OutputInterface $output)
7269
{
@@ -158,6 +155,8 @@ private function clearChangelog()
158155
}
159156

160157
/**
158+
* Executes fixture and output the execution time.
159+
*
161160
* @param \Magento\Setup\Fixtures\Fixture $fixture
162161
* @param OutputInterface $output
163162
*/

setup/src/Magento/Setup/Model/BatchInsert.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ public function __construct(
5858
}
5959

6060
/**
61-
* Save data to $dataStorage and automatically flush it to DB
62-
* when storage size becomes equal to $batchSize
61+
* Save data to $dataStorage and automatically flush it to DB when storage size becomes equal to $batchSize
6362
*
6463
* @param array $dataToInsert
6564
* @return void

0 commit comments

Comments
 (0)