Completed
Push — master ( 5309e4...b64411 )
by Frederick
12s
created
src/StatFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Repositories/NpmRegistryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ValueObjects/Statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/ValueObjects/DownloadStatistics.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.