Completed
Pull Request — master (#129)
by
unknown
03:00
created

onPlayerManialinkPageAnswer()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 12
ccs 0
cts 7
cp 0
rs 9.4285
cc 3
eloc 6
nc 2
nop 4
crap 12
1
<?php
2
3
4
namespace eXpansion\Framework\Core\DataProviders;
5
6
7
class ManialinkPageAnswerDataProvider extends AbstractDataProvider
8
{
9
    /**
10
     * When a player uses an action dispatch information.
11
     *
12
     * @param $login
13
     * @param $actionId
14
     *
15
     */
16
    public function onPlayerManialinkPageAnswer($playerUid, $login, $actionId, array $entries)
0 ignored issues
show
Unused Code introduced by
The parameter $playerUid is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
        $entryValues = array();
19
        if (count($entries))
20
        {
21
            foreach ($entries as $entry) {
22
                $entryValues[$entry['Name']] = $entry['Value'];
23
            }
24
        }
25
26
        $this->dispatch(__FUNCTION__, [$login, $actionId, $entryValues]);
27
    }
28
}