Visibility keyword before final or abstract keyword. (#814)

This commit is contained in:
Sandertv
2017-04-13 14:58:53 +02:00
committed by SOFe
parent 80292c6c7a
commit 1c7773c5f1
17 changed files with 37 additions and 37 deletions

View File

@ -916,7 +916,7 @@ class Item implements ItemIds, \JsonSerializable{
*
* @return bool
*/
public final function equals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
final public function equals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
if($this->id === $item->getId() and ($checkDamage === false or $this->getDamage() === $item->getDamage())){
if($checkCompound){
if($item->getCompoundTag() === $this->getCompoundTag()){
@ -942,7 +942,7 @@ class Item implements ItemIds, \JsonSerializable{
*
* @return bool
*/
public final function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
final public function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
return $this->equals($item, $checkDamage, $checkCompound);
}