@@ -81,7 +81,7 @@ public function remove($team, $organization = null)
81
81
public function members ($ team , $ organization = null )
82
82
{
83
83
if ($ organization ) {
84
- return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ) . '/members ' );
84
+ return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ). '/members ' );
85
85
}
86
86
87
87
return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/members ' );
@@ -93,7 +93,7 @@ public function members($team, $organization = null)
93
93
public function check ($ team , $ username , $ organization = null )
94
94
{
95
95
if ($ organization ) {
96
- return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
96
+ return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
97
97
}
98
98
99
99
return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
@@ -105,7 +105,7 @@ public function check($team, $username, $organization = null)
105
105
public function addMember ($ team , $ username , $ organization = null )
106
106
{
107
107
if ($ organization ) {
108
- return $ this ->put ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
108
+ return $ this ->put ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
109
109
}
110
110
111
111
return $ this ->put ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
@@ -117,7 +117,7 @@ public function addMember($team, $username, $organization = null)
117
117
public function removeMember ($ team , $ username , $ organization = null )
118
118
{
119
119
if ($ organization ) {
120
- return $ this ->delete ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
120
+ return $ this ->delete ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
121
121
}
122
122
123
123
return $ this ->delete ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
0 commit comments