Method actionIndex
has 49 lines of code (exceeds 25 allowed). Consider refactoring.
public function actionIndex($identifier, $token)
{
$machine = ProxyMachine::findOne(['identifier' => $identifier, 'is_deleted' => false]);
if (!$machine) {
Function actionIndex
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function actionIndex($identifier, $token)
{
$machine = ProxyMachine::findOne(['identifier' => $identifier, 'is_deleted' => false]);
if (!$machine) {
Function actionFileProvider
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
public function actionFileProvider($machine, $buildToken, $fileId)
{
$build = $this->ensureBuild($machine, $buildToken);
if ($build) {
Function actionImageProvider
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
public function actionImageProvider($machine, $buildToken, $imageId)
{
$build = $this->ensureBuild($machine, $buildToken);
if ($build) {
There are no issues that match your filters.