File tree Expand file tree Collapse file tree 7 files changed +20
-23
lines changed
ReplacePregSplitNullLimit Expand file tree Collapse file tree 7 files changed +20
-23
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ jobs:
5454 run : vendor/bin/phpunit
5555
5656 - name : Run code style suite
57- run : vendor/bin/phpcs --standard=Magento2 Magento2/Helpers Magento2/Sniffs Magento2Framework/Sniffs
57+ run : vendor/bin/phpcs --standard=Magento2 Magento2/Helpers Magento2/Sniffs Magento2/Rector Magento2Framework/Sniffs
5858
5959 - name : Run framework suite
60- run : vendor/bin/phpcs --standard=Magento2Framework Magento2/Helpers Magento2/Sniffs Magento2Framework/Sniffs
60+ run : vendor/bin/phpcs --standard=Magento2Framework Magento2/Helpers Magento2/Sniffs Magento2/Rector Magento2Framework/Sniffs
6161 js :
6262 runs-on : ubuntu-latest
6363 name : Javascript tests
Original file line number Diff line number Diff line change 1111use PhpParser \Node \Expr \FuncCall ;
1212use PhpParser \Node \Scalar \LNumber ;
1313use Rector \Core \Rector \AbstractRector ;
14- use Symplify \RuleDocGenerator \Exception \PoorDocumentationException ;
1514use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
1615use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
1716
18- final class ReplaceMbStrposNullLimit extends AbstractRector
17+ class ReplaceMbStrposNullLimit extends AbstractRector
1918{
2019 /**
21- * @return array<class-string<Node>>
20+ * @inheritDoc
2221 */
2322 public function getNodeTypes (): array
2423 {
2524 return [FuncCall::class];
2625 }
2726
2827 /**
29- * @param FuncCall $node
28+ * @inheritDoc
3029 */
3130 public function refactor (Node $ node ): ?Node
3231 {
@@ -43,8 +42,7 @@ public function refactor(Node $node): ?Node
4342 }
4443
4544 /**
46- * @return RuleDefinition
47- * @throws PoorDocumentationException
45+ * @inheritDoc
4846 */
4947 public function getRuleDefinition (): RuleDefinition
5048 {
Original file line number Diff line number Diff line change 1111use PhpParser \Node \Expr \New_ ;
1212use PhpParser \Node \Scalar \String_ ;
1313use Rector \Core \Rector \AbstractRector ;
14- use Symplify \RuleDocGenerator \Exception \PoorDocumentationException ;
1514use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
1615use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
1716
18- final class ReplaceNewDateTimeNull extends AbstractRector
17+ class ReplaceNewDateTimeNull extends AbstractRector
1918{
2019 /**
21- * @return array<class-string<Node>>
20+ * @inheritDoc
2221 */
2322 public function getNodeTypes (): array
2423 {
2524 return [New_::class];
2625 }
2726
2827 /**
29- * @param New_ $node
28+ * @inheritDoc
3029 */
3130 public function refactor (Node $ node ): ?Node
3231 {
@@ -43,8 +42,7 @@ public function refactor(Node $node): ?Node
4342 }
4443
4544 /**
46- * @return RuleDefinition
47- * @throws PoorDocumentationException
45+ * @inheritDoc
4846 */
4947 public function getRuleDefinition (): RuleDefinition
5048 {
Original file line number Diff line number Diff line change 1111use PhpParser \Node \Expr \FuncCall ;
1212use PhpParser \Node \Scalar \LNumber ;
1313use Rector \Core \Rector \AbstractRector ;
14- use Symplify \RuleDocGenerator \Exception \PoorDocumentationException ;
1514use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
1615use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
1716
18- final class ReplacePregSplitNullLimit extends AbstractRector
17+ class ReplacePregSplitNullLimit extends AbstractRector
1918{
2019 /**
21- * @return array<class-string<Node>>
20+ * @inheritDoc
2221 */
2322 public function getNodeTypes (): array
2423 {
2524 return [FuncCall::class];
2625 }
2726
2827 /**
29- * @param FuncCall $node
28+ * @inheritDoc
3029 */
3130 public function refactor (Node $ node ): ?Node
3231 {
@@ -43,8 +42,7 @@ public function refactor(Node $node): ?Node
4342 }
4443
4544 /**
46- * @return RuleDefinition
47- * @throws PoorDocumentationException
45+ * @inheritDoc
4846 */
4947 public function getRuleDefinition (): RuleDefinition
5048 {
Original file line number Diff line number Diff line change 1111use Rector \Testing \PHPUnit \AbstractRectorTestCase ;
1212use Symplify \SmartFileSystem \SmartFileInfo ;
1313
14- final class ReplaceMbStrposNullLimitTest extends AbstractRectorTestCase
14+ class ReplaceMbStrposNullLimitTest extends AbstractRectorTestCase
1515{
1616 /**
1717 * @dataProvider provideData()
@@ -29,6 +29,9 @@ public function provideData(): Iterator
2929 return $ this ->yieldFilesFromDirectory (__DIR__ . '/Fixture ' );
3030 }
3131
32+ /**
33+ * @return string
34+ */
3235 public function provideConfigFilePath (): string
3336 {
3437 return __DIR__ . '/config/configured_rule.php ' ;
Original file line number Diff line number Diff line change 1111use Rector \Testing \PHPUnit \AbstractRectorTestCase ;
1212use Symplify \SmartFileSystem \SmartFileInfo ;
1313
14- final class ReplaceNewDateTimeNullTest extends AbstractRectorTestCase
14+ class ReplaceNewDateTimeNullTest extends AbstractRectorTestCase
1515{
1616 /**
1717 * @dataProvider provideData()
Original file line number Diff line number Diff line change 1111use Rector \Testing \PHPUnit \AbstractRectorTestCase ;
1212use Symplify \SmartFileSystem \SmartFileInfo ;
1313
14- final class ReplacePregSplitNullLimitTest extends AbstractRectorTestCase
14+ class ReplacePregSplitNullLimitTest extends AbstractRectorTestCase
1515{
1616 /**
1717 * @dataProvider provideData()
You can’t perform that action at this time.
0 commit comments