Skip to content

Commit 706f716

Browse files
committed
ENGCOM-3652: Static test fix.
1 parent 4e18e78 commit 706f716

36 files changed

+110
-87
lines changed

app/code/Magento/Indexer/Model/Message/Invalid.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace Magento\Indexer\Model\Message;
88

9+
/**
10+
* Message about invalid indexers.
11+
*/
912
class Invalid implements \Magento\Framework\Notification\MessageInterface
1013
{
1114
/**

app/code/Magento/Payment/Model/Method/AbstractMethod.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected function initializeData($data = [])
258258
}
259259

260260
/**
261-
* {inheritdoc}
261+
* @inheritdoc
262262
* @deprecated 100.2.0
263263
*/
264264
public function setStore($storeId)
@@ -267,7 +267,7 @@ public function setStore($storeId)
267267
}
268268

269269
/**
270-
* {inheritdoc}
270+
* @inheritdoc
271271
* @deprecated 100.2.0
272272
*/
273273
public function getStore()
@@ -360,7 +360,8 @@ public function canRefundPartialPerInvoice()
360360
}
361361

362362
/**
363-
* Check void availability
363+
* Check void availability.
364+
*
364365
* @return bool
365366
* @internal param \Magento\Framework\DataObject $payment
366367
* @api
@@ -372,8 +373,9 @@ public function canVoid()
372373
}
373374

374375
/**
375-
* Using internal pages for input payment data
376-
* Can be used in admin
376+
* Using internal pages for input payment data.
377+
*
378+
* Can be used in admin.
377379
*
378380
* @return bool
379381
* @deprecated 100.2.0
@@ -715,7 +717,8 @@ public function void(\Magento\Payment\Model\InfoInterface $payment)
715717
}
716718

717719
/**
718-
* Whether this method can accept or deny payment
720+
* Whether this method can accept or deny payment.
721+
*
719722
* @return bool
720723
* @api
721724
* @deprecated 100.2.0
@@ -867,8 +870,7 @@ public function isActive($storeId = null)
867870
}
868871

869872
/**
870-
* Method that will be executed instead of authorize or capture
871-
* if flag isInitializeNeeded set to true
873+
* Method that will be executed instead of authorize or capture if flag isInitializeNeeded set to true.
872874
*
873875
* @param string $paymentAction
874876
* @param object $stateObject
@@ -884,8 +886,9 @@ public function initialize($paymentAction, $stateObject)
884886
}
885887

886888
/**
887-
* Get config payment action url
888-
* Used to universalize payment actions when processing payment place
889+
* Get config payment action url.
890+
*
891+
* Used to universalize payment actions when processing payment place.
889892
*
890893
* @return string
891894
* @api

app/code/Magento/Quote/Api/CartRepositoryInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function get($cartId);
2828
* included. See https://devdocs.magento.com/codelinks/attributes.html#CartRepositoryInterface to determine
2929
* which call to use to get detailed information about all attributes for an object.
3030
*
31-
*
3231
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
3332
* @return \Magento\Quote\Api\Data\CartSearchResultsInterface
3433
*/

dev/tests/static/framework/Magento/Sniffs/Annotation/AnnotationFormatValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ private function validateLongDescriptionFormat(
168168
) : void {
169169
$tokens = $phpcsFile->getTokens();
170170
$longPtr = $phpcsFile->findNext($emptyTypeTokens, $shortPtrEnd + 1, $commentEndPtr - 1, true);
171-
if (strtolower($tokens[$longPtr]['content']) === '{@inheritdoc}') {
172-
$error = '{@inheritdoc} imports only short description, annotation must have long description';
171+
if (strtolower($tokens[$longPtr]['content']) === '@inheritdoc') {
172+
$error = '@inheritdoc imports only short description, annotation must have long description';
173173
$phpcsFile->addFixableError($error, $longPtr, 'MethodAnnotation');
174174
}
175175
if ($longPtr !== false && $tokens[$longPtr]['code'] === T_DOC_COMMENT_STRING) {

dev/tests/static/framework/Magento/Sniffs/Arrays/ShortArraySyntaxSniff.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@
55
*/
66
namespace Magento\Sniffs\Arrays;
77

8-
use PHP_CodeSniffer\Sniffs\Sniff;
98
use PHP_CodeSniffer\Files\File;
9+
use PHP_CodeSniffer\Sniffs\Sniff;
1010

11+
/**
12+
* Validate short array syntax is used.
13+
*/
1114
class ShortArraySyntaxSniff implements Sniff
1215
{
1316
/**
14-
* {@inheritdoc}
17+
* @inheritdoc
1518
*/
1619
public function register()
1720
{
1821
return [T_ARRAY];
1922
}
2023

2124
/**
22-
* {@inheritdoc}
25+
* @inheritdoc
2326
*/
2427
public function process(File $sourceFile, $stackPtr)
2528
{

dev/tests/static/framework/Magento/Sniffs/EchoTags/ShortEchoSyntaxSniff.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
use PHP_CodeSniffer\Files\File;
1010
use PHP_CodeSniffer\Util\Tokens;
1111

12+
/**
13+
* Validate short echo syntax is used.
14+
*/
1215
class ShortEchoSyntaxSniff implements Sniff
1316
{
1417
/**
15-
* {@inheritdoc}
18+
* @inheritdoc
1619
*/
1720
public function register()
1821
{
1922
return [T_OPEN_TAG];
2023
}
2124

2225
/**
23-
* {@inheritdoc}
26+
* @inheritdoc
2427
*/
2528
public function process(File $phpcsFile, $stackPtr)
2629
{

dev/tests/static/framework/Magento/Sniffs/Files/LineLengthSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LineLengthSniff extends FilesLineLengthSniff
2020
protected $previousLineContent = '';
2121

2222
/**
23-
* {@inheritdoc}
23+
* @inheritdoc
2424
*/
2525
protected function checkLineLength($phpcsFile, $stackPtr, $lineContent)
2626
{

dev/tests/static/framework/Magento/Sniffs/LanguageConstructs/LanguageConstructsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class LanguageConstructsSniff implements Sniff
4848
protected $directOutput = 'DirectOutput';
4949

5050
/**
51-
* {@inheritdoc}
51+
* @inheritdoc
5252
*/
5353
public function register()
5454
{
@@ -60,7 +60,7 @@ public function register()
6060
}
6161

6262
/**
63-
* {@inheritdoc}
63+
* @inheritdoc
6464
*/
6565
public function process(File $phpcsFile, $stackPtr)
6666
{

dev/tests/static/framework/Magento/Sniffs/Less/BracesFormattingSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class BracesFormattingSniff implements Sniff
2727
public $supportedTokenizers = [TokenizerSymbolsInterface::TOKENIZER_CSS];
2828

2929
/**
30-
* {@inheritdoc}
30+
* @inheritdoc
3131
*/
3232
public function register()
3333
{
3434
return [T_OPEN_CURLY_BRACKET, T_CLOSE_CURLY_BRACKET];
3535
}
3636

3737
/**
38-
* {@inheritdoc}
38+
* @inheritdoc
3939
*/
4040
public function process(File $phpcsFile, $stackPtr)
4141
{

dev/tests/static/framework/Magento/Sniffs/Less/ClassNamingSniff.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* - words should be separated with dash '-';
1919
*
2020
* @link https://devdocs.magento.com/guides/v2.0/coding-standards/code-standard-less.html#standard-classes
21-
*
2221
*/
2322
class ClassNamingSniff implements Sniff
2423
{
@@ -35,15 +34,15 @@ class ClassNamingSniff implements Sniff
3534
public $supportedTokenizers = [TokenizerSymbolsInterface::TOKENIZER_CSS];
3635

3736
/**
38-
* {@inheritdoc}
37+
* @inheritdoc
3938
*/
4039
public function register()
4140
{
4241
return [T_STRING_CONCAT];
4342
}
4443

4544
/**
46-
* {@inheritdoc}
45+
* @inheritdoc
4746
*/
4847
public function process(File $phpcsFile, $stackPtr)
4948
{

0 commit comments

Comments
 (0)