for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ups\Entity;
use DOMDocument;
use DOMElement;
use Ups\NodeInterface;
/**
* Class DeliveryConfirmation
* @package Ups\Entity
*/
class DeliveryConfirmation implements NodeInterface
{
* @var
*
* 1 => 'Delivery Confirmation Signature Required'
* 2 => 'Delivery Confirmation Adult Signature Required.'
private $dcisType = 1;
* @param null|DOMDocument $document
* @return DOMElement
public function toNode(DOMDocument $document = null)
if (null === $document) {
$document = new DOMDocument();
}
$node = $document->createElement('DeliveryConfirmation');
$node->appendChild($document->createElement('DCISType', $this->getDcisType()));
return $node;
* @param mixed $SaturdayPickup
$SaturdayPickup
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return $this
public function getDcisType()
return $this->dcisType;
* @param mixed $dcisTypeId
public function setDcisType($dcisTypeId)
$this->dcisType = $dcisTypeId;
return $this;
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.