Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 1 | public function __invoke( |
|
28 | LicenseDataProviderInterface $licenseDataProvider, |
||
29 | array $queryParams, |
||
30 | array $args |
||
31 | ): ResponderInterface { |
||
32 | 1 | return $this->responderFactory->createLicenseResponder([ |
|
33 | 1 | 'valid' => $licenseDataProvider->isValid() ? 'true' : 'false', |
|
34 | 1 | 'email' => $licenseDataProvider->getEmailAddress(), |
|
35 | 1 | 'licenseExpires' => $licenseDataProvider->getExpiryDate()->format(DATE_ATOM), |
|
36 | 1 | ]); |
|
39 |