@@ -10,88 +10,88 @@ |
||
10 | 10 | */ |
11 | 11 | abstract class AbstractReceiver |
12 | 12 | { |
13 | - /** Api trait */ |
|
14 | - use Api; |
|
13 | + /** Api trait */ |
|
14 | + use Api; |
|
15 | 15 | |
16 | - /** Protected properties */ |
|
17 | - protected $owner = ''; |
|
18 | - protected $repo = ''; |
|
16 | + /** Protected properties */ |
|
17 | + protected $owner = ''; |
|
18 | + protected $repo = ''; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Constructor |
|
22 | - * |
|
23 | - * @param AbstractApi $api |
|
24 | - */ |
|
25 | - public function __construct(AbstractApi $api) |
|
26 | - { |
|
27 | - $this->setApi($api); |
|
28 | - } |
|
20 | + /** |
|
21 | + * Constructor |
|
22 | + * |
|
23 | + * @param AbstractApi $api |
|
24 | + */ |
|
25 | + public function __construct(AbstractApi $api) |
|
26 | + { |
|
27 | + $this->setApi($api); |
|
28 | + } |
|
29 | 29 | |
30 | - /** |
|
31 | - * Get owner |
|
32 | - * |
|
33 | - * @return string |
|
34 | - */ |
|
35 | - public function getOwner(): string |
|
36 | - { |
|
37 | - return $this->owner; |
|
38 | - } |
|
30 | + /** |
|
31 | + * Get owner |
|
32 | + * |
|
33 | + * @return string |
|
34 | + */ |
|
35 | + public function getOwner(): string |
|
36 | + { |
|
37 | + return $this->owner; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Set owner |
|
42 | - * |
|
43 | - * @param string $owner |
|
44 | - * |
|
45 | - * @return AbstractReceiver |
|
46 | - */ |
|
47 | - public function setOwner(string $owner): AbstractReceiver |
|
48 | - { |
|
49 | - $this->owner = $owner; |
|
40 | + /** |
|
41 | + * Set owner |
|
42 | + * |
|
43 | + * @param string $owner |
|
44 | + * |
|
45 | + * @return AbstractReceiver |
|
46 | + */ |
|
47 | + public function setOwner(string $owner): AbstractReceiver |
|
48 | + { |
|
49 | + $this->owner = $owner; |
|
50 | 50 | |
51 | - return $this; |
|
52 | - } |
|
51 | + return $this; |
|
52 | + } |
|
53 | 53 | |
54 | - /** |
|
55 | - * Get repository |
|
56 | - * |
|
57 | - * @return string |
|
58 | - */ |
|
59 | - public function getRepo(): string |
|
60 | - { |
|
61 | - return $this->repo; |
|
62 | - } |
|
54 | + /** |
|
55 | + * Get repository |
|
56 | + * |
|
57 | + * @return string |
|
58 | + */ |
|
59 | + public function getRepo(): string |
|
60 | + { |
|
61 | + return $this->repo; |
|
62 | + } |
|
63 | 63 | |
64 | - /** |
|
65 | - * Set repository |
|
66 | - * |
|
67 | - * @param string $repo |
|
68 | - * |
|
69 | - * @return AbstractReceiver |
|
70 | - */ |
|
71 | - public function setRepo(string $repo): AbstractReceiver |
|
72 | - { |
|
73 | - $this->repo = $repo; |
|
64 | + /** |
|
65 | + * Set repository |
|
66 | + * |
|
67 | + * @param string $repo |
|
68 | + * |
|
69 | + * @return AbstractReceiver |
|
70 | + */ |
|
71 | + public function setRepo(string $repo): AbstractReceiver |
|
72 | + { |
|
73 | + $this->repo = $repo; |
|
74 | 74 | |
75 | - return $this; |
|
76 | - } |
|
75 | + return $this; |
|
76 | + } |
|
77 | 77 | |
78 | - /** |
|
79 | - * Get a sub-receiver |
|
80 | - * |
|
81 | - * @param string $name |
|
82 | - * |
|
83 | - * @return null|object |
|
84 | - */ |
|
85 | - public function getReceiver(string $name) |
|
86 | - { |
|
87 | - $classPath = explode('\\', get_called_class()); |
|
88 | - $class = (string)$this->getApi() |
|
89 | - ->sprintf(':namespace\:class\:method', __NAMESPACE__, end($classPath), $name); |
|
78 | + /** |
|
79 | + * Get a sub-receiver |
|
80 | + * |
|
81 | + * @param string $name |
|
82 | + * |
|
83 | + * @return null|object |
|
84 | + */ |
|
85 | + public function getReceiver(string $name) |
|
86 | + { |
|
87 | + $classPath = explode('\\', get_called_class()); |
|
88 | + $class = (string)$this->getApi() |
|
89 | + ->sprintf(':namespace\:class\:method', __NAMESPACE__, end($classPath), $name); |
|
90 | 90 | |
91 | - if (class_exists($class)) { |
|
92 | - return new $class($this); |
|
93 | - } |
|
91 | + if (class_exists($class)) { |
|
92 | + return new $class($this); |
|
93 | + } |
|
94 | 94 | |
95 | - return null; |
|
96 | - } |
|
95 | + return null; |
|
96 | + } |
|
97 | 97 | } |
98 | 98 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractGitData |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $gitData; |
|
18 | + /** Properties */ |
|
19 | + protected $gitData; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param GitData $gitData |
|
25 | - */ |
|
26 | - public function __construct(GitData $gitData) |
|
27 | - { |
|
28 | - $this->setGitData($gitData); |
|
29 | - $this->setApi($gitData->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param GitData $gitData |
|
25 | + */ |
|
26 | + public function __construct(GitData $gitData) |
|
27 | + { |
|
28 | + $this->setGitData($gitData); |
|
29 | + $this->setApi($gitData->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get gitData |
|
34 | - * |
|
35 | - * @return GitData |
|
36 | - */ |
|
37 | - public function getGitData(): GitData |
|
38 | - { |
|
39 | - return $this->gitData; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get gitData |
|
34 | + * |
|
35 | + * @return GitData |
|
36 | + */ |
|
37 | + public function getGitData(): GitData |
|
38 | + { |
|
39 | + return $this->gitData; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set gitData |
|
44 | - * |
|
45 | - * @param GitData $gitData |
|
46 | - * |
|
47 | - * @return AbstractGitData |
|
48 | - */ |
|
49 | - public function setGitData(GitData $gitData): AbstractGitData |
|
50 | - { |
|
51 | - $this->gitData = $gitData; |
|
42 | + /** |
|
43 | + * Set gitData |
|
44 | + * |
|
45 | + * @param GitData $gitData |
|
46 | + * |
|
47 | + * @return AbstractGitData |
|
48 | + */ |
|
49 | + public function setGitData(GitData $gitData): AbstractGitData |
|
50 | + { |
|
51 | + $this->gitData = $gitData; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class AbstractPullRequests |
14 | 14 | { |
15 | - /** Api trait */ |
|
16 | - use Api; |
|
15 | + /** Api trait */ |
|
16 | + use Api; |
|
17 | 17 | |
18 | - /** Properties */ |
|
19 | - protected $pullRequests; |
|
18 | + /** Properties */ |
|
19 | + protected $pullRequests; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Constructor |
|
23 | - * |
|
24 | - * @param PullRequests $pullRequests |
|
25 | - */ |
|
26 | - public function __construct(PullRequests $pullRequests) |
|
27 | - { |
|
28 | - $this->setPullRequests($pullRequests); |
|
29 | - $this->setApi($pullRequests->getApi()); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Constructor |
|
23 | + * |
|
24 | + * @param PullRequests $pullRequests |
|
25 | + */ |
|
26 | + public function __construct(PullRequests $pullRequests) |
|
27 | + { |
|
28 | + $this->setPullRequests($pullRequests); |
|
29 | + $this->setApi($pullRequests->getApi()); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Get pullRequests |
|
34 | - * |
|
35 | - * @return PullRequests |
|
36 | - */ |
|
37 | - public function getPullRequests(): PullRequests |
|
38 | - { |
|
39 | - return $this->pullRequests; |
|
40 | - } |
|
32 | + /** |
|
33 | + * Get pullRequests |
|
34 | + * |
|
35 | + * @return PullRequests |
|
36 | + */ |
|
37 | + public function getPullRequests(): PullRequests |
|
38 | + { |
|
39 | + return $this->pullRequests; |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Set pullRequests |
|
44 | - * |
|
45 | - * @param PullRequests $pullRequests |
|
46 | - * |
|
47 | - * @return AbstractPullRequests |
|
48 | - */ |
|
49 | - public function setPullRequests(PullRequests $pullRequests): AbstractPullRequests |
|
50 | - { |
|
51 | - $this->pullRequests = $pullRequests; |
|
42 | + /** |
|
43 | + * Set pullRequests |
|
44 | + * |
|
45 | + * @param PullRequests $pullRequests |
|
46 | + * |
|
47 | + * @return AbstractPullRequests |
|
48 | + */ |
|
49 | + public function setPullRequests(PullRequests $pullRequests): AbstractPullRequests |
|
50 | + { |
|
51 | + $this->pullRequests = $pullRequests; |
|
52 | 52 | |
53 | - return $this; |
|
54 | - } |
|
53 | + return $this; |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -12,44 +12,44 @@ |
||
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 |
@@ -12,44 +12,44 @@ |
||
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 |
@@ -12,44 +12,44 @@ |
||
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 |
@@ -12,44 +12,44 @@ |
||
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 |
@@ -13,38 +13,38 @@ |
||
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 |
@@ -12,44 +12,44 @@ |
||
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 |