File tree 7 files changed +31
-0
lines changed
7 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,16 @@ class Blobs extends AbstractApi
19
19
* Configure the Accept header depending on the blob type.
20
20
*
21
21
* @param string|null $bodyType
22
+ *
23
+ * @return self
22
24
*/
23
25
public function configure ($ bodyType = null )
24
26
{
25
27
if ('raw ' === $ bodyType ) {
26
28
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.raw ' , $ this ->client ->getApiVersion ());
27
29
}
30
+
31
+ return $ this ;
28
32
}
29
33
30
34
/**
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class Comments extends AbstractApi
20
20
*
21
21
* @link https://developer.github.com/v3/issues/comments/#custom-media-types
22
22
* @param string|null $bodyType
23
+ *
24
+ * @return self
23
25
*/
24
26
public function configure ($ bodyType = null )
25
27
{
@@ -28,6 +30,8 @@ public function configure($bodyType = null)
28
30
}
29
31
30
32
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s+json ' , $ this ->client ->getApiVersion (), $ bodyType );
33
+
34
+ return $ this ;
31
35
}
32
36
33
37
/**
Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ abstract class AbstractProjectApi extends AbstractApi
13
13
* Configure the accept header for Early Access to the projects api
14
14
*
15
15
* @see https://developer.github.com/v3/repos/projects/#projects
16
+ *
17
+ * @return self
16
18
*/
17
19
public function configure ()
18
20
{
19
21
$ this ->acceptHeaderValue = 'application/vnd.github.inertia-preview+json ' ;
22
+
23
+ return $ this ;
20
24
}
21
25
22
26
public function show ($ id , array $ params = array ())
Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ class Cards extends AbstractApi
14
14
* Configure the accept header for Early Access to the projects api
15
15
*
16
16
* @see https://developer.github.com/v3/repos/projects/#projects
17
+ *
18
+ * @return self
17
19
*/
18
20
public function configure ()
19
21
{
20
22
$ this ->acceptHeaderValue = 'application/vnd.github.inertia-preview+json ' ;
23
+
24
+ return $ this ;
21
25
}
22
26
23
27
public function all ($ columnId , array $ params = array ())
Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ class Columns extends AbstractApi
14
14
* Configure the accept header for Early Access to the projects api
15
15
*
16
16
* @see https://developer.github.com/v3/repos/projects/#projects
17
+ *
18
+ * return self
17
19
*/
18
20
public function configure ()
19
21
{
20
22
$ this ->acceptHeaderValue = 'application/vnd.github.inertia-preview+json ' ;
23
+
24
+ return $ this ;
21
25
}
22
26
23
27
public function all ($ projectId , array $ params = array ())
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ class Comments extends AbstractApi
15
15
{
16
16
use AcceptHeaderTrait;
17
17
18
+ /**
19
+ * @param string|null $bodyType
20
+ *
21
+ * @return self
22
+ */
18
23
public function configure ($ bodyType = null )
19
24
{
20
25
switch ($ bodyType ) {
@@ -35,6 +40,8 @@ public function configure($bodyType = null)
35
40
}
36
41
37
42
$ this ->acceptHeaderValue = $ header ;
43
+
44
+ return $ this ;
38
45
}
39
46
40
47
public function all ($ username , $ repository , $ sha = null )
Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ class Stargazers extends AbstractApi
20
20
* @see https://developer.github.com/v3/activity/starring/#alternative-response-with-star-creation-timestamps
21
21
*
22
22
* @param string $bodyType
23
+ *
24
+ * @return self
23
25
*/
24
26
public function configure ($ bodyType = null )
25
27
{
26
28
if ('star ' === $ bodyType ) {
27
29
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.star+json ' , $ this ->client ->getApiVersion ());
28
30
}
31
+
32
+ return $ this ;
29
33
}
30
34
31
35
public function all ($ username , $ repository )
You can’t perform that action at this time.
0 commit comments