Skip to content

Commit c26f2ac

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2781: Fixed code style issues
1 parent 30b8438 commit c26f2ac

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* Entity/Attribute/Model - attribute selection source abstract
11-
*
11+
* phpcs:disable Magento2.Classes.AbstractApi
1212
* @api
1313
* @author Magento Core Team <core@magentocommerce.com>
1414
* @SuppressWarnings(PHPMD.NumberOfChildren)

dev/tests/api-functional/testsuite/Magento/Downloadable/Api/ProductRepositoryTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ protected function getLinkData()
5151
'link_type' => 'file',
5252
'link_file_content' => [
5353
'name' => 'link1_content.jpg',
54+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
5455
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
5556
],
5657
'sample_type' => 'file',
5758
'sample_file_content' => [
5859
'name' => 'link1_sample.jpg',
60+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
5961
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
6062
],
6163
],
@@ -114,6 +116,7 @@ protected function getSampleData()
114116
'sample_type' => 'file',
115117
'sample_file_content' => [
116118
'name' => 'sample2.jpg',
119+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
117120
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
118121
],
119122
],
@@ -146,7 +149,9 @@ protected function createDownloadableProduct()
146149
"price" => 10,
147150
'attribute_set_id' => 4,
148151
"extension_attributes" => [
152+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
149153
"downloadable_product_links" => array_values($this->getLinkData()),
154+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
150155
"downloadable_product_samples" => array_values($this->getSampleData()),
151156
],
152157
];
@@ -301,11 +306,13 @@ public function testUpdateDownloadableProductLinksWithNewFile()
301306
'link_type' => 'file',
302307
'link_file_content' => [
303308
'name' => $linkFile . $extension,
309+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
304310
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
305311
],
306312
'sample_type' => 'file',
307313
'sample_file_content' => [
308314
'name' => $sampleFile . $extension,
315+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
309316
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
310317
],
311318
];
@@ -319,11 +326,13 @@ public function testUpdateDownloadableProductLinksWithNewFile()
319326
'link_type' => 'file',
320327
'link_file_content' => [
321328
'name' => 'link2_content.jpg',
329+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
322330
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
323331
],
324332
'sample_type' => 'file',
325333
'sample_file_content' => [
326334
'name' => 'link2_sample.jpg',
335+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
327336
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
328337
],
329338
];
@@ -463,6 +472,7 @@ public function testUpdateDownloadableProductSamplesWithNewFile()
463472
'sample_type' => 'file',
464473
'sample_file_content' => [
465474
'name' => 'sample1.jpg',
475+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
466476
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
467477
],
468478
];
@@ -474,6 +484,7 @@ public function testUpdateDownloadableProductSamplesWithNewFile()
474484
'sample_type' => 'file',
475485
'sample_file_content' => [
476486
'name' => 'sample2.jpg',
487+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
477488
'file_data' => base64_encode(file_get_contents($this->testImagePath)),
478489
],
479490
];

0 commit comments

Comments
 (0)