| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function __construct($tableName, Schema $dbSchema) { |
||
| 43 | $this->dbSchema = $dbSchema; |
||
| 44 | $this->tableName = $tableName; |
||
| 45 | |||
| 46 | $this->db = $this->dbSchema->getDb(); |
||
| 47 | |||
| 48 | $this->fields = $this->db->mysql_get_fields($this->tableName); |
||
| 49 | $this->indexes = $this->db->mysql_get_indexes($this->tableName); |
||
| 50 | $this->constraints = $this->db->mysql_get_constraints($this->tableName); |
||
| 51 | } |
||
| 52 | |||
| 54 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.