for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* SPDX-License-Identifier: AGPL-3.0-only
* SPDX-FileCopyrightText: Copyright 2023 grommunio GmbH
*
* A trait used in response objects to ensure there is always an
* serverid to be responded to the client.
*/
trait ResponseTrait {
public $serverid;
public $hasResponse;
public function Check($logAsDebug = false) {
$logAsDebug
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function Check(/** @scrutinizer ignore-unused */ $logAsDebug = false) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return true;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.