mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
PhpStorm automated formatting (#11)
* PhpStorm reformatting * Tuned PhpStorm reformatting * Improved ItemIds and BlockIds formatting * Tuned more PhpStorm reformatting * Improved string concatenation
This commit is contained in:
@ -124,7 +124,7 @@ abstract class BaseInventory implements Inventory{
|
||||
$this->clear($i);
|
||||
}
|
||||
}else{
|
||||
if (!$this->setItem($i, $items[$i])){
|
||||
if(!$this->setItem($i, $items[$i])){
|
||||
$this->clear($i);
|
||||
}
|
||||
}
|
||||
@ -248,7 +248,7 @@ abstract class BaseInventory implements Inventory{
|
||||
$itemSlots = [];
|
||||
foreach($slots as $slot){
|
||||
if(!($slot instanceof Item)){
|
||||
throw new \InvalidArgumentException("Expected Item[], got ".gettype($slot));
|
||||
throw new \InvalidArgumentException("Expected Item[], got " . gettype($slot));
|
||||
}
|
||||
if($slot->getId() !== 0 and $slot->getCount() > 0){
|
||||
$itemSlots[] = clone $slot;
|
||||
@ -308,7 +308,7 @@ abstract class BaseInventory implements Inventory{
|
||||
$itemSlots = [];
|
||||
foreach($slots as $slot){
|
||||
if(!($slot instanceof Item)){
|
||||
throw new \InvalidArgumentException("Expected Item[], got ".gettype($slot));
|
||||
throw new \InvalidArgumentException("Expected Item[], got " . gettype($slot));
|
||||
}
|
||||
if($slot->getId() !== 0 and $slot->getCount() > 0){
|
||||
$itemSlots[] = clone $slot;
|
||||
|
Reference in New Issue
Block a user