Conditions | 4 |
Paths | 6 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php namespace Mascame\Artificer\Model; |
||
46 | public function setup($config) |
||
47 | { |
||
48 | if (isset($config['table'])) { |
||
49 | $this->table = $config['table']; |
||
50 | } else { |
||
51 | if (isset($config['model'])) { |
||
52 | $this->table = str_plural(snake_case($config['model'])); |
||
53 | } |
||
54 | } |
||
55 | |||
56 | if (isset($config['primaryKey'])) { |
||
57 | $this->primaryKey = $config['primaryKey']; |
||
58 | } |
||
59 | |||
60 | self::$fakeTable = $this->table; |
||
61 | self::$fakePrimaryKey = $this->primaryKey; |
||
62 | |||
63 | return $this; |
||
64 | } |
||
65 | } |
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.