class Pum in Coder 8.3
Same name in this branch
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Test/Classes/UnusedUseStatementUnitTest.inc \MyNamespace\Depth\Pum
- 8.3.x tests/Drupal/Classes/UnusedUseStatementUnitTest.inc \MyNamespace\Depth\Pum
Bla.
Hierarchy
- class \MyNamespace\Depth\Pum uses \Test\TraitTest, \Test\AnotherTrait
Expanded class hierarchy of Pum
File
- tests/
Drupal/ Classes/ UnusedUseStatementUnitTest.inc, line 28
Namespace
MyNamespace\DepthView source
class Pum {
use TraitTest;
use Test\AnotherTrait;
/**
* This data type should be fixed to be fully qualified.
*
* @var VarName
*/
protected $x;
/**
* Aliased type that is otherwise unused.
*
* @var AliasVarName2
*/
protected $y;
/**
* Description.
*/
protected function test(ActuallyUsed $x, UsedOtherName $y) {
}
/**
* Description.
*/
protected function test2(\Thing\NotUsed $x) {
}
/**
* PHP is not case sensitive.
*/
protected function test3(MyURLHelper $x) {
}
/**
* Don't need to use classes in the same namespace.
*/
protected function test4(UnusedSameNamespace $x, AnotherUnusedSameNamespace $y) {
}
/**
* Renamed class from same namespace.
*/
protected function test5(CoreSomeClass $x) {
}
/**
* Inline var declarations should also get fixed to the full namespace.
*/
protected function test6($x) {
/** @var VarName $y */
$y = $x['test'];
/** @var AliasVarName2 $z */
$z = $x['test2'];
return $y;
}
/**
* Return declarations should also get fixed to the full namespace.
*
* @param array $x
* Some array.
*
* @return VarName
* The variable.
*/
protected function test7($x) {
return $x['test'];
}
/**
* Call a method here that has the same name as a class name.
*/
protected function test8() {
$this
->sameAsAMethodName();
}
/**
* Method definition has same name as class name.
*/
protected function test9() {
}
/**
* Static method calls should not be confused with class names.
*/
protected function test10() {
Something::test10();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Pum:: |
protected | property | This data type should be fixed to be fully qualified. | |
Pum:: |
protected | property | Aliased type that is otherwise unused. | |
Pum:: |
protected | function | Description. | |
Pum:: |
protected | function | Static method calls should not be confused with class names. | |
Pum:: |
protected | function | Description. | |
Pum:: |
protected | function | PHP is not case sensitive. | |
Pum:: |
protected | function | Don't need to use classes in the same namespace. | |
Pum:: |
protected | function | Renamed class from same namespace. | |
Pum:: |
protected | function | Inline var declarations should also get fixed to the full namespace. | |
Pum:: |
protected | function | Return declarations should also get fixed to the full namespace. | |
Pum:: |
protected | function | Call a method here that has the same name as a class name. | |
Pum:: |
protected | function | Method definition has same name as class name. |