| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function __construct($tableName, Schema $dbSchema) { |
||
| 48 | $this->dbSchema = $dbSchema; |
||
| 49 | $this->tableName = $tableName; |
||
| 50 | |||
| 51 | $this->db = $this->dbSchema->getDb(); |
||
| 52 | |||
| 53 | $this->fields = $this->db->mysql_get_fields($this->tableName); |
||
| 54 | $this->indexes = $this->db->mysql_get_indexes($this->tableName); |
||
| 55 | $this->constraints = $this->db->mysql_get_constraints($this->tableName); |
||
| 56 | |||
| 57 | $this->fillFields(); |
||
| 58 | } |
||
| 59 | |||
| 70 |
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.