for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Win\Alert;
use Win\Mvc\Block;
/**
* Alertas
* São mensagens exibidas na tela
*/
abstract class Alert {
public $type;
public $message;
* Cria uma nova mensagem
* @param string $type
* @param string $message
public function __construct($type, $message) {
$this->type = $type;
$this->message = $message;
Session::addAlert($this);
}
public function __toString() {
return $this->message;
* Carrega o html do alerta
* @param Alert $alert
$alert
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.
public function toHtml() {
$block = new Block('layout/html/alert', ['alert' => $this]);
$block->toHtml();
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.