Skip to content

Commit ba5ee6e

Browse files
committed
Fix static tests
1 parent bedbb37 commit ba5ee6e

File tree

3 files changed

+15
-10
lines changed
  • lib/internal/Magento/Framework/Setup/Declaration/Schema

3 files changed

+15
-10
lines changed

lib/internal/Magento/Framework/Setup/Declaration/Schema/Db/MySQL/Definition/Columns/Json.php

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

1313
/**
1414
* Process json data type.
15-
*
16-
* @inheritdoc
1715
*/
1816
class Json implements DbDefinitionProcessorInterface
1917
{
@@ -64,7 +62,10 @@ public function toDefinition(ElementInterface $column)
6462
}
6563

6664
/**
67-
* @inheritdoc
65+
* Returns an array of column definitions
66+
*
67+
* @param array $data
68+
* @return array
6869
*/
6970
public function fromDefinition(array $data)
7071
{

lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/Columns/Json.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Framework\Setup\Declaration\Schema\Dto\Columns;
78

89
use Magento\Framework\Setup\Declaration\Schema\Dto\Column;
910
use Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface;
1011
use Magento\Framework\Setup\Declaration\Schema\Dto\Table;
1112

1213
/**
14+
* Json
15+
*
1316
* Text column.
1417
* Declared in SQL, like: JSON
1518
*/
16-
class Json extends Column implements
17-
ElementDiffAwareInterface,
18-
ColumnNullableAwareInterface
19+
class Json extends Column implements ElementDiffAwareInterface, ColumnNullableAwareInterface
1920
{
20-
/**Json
21+
/**
2122
* @var bool
2223
*/
2324
private $nullable;

lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/Factories/Json.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Framework\Setup\Declaration\Schema\Dto\Factories;
78

89
use Magento\Framework\ObjectManagerInterface;
@@ -12,7 +13,6 @@
1213
*/
1314
class Json implements FactoryInterface
1415
{
15-
1616
/**
1717
* @var ObjectManagerInterface
1818
*/
@@ -27,7 +27,7 @@ class Json implements FactoryInterface
2727
* Constructor.
2828
*
2929
* @param ObjectManagerInterface $objectManager
30-
* @param string $className
30+
* @param string $className
3131
*/
3232
public function __construct(
3333
ObjectManagerInterface $objectManager,
@@ -38,7 +38,10 @@ public function __construct(
3838
}
3939

4040
/**
41-
* {@inheritdoc}
41+
* Create element using definition data array.
42+
*
43+
* @param array $data
44+
* @return \Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface|mixed
4245
*/
4346
public function create(array $data)
4447
{

0 commit comments

Comments
 (0)