GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — dev ( 37e84b...c7bcbf )
by Андрей
06:51
created

Args   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareArgs() 0 11 2
1
<?php
2
/**
3
 * @link https://github.com/old-town/old-town-workflow
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\Engine;
7
8
use OldTown\PropertySet\PropertySetInterface;
9
use OldTown\Workflow\TransientVars\TransientVarsInterface;
10
11
12
/**
13
 * Class Args
14
 *
15
 * @package OldTown\Workflow\Engine
16
 */
17
class Args extends AbstractEngine implements ArgsInterface
18
{
19
    /**
20
     * Подготавливает аргументы.
21
     *
22
     * @param array                  $argsOriginal
23
     *
24
     * @param TransientVarsInterface $transientVars
25
     * @param PropertySetInterface   $ps
26
     *
27
     * @return array
28
     */
29 17
    public function prepareArgs(array $argsOriginal = [], TransientVarsInterface $transientVars, PropertySetInterface $ps)
30
    {
31 17
        $args = [];
32 17
        $variableResolver = $this->getWorkflowManager()->getConfiguration()->getVariableResolver();
33 17
        foreach ($argsOriginal as $key => $value) {
34 17
            $translateValue = $variableResolver->translateVariables($value, $transientVars, $ps);
35 17
            $args[$key] = $translateValue;
36 17
        }
37
38 17
        return $args;
39
    }
40
}
41