Skip to content

Commit ebf76a7

Browse files
committed
formatting tidy
1 parent 4072acd commit ebf76a7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/entity/object/FireworkRocket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function getNetworkTypeId() : string{ return EntityIds::FIREWORKS_
6060
* @param FireworkRocketExplosion[] $explosions
6161
*/
6262
public function __construct(Location $location, int $maxFlightTimeTicks, array $explosions, ?CompoundTag $nbt = null){
63-
if ($maxFlightTimeTicks < 0) {
63+
if($maxFlightTimeTicks < 0){
6464
throw new \InvalidArgumentException("Life ticks cannot be negative");
6565
}
6666
$this->maxFlightTimeTicks = $maxFlightTimeTicks;
@@ -88,7 +88,7 @@ public function getMaxFlightTimeTicks() : int{
8888
* @return $this
8989
*/
9090
public function setMaxFlightTimeTicks(int $maxFlightTimeTicks) : self{
91-
if ($maxFlightTimeTicks < 0) {
91+
if($maxFlightTimeTicks < 0){
9292
throw new \InvalidArgumentException("Max flight time ticks cannot be negative");
9393
}
9494
$this->maxFlightTimeTicks = $maxFlightTimeTicks;

src/item/FireworkRocketExplosion.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function getFlashColor() : DyeColor{
148148
public function getColorMix() : Color{
149149
/** @var Color[] $colors */
150150
$colors = [];
151-
foreach ($this->colors as $dyeColor) {
151+
foreach($this->colors as $dyeColor){
152152
$colors[] = $dyeColor->getRgbValue();
153153
}
154154
return Color::mix(...$colors);
@@ -185,7 +185,6 @@ public function toCompoundTag() : CompoundTag{
185185
->setByteArray(self::TAG_COLORS, self::encodeColors($this->colors))
186186
->setByteArray(self::TAG_FADE_COLORS, self::encodeColors($this->fadeColors))
187187
->setByte(self::TAG_TWINKLE, $this->twinkle ? 1 : 0)
188-
->setByte(self::TAG_TRAIL, $this->trail ? 1 : 0)
189-
;
188+
->setByte(self::TAG_TRAIL, $this->trail ? 1 : 0);
190189
}
191190
}

0 commit comments

Comments
 (0)