@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function get($endpoint) |
50 | 50 | { |
51 | - $endpoint = "\\Choccybiccy\\HumanApi\\Endpoint\\" . ucfirst($endpoint); |
|
51 | + $endpoint = "\\Choccybiccy\\HumanApi\\Endpoint\\".ucfirst($endpoint); |
|
52 | 52 | if (class_exists($endpoint)) { |
53 | 53 | /** @var Endpoint $endpoint */ |
54 | 54 | $endpoint = new $endpoint; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $parts = array_merge( |
61 | 61 | array( |
62 | 62 | $this->apiUrl, |
63 | - "v" . $this->apiVersion, |
|
63 | + "v".$this->apiVersion, |
|
64 | 64 | $api, |
65 | 65 | ), |
66 | 66 | $parts |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected $type = "medical/test_results"; |
16 | 16 | |
17 | - function readCollection(){ |
|
17 | + function readCollection() { |
|
18 | 18 | |
19 | 19 | } |
20 | 20 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | protected $type = "medical/medications"; |
17 | 17 | |
18 | - function readCollection(){ |
|
18 | + function readCollection() { |
|
19 | 19 | |
20 | 20 | } |
21 | 21 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | |
74 | 74 | if (!in_array($endpoint, $this->supportedBatchEndpoints)) { |
75 | - throw new UnsupportedBatchEndpointException("Batch endpoint '" . $endpoint . "' is not supported"); |
|
75 | + throw new UnsupportedBatchEndpointException("Batch endpoint '".$endpoint."' is not supported"); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $response = $this->get( |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ) |
87 | 87 | ); |
88 | 88 | |
89 | - return $this->buildCollection(json_decode($response->getBody(),true)); |
|
89 | + return $this->buildCollection(json_decode($response->getBody(), true)); |
|
90 | 90 | |
91 | 91 | } |
92 | 92 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | ) |
109 | 109 | ); |
110 | 110 | |
111 | - return $this->buildCollection(json_decode($response->getBody(),true)); |
|
111 | + return $this->buildCollection(json_decode($response->getBody(), true)); |
|
112 | 112 | |
113 | 113 | } |
114 | 114 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | ) |
132 | 132 | ); |
133 | 133 | |
134 | - return new Model(json_decode($response->getBody(),true), $this); |
|
134 | + return new Model(json_decode($response->getBody(), true), $this); |
|
135 | 135 | |
136 | 136 | } |
137 | 137 |
@@ -118,7 +118,7 @@ |
||
118 | 118 | ) |
119 | 119 | ); |
120 | 120 | |
121 | - $json = json_decode($response->getBody(),true); |
|
121 | + $json = json_decode($response->getBody(), true); |
|
122 | 122 | if (!$this->listReturnsArray) { |
123 | 123 | $json = array($json); |
124 | 124 | } |
@@ -56,6 +56,6 @@ |
||
56 | 56 | "json" => $this->sessionTokenData, |
57 | 57 | ) |
58 | 58 | ); |
59 | - return json_decode($response->getBody(),true); //json decode applied |
|
59 | + return json_decode($response->getBody(), true); //json decode applied |
|
60 | 60 | } |
61 | 61 | } |