File tree Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ class Comments extends AbstractApi
18
18
*
19
19
* @link https://developer.github.com/v3/gists/comments/#custom-media-types
20
20
* @param string|null $bodyType
21
+ *
22
+ * @return self
21
23
*/
22
24
public function configure ($ bodyType = null )
23
25
{
@@ -26,6 +28,8 @@ public function configure($bodyType = null)
26
28
}
27
29
28
30
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s+json ' , $ this ->client ->getApiVersion (), $ bodyType );
31
+
32
+ return $ this ;
29
33
}
30
34
31
35
/**
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ class Gists extends AbstractApi
21
21
*
22
22
* @link https://developer.github.com/v3/gists/#custom-media-types
23
23
* @param string|null $bodyType
24
+ *
25
+ * @return self
24
26
*/
25
27
public function configure ($ bodyType = null )
26
28
{
@@ -29,6 +31,8 @@ public function configure($bodyType = null)
29
31
}
30
32
31
33
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s ' , $ this ->client ->getApiVersion (), $ bodyType );
34
+
35
+ return $ this ;
32
36
}
33
37
34
38
public function all ($ type = null )
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ class Issue extends AbstractApi
26
26
*
27
27
* @link https://developer.github.com/v3/issues/#custom-media-types
28
28
* @param string|null $bodyType
29
+ *
30
+ * @return self
29
31
*/
30
32
public function configure ($ bodyType = null )
31
33
{
@@ -34,6 +36,8 @@ public function configure($bodyType = null)
34
36
}
35
37
36
38
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s+json ' , $ this ->client ->getApiVersion (), $ bodyType );
39
+
40
+ return $ this ;
37
41
}
38
42
39
43
/**
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ class PullRequest extends AbstractApi
23
23
* @link https://developer.github.com/v3/pulls/#custom-media-types
24
24
* @param string|null $bodyType
25
25
* @param string|null $apiVersion
26
+ *
27
+ * @return self
26
28
*/
27
29
public function configure ($ bodyType = null , $ apiVersion = null )
28
30
{
@@ -39,6 +41,8 @@ public function configure($bodyType = null, $apiVersion = null)
39
41
}
40
42
41
43
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s ' , $ this ->client ->getApiVersion (), $ bodyType );
44
+
45
+ return $ this ;
42
46
}
43
47
44
48
/**
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class Comments extends AbstractApi
20
20
* @link https://developer.github.com/v3/pulls/comments/#custom-media-types
21
21
* @param string|null $bodyType
22
22
* @param string|null @apiVersion
23
+ *
24
+ * @return self
23
25
*/
24
26
public function configure ($ bodyType = null , $ apiVersion = null )
25
27
{
@@ -32,6 +34,8 @@ public function configure($bodyType = null, $apiVersion = null)
32
34
}
33
35
34
36
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s+json ' , $ apiVersion , $ bodyType );
37
+
38
+ return $ this ;
35
39
}
36
40
37
41
public function all ($ username , $ repository , $ pullRequest = null )
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class Contents extends AbstractApi
22
22
*
23
23
* @link https://developer.github.com/v3/repo/contents/#custom-media-types
24
24
* @param string|null $bodyType
25
+ *
26
+ * @return self
25
27
*/
26
28
public function configure ($ bodyType = null )
27
29
{
@@ -30,6 +32,8 @@ public function configure($bodyType = null)
30
32
}
31
33
32
34
$ this ->acceptHeaderValue = sprintf ('application/vnd.github.%s.%s ' , $ this ->client ->getApiVersion (), $ bodyType );
35
+
36
+ return $ this ;
33
37
}
34
38
35
39
/**
You can’t perform that action at this time.
0 commit comments