Skip to content

Commit 26d1e06

Browse files
kmosscochoran
authored andcommitted
ran phpcbf to fix indenting and commenting inconsistencies (#233)
1 parent a62bedf commit 26d1e06

28 files changed

+1217
-1054
lines changed

src/IntercomAdmins.php

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,51 @@
55
class IntercomAdmins
66
{
77

8-
/** @var IntercomClient */
9-
private $client;
8+
/**
9+
* @var IntercomClient
10+
*/
11+
private $client;
1012

11-
/**
12-
* IntercomAdmins constructor.
13-
* @param IntercomClient $client
14-
*/
15-
public function __construct($client)
16-
{
17-
$this->client = $client;
18-
}
13+
/**
14+
* IntercomAdmins constructor.
15+
*
16+
* @param IntercomClient $client
17+
*/
18+
public function __construct($client)
19+
{
20+
$this->client = $client;
21+
}
1922

20-
/**
21-
* Returns list of Admins.
22-
* @see https://developers.intercom.io/reference#list-admins
23-
* @param array $options
24-
* @return mixed
25-
* @throws \GuzzleHttp\Exception\GuzzleException
26-
*/
27-
public function getAdmins($options = [])
28-
{
29-
return $this->client->get("admins", $options);
30-
}
23+
/**
24+
* Returns list of Admins.
25+
*
26+
* @see https://developers.intercom.io/reference#list-admins
27+
* @param array $options
28+
* @return mixed
29+
* @throws \GuzzleHttp\Exception\GuzzleException
30+
*/
31+
public function getAdmins($options = [])
32+
{
33+
return $this->client->get("admins", $options);
34+
}
3135

32-
/**
33-
* Gets a single Admin based on the Intercom ID.
34-
* @see https://developers.intercom.com/v2.0/reference#view-an-admin
35-
* @param integer $id
36-
* @param array $options
37-
* @return mixed
38-
* @throws \GuzzleHttp\Exception\GuzzleException
39-
*/
40-
public function getAdmin($id, $options = [])
41-
{
42-
$path = $this->adminPath($id);
43-
return $this->client->get($path, $options);
44-
}
36+
/**
37+
* Gets a single Admin based on the Intercom ID.
38+
*
39+
* @see https://developers.intercom.com/v2.0/reference#view-an-admin
40+
* @param integer $id
41+
* @param array $options
42+
* @return mixed
43+
* @throws \GuzzleHttp\Exception\GuzzleException
44+
*/
45+
public function getAdmin($id, $options = [])
46+
{
47+
$path = $this->adminPath($id);
48+
return $this->client->get($path, $options);
49+
}
4550

46-
public function adminPath($id)
47-
{
48-
return 'admins/' . $id;
49-
}
51+
public function adminPath($id)
52+
{
53+
return 'admins/' . $id;
54+
}
5055
}

src/IntercomBulk.php

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,44 @@
55
class IntercomBulk
66
{
77

8-
/** @var IntercomClient */
9-
private $client;
8+
/**
9+
* @var IntercomClient
10+
*/
11+
private $client;
1012

11-
/**
12-
* IntercomBulk constructor.
13-
* @param IntercomClient $client
14-
*/
15-
public function __construct($client)
16-
{
17-
$this->client = $client;
18-
}
13+
/**
14+
* IntercomBulk constructor.
15+
*
16+
* @param IntercomClient $client
17+
*/
18+
public function __construct($client)
19+
{
20+
$this->client = $client;
21+
}
1922

20-
/**
21-
* Creates Users in bulk.
22-
* @see https://developers.intercom.io/reference#bulk-user-operations
23-
* @param array $options
24-
* @return mixed
25-
* @throws \GuzzleHttp\Exception\GuzzleException
26-
*/
27-
public function users($options)
28-
{
29-
return $this->client->post("bulk/users", $options);
30-
}
23+
/**
24+
* Creates Users in bulk.
25+
*
26+
* @see https://developers.intercom.io/reference#bulk-user-operations
27+
* @param array $options
28+
* @return mixed
29+
* @throws \GuzzleHttp\Exception\GuzzleException
30+
*/
31+
public function users($options)
32+
{
33+
return $this->client->post("bulk/users", $options);
34+
}
3135

32-
/**
33-
* Creates Events in bulk.
34-
* @see https://developers.intercom.io/reference#bulk-event-operations
35-
* @param array $options
36-
* @return mixed
37-
* @throws \GuzzleHttp\Exception\GuzzleException
38-
*/
39-
public function events($options)
40-
{
41-
return $this->client->post("bulk/events", $options);
42-
}
36+
/**
37+
* Creates Events in bulk.
38+
*
39+
* @see https://developers.intercom.io/reference#bulk-event-operations
40+
* @param array $options
41+
* @return mixed
42+
* @throws \GuzzleHttp\Exception\GuzzleException
43+
*/
44+
public function events($options)
45+
{
46+
return $this->client->post("bulk/events", $options);
47+
}
4348
}

0 commit comments

Comments
 (0)