@@ -31,7 +31,7 @@ class PersonalAccessTokens extends AbstractApi
31
31
* @var \DateTimeInterface $last_used_before return tokens used after the given time (inclusive)
32
32
* }
33
33
*/
34
- public function all (array $ parameters = [])
34
+ public function all (array $ parameters = []): mixed
35
35
{
36
36
$ resolver = $ this ->createOptionsResolver ();
37
37
$ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
@@ -74,17 +74,17 @@ public function all(array $parameters = [])
74
74
return $ this ->get ('personal_access_tokens ' , $ resolver ->resolve ($ parameters ));
75
75
}
76
76
77
- public function show (int $ id )
77
+ public function show (int $ id ): mixed
78
78
{
79
79
return $ this ->get ('personal_access_tokens/ ' .self ::encodePath ($ id ));
80
80
}
81
81
82
- public function current ()
82
+ public function current (): mixed
83
83
{
84
84
return $ this ->get ('personal_access_tokens/self ' );
85
85
}
86
86
87
- public function rotate (int $ id , array $ params = [])
87
+ public function rotate (int $ id , array $ params = []): mixed
88
88
{
89
89
$ resolver = $ this ->createOptionsResolver ();
90
90
$ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
@@ -98,7 +98,7 @@ public function rotate(int $id, array $params = [])
98
98
return $ this ->post ('personal_access_tokens/ ' .self ::encodePath ($ id ).'/rotate ' , $ resolver ->resolve ($ params ));
99
99
}
100
100
101
- public function rotateCurrent (array $ params = [])
101
+ public function rotateCurrent (array $ params = []): mixed
102
102
{
103
103
$ resolver = $ this ->createOptionsResolver ();
104
104
$ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
@@ -112,12 +112,12 @@ public function rotateCurrent(array $params = [])
112
112
return $ this ->post ('personal_access_tokens/self/rotate ' , $ resolver ->resolve ($ params ));
113
113
}
114
114
115
- public function remove (int $ id )
115
+ public function remove (int $ id ): mixed
116
116
{
117
117
return $ this ->delete ('personal_access_tokens/ ' .self ::encodePath ($ id ));
118
118
}
119
119
120
- public function removeCurrent ()
120
+ public function removeCurrent (): mixed
121
121
{
122
122
return $ this ->delete ('personal_access_tokens/self ' );
123
123
}
0 commit comments