Completed
Push — master ( ec5f3d...e4068a )
by Frederick
12s
created
src/StatFetcher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function getDownloadsLastDay(): DownloadStatistics
40 40
     {
41 41
         $resource = $this->repository->getResourceByPath(
42
-            '/downloads/point/last-day/' . $this->package
42
+            '/downloads/point/last-day/'.$this->package
43 43
         );
44 44
 
45 45
         return DownloadStatistics::fromJson($this->package, $resource);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function getDownloadsLastWeek(): DownloadStatistics
52 52
     {
53 53
         $resource = $this->repository->getResourceByPath(
54
-            '/downloads/point/last-week/' . $this->package
54
+            '/downloads/point/last-week/'.$this->package
55 55
         );
56 56
 
57 57
         return DownloadStatistics::fromJson($this->package, $resource);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function getDownloadsLastMonth(): DownloadStatistics
64 64
     {
65 65
         $resource = $this->repository->getResourceByPath(
66
-            '/downloads/point/last-month/' . $this->package
66
+            '/downloads/point/last-month/'.$this->package
67 67
         );
68 68
 
69 69
         return DownloadStatistics::fromJson($this->package, $resource);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function getDownloadsLastYear(): DownloadStatistics
76 76
     {
77 77
         $resource = $this->repository->getResourceByPath(
78
-            '/downloads/point/last-year/' . $this->package
78
+            '/downloads/point/last-year/'.$this->package
79 79
         );
80 80
 
81 81
         return DownloadStatistics::fromJson($this->package, $resource);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         DateChecker::validateDateRange($start, $now);
93 93
 
94 94
         $resource = $this->repository->getResourceByPath(
95
-            '/downloads/point/' . $start->format('Y-m-d') . ':' . $now->format('Y-m-d') . '/' . $this->package
95
+            '/downloads/point/'.$start->format('Y-m-d').':'.$now->format('Y-m-d').'/'.$this->package
96 96
         );
97 97
 
98 98
         return DownloadStatistics::fromJson($this->package, $resource);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         DateChecker::validateDateRange($start, $end);
110 110
 
111 111
         $resource = $this->repository->getResourceByPath(
112
-            '/downloads/point/' . $start->format('Y-m-d') . ':' . $end->format('Y-m-d') . '/' . $this->package
112
+            '/downloads/point/'.$start->format('Y-m-d').':'.$end->format('Y-m-d').'/'.$this->package
113 113
         );
114 114
 
115 115
         return DownloadStatistics::fromJson($this->package, $resource);
Please login to merge, or discard this patch.