ConfigProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 10
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\React\Socket\Container\Config;
6
7
use Antidot\React\Socket\Container\ReactSocketServerFactory;
8
use Antidot\React\Socket\ReactSocketServer;
9
10
class ConfigProvider
11
{
12
    public function __invoke(): array
13
    {
14
        return [
15
            'dependencies' => [
16
                'factories' => [
17
                    ReactSocketServer::class => ReactSocketServerFactory::class,
18
                ]
19
            ],
20
            'console' => [
21
                'commands' => [
22
                    ReactSocketServer::NAME => ReactSocketServer::class,
23
                ]
24
            ],
25
            'react_socket_server' => [
26
                'uri' => '0.0.0.0:8080',
27
            ]
28
        ];
29
    }
30
}
31