Avoid using static access to class '\QuackCompiler\Intl\Localization' in method 'unify'. Open
throw new TypeError(Localization::message('TYP480', [
$this, $other, $my_kind, $your_kind
]));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The variable $your_baby is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $my_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $my_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $your_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $my_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $your_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $your_baby is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $your_kind is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $my_baby is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $my_baby is not named in camelCase. Open
public function unify(TypeNode $other, &$context)
{
$my_kind = $this->getKind();
$your_kind = $other->getKind();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}