Skip to content

Commit 7a5b266

Browse files
MC-19366: Fixes code style issues
1 parent 6f5d136 commit 7a5b266

10 files changed

+0
-16
lines changed

Magento2/Sniffs/GraphQL/AbstractGraphQLSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
abstract class AbstractGraphQLSniff implements Sniff
2121
{
22-
2322
/**
2423
* Defines the tokenizers that this sniff is using.
2524
*
@@ -48,5 +47,4 @@ protected function isSnakeCase($name)
4847
{
4948
return preg_match('/^[a-z][a-z0-9_]*$/', $name);
5049
}
51-
5250
}

Magento2/Sniffs/GraphQL/ValidArgumentNameSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
class ValidArgumentNameSniff extends AbstractGraphQLSniff
1414
{
15-
1615
/**
1716
* @inheritDoc
1817
*/
@@ -122,5 +121,4 @@ private function getCloseParenthesisPointer($stackPointer, array $tokens)
122121
//if we came here we could not find the closing parenthesis
123122
return false;
124123
}
125-
126124
}

Magento2/Sniffs/GraphQL/ValidFieldNameSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
class ValidFieldNameSniff extends AbstractGraphQLSniff
1414
{
15-
1615
/**
1716
* @inheritDoc
1817
*/
@@ -42,5 +41,4 @@ public function process(File $phpcsFile, $stackPtr)
4241
$phpcsFile->recordMetric($stackPtr, 'SnakeCase field name', 'yes');
4342
}
4443
}
45-
4644
}

Magento2/Sniffs/GraphQL/ValidTopLevelFieldNameSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
class ValidTopLevelFieldNameSniff extends AbstractGraphQLSniff
1414
{
15-
1615
/**
1716
* @inheritDoc
1817
*/
@@ -47,5 +46,4 @@ public function process(File $phpcsFile, $stackPtr)
4746
$phpcsFile->recordMetric($stackPtr, 'CamelCase top level field name', 'yes');
4847
}
4948
}
50-
5149
}

Magento2/Sniffs/GraphQL/ValidTypeNameSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
class ValidTypeNameSniff extends AbstractGraphQLSniff
1616
{
17-
1817
/**
1918
* @inheritDoc
2019
*/

Magento2/Tests/GraphQL/AbstractGraphQLSniffUnitTestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
abstract class AbstractGraphQLSniffUnitTestCase extends AbstractSniffUnitTest
1515
{
16-
1716
protected function setUp()
1817
{
1918
//let parent do its job
@@ -31,5 +30,4 @@ protected function setUp()
3130
//and write back to a global that is used in base class
3231
$GLOBALS['PHP_CODESNIFFER_CONFIG'] = $config;
3332
}
34-
3533
}

Magento2/Tests/GraphQL/ValidArgumentNameUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
class ValidArgumentNameUnitTest extends AbstractGraphQLSniffUnitTestCase
1212
{
13-
1413
/**
1514
* @inheritDoc
1615
*/

Magento2/Tests/GraphQL/ValidFieldNameUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
class ValidFieldNameUnitTest extends AbstractGraphQLSniffUnitTestCase
1212
{
13-
1413
/**
1514
* @inheritDoc
1615
*/

Magento2/Tests/GraphQL/ValidTopLevelFieldNameUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
class ValidTopLevelFieldNameUnitTest extends AbstractGraphQLSniffUnitTestCase
1212
{
13-
1413
/**
1514
* @inheritDoc
1615
*/
@@ -35,5 +34,4 @@ protected function getWarningList()
3534
{
3635
return [];
3736
}
38-
3937
}

Magento2/Tests/GraphQL/ValidTypeNameUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ protected function getWarningList()
5454
return [];
5555
}
5656
}
57-

0 commit comments

Comments
 (0)