for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* citeproc-php
*
* @link http://github.com/seboettg/citeproc-php for the source repository
* @copyright Copyright (c) 2017 Sebastian Böttger.
* @license https://opensource.org/licenses/MIT
*/
namespace Seboettg\CiteProc\Style\Options;
use SimpleXMLElement;
/**
* Class GlobalOptionsTrait
* @package Seboettg\CiteProc\Style
* @author Sebastian Böttger <[email protected]>
class CitationOptions implements StyleOptions
{
* @param SimpleXMLElement $node
* @return CitationOptions
public static function factory(SimpleXMLElement $node): CitationOptions
$node
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 factory(/** @scrutinizer ignore-unused */ SimpleXMLElement $node): CitationOptions
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.