@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function __construct(string $name) |
| 19 | 19 | { |
| 20 | - if(empty($name)) { |
|
| 20 | + if (empty($name)) { |
|
| 21 | 21 | throw new EmptyValueException('Package name can\'t be empty'); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function getDownloadsLastDay() |
| 44 | 44 | { |
| 45 | 45 | $resource = $this->repository->getResourceByPath( |
| 46 | - '/downloads/point/last-day/' . $this->package |
|
| 46 | + '/downloads/point/last-day/'.$this->package |
|
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | return DownloadStatistics::fromJson($this->package, $resource); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function getDownloadsLastWeek() |
| 56 | 56 | { |
| 57 | 57 | $resource = $this->repository->getResourceByPath( |
| 58 | - '/downloads/point/last-week/' . $this->package |
|
| 58 | + '/downloads/point/last-week/'.$this->package |
|
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | return DownloadStatistics::fromJson($this->package, $resource); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | public function getDownloadsLastMonth() |
| 68 | 68 | { |
| 69 | 69 | $resource = $this->repository->getResourceByPath( |
| 70 | - '/downloads/point/last-month/' . $this->package |
|
| 70 | + '/downloads/point/last-month/'.$this->package |
|
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | 73 | return DownloadStatistics::fromJson($this->package, $resource); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function getDownloadsLastYear() |
| 80 | 80 | { |
| 81 | 81 | $resource = $this->repository->getResourceByPath( |
| 82 | - '/downloads/point/last-year/' . $this->package |
|
| 82 | + '/downloads/point/last-year/'.$this->package |
|
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | return DownloadStatistics::fromJson($this->package, $resource); |