| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait HasEpesiConnection |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Create atk4 model and assign default persistence |
||
| 9 | * |
||
| 10 | * @param array $defaults |
||
| 11 | * |
||
| 12 | * @return \atk4\data\Model |
||
| 13 | */ |
||
| 14 | public static function create($defaults = []) |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function migrate() |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the values of a given key. |
||
| 28 | * |
||
| 29 | * @param string|array $value |
||
| 30 | * @param string|null $key |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | public static function pluck($value, $key = null) |
||
| 36 | } |
||
| 37 | } |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.