RecaptchaManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A verify() 0 3 1
1
<?php
2
3
namespace ByTIC\GoogleRecaptcha;
4
5
use ByTIC\GoogleRecaptcha\Config\Traits\HasParamsTrait;
6
7
/**
8
 * Class RecaptchaManager
9
 * @package ByTIC\GoogleRecaptcha
10
 */
11
class RecaptchaManager
12
{
13
    use HasParamsTrait;
14
    use Manager\Traits\HasConfigTrait;
15
    use Manager\Traits\HasClientTrait;
16
17
    /**
18
     * @param $response
19
     * @return \ReCaptcha\Response
20
     */
21
    public function verify($response): \ReCaptcha\Response
22
    {
23
        return $this->getClient()->verify($response);
24
    }
25
}