Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix StyleCI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Huisinga committed Aug 3, 2017
1 parent 38f9170 commit b1709bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/CloudFlare/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function setCurlOption($key, $value)
*
* @return mixed
*/
public function get($path, array $data = array())
public function get($path, array $data = [])
{
return $this->request($path, $data, 'get');
}
Expand All @@ -110,7 +110,7 @@ public function get($path, array $data = array())
*
* @return mixed
*/
public function post($path, array $data = array())
public function post($path, array $data = [])
{
return $this->request($path, $data, 'post');
}
Expand All @@ -123,7 +123,7 @@ public function post($path, array $data = array())
*
* @return mixed
*/
public function put($path, array $data = array())
public function put($path, array $data = [])
{
return $this->request($path, $data, 'put');
}
Expand All @@ -136,7 +136,7 @@ public function put($path, array $data = array())
*
* @return mixed
*/
public function delete($path, array $data = array())
public function delete($path, array $data = [])
{
return $this->request($path, $data, 'delete');
}
Expand All @@ -149,7 +149,7 @@ public function delete($path, array $data = array())
*
* @return mixed
*/
public function patch($path, array $data = array())
public function patch($path, array $data = [])
{
return $this->request($path, $data, 'patch');
}
Expand All @@ -165,7 +165,7 @@ public function patch($path, array $data = array())
*
* @return mixed
*/
protected function request($path, array $data = array(), $method = 'get')
protected function request($path, array $data = [], $method = 'get')
{
if (!isset($this->email, $this->auth_key) || false === filter_var($this->email, FILTER_VALIDATE_EMAIL)) {
throw new AuthenticationException('Authentication information must be provided');
Expand Down Expand Up @@ -194,8 +194,8 @@ protected function request($path, array $data = array(), $method = 'get')

$user_agent = __FILE__;
$headers = [
"X-Auth-Email: {$this->email}",
"X-Auth-Key: {$this->auth_key}",
"X-Auth-Email: {$this->email}",
"X-Auth-Key: {$this->auth_key}",
"User-Agent: {$user_agent}",
'Content-type: application/json',
];
Expand Down

0 comments on commit b1709bc

Please sign in to comment.