for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Illuminate\Notifications\Messages;
class NexmoMessage
{
/**
* The message content.
*
* @var string
*/
public $content;
* The phone number the message should be sent from.
public $from;
* Create a new message instance.
* @param string $message
$message
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 void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($content = '')
$this->content = $content;
}
* Set the message content.
* @param string $content
* @return $this
public function content($content)
return $this;
* Set the phone number the message should be sent from.
* @param string $number
$number
public function from($from)
$this->from = $from;
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.