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\TransformsStates;
trait ManagesStates
{
use TransformsStates;
/**
* Get a list of states for a project and work item type.
*
* @param string $projectId
* @param string $workItemType
* @throws \TestMonitor\DevOps\Exceptions\InvalidDataException
* @return \TestMonitor\DevOps\Resources\States[]
*/
public function states($projectId, $workItemType)
$response = $this->get("{$projectId}/_apis/wit/workitemtypes/{$workItemType}/states");
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->fromDevOpsStates($response['value']);
}