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.

Caller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 6 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: shirshov
5
 * Date: 11.11.15
6
 * Time: 16:24
7
 */
8
namespace OldTown\Workflow\Util;
9
10
use OldTown\PropertySet\PropertySetInterface;
11
use OldTown\Workflow\FunctionProviderInterface;
12
use OldTown\Workflow\TransientVars\TransientVarsInterface;
13
use OldTown\Workflow\WorkflowContextInterface;
14
15
/**
16
 * Sets the transient variable "caller" to the current user executing an action.
17
 */
18
class Caller implements FunctionProviderInterface
19
{
20
    /**
21
     * @param TransientVarsInterface $transientVars
22
     * @param array $args
23
     * @param PropertySetInterface $ps
24
     */
25
    public function execute(TransientVarsInterface $transientVars, array $args = [], PropertySetInterface $ps)
26
    {
27
        /** @var WorkflowContextInterface $context */
28
        $context = $transientVars['context'];
29
        $transientVars['caller'] = $context->getCaller();
30
    }
31
}
32