Code cleanup

This commit is contained in:
Shoghi Cervantes
2014-08-21 17:26:41 +02:00
parent e1ef86074e
commit db7222976e
105 changed files with 932 additions and 896 deletions

View File

@ -119,7 +119,7 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
*/
public function setDamage($damage, $type = self::MODIFIER_BASE){
if(!isset($this->modifiers[$type])){
throw new \UnexpectedValueException($type ." is not applicable to ".$this->getEntity());
throw new \UnexpectedValueException($type . " is not applicable to " . $this->getEntity());
}
$this->modifiers[$type] = $damage;
}
@ -141,6 +141,7 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
foreach($this->modifiers as $type => $d){
$damage += $d;
}
return $damage;
}