Test Failed
Push — master ( 6db55f...0b650e )
by Chris
21:02
created

ReCaptchaProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
namespace Leonidas\Framework\Site\Provider;
4
5
use Panamax\Factories\AbstractServiceFactory;
6
use Psr\Container\ContainerInterface;
7
use ReCaptcha\ReCaptcha;
8
9
class ReCaptchaProvider extends AbstractServiceFactory
10
{
11
    public function create(ContainerInterface $container, array $args = []): ReCaptcha
12
    {
13
        return new ReCaptcha($args['secret']);
14
    }
15
}
16