class Test in Coder 8.3.x
Same name in this branch
- 8.3.x tests/DrupalPractice/Objects/UnusedPrivateMethodUnitTest.inc \Test
- 8.3.x tests/Drupal/Semantics/FunctionTUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/DocCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/InlineCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/HookCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test
- 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test
- 8.3.x tests/Drupal/Commenting/DocCommentAlignmentUnitTest.inc \Test
- 8.3.x tests/Drupal/Classes/PropertyDeclarationUnitTest.inc \Test
- 8.3.x tests/Drupal/NamingConventions/ValidFunctionNameUnitTest.inc \Test
Same name and namespace in other branches
Test.
Hierarchy
- class \Foo\Bar\Test
Expanded class hierarchy of Test
12 string references to 'Test'
- DefaultValueSanitizeUnitTest.inc in tests/
DrupalPractice/ FunctionCalls/ DefaultValueSanitizeUnitTest.inc - drupal8.info.yml in tests/
Drupal/ Classes/ drupal8/ drupal8.info.yml - tests/Drupal/Classes/drupal8/drupal8.info.yml
- drupal8.info.yml in tests/
Drupal/ good/ drupal8/ drupal8.info.yml - tests/Drupal/good/drupal8/drupal8.info.yml
- ExampleClass::test4 in tests/
DrupalPractice/ Objects/ drupal8/ ExampleClass.php - t() should not be used, instead we should use the StringTranslationTrait.
- ExampleClassWithDependencyInjection::test4 in tests/
DrupalPractice/ Objects/ drupal8/ ExampleClassWithDependencyInjection.php - t() should not be used, instead we should use the StringTranslationTrait.
File
- tests/
Drupal/ Commenting/ DataTypeNamespaceUnitTest.inc, line 10
Namespace
Foo\BarView source
class Test {
/**
* Param and Return data types should be fully namespaced.
*
* @param TestClass $y
* Some description.
*
* @return TestClass
* Yep.
*
* @throws TestClass
*/
public function test1(TestClass $y) {
return $y;
}
/**
* Inline var data types should be converted.
*/
public function test2(array $x) {
/** @var TestClass $y */
$y = $x['test'];
return $y;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Test:: |
public | function | Param and Return data types should be fully namespaced. | |
Test:: |
public | function | Inline var data types should be converted. |