| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | public function makeRequest($request = "", $type = "GET") | ||
| 15 |     { | ||
| 16 | $client = new Client(); | ||
| 17 | $this->request = $client->request($type, $this->CF->Endpoint . $request, [ | ||
|  | |||
| 18 | 'headers' => [ | ||
| 19 | 'X-Auth-Key' => $this->CF->APIKEY, | ||
| 20 | 'X-Auth-Email' => $this->CF->Email | ||
| 21 | ] | ||
| 22 | ]); | ||
| 23 | |||
| 24 | $response = (string) $this->request->getBody(); | ||
| 25 | $this->response = @json_decode($response); | ||
| 26 | |||
| 27 | return $this; | ||
| 28 | } | ||
| 29 | |||
| 35 | 
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: