Issues (19)

src/Actions/ManagesTeams.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace TestMonitor\DevOps\Actions;
4
5
use TestMonitor\DevOps\Transforms\TransformsTeams;
6
7
trait ManagesTeams
8
{
9
    use TransformsTeams;
10
11
    /**
12
     * Get a list of teams for a project.
13
     *
14
     * @param string $projectId
15
     *
16
     * @throws \TestMonitor\DevOps\Exceptions\InvalidDataException
17
     *
18
     * @return \TestMonitor\DevOps\Resources\Team[]
19
     */
20 7
    public function teams($projectId)
21
    {
22 7
        $response = $this->get("_apis/projects/{$projectId}/teams");
0 ignored issues
show
It seems like get() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        /** @scrutinizer ignore-call */ 
23
        $response = $this->get("_apis/projects/{$projectId}/teams");
Loading history...
23
24 1
        return $this->fromDevOpsTeams($response['value']);
25
    }
26
}
27