app/Repository/Traits/User/CountTrait.php 1 location
|
@@ 83-92 (lines=10) @@
|
| 80 |
|
* |
| 81 |
|
* @return Builder|Relations\BelongsToMany |
| 82 |
|
*/ |
| 83 |
|
public function projectsWithCountOpenIssues($status = Project::STATUS_OPEN) |
| 84 |
|
{ |
| 85 |
|
if ($this->permission('project-all')) { |
| 86 |
|
$project = new Project(); |
| 87 |
|
|
| 88 |
|
return $project->projectsWithOpenIssuesCount($status, Project::PRIVATE_ALL); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return $this->projects($status)->with('openIssuesCount'); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
abstract public function issuesCreatedBy(); |
| 95 |
|
|
app/Repository/User/CounterRepository.php 1 location
|
@@ 80-89 (lines=10) @@
|
| 77 |
|
* |
| 78 |
|
* @return Builder|Relations\BelongsToMany |
| 79 |
|
*/ |
| 80 |
|
public function projectsWithCountOpenIssues($status = Project::STATUS_OPEN) |
| 81 |
|
{ |
| 82 |
|
if ($this->permission('project-all')) { |
| 83 |
|
$project = new Project(); |
| 84 |
|
|
| 85 |
|
return $project->projectsWithOpenIssuesCount($status, Project::PRIVATE_ALL); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
return $this->projects($status)->with('countOpenIssues'); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* Count number of archived projects. |