for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OhDear\PhpSdk\Actions;
use OhDear\PhpSdk\Resources\Check;
trait ManagesChecks
{
public function enableCheck(int $checkId): Check
$checkAttributes = $this->post("checks/{$checkId}/enable");
post()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
return new Check($checkAttributes, $this);
}
public function disableCheck(int $checkId): Check
$checkAttributes = $this->post("checks/{$checkId}/disable");
public function requestRun(int $checkId): Check
$checkAttributes = $this->post("checks/{$checkId}/request-run");
public function snooze(int $checkId, int $minutes)
$checkAttributes = $this->post("checks/{$checkId}/snooze", [
'minutes' => $minutes,
]);
public function unsnooze(int $checkId): Check
$checkAttributes = $this->post("checks/{$checkId}/unsnooze");