Issues (1513)

lib/syncobjects/responsetrait.php (1 issue)

Severity
1
<?php
2
/*
3
 * SPDX-License-Identifier: AGPL-3.0-only
4
 * SPDX-FileCopyrightText: Copyright 2023 grommunio GmbH
5
 *
6
 * A trait used in response objects to ensure there is always an
7
 * serverid to be responded to the client.
8
 */
9
10
trait ResponseTrait {
11
	public $serverid;
12
	public $hasResponse;
13
14
	public function Check($logAsDebug = false) {
0 ignored issues
show
The parameter $logAsDebug is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

14
	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.

Loading history...
15
		return true;
16
	}
17
}
18