@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | protected function configureOptions(OptionsResolver $resolver): void { |
| 50 | 50 | parent::configureOptions($resolver); |
| 51 | - $allStats = ["baseDamage", "damageGrowth", "strikes", "hitRate",]; |
|
| 51 | + $allStats = ["baseDamage", "damageGrowth", "strikes", "hitRate", ]; |
|
| 52 | 52 | $resolver->setRequired($allStats); |
| 53 | 53 | $resolver->setAllowedTypes("baseDamage", "string"); |
| 54 | 54 | $resolver->setAllowedTypes("damageGrowth", "string"); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public const STAT_DODGE = "dodge"; |
| 33 | 33 | public const STAT_INITIATIVE = "initiative"; |
| 34 | 34 | /** @var string[] */ |
| 35 | - public const NO_STAT_TYPES = [self::TYPE_STUN, self::TYPE_POISON,]; |
|
| 35 | + public const NO_STAT_TYPES = [self::TYPE_STUN, self::TYPE_POISON, ]; |
|
| 36 | 36 | |
| 37 | 37 | /** @var string */ |
| 38 | 38 | protected $type; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | protected function configureOptions(OptionsResolver $resolver): void { |
| 68 | 68 | parent::configureOptions($resolver); |
| 69 | - $allStats = ["type", "stat", "value", "valueGrowth", "duration",]; |
|
| 69 | + $allStats = ["type", "stat", "value", "valueGrowth", "duration", ]; |
|
| 70 | 70 | $resolver->setRequired($allStats); |
| 71 | 71 | $resolver->setAllowedTypes("type", "string"); |
| 72 | 72 | $resolver->setAllowedValues("type", function(string $value) { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->onCombatEnd[] = [$this, "removeCombatEffects"]; |
| 79 | 79 | $this->onCombatEnd[] = [$this, "logCombatResult"]; |
| 80 | 80 | $this->onCombatEnd[] = [$this, "resetInitiative"]; |
| 81 | - $this->onRoundStart[] = [$this ,"recalculateStats"]; |
|
| 81 | + $this->onRoundStart[] = [$this, "recalculateStats"]; |
|
| 82 | 82 | $this->onRoundStart[] = [$this, "logRoundNumber"]; |
| 83 | 83 | $this->onRoundStart[] = [$this, "applyPoison"]; |
| 84 | 84 | $this->onRound[] = [$this, "mainStage"]; |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | require __DIR__ . "/../vendor/autoload.php"; |
| 5 | -Testbench\Bootstrap::setup(__DIR__ . '/_temp', function (\Nette\Configurator $configurator) { |
|
| 6 | - $configurator->addParameters(["appDir" => __DIR__,]); |
|
| 5 | +Testbench\Bootstrap::setup(__DIR__ . '/_temp', function(\Nette\Configurator $configurator) { |
|
| 6 | + $configurator->addParameters(["appDir" => __DIR__, ]); |
|
| 7 | 7 | $configurator->addConfig(__DIR__ . "/tests.neon"); |
| 8 | 8 | }); |
| 9 | 9 | ?> |
| 10 | 10 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace HeroesofAbenez\Combat; |
| 5 | 5 | |