for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php declare(strict_types=1);
namespace Smr\Pages\Player;
use AbstractSmrPlayer;
use Smr\Page\PlayerPageProcessor;
use Smr\Page\ReusableTrait;
use Smr\Session;
class WeaponDisplayToggleProcessor extends PlayerPageProcessor {
use ReusableTrait;
public function build(AbstractSmrPlayer $player): never {
$session = Session::getInstance();
$player->setDisplayWeapons(!$player->isDisplayWeapons());
// If this is called by ajax, we don't want to do any forwarding
if ($session->ajax) {
exit;
exit
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.
}
(new CurrentSector())->go();
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.