This elseif statement is empty, and could be removed.
This check looks for the bodies of elseif statements that have no statements or where all statements
have been commented out. This may be the result of changes for debugging or the code
may simply be obsolete.
These elseif bodies can be removed. If you have an empty elseif but statements in the else
branch, consider inverting the condition.
Loading history...
51
52
} else {
53
$value = clone $value;
54
}
55
56
$this->{$property} = $value;
57
}
58
59
if ($this instanceOf IdentifiableEntityInterface) {
It seems like you call parent on a different method (__clone() instead of cloneProperties()). Are you sure this is correct? If so, you might want to change this to $this->__clone().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: