We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -446,20 +446,20 @@ |
||
446 | 446 | |
447 | 447 | if ($this->hasMines()) { |
448 | 448 | $thisMines = new SmrMines($this->getGameID(), $this->getMines()); |
449 | - $results['Results']['Mines'] =& $thisMines->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)], $minesAreAttacker); |
|
449 | + $results['Results']['Mines'] = & $thisMines->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)], $minesAreAttacker); |
|
450 | 450 | $results['TotalDamage'] += $results['Results']['Mines']['ActualDamage']['TotalDamage']; |
451 | 451 | } |
452 | 452 | |
453 | 453 | if ($this->hasCDs()) { |
454 | 454 | $thisCDs = new SmrCombatDrones($this->getGameID(), $this->getCDs()); |
455 | - $results['Results']['Drones'] =& $thisCDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
455 | + $results['Results']['Drones'] = & $thisCDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
456 | 456 | $results['TotalDamage'] += $results['Results']['Drones']['ActualDamage']['TotalDamage']; |
457 | 457 | } |
458 | 458 | |
459 | 459 | if (!$minesAreAttacker) { |
460 | 460 | if ($this->hasSDs()) { |
461 | 461 | $thisSDs = new SmrScoutDrones($this->getGameID(), $this->getSDs()); |
462 | - $results['Results']['Scouts'] =& $thisSDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
462 | + $results['Results']['Scouts'] = & $thisSDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
463 | 463 | $results['TotalDamage'] += $results['Results']['Scouts']['ActualDamage']['TotalDamage']; |
464 | 464 | } |
465 | 465 | } |
@@ -36,10 +36,10 @@ |
||
36 | 36 | * The factories themselves are able to use dependency injection as well, so we can provide the MySqlProperties |
37 | 37 | * typehint to make sure the container constructs an instance and provides it to the factory. |
38 | 38 | */ |
39 | - mysqli::class => function (MySqlProperties $mysqlProperties): mysqli { |
|
39 | + mysqli::class => function(MySqlProperties $mysqlProperties): mysqli { |
|
40 | 40 | return MySqlDatabase::mysqliFactory($mysqlProperties); |
41 | 41 | }, |
42 | - Dotenv::class => function (): Dotenv { |
|
42 | + Dotenv::class => function(): Dotenv { |
|
43 | 43 | return Dotenv::createArrayBacked(ROOT); |
44 | 44 | }, |
45 | 45 | // Explicitly name all classes that are autowired, so we can take advantage of |