for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Bpost\BpostApiClient\Bpost\Order\Box\National;
use Bpost\BpostApiClient\Common\ComplexAttribute;
use Bpost\BpostApiClient\Common\XmlHelper;
use DOMDocument;
use DOMElement;
use SimpleXMLElement;
class ParcelLockerReducedMobilityZone extends ComplexAttribute
{
public function toXML(DOMDocument $document, ?string $prefix = null): DOMElement
return $document->createElement(XmlHelper::getPrefixedTagName('reducedMobilityZone', $prefix));
}
public static function createFromXML(SimpleXMLElement $xml): self
$xml
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function createFromXML(/** @scrutinizer ignore-unused */ SimpleXMLElement $xml): self
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new self();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.