for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Funivan\Cs\Report;
use Funivan\Cs\FileFinder\File;
use Funivan\Cs\FileTool\FileTool;
/**
* @author Ivan Shcherbak <[email protected]> 2016
*/
class Message {
* @var File
private $file;
* @var string
private $text;
* @var FileTool
private $tool;
* @var int|null
private $line;
* @param File $file
* @param FileTool $tool
* @param $text
* @param int|null $line
* @param int $level
$level
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 __construct(File $file, FileTool $tool, $text, $line) {
$this->file = $file;
$this->text = $text;
$this->tool = $tool;
$this->line = $line;
}
* @return string
public function getText() {
return $this->text;
* @return File
public function getFile() {
return $this->file;
* @return int|null
public function getLine() {
return $this->line;
* @return FileTool
public function getTool() {
return $this->tool;
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.