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::prepareArgs()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
ccs 8
cts 8
cp 1
rs 9.4285
cc 2
eloc 7
nc 2
nop 3
crap 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