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:
SOFe
2016-10-03 19:05:48 +08:00
committed by GitHub
parent 2b6d058760
commit 58ff381557
77 changed files with 266 additions and 264 deletions

View File

@ -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;