| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function createdIssuesCount($projectId = 0) |
||
| 54 | { |
||
| 55 | $issues = $this->model->issuesCreatedBy(); |
||
| 56 | |||
| 57 | if (0 < $projectId) { |
||
| 58 | $issues = $issues->where('project_id', '=', $projectId); |
||
| 59 | } |
||
| 60 | $issues->where('status', '=', Project\Issue::STATUS_OPEN); |
||
| 61 | |||
| 62 | return $issues->count(); |
||
| 63 | } |
||
| 64 | |||
| 81 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..