Skip to content

Commit 59b324a

Browse files
committed
Fix static tests failures
1 parent 1db34cc commit 59b324a

File tree

6 files changed

+42
-12
lines changed

6 files changed

+42
-12
lines changed

app/code/Magento/Analytics/ReportXml/Query.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function __construct(
5353
}
5454

5555
/**
56+
* Returns query select
57+
*
5658
* @return Select
5759
*/
5860
public function getSelect()
@@ -61,6 +63,8 @@ public function getSelect()
6163
}
6264

6365
/**
66+
* Returns Connection name
67+
*
6468
* @return string
6569
*/
6670
public function getConnectionName()
@@ -69,6 +73,8 @@ public function getConnectionName()
6973
}
7074

7175
/**
76+
* Returns configuration
77+
*
7278
* @return array
7379
*/
7480
public function getConfig()
@@ -77,10 +83,7 @@ public function getConfig()
7783
}
7884

7985
/**
80-
* Specify data which should be serialized to JSON
81-
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
82-
* @return mixed data which can be serialized by <b>json_encode</b>,
83-
* which is a value of any type other than a resource.
86+
* @inheritDoc
8487
*/
8588
#[\ReturnTypeWillChange]
8689
public function jsonSerialize()

app/code/Magento/Backend/Model/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function getParentItems($itemId)
242242
*
243243
* @param \Magento\Backend\Model\Menu $menu
244244
* @param string $itemId
245-
* @param array &$parents
245+
* @param array $parents
246246
* @return bool
247247
*/
248248
protected function _findParentItems($menu, $itemId, &$parents)

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection/ProductLimitation.php

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
namespace Magento\Catalog\Model\ResourceModel\Product\Collection;
77

88
/**
9-
* Class ProductLimitation
10-
*
119
* @api
1210
* @since 101.0.0
1311
*/
@@ -31,6 +29,8 @@ class ProductLimitation implements \ArrayAccess
3129
private $productLimitationFilters = [];
3230

3331
/**
32+
* Check if the value is set for the given offset.
33+
*
3434
* @param string $offset
3535
* @return bool
3636
* @since 101.0.0
@@ -42,6 +42,8 @@ public function offsetExists($offset)
4242
}
4343

4444
/**
45+
* Get the value by provided offset.
46+
*
4547
* @param string $offset
4648
* @return mixed
4749
* @since 101.0.0
@@ -53,6 +55,8 @@ public function offsetGet($offset)
5355
}
5456

5557
/**
58+
* Set the given offset to filters.
59+
*
5660
* @param string $offset
5761
* @param mixed $value
5862
* @return void
@@ -65,6 +69,8 @@ public function offsetSet($offset, $value)
6569
}
6670

6771
/**
72+
* Unset the given offset from filters.
73+
*
6874
* @param string $offset
6975
* @return void
7076
* @since 101.0.0
@@ -76,6 +82,8 @@ public function offsetUnset($offset)
7682
}
7783

7884
/**
85+
* Returns Store ID.
86+
*
7987
* @return int|null
8088
* @since 101.0.0
8189
*/
@@ -85,6 +93,8 @@ public function getStoreId()
8593
}
8694

8795
/**
96+
* Returns category ID.
97+
*
8898
* @return int|null
8999
* @since 101.0.0
90100
*/
@@ -94,6 +104,8 @@ public function getCategoryId()
94104
}
95105

96106
/**
107+
* Returns is category an anchor.
108+
*
97109
* @return int|null
98110
* @since 101.0.0
99111
*/
@@ -103,6 +115,8 @@ public function getCategoryIsAnchor()
103115
}
104116

105117
/**
118+
* Returns visibility value.
119+
*
106120
* @return array|int|null
107121
* @since 101.0.0
108122
*/
@@ -112,6 +126,8 @@ public function getVisibility()
112126
}
113127

114128
/**
129+
* Returns website IDs.
130+
*
115131
* @return array|int|null
116132
* @since 101.0.0
117133
*/
@@ -121,6 +137,8 @@ public function getWebsiteIds()
121137
}
122138

123139
/**
140+
* Returns Store table.
141+
*
124142
* @return string|null
125143
* @since 101.0.0
126144
*/
@@ -141,13 +159,15 @@ public function isUsingPriceIndex()
141159
}
142160

143161
/**
162+
* Sets 'Use Price' index flaf.
163+
*
144164
* @param bool $value
145165
* @return void
146166
* @since 101.0.0
147167
*/
148168
public function setUsePriceIndex($value)
149169
{
150-
$this->offsetSet('use_price_index', (bool)$value);
170+
$this->offsetSet('use_price_index', (bool) $value);
151171
}
152172

153173
/**

app/code/Magento/ImportExport/Model/Import/AbstractSource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Magento\ImportExport\Model\Import\AbstractEntity;
99

10+
// phpcs:disable Magento2.Classes.AbstractApi
1011
/**
1112
* Data source with columns for Magento_ImportExport
1213
*

app/code/Magento/Ui/DataProvider/AbstractDataProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
99
use Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface;
1010

11-
// phpcs:disable Magento2.Classes.AbstractApi
11+
// phpcs:disable Magento2.Classes.AbstractApi
1212
/**
1313
* @inheritdoc
1414
*
@@ -162,6 +162,8 @@ public function getFieldMetaInfo($fieldSetName, $fieldName)
162162

163163
/**
164164
* @inheritdoc
165+
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
166+
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
165167
*/
166168
public function addFilter(\Magento\Framework\Api\Filter $filter)
167169
{

app/code/Magento/Ui/Model/Export/SearchResultIterator.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function __construct(
2222
}
2323

2424
/**
25+
* @inheritDoc
26+
*
2527
* @return array|mixed
2628
*/
2729
#[\ReturnTypeWillChange]
@@ -31,6 +33,8 @@ public function current()
3133
}
3234

3335
/**
36+
* @inheritDoc
37+
*
3438
* @return int|mixed
3539
*/
3640
#[\ReturnTypeWillChange]
@@ -40,7 +44,7 @@ public function key()
4044
}
4145

4246
/**
43-
* @return void
47+
* @inheritDoc
4448
*/
4549
#[\ReturnTypeWillChange]
4650
public function next()
@@ -49,7 +53,7 @@ public function next()
4953
}
5054

5155
/**
52-
* @return void
56+
* @inheritDoc
5357
*/
5458
#[\ReturnTypeWillChange]
5559
public function rewind()
@@ -58,7 +62,7 @@ public function rewind()
5862
}
5963

6064
/**
61-
* @return bool
65+
* @inheritDoc
6266
*/
6367
#[\ReturnTypeWillChange]
6468
public function valid()

0 commit comments

Comments
 (0)