for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestMonitor\DevOps\Actions;
use TestMonitor\DevOps\Transforms\TransformsTeams;
trait ManagesTeams
{
use TransformsTeams;
/**
* Get a list of teams for a project.
*
* @param string $projectId
* @throws \TestMonitor\DevOps\Exceptions\InvalidDataException
* @return \TestMonitor\DevOps\Resources\Team[]
*/
public function teams($projectId)
$response = $this->get("_apis/projects/{$projectId}/teams");
get()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
return $this->fromDevOpsTeams($response['value']);
}