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 — master ( dd4a42...344805 )
by Cees-Jan
06:54
created

MessageFactory::rpc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
1
<?php declare(strict_types=1);
2
3
namespace WyriHaximus\React\ChildProcess\Closure;
4
5
use Closure;
6
use SuperClosure\Serializer;
7
use WyriHaximus\React\ChildProcess\Messenger\Messages\Factory;
8
9
class MessageFactory
10
{
11
    const CLOSURE_EXECUTE = 'wyrihaximus.react.child-process.closure.child.execute';
12
13
    public static function rpc(Closure $closure, string $secret = null)
14
    {
15
        return Factory::rpc(
16
            self::CLOSURE_EXECUTE,
17
            [
18
                'closure' => (new Serializer(null, $secret))->serialize($closure),
19
            ]
20
        );
21
    }
22
}
23