Skip to content

Add test and phpdoc #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Arrays/ArrayDeclarationUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ArrayDeclarationUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand Down Expand Up @@ -53,7 +53,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Classes/ClassDeclarationUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ClassDeclarationUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -23,7 +23,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Classes/PropertyDeclarationUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class PropertyDeclarationUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -25,7 +25,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Commenting/ClassCommentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ClassCommentUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -22,7 +22,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class DocCommentForbiddenTagsUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -27,7 +27,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class DocCommentGroupSameTypeUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -33,7 +33,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Commenting/DocCommentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class DocCommentUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -32,7 +32,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Commenting/FunctionCommentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class FunctionCommentUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -33,7 +33,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Commenting/VariableCommentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class VariableCommentUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -29,7 +29,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Errors/ExceptionMessageUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ExceptionMessageUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -22,7 +22,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Errors/UserDeprecatedUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class UserDeprecatedUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -23,7 +23,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class BlankLineBeforeReturnUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -24,7 +24,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ConditionalReturnOrThrowUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -24,7 +24,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Formatting/StrictComparisonUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class StrictComparisonUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -23,7 +23,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Formatting/YodaConditionUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class YodaConditionUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -34,7 +34,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Functions/ScopeOrderUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ScopeOrderUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -23,7 +23,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class AlphabeticallySortedUseUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -24,7 +24,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/Namespaces/UnusedUseUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class UnusedUseUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand Down Expand Up @@ -41,7 +41,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ValidClassNameUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand All @@ -27,7 +27,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function getErrorList($filename = '')
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ValidTypeHintUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
Expand Down Expand Up @@ -49,7 +49,7 @@ protected function getErrorList(): array
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
4 changes: 2 additions & 2 deletions SymfonyCustom/Tests/PHP/DiscourageEmptyUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
class DiscourageEmptyUnitTest extends AbstractSniffUnitTest
{
/**
* @return array
* @return array<int, int>
*/
protected function getErrorList(): array
{
return [];
}

/**
* @return array
* @return array<int, int>
*/
protected function getWarningList(): array
{
Expand Down
Loading