@@ -36,7 +36,7 @@ |
||
36 | 36 | public function getDownloadsLastDay() |
37 | 37 | { |
38 | 38 | $resource = $this->repository->getResourceByPath( |
39 | - '/downloads/point/last-day/' . $this->package |
|
39 | + '/downloads/point/last-day/'.$this->package |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | $resourceArray = json_decode($resource); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function getResourceByPath(string $path): string |
24 | 24 | { |
25 | - $resource = $this->client->get($path); |
|
25 | + $resource = $this->client->get($path); |
|
26 | 26 | |
27 | 27 | return $resource->getBody()->getContents(); |
28 | 28 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function getPackageName(): string |
26 | 26 | { |
27 | - return (string)$this->package; |
|
27 | + return (string) $this->package; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -26,7 +26,6 @@ |
||
26 | 26 | * @param int $downloads |
27 | 27 | * @param DateTimeImmutable $startDate |
28 | 28 | * @param DateTimeImmutable $endDate |
29 | - |
|
30 | 29 | */ |
31 | 30 | public function __construct( |
32 | 31 | Package $package, |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function __toString() |
47 | 47 | { |
48 | - return (string)$this->downloads; |
|
48 | + return (string) $this->downloads; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |