Completed
Pull Request — master (#49)
by
unknown
05:52
created
lib/GitHub/Receiver/Gists/AbstractGists.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractGists
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $gists;
18
+	/** Properties */
19
+	protected $gists;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Gists $gists
25
-     */
26
-    public function __construct(Gists $gists)
27
-    {
28
-        $this->setGists($gists);
29
-        $this->setApi($gists->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Gists $gists
25
+	 */
26
+	public function __construct(Gists $gists)
27
+	{
28
+		$this->setGists($gists);
29
+		$this->setApi($gists->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get gists
34
-     *
35
-     * @return Gists
36
-     */
37
-    public function getGists(): Gists
38
-    {
39
-        return $this->gists;
40
-    }
32
+	/**
33
+	 * Get gists
34
+	 *
35
+	 * @return Gists
36
+	 */
37
+	public function getGists(): Gists
38
+	{
39
+		return $this->gists;
40
+	}
41 41
 
42
-    /**
43
-     * Set gists
44
-     *
45
-     * @param Gists $gists
46
-     *
47
-     * @return AbstractGists
48
-     */
49
-    public function setGists(Gists $gists): AbstractGists
50
-    {
51
-        $this->gists = $gists;
42
+	/**
43
+	 * Set gists
44
+	 *
45
+	 * @param Gists $gists
46
+	 *
47
+	 * @return AbstractGists
48
+	 */
49
+	public function setGists(Gists $gists): AbstractGists
50
+	{
51
+		$this->gists = $gists;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Users/AbstractUsers.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractUsers
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $users;
18
+	/** Properties */
19
+	protected $users;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Users $users
25
-     */
26
-    public function __construct(Users $users)
27
-    {
28
-        $this->setUsers($users);
29
-        $this->setApi($users->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Users $users
25
+	 */
26
+	public function __construct(Users $users)
27
+	{
28
+		$this->setUsers($users);
29
+		$this->setApi($users->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get users
34
-     *
35
-     * @return Users
36
-     */
37
-    public function getUsers(): Users
38
-    {
39
-        return $this->users;
40
-    }
32
+	/**
33
+	 * Get users
34
+	 *
35
+	 * @return Users
36
+	 */
37
+	public function getUsers(): Users
38
+	{
39
+		return $this->users;
40
+	}
41 41
 
42
-    /**
43
-     * Set users
44
-     *
45
-     * @param Users $users
46
-     *
47
-     * @return AbstractUsers
48
-     */
49
-    public function setUsers(Users $users): AbstractUsers
50
-    {
51
-        $this->users = $users;
42
+	/**
43
+	 * Set users
44
+	 *
45
+	 * @param Users $users
46
+	 *
47
+	 * @return AbstractUsers
48
+	 */
49
+	public function setUsers(Users $users): AbstractUsers
50
+	{
51
+		$this->users = $users;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Organizations/AbstractOrganizations.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractOrganizations
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $organizations;
18
+	/** Properties */
19
+	protected $organizations;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Organizations $organizations
25
-     */
26
-    public function __construct(Organizations $organizations)
27
-    {
28
-        $this->setOrganizations($organizations);
29
-        $this->setApi($organizations->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Organizations $organizations
25
+	 */
26
+	public function __construct(Organizations $organizations)
27
+	{
28
+		$this->setOrganizations($organizations);
29
+		$this->setApi($organizations->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get organizations
34
-     *
35
-     * @return Organizations
36
-     */
37
-    public function getOrganizations(): Organizations
38
-    {
39
-        return $this->organizations;
40
-    }
32
+	/**
33
+	 * Get organizations
34
+	 *
35
+	 * @return Organizations
36
+	 */
37
+	public function getOrganizations(): Organizations
38
+	{
39
+		return $this->organizations;
40
+	}
41 41
 
42
-    /**
43
-     * Set organizations
44
-     *
45
-     * @param Organizations $organizations
46
-     *
47
-     * @return AbstractOrganizations
48
-     */
49
-    public function setOrganizations(Organizations $organizations): AbstractOrganizations
50
-    {
51
-        $this->organizations = $organizations;
42
+	/**
43
+	 * Set organizations
44
+	 *
45
+	 * @param Organizations $organizations
46
+	 *
47
+	 * @return AbstractOrganizations
48
+	 */
49
+	public function setOrganizations(Organizations $organizations): AbstractOrganizations
50
+	{
51
+		$this->organizations = $organizations;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Miscellaneous/AbstractMiscellaneous.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractMiscellaneous
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $miscellaneous;
18
+	/** Properties */
19
+	protected $miscellaneous;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Miscellaneous $miscellaneous
25
-     */
26
-    public function __construct(Miscellaneous $miscellaneous)
27
-    {
28
-        $this->setMiscellaneous($miscellaneous);
29
-        $this->setApi($miscellaneous->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Miscellaneous $miscellaneous
25
+	 */
26
+	public function __construct(Miscellaneous $miscellaneous)
27
+	{
28
+		$this->setMiscellaneous($miscellaneous);
29
+		$this->setApi($miscellaneous->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get miscellaneous
34
-     *
35
-     * @return Miscellaneous
36
-     */
37
-    public function getMiscellaneous(): Miscellaneous
38
-    {
39
-        return $this->miscellaneous;
40
-    }
32
+	/**
33
+	 * Get miscellaneous
34
+	 *
35
+	 * @return Miscellaneous
36
+	 */
37
+	public function getMiscellaneous(): Miscellaneous
38
+	{
39
+		return $this->miscellaneous;
40
+	}
41 41
 
42
-    /**
43
-     * Set miscellaneous
44
-     *
45
-     * @param Miscellaneous $miscellaneous
46
-     *
47
-     * @return AbstractMiscellaneous
48
-     */
49
-    public function setMiscellaneous(Miscellaneous $miscellaneous): AbstractMiscellaneous
50
-    {
51
-        $this->miscellaneous = $miscellaneous;
42
+	/**
43
+	 * Set miscellaneous
44
+	 *
45
+	 * @param Miscellaneous $miscellaneous
46
+	 *
47
+	 * @return AbstractMiscellaneous
48
+	 */
49
+	public function setMiscellaneous(Miscellaneous $miscellaneous): AbstractMiscellaneous
50
+	{
51
+		$this->miscellaneous = $miscellaneous;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Miscellaneous/Markdown.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -13,38 +13,38 @@
 block discarded – undo
13 13
 class Markdown extends AbstractMiscellaneous
14 14
 {
15 15
 
16
-    /**
17
-     * Render an arbitrary Markdown document
18
-     *
19
-     * @link https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document
20
-     *
21
-     * @param string $text    The Markdown text to render
22
-     * @param string $mode    The rendering mode.
23
-     * @param string $context The repository context. Only taken into account when rendering as gfm
24
-     *
25
-     * @return array
26
-     */
27
-    public function render(string $text, string $mode = AbstractApi::MODE_MARKDOWN, string $context = ''): array
28
-    {
29
-        return $this->getApi()->request('/markdown', Request::METHOD_POST, [
30
-            'text'    => $text,
31
-            'mode'    => $mode,
32
-            'context' => $context
33
-        ]);
34
-    }
16
+	/**
17
+	 * Render an arbitrary Markdown document
18
+	 *
19
+	 * @link https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document
20
+	 *
21
+	 * @param string $text    The Markdown text to render
22
+	 * @param string $mode    The rendering mode.
23
+	 * @param string $context The repository context. Only taken into account when rendering as gfm
24
+	 *
25
+	 * @return array
26
+	 */
27
+	public function render(string $text, string $mode = AbstractApi::MODE_MARKDOWN, string $context = ''): array
28
+	{
29
+		return $this->getApi()->request('/markdown', Request::METHOD_POST, [
30
+			'text'    => $text,
31
+			'mode'    => $mode,
32
+			'context' => $context
33
+		]);
34
+	}
35 35
 
36
-    /**
37
-     * Render a Markdown document in raw mode
38
-     *
39
-     * @link https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode
40
-     *
41
-     * @param string $string
42
-     *
43
-     * @return array
44
-     */
45
-    public function renderRaw(string $string): array
46
-    {
47
-        return $this->getApi()->setContentType('text/plain')
48
-                    ->request('/markdown/raw', Request::METHOD_POST, ['file' => $string]);
49
-    }
36
+	/**
37
+	 * Render a Markdown document in raw mode
38
+	 *
39
+	 * @link https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode
40
+	 *
41
+	 * @param string $string
42
+	 *
43
+	 * @return array
44
+	 */
45
+	public function renderRaw(string $string): array
46
+	{
47
+		return $this->getApi()->setContentType('text/plain')
48
+					->request('/markdown/raw', Request::METHOD_POST, ['file' => $string]);
49
+	}
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Repositories/AbstractRepositories.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractRepositories
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $repositories;
18
+	/** Properties */
19
+	protected $repositories;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Repositories $repositories
25
-     */
26
-    public function __construct(Repositories $repositories)
27
-    {
28
-        $this->setRepositories($repositories);
29
-        $this->setApi($repositories->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Repositories $repositories
25
+	 */
26
+	public function __construct(Repositories $repositories)
27
+	{
28
+		$this->setRepositories($repositories);
29
+		$this->setApi($repositories->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get repositories
34
-     *
35
-     * @return Repositories
36
-     */
37
-    public function getRepositories(): Repositories
38
-    {
39
-        return $this->repositories;
40
-    }
32
+	/**
33
+	 * Get repositories
34
+	 *
35
+	 * @return Repositories
36
+	 */
37
+	public function getRepositories(): Repositories
38
+	{
39
+		return $this->repositories;
40
+	}
41 41
 
42
-    /**
43
-     * Set repositories
44
-     *
45
-     * @param Repositories $repositories
46
-     *
47
-     * @return AbstractRepositories
48
-     */
49
-    public function setRepositories(Repositories $repositories): AbstractRepositories
50
-    {
51
-        $this->repositories = $repositories;
42
+	/**
43
+	 * Set repositories
44
+	 *
45
+	 * @param Repositories $repositories
46
+	 *
47
+	 * @return AbstractRepositories
48
+	 */
49
+	public function setRepositories(Repositories $repositories): AbstractRepositories
50
+	{
51
+		$this->repositories = $repositories;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Enterprise/AbstractEnterprise.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -12,44 +12,44 @@
 block discarded – undo
12 12
  */
13 13
 abstract class AbstractEnterprise
14 14
 {
15
-    /** Api trait */
16
-    use Api;
15
+	/** Api trait */
16
+	use Api;
17 17
 
18
-    /** Properties */
19
-    protected $enterprise;
18
+	/** Properties */
19
+	protected $enterprise;
20 20
 
21
-    /**
22
-     * Constructor
23
-     *
24
-     * @param Enterprise $enterprise
25
-     */
26
-    public function __construct(Enterprise $enterprise)
27
-    {
28
-        $this->setEnterprise($enterprise);
29
-        $this->setApi($enterprise->getApi());
30
-    }
21
+	/**
22
+	 * Constructor
23
+	 *
24
+	 * @param Enterprise $enterprise
25
+	 */
26
+	public function __construct(Enterprise $enterprise)
27
+	{
28
+		$this->setEnterprise($enterprise);
29
+		$this->setApi($enterprise->getApi());
30
+	}
31 31
 
32
-    /**
33
-     * Get enterprise
34
-     *
35
-     * @return Enterprise
36
-     */
37
-    public function getEnterprise(): Enterprise
38
-    {
39
-        return $this->enterprise;
40
-    }
32
+	/**
33
+	 * Get enterprise
34
+	 *
35
+	 * @return Enterprise
36
+	 */
37
+	public function getEnterprise(): Enterprise
38
+	{
39
+		return $this->enterprise;
40
+	}
41 41
 
42
-    /**
43
-     * Set enterprise
44
-     *
45
-     * @param Enterprise $enterprise
46
-     *
47
-     * @return AbstractEnterprise
48
-     */
49
-    public function setEnterprise(Enterprise $enterprise): AbstractEnterprise
50
-    {
51
-        $this->enterprise = $enterprise;
42
+	/**
43
+	 * Set enterprise
44
+	 *
45
+	 * @param Enterprise $enterprise
46
+	 *
47
+	 * @return AbstractEnterprise
48
+	 */
49
+	public function setEnterprise(Enterprise $enterprise): AbstractEnterprise
50
+	{
51
+		$this->enterprise = $enterprise;
52 52
 
53
-        return $this;
54
-    }
53
+		return $this;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Api.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@  discard block
 block discarded – undo
3 3
 
4 4
 use FlexyProject\GitHub\AbstractApi;
5 5
 use FlexyProject\GitHub\Receiver\{
6
-    Activity\AbstractActivity, Enterprise\AbstractEnterprise, Gists\AbstractGists, GitData\AbstractGitData,
7
-    Issues\AbstractIssues, Miscellaneous\AbstractMiscellaneous, Organizations\AbstractOrganizations,
8
-    PullRequests\AbstractPullRequests, Repositories\AbstractRepositories
6
+	Activity\AbstractActivity, Enterprise\AbstractEnterprise, Gists\AbstractGists, GitData\AbstractGitData,
7
+	Issues\AbstractIssues, Miscellaneous\AbstractMiscellaneous, Organizations\AbstractOrganizations,
8
+	PullRequests\AbstractPullRequests, Repositories\AbstractRepositories
9 9
 };
10 10
 
11 11
 /**
@@ -15,30 +15,30 @@  discard block
 block discarded – undo
15 15
  */
16 16
 trait Api
17 17
 {
18
-    /** @var  mixed */
19
-    protected $api;
18
+	/** @var  mixed */
19
+	protected $api;
20 20
 
21
-    /**
22
-     * Get api
23
-     *
24
-     * @return AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories
25
-     */
26
-    public function getApi()
27
-    {
28
-        return $this->api;
29
-    }
21
+	/**
22
+	 * Get api
23
+	 *
24
+	 * @return AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories
25
+	 */
26
+	public function getApi()
27
+	{
28
+		return $this->api;
29
+	}
30 30
 
31
-    /**
32
-     * Set api
33
-     *
34
-     * @param AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories $api
35
-     *
36
-     * @return Api
37
-     */
38
-    public function setApi($api): self
39
-    {
40
-        $this->api = $api;
31
+	/**
32
+	 * Set api
33
+	 *
34
+	 * @param AbstractApi|AbstractActivity|AbstractEnterprise|AbstractGists|AbstractGitData|AbstractIssues|AbstractMiscellaneous|AbstractOrganizations|AbstractPullRequests|AbstractRepositories $api
35
+	 *
36
+	 * @return Api
37
+	 */
38
+	public function setApi($api): self
39
+	{
40
+		$this->api = $api;
41 41
 
42
-        return $this;
43
-    }
42
+		return $this;
43
+	}
44 44
 }
45 45
\ No newline at end of file
Please login to merge, or discard this patch.
lib/GitHub/Receiver/Repositories.php 1 patch
Indentation   +301 added lines, -301 removed lines patch added patch discarded remove patch
@@ -13,321 +13,321 @@
 block discarded – undo
13 13
 class Repositories extends AbstractReceiver
14 14
 {
15 15
 
16
-    /** Available sub-Receiver */
17
-    const COLLABORATORS = 'Collaborators';
18
-    const COMMENTS      = 'Comments';
19
-    const COMMITS       = 'Commits';
20
-    const CONTENTS      = 'Contents';
21
-    const DEPLOY_KEYS   = 'DeployKeys';
22
-    const DEPLOYMENTS   = 'Deployments';
23
-    const FORKS         = 'Forks';
24
-    const HOOKS         = 'Hooks';
25
-    const MERGING       = 'Merging';
26
-    const PAGES         = 'Pages';
27
-    const RELEASES      = 'Releases';
28
-    const STATISTICS    = 'Statistics';
29
-    const STATUSES      = 'Statuses';
16
+	/** Available sub-Receiver */
17
+	const COLLABORATORS = 'Collaborators';
18
+	const COMMENTS      = 'Comments';
19
+	const COMMITS       = 'Commits';
20
+	const CONTENTS      = 'Contents';
21
+	const DEPLOY_KEYS   = 'DeployKeys';
22
+	const DEPLOYMENTS   = 'Deployments';
23
+	const FORKS         = 'Forks';
24
+	const HOOKS         = 'Hooks';
25
+	const MERGING       = 'Merging';
26
+	const PAGES         = 'Pages';
27
+	const RELEASES      = 'Releases';
28
+	const STATISTICS    = 'Statistics';
29
+	const STATUSES      = 'Statuses';
30 30
 
31
-    /**
32
-     * List repositories for the authenticated user.
33
-     *
34
-     * @link https://developer.github.com/v3/repos/#list-your-repositories
35
-     *
36
-     * @param string $type
37
-     * @param string $sort
38
-     * @param string $direction
39
-     *
40
-     * @return array
41
-     */
42
-    public function listYourRepositories(string $type = AbstractApi::TYPE_ALL,
43
-                                         string $sort = AbstractApi::SORT_FULL_NAME,
44
-                                         string $direction = AbstractApi::DIRECTION_DESC): array
45
-    {
46
-        return $this->getApi()->request($this->getApi()->sprintf('/user/repos?:args',
47
-            http_build_query(['type' => $type, 'sort' => $sort, 'direction' => $direction])));
48
-    }
31
+	/**
32
+	 * List repositories for the authenticated user.
33
+	 *
34
+	 * @link https://developer.github.com/v3/repos/#list-your-repositories
35
+	 *
36
+	 * @param string $type
37
+	 * @param string $sort
38
+	 * @param string $direction
39
+	 *
40
+	 * @return array
41
+	 */
42
+	public function listYourRepositories(string $type = AbstractApi::TYPE_ALL,
43
+										 string $sort = AbstractApi::SORT_FULL_NAME,
44
+										 string $direction = AbstractApi::DIRECTION_DESC): array
45
+	{
46
+		return $this->getApi()->request($this->getApi()->sprintf('/user/repos?:args',
47
+			http_build_query(['type' => $type, 'sort' => $sort, 'direction' => $direction])));
48
+	}
49 49
 
50
-    /**
51
-     * List public repositories for the specified user.
52
-     *
53
-     * @link https://developer.github.com/v3/repos/#list-user-repositories
54
-     *
55
-     * @param string $username
56
-     * @param string $type
57
-     * @param string $sort
58
-     * @param string $direction
59
-     *
60
-     * @return array
61
-     */
62
-    public function listUserRepositories(string $username, string $type = AbstractApi::TYPE_OWNER,
63
-                                         string $sort = AbstractApi::SORT_FULL_NAME,
64
-                                         string $direction = AbstractApi::DIRECTION_DESC): array
65
-    {
66
-        return $this->getApi()->request($this->getApi()->sprintf('/users/:username/repos?:args', $username,
67
-            http_build_query(['type' => $type, 'sort' => $sort, 'direction' => $direction])));
68
-    }
50
+	/**
51
+	 * List public repositories for the specified user.
52
+	 *
53
+	 * @link https://developer.github.com/v3/repos/#list-user-repositories
54
+	 *
55
+	 * @param string $username
56
+	 * @param string $type
57
+	 * @param string $sort
58
+	 * @param string $direction
59
+	 *
60
+	 * @return array
61
+	 */
62
+	public function listUserRepositories(string $username, string $type = AbstractApi::TYPE_OWNER,
63
+										 string $sort = AbstractApi::SORT_FULL_NAME,
64
+										 string $direction = AbstractApi::DIRECTION_DESC): array
65
+	{
66
+		return $this->getApi()->request($this->getApi()->sprintf('/users/:username/repos?:args', $username,
67
+			http_build_query(['type' => $type, 'sort' => $sort, 'direction' => $direction])));
68
+	}
69 69
 
70
-    /**
71
-     * List repositories for the specified org.
72
-     *
73
-     * @link https://developer.github.com/v3/repos/#list-organization-repositories
74
-     *
75
-     * @param string $organization
76
-     * @param string $type
77
-     *
78
-     * @return array
79
-     */
80
-    public function listOrganizationRepositories(string $organization, string $type = AbstractApi::TYPE_ALL): array
81
-    {
82
-        return $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/repos?:args', $organization,
83
-            http_build_query(['type' => $type])));
84
-    }
70
+	/**
71
+	 * List repositories for the specified org.
72
+	 *
73
+	 * @link https://developer.github.com/v3/repos/#list-organization-repositories
74
+	 *
75
+	 * @param string $organization
76
+	 * @param string $type
77
+	 *
78
+	 * @return array
79
+	 */
80
+	public function listOrganizationRepositories(string $organization, string $type = AbstractApi::TYPE_ALL): array
81
+	{
82
+		return $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/repos?:args', $organization,
83
+			http_build_query(['type' => $type])));
84
+	}
85 85
 
86
-    /**
87
-     * List all public repositories
88
-     *
89
-     * @link https://developer.github.com/v3/repos/#list-all-public-repositories
90
-     *
91
-     * @param string $since
92
-     *
93
-     * @return array
94
-     */
95
-    public function listPublicRepositories(string $since = '1970-01-01'): array
96
-    {
97
-        return $this->getApi()->request($this->getApi()
98
-                                             ->sprintf('/repositories?:arg', http_build_query(['since', $since])));
99
-    }
86
+	/**
87
+	 * List all public repositories
88
+	 *
89
+	 * @link https://developer.github.com/v3/repos/#list-all-public-repositories
90
+	 *
91
+	 * @param string $since
92
+	 *
93
+	 * @return array
94
+	 */
95
+	public function listPublicRepositories(string $since = '1970-01-01'): array
96
+	{
97
+		return $this->getApi()->request($this->getApi()
98
+											 ->sprintf('/repositories?:arg', http_build_query(['since', $since])));
99
+	}
100 100
 
101
-    /**
102
-     * Create a new repository for the authenticated user.
103
-     *
104
-     * @link https://developer.github.com/v3/repos/#create
105
-     *
106
-     * @param string $name
107
-     * @param string $description
108
-     * @param string $homepage
109
-     * @param bool   $private
110
-     * @param bool   $hasIssues
111
-     * @param bool   $hasWiki
112
-     * @param bool   $hasDownloads
113
-     * @param int    $teamId
114
-     * @param bool   $autoInit
115
-     * @param string $gitignoreTemplate
116
-     * @param string $licenseTemplate
117
-     *
118
-     * @return array
119
-     */
120
-    public function createRepository(string $name, string $description = '', string $homepage = '',
121
-                                     bool $private = false, bool $hasIssues = true, bool $hasWiki = true,
122
-                                     bool $hasDownloads = true, int $teamId = 0, bool $autoInit = false,
123
-                                     string $gitignoreTemplate = '', string $licenseTemplate = ''): array
124
-    {
125
-        return $this->getApi()->request(sprintf('/user/repos'), Request::METHOD_POST, [
126
-                'name'               => $name,
127
-                'description'        => $description,
128
-                'homepage'           => $homepage,
129
-                'private'            => $private,
130
-                'has_issues'         => $hasIssues,
131
-                'has_wiki'           => $hasWiki,
132
-                'has_downloads'      => $hasDownloads,
133
-                'team_id'            => $teamId,
134
-                'auto_init'          => $autoInit,
135
-                'gitignore_template' => $gitignoreTemplate,
136
-                'license_template'   => $licenseTemplate
137
-            ]);
138
-    }
101
+	/**
102
+	 * Create a new repository for the authenticated user.
103
+	 *
104
+	 * @link https://developer.github.com/v3/repos/#create
105
+	 *
106
+	 * @param string $name
107
+	 * @param string $description
108
+	 * @param string $homepage
109
+	 * @param bool   $private
110
+	 * @param bool   $hasIssues
111
+	 * @param bool   $hasWiki
112
+	 * @param bool   $hasDownloads
113
+	 * @param int    $teamId
114
+	 * @param bool   $autoInit
115
+	 * @param string $gitignoreTemplate
116
+	 * @param string $licenseTemplate
117
+	 *
118
+	 * @return array
119
+	 */
120
+	public function createRepository(string $name, string $description = '', string $homepage = '',
121
+									 bool $private = false, bool $hasIssues = true, bool $hasWiki = true,
122
+									 bool $hasDownloads = true, int $teamId = 0, bool $autoInit = false,
123
+									 string $gitignoreTemplate = '', string $licenseTemplate = ''): array
124
+	{
125
+		return $this->getApi()->request(sprintf('/user/repos'), Request::METHOD_POST, [
126
+				'name'               => $name,
127
+				'description'        => $description,
128
+				'homepage'           => $homepage,
129
+				'private'            => $private,
130
+				'has_issues'         => $hasIssues,
131
+				'has_wiki'           => $hasWiki,
132
+				'has_downloads'      => $hasDownloads,
133
+				'team_id'            => $teamId,
134
+				'auto_init'          => $autoInit,
135
+				'gitignore_template' => $gitignoreTemplate,
136
+				'license_template'   => $licenseTemplate
137
+			]);
138
+	}
139 139
 
140
-    /**
141
-     * Create a new repository in this organization. The authenticated user must be a member of the specified
142
-     * organization.
143
-     *
144
-     * @link https://developer.github.com/v3/repos/#create
145
-     *
146
-     * @param string $organization
147
-     * @param string $name
148
-     * @param string $description
149
-     * @param string $homepage
150
-     * @param bool   $private
151
-     * @param bool   $hasIssues
152
-     * @param bool   $hasWiki
153
-     * @param bool   $hasDownloads
154
-     * @param int    $teamId
155
-     * @param bool   $autoInit
156
-     * @param string $gitignoreTemplate
157
-     * @param string $licenseTemplate
158
-     *
159
-     * @return array
160
-     */
161
-    public function createOrganizationRepository(string $organization, string $name, string $description = '',
162
-                                                 string $homepage = '', bool $private = false, bool $hasIssues = true,
163
-                                                 bool $hasWiki = true, bool $hasDownloads = true, int $teamId = 0,
164
-                                                 bool $autoInit = false, string $gitignoreTemplate = '',
165
-                                                 string $licenseTemplate = ''): array
166
-    {
167
-        return $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/repos', $organization),
168
-            Request::METHOD_POST, [
169
-                'name'               => $name,
170
-                'description'        => $description,
171
-                'homepage'           => $homepage,
172
-                'private'            => $private,
173
-                'has_issues'         => $hasIssues,
174
-                'has_wiki'           => $hasWiki,
175
-                'has_downloads'      => $hasDownloads,
176
-                'team_id'            => $teamId,
177
-                'auto_init'          => $autoInit,
178
-                'gitignore_template' => $gitignoreTemplate,
179
-                'license_template'   => $licenseTemplate
180
-            ]);
181
-    }
140
+	/**
141
+	 * Create a new repository in this organization. The authenticated user must be a member of the specified
142
+	 * organization.
143
+	 *
144
+	 * @link https://developer.github.com/v3/repos/#create
145
+	 *
146
+	 * @param string $organization
147
+	 * @param string $name
148
+	 * @param string $description
149
+	 * @param string $homepage
150
+	 * @param bool   $private
151
+	 * @param bool   $hasIssues
152
+	 * @param bool   $hasWiki
153
+	 * @param bool   $hasDownloads
154
+	 * @param int    $teamId
155
+	 * @param bool   $autoInit
156
+	 * @param string $gitignoreTemplate
157
+	 * @param string $licenseTemplate
158
+	 *
159
+	 * @return array
160
+	 */
161
+	public function createOrganizationRepository(string $organization, string $name, string $description = '',
162
+												 string $homepage = '', bool $private = false, bool $hasIssues = true,
163
+												 bool $hasWiki = true, bool $hasDownloads = true, int $teamId = 0,
164
+												 bool $autoInit = false, string $gitignoreTemplate = '',
165
+												 string $licenseTemplate = ''): array
166
+	{
167
+		return $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/repos', $organization),
168
+			Request::METHOD_POST, [
169
+				'name'               => $name,
170
+				'description'        => $description,
171
+				'homepage'           => $homepage,
172
+				'private'            => $private,
173
+				'has_issues'         => $hasIssues,
174
+				'has_wiki'           => $hasWiki,
175
+				'has_downloads'      => $hasDownloads,
176
+				'team_id'            => $teamId,
177
+				'auto_init'          => $autoInit,
178
+				'gitignore_template' => $gitignoreTemplate,
179
+				'license_template'   => $licenseTemplate
180
+			]);
181
+	}
182 182
 
183
-    /**
184
-     * Get
185
-     *
186
-     * @link https://developer.github.com/v3/repos/#get
187
-     * @return array
188
-     */
189
-    public function get(): array
190
-    {
191
-        return $this->getApi()->request($this->getApi()
192
-                                             ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()));
193
-    }
183
+	/**
184
+	 * Get
185
+	 *
186
+	 * @link https://developer.github.com/v3/repos/#get
187
+	 * @return array
188
+	 */
189
+	public function get(): array
190
+	{
191
+		return $this->getApi()->request($this->getApi()
192
+											 ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()));
193
+	}
194 194
 
195
-    /**
196
-     * Edit
197
-     *
198
-     * @link https://developer.github.com/v3/repos/#edit
199
-     *
200
-     * @param string $name
201
-     * @param string $description
202
-     * @param string $homepage
203
-     * @param bool   $private
204
-     * @param bool   $hasIssues
205
-     * @param bool   $hasWiki
206
-     * @param bool   $hasDownloads
207
-     * @param string $defaultBranch
208
-     *
209
-     * @return array
210
-     */
211
-    public function edit(string $name, string $description = '', string $homepage = '', bool $private = false,
212
-                         bool $hasIssues = true, bool $hasWiki = true, bool $hasDownloads = true,
213
-                         string $defaultBranch = ''): array
214
-    {
215
-        return $this->getApi()->request($this->getApi()
216
-                                             ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()),
217
-            Request::METHOD_PATCH, [
218
-                'name'           => $name,
219
-                'description'    => $description,
220
-                'homepage'       => $homepage,
221
-                'private'        => $private,
222
-                'has_issues'     => $hasIssues,
223
-                'has_wiki'       => $hasWiki,
224
-                'has_downloads'  => $hasDownloads,
225
-                'default_branch' => $defaultBranch
226
-            ]);
227
-    }
195
+	/**
196
+	 * Edit
197
+	 *
198
+	 * @link https://developer.github.com/v3/repos/#edit
199
+	 *
200
+	 * @param string $name
201
+	 * @param string $description
202
+	 * @param string $homepage
203
+	 * @param bool   $private
204
+	 * @param bool   $hasIssues
205
+	 * @param bool   $hasWiki
206
+	 * @param bool   $hasDownloads
207
+	 * @param string $defaultBranch
208
+	 *
209
+	 * @return array
210
+	 */
211
+	public function edit(string $name, string $description = '', string $homepage = '', bool $private = false,
212
+						 bool $hasIssues = true, bool $hasWiki = true, bool $hasDownloads = true,
213
+						 string $defaultBranch = ''): array
214
+	{
215
+		return $this->getApi()->request($this->getApi()
216
+											 ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()),
217
+			Request::METHOD_PATCH, [
218
+				'name'           => $name,
219
+				'description'    => $description,
220
+				'homepage'       => $homepage,
221
+				'private'        => $private,
222
+				'has_issues'     => $hasIssues,
223
+				'has_wiki'       => $hasWiki,
224
+				'has_downloads'  => $hasDownloads,
225
+				'default_branch' => $defaultBranch
226
+			]);
227
+	}
228 228
 
229
-    /**
230
-     * List contributors
231
-     *
232
-     * @link https://developer.github.com/v3/repos/#list-contributors
233
-     *
234
-     * @param string $anon
235
-     *
236
-     * @return array
237
-     */
238
-    public function listContributors(string $anon = '0'): array
239
-    {
240
-        return $this->getApi()->request($this->getApi()
241
-                                             ->sprintf('/repos/:owner/:repo/contributors?:args', $this->getOwner(),
242
-                                                 $this->getRepo(), http_build_query(['anon' => $anon])));
243
-    }
229
+	/**
230
+	 * List contributors
231
+	 *
232
+	 * @link https://developer.github.com/v3/repos/#list-contributors
233
+	 *
234
+	 * @param string $anon
235
+	 *
236
+	 * @return array
237
+	 */
238
+	public function listContributors(string $anon = '0'): array
239
+	{
240
+		return $this->getApi()->request($this->getApi()
241
+											 ->sprintf('/repos/:owner/:repo/contributors?:args', $this->getOwner(),
242
+												 $this->getRepo(), http_build_query(['anon' => $anon])));
243
+	}
244 244
 
245
-    /**
246
-     * List languages
247
-     *
248
-     * @link https://developer.github.com/v3/repos/#list-languages
249
-     * @return array
250
-     */
251
-    public function listLanguages(): array
252
-    {
253
-        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/languages', $this->getOwner(),
254
-            $this->getRepo()));
255
-    }
245
+	/**
246
+	 * List languages
247
+	 *
248
+	 * @link https://developer.github.com/v3/repos/#list-languages
249
+	 * @return array
250
+	 */
251
+	public function listLanguages(): array
252
+	{
253
+		return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/languages', $this->getOwner(),
254
+			$this->getRepo()));
255
+	}
256 256
 
257
-    /**
258
-     * List Teams
259
-     *
260
-     * @link https://developer.github.com/v3/repos/#list-teams
261
-     * @return array
262
-     */
263
-    public function listTeams(): array
264
-    {
265
-        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/teams', $this->getOwner(),
266
-            $this->getRepo()));
267
-    }
257
+	/**
258
+	 * List Teams
259
+	 *
260
+	 * @link https://developer.github.com/v3/repos/#list-teams
261
+	 * @return array
262
+	 */
263
+	public function listTeams(): array
264
+	{
265
+		return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/teams', $this->getOwner(),
266
+			$this->getRepo()));
267
+	}
268 268
 
269
-    /**
270
-     * List Tags
271
-     *
272
-     * @link https://developer.github.com/v3/repos/#list-tags
273
-     * @return array
274
-     */
275
-    public function listTags(): array
276
-    {
277
-        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/tags', $this->getOwner(),
278
-            $this->getRepo()));
279
-    }
269
+	/**
270
+	 * List Tags
271
+	 *
272
+	 * @link https://developer.github.com/v3/repos/#list-tags
273
+	 * @return array
274
+	 */
275
+	public function listTags(): array
276
+	{
277
+		return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/tags', $this->getOwner(),
278
+			$this->getRepo()));
279
+	}
280 280
 
281
-    /**
282
-     * List Branches
283
-     *
284
-     * @link https://developer.github.com/v3/repos/#list-branches
285
-     * @return array
286
-     */
287
-    public function listBranches(): array
288
-    {
289
-        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/branches', $this->getOwner(),
290
-            $this->getRepo()));
291
-    }
281
+	/**
282
+	 * List Branches
283
+	 *
284
+	 * @link https://developer.github.com/v3/repos/#list-branches
285
+	 * @return array
286
+	 */
287
+	public function listBranches(): array
288
+	{
289
+		return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/branches', $this->getOwner(),
290
+			$this->getRepo()));
291
+	}
292 292
 
293
-    /**
294
-     * Get Branch
295
-     *
296
-     * @link https://developer.github.com/v3/repos/#get-branch
297
-     *
298
-     * @param string $branch
299
-     *
300
-     * @return array
301
-     */
302
-    public function getBranch(string $branch): array
303
-    {
304
-        return $this->getApi()->request($this->getApi()
305
-                                             ->sprintf('/repos/:owner/:repo/branches/:branch', $this->getOwner(),
306
-                                                 $this->getRepo(), $branch));
307
-    }
293
+	/**
294
+	 * Get Branch
295
+	 *
296
+	 * @link https://developer.github.com/v3/repos/#get-branch
297
+	 *
298
+	 * @param string $branch
299
+	 *
300
+	 * @return array
301
+	 */
302
+	public function getBranch(string $branch): array
303
+	{
304
+		return $this->getApi()->request($this->getApi()
305
+											 ->sprintf('/repos/:owner/:repo/branches/:branch', $this->getOwner(),
306
+												 $this->getRepo(), $branch));
307
+	}
308 308
 
309
-    /**
310
-     * Delete a Repository
311
-     *
312
-     * @link https://developer.github.com/v3/repos/#delete-a-repository
313
-     * @return array
314
-     */
315
-    public function deleteRepository(): array
316
-    {
317
-        return $this->getApi()->request($this->getApi()
318
-                                             ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()),
319
-            Request::METHOD_DELETE);
320
-    }
309
+	/**
310
+	 * Delete a Repository
311
+	 *
312
+	 * @link https://developer.github.com/v3/repos/#delete-a-repository
313
+	 * @return array
314
+	 */
315
+	public function deleteRepository(): array
316
+	{
317
+		return $this->getApi()->request($this->getApi()
318
+											 ->sprintf('/repos/:owner/:repo', $this->getOwner(), $this->getRepo()),
319
+			Request::METHOD_DELETE);
320
+	}
321 321
 
322
-    /**
323
-     * Get the contents of a repository's license
324
-     *
325
-     * @link https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license
326
-     * @return array
327
-     */
328
-    public function getRepositoryLicenseContent(): array
329
-    {
330
-        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/license', $this->getOwner(),
331
-            $this->getRepo()));
332
-    }
322
+	/**
323
+	 * Get the contents of a repository's license
324
+	 *
325
+	 * @link https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license
326
+	 * @return array
327
+	 */
328
+	public function getRepositoryLicenseContent(): array
329
+	{
330
+		return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/license', $this->getOwner(),
331
+			$this->getRepo()));
332
+	}
333 333
 }
334 334
\ No newline at end of file
Please login to merge, or discard this patch.