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\Option;
use Bpost\BpostApiClient\Common\XmlHelper;
use DOMDocument;
use DOMElement;
use SimpleXMLElement;
/**
* bPost AutomaticSecondPresentation class
*
* @author Tijs Verkoyen <[email protected]>
* @version 3.0.0
* @copyright Copyright (c), Tijs Verkoyen. All rights reserved.
* @license BSD License
*/
class AutomaticSecondPresentation extends Option
{
* @throws \DOMException
public function toXML(DOMDocument $document, ?string $prefix = 'common'): DOMElement
return $document->createElement(
XmlHelper::getPrefixedTagName('automaticSecondPresentation', $prefix)
);
}
public static function createFromXML(SimpleXMLElement $xml): static
$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): static
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 static();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.