Completed
Push — master ( 941bae...7099e1 )
by Vladymyr
01:43
created
src/Api/News.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function getAll(?int $page = null, ?string $fields = null): array
23 23
     {
24 24
         $query = $this->queryBuilder->buildQuery(compact('fields', 'page'));
25
-        $response = $this->client->getBaseClient()->get('/news' . $query);
25
+        $response = $this->client->getBaseClient()->get('/news'.$query);
26 26
 
27 27
         return $this->transformer->transform($response);
28 28
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         }
49 49
 
50 50
         $query = $this->queryBuilder->buildQuery($params);
51
-        $response = $this->client->getBaseClient()->get('/news/' . strtolower($assetKey) . $query);
51
+        $response = $this->client->getBaseClient()->get('/news/'.strtolower($assetKey).$query);
52 52
 
53 53
         return $this->transformer->transform($response);
54 54
     }
Please login to merge, or discard this patch.
src/Api/Query/QueryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
      */
17 17
     public function buildQuery(array $params): string
18 18
     {
19
-        $params = array_filter($params, function ($value) {
19
+        $params = array_filter($params, function($value) {
20 20
             return !is_null($value);
21 21
         });
22 22
 
23 23
         $query = http_build_query($params);
24 24
 
25
-        return empty($query) ? '' : '?' . $query;
25
+        return empty($query) ? '' : '?'.$query;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Api/Assets.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         }
44 44
 
45 45
         $query = $this->queryBuilder->buildQuery($params);
46
-        $response = $this->client->getBaseClient()->get('/assets' . $query);
46
+        $response = $this->client->getBaseClient()->get('/assets'.$query);
47 47
 
48 48
         return $this->transformer->transform($response);
49 49
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public function get(string $assetKey, ?string $fields = null): array
60 60
     {
61 61
         $query = $this->queryBuilder->buildQuery(compact('fields'));
62
-        $response = $this->client->getBaseClient()->get('/assets/' . strtolower($assetKey) . $query);
62
+        $response = $this->client->getBaseClient()->get('/assets/'.strtolower($assetKey).$query);
63 63
 
64 64
         return $this->transformer->transform($response);
65 65
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function getProfile(string $assetKey, ?string $fields = null): array
76 76
     {
77 77
         $query = $this->queryBuilder->buildQuery(compact('fields'));
78
-        $response = $this->client->getBaseClient()->get('/assets/' . strtolower($assetKey) . '/profile' . $query);
78
+        $response = $this->client->getBaseClient()->get('/assets/'.strtolower($assetKey).'/profile'.$query);
79 79
 
80 80
         return $this->transformer->transform($response);
81 81
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     public function getMetrics(string $assetKey, ?string $fields = null): array
92 92
     {
93 93
         $query = $this->queryBuilder->buildQuery(compact('fields'));
94
-        $response = $this->client->getBaseClient()->get('/assets/' . strtolower($assetKey) . '/metrics' . $query);
94
+        $response = $this->client->getBaseClient()->get('/assets/'.strtolower($assetKey).'/metrics'.$query);
95 95
 
96 96
         return $this->transformer->transform($response);
97 97
     }
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
     public function getMarketData(string $assetKey, ?string $fields = null): array
109 109
     {
110 110
         $query = $this->queryBuilder->buildQuery(compact('fields'));
111
-        $response = $this->client->getBaseClient()->get('/assets/' . strtolower($assetKey) . '/metrics'
112
-            . '/market-data' . $query);
111
+        $response = $this->client->getBaseClient()->get('/assets/'.strtolower($assetKey).'/metrics'
112
+            . '/market-data'.$query);
113 113
 
114 114
         return $this->transformer->transform($response);
115 115
     }
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
         ?string $format = null
145 145
     ): array {
146 146
         $query = $this->queryBuilder->buildQuery(compact('start', 'end', 'interval', 'columns', 'order', 'format'));
147
-        $response = $this->client->getBaseClient()->get('/assets/' . strtolower($assetKey) . '/metrics/'
148
-        . $metricID . '/time-series' . $query);
147
+        $response = $this->client->getBaseClient()->get('/assets/'.strtolower($assetKey).'/metrics/'
148
+        . $metricID.'/time-series'.$query);
149 149
 
150 150
         return $this->transformer->transform($response);
151 151
     }
Please login to merge, or discard this patch.
src/Api/Markets.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function getAll(?int $page = null, ?string $fields = null): array
23 23
     {
24 24
         $query = $this->queryBuilder->buildQuery(compact('fields', 'page'));
25
-        $response = $this->client->getBaseClient()->get('/markets' . $query);
25
+        $response = $this->client->getBaseClient()->get('/markets'.$query);
26 26
 
27 27
         return $this->transformer->transform($response);
28 28
     }
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         ?string $format = null
58 58
     ): array {
59 59
         $query = $this->queryBuilder->buildQuery(compact('start', 'end', 'interval', 'columns', 'order', 'format'));
60
-        $response = $this->client->getBaseClient()->get('/markets/' . strtolower($assetKey) . '/metrics/'
61
-            . $metricID . '/time-series' . $query);
60
+        $response = $this->client->getBaseClient()->get('/markets/'.strtolower($assetKey).'/metrics/'
61
+            . $metricID.'/time-series'.$query);
62 62
 
63 63
         return $this->transformer->transform($response);
64 64
     }
Please login to merge, or discard this patch.