Completed
Push — main ( f9c7f4...aea9b1 )
by Emmanuel
06:11
created

GetTimezone   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTimezones() 0 7 1
1
<?php
2
3
namespace Epmnzava\Eticket\Actions;
4
5
use GuzzleHttp\Client;
6
use GuzzleHttp\Psr7\Response;
7
8
class GetTimezone
9
{
10
11
    public function getTimezones() : Response
12
    {
13
        $client=new Client();
14
        $response = $client->request('GET', 'http://worldtimeapi.org/api/timezone');
15
        
16
        return $response;
17
    }
18
19
}
20