Skip to content

Commit

Permalink
ran phpcbf to fix indenting and commenting inconsistencies (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmossco authored and choran committed Oct 12, 2017
1 parent a62bedf commit 26d1e06
Show file tree
Hide file tree
Showing 28 changed files with 1,217 additions and 1,054 deletions.
81 changes: 43 additions & 38 deletions src/IntercomAdmins.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,51 @@
class IntercomAdmins
{

/** @var IntercomClient */
private $client;
/**
* @var IntercomClient
*/
private $client;

/**
* IntercomAdmins constructor.
* @param IntercomClient $client
*/
public function __construct($client)
{
$this->client = $client;
}
/**
* IntercomAdmins constructor.
*
* @param IntercomClient $client
*/
public function __construct($client)
{
$this->client = $client;
}

/**
* Returns list of Admins.
* @see https://developers.intercom.io/reference#list-admins
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function getAdmins($options = [])
{
return $this->client->get("admins", $options);
}
/**
* Returns list of Admins.
*
* @see https://developers.intercom.io/reference#list-admins
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function getAdmins($options = [])
{
return $this->client->get("admins", $options);
}

/**
* Gets a single Admin based on the Intercom ID.
* @see https://developers.intercom.com/v2.0/reference#view-an-admin
* @param integer $id
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function getAdmin($id, $options = [])
{
$path = $this->adminPath($id);
return $this->client->get($path, $options);
}
/**
* Gets a single Admin based on the Intercom ID.
*
* @see https://developers.intercom.com/v2.0/reference#view-an-admin
* @param integer $id
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function getAdmin($id, $options = [])
{
$path = $this->adminPath($id);
return $this->client->get($path, $options);
}

public function adminPath($id)
{
return 'admins/' . $id;
}
public function adminPath($id)
{
return 'admins/' . $id;
}
}
69 changes: 37 additions & 32 deletions src/IntercomBulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,44 @@
class IntercomBulk
{

/** @var IntercomClient */
private $client;
/**
* @var IntercomClient
*/
private $client;

/**
* IntercomBulk constructor.
* @param IntercomClient $client
*/
public function __construct($client)
{
$this->client = $client;
}
/**
* IntercomBulk constructor.
*
* @param IntercomClient $client
*/
public function __construct($client)
{
$this->client = $client;
}

/**
* Creates Users in bulk.
* @see https://developers.intercom.io/reference#bulk-user-operations
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function users($options)
{
return $this->client->post("bulk/users", $options);
}
/**
* Creates Users in bulk.
*
* @see https://developers.intercom.io/reference#bulk-user-operations
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function users($options)
{
return $this->client->post("bulk/users", $options);
}

/**
* Creates Events in bulk.
* @see https://developers.intercom.io/reference#bulk-event-operations
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function events($options)
{
return $this->client->post("bulk/events", $options);
}
/**
* Creates Events in bulk.
*
* @see https://developers.intercom.io/reference#bulk-event-operations
* @param array $options
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function events($options)
{
return $this->client->post("bulk/events", $options);
}
}
Loading

0 comments on commit 26d1e06

Please sign in to comment.