Skip to content

Commit 03f0c3a

Browse files
committed
Fix static tests.
1 parent 92d2a3c commit 03f0c3a

File tree

2 files changed

+41
-13
lines changed

2 files changed

+41
-13
lines changed

app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Links.php

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier;
78

8-
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
99
use Magento\Catalog\Model\Locator\LocatorInterface;
10+
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
1011
use Magento\Downloadable\Model\Product\Type;
11-
use Magento\Downloadable\Model\Source\TypeUpload;
1212
use Magento\Downloadable\Model\Source\Shareable;
13-
use Magento\Store\Model\StoreManagerInterface;
13+
use Magento\Downloadable\Model\Source\TypeUpload;
1414
use Magento\Framework\Stdlib\ArrayManager;
15-
use Magento\Ui\Component\DynamicRows;
1615
use Magento\Framework\UrlInterface;
16+
use Magento\Store\Model\StoreManagerInterface;
1717
use Magento\Ui\Component\Container;
18+
use Magento\Ui\Component\DynamicRows;
1819
use Magento\Ui\Component\Form;
1920

2021
/**
21-
* Class adds a grid with links
22+
* Class adds a grid with links.
23+
*
2224
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2325
*/
2426
class Links extends AbstractModifier
@@ -86,7 +88,7 @@ public function __construct(
8688
}
8789

8890
/**
89-
* {@inheritdoc}
91+
* @inheritdoc
9092
*/
9193
public function modifyData(array $data)
9294
{
@@ -101,7 +103,7 @@ public function modifyData(array $data)
101103
}
102104

103105
/**
104-
* {@inheritdoc}
106+
* @inheritdoc
105107
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
106108
*/
107109
public function modifyMeta(array $meta)
@@ -160,6 +162,8 @@ public function modifyMeta(array $meta)
160162
}
161163

162164
/**
165+
* Get dynamic rows meta.
166+
*
163167
* @return array
164168
*/
165169
protected function getDynamicRows()
@@ -180,6 +184,8 @@ protected function getDynamicRows()
180184
}
181185

182186
/**
187+
* Get single link record meta.
188+
*
183189
* @return array
184190
*/
185191
protected function getRecord()
@@ -221,6 +227,8 @@ protected function getRecord()
221227
}
222228

223229
/**
230+
* Get link title meta.
231+
*
224232
* @return array
225233
*/
226234
protected function getTitleColumn()
@@ -248,6 +256,8 @@ protected function getTitleColumn()
248256
}
249257

250258
/**
259+
* Get link price meta.
260+
*
251261
* @return array
252262
*/
253263
protected function getPriceColumn()
@@ -283,6 +293,8 @@ protected function getPriceColumn()
283293
}
284294

285295
/**
296+
* Get link file element meta.
297+
*
286298
* @return array
287299
*/
288300
protected function getFileColumn()
@@ -347,6 +359,8 @@ protected function getFileColumn()
347359
}
348360

349361
/**
362+
* Get sample container meta.
363+
*
350364
* @return array
351365
*/
352366
protected function getSampleColumn()
@@ -407,6 +421,8 @@ protected function getSampleColumn()
407421
}
408422

409423
/**
424+
* Get link "is sharable" element meta.
425+
*
410426
* @return array
411427
*/
412428
protected function getShareableColumn()
@@ -425,6 +441,8 @@ protected function getShareableColumn()
425441
}
426442

427443
/**
444+
* Get link "max downloads" element meta.
445+
*
428446
* @return array
429447
*/
430448
protected function getMaxDownloadsColumn()

app/code/Magento/Downloadable/Ui/DataProvider/Product/Form/Modifier/Samples.php

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier;
78

8-
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
99
use Magento\Catalog\Model\Locator\LocatorInterface;
10+
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;
1011
use Magento\Downloadable\Model\Product\Type;
1112
use Magento\Downloadable\Model\Source\TypeUpload;
12-
use Magento\Store\Model\StoreManagerInterface;
1313
use Magento\Framework\Stdlib\ArrayManager;
14-
use Magento\Ui\Component\DynamicRows;
1514
use Magento\Framework\UrlInterface;
15+
use Magento\Store\Model\StoreManagerInterface;
1616
use Magento\Ui\Component\Container;
17+
use Magento\Ui\Component\DynamicRows;
1718
use Magento\Ui\Component\Form;
1819

1920
/**
20-
* Class adds a grid with samples
21+
* Class adds a grid with samples.
22+
*
2123
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2224
*/
2325
class Samples extends AbstractModifier
@@ -77,7 +79,7 @@ public function __construct(
7779
}
7880

7981
/**
80-
* {@inheritdoc}
82+
* @inheritdoc
8183
*/
8284
public function modifyData(array $data)
8385
{
@@ -90,7 +92,7 @@ public function modifyData(array $data)
9092
}
9193

9294
/**
93-
* {@inheritdoc}
95+
* @inheritdoc
9496
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
9597
*/
9698
public function modifyMeta(array $meta)
@@ -135,6 +137,8 @@ public function modifyMeta(array $meta)
135137
}
136138

137139
/**
140+
* Get sample rows meta.
141+
*
138142
* @return array
139143
*/
140144
protected function getDynamicRows()
@@ -155,6 +159,8 @@ protected function getDynamicRows()
155159
}
156160

157161
/**
162+
* Get single sample row meta.
163+
*
158164
* @return array
159165
*/
160166
protected function getRecord()
@@ -192,6 +198,8 @@ protected function getRecord()
192198
}
193199

194200
/**
201+
* Get sample title meta.
202+
*
195203
* @return array
196204
*/
197205
protected function getTitleColumn()
@@ -219,6 +227,8 @@ protected function getTitleColumn()
219227
}
220228

221229
/**
230+
* Get sample element meta.
231+
*
222232
* @return array
223233
*/
224234
protected function getSampleColumn()

0 commit comments

Comments
 (0)