@@ -81,7 +81,7 @@ public function remove($team, $organization = null)
8181 public function members ($ team , $ organization = null )
8282 {
8383 if ($ organization ) {
84- return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ) . '/members ' );
84+ return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/teams/ ' .rawurlencode ($ team ). '/members ' );
8585 }
8686
8787 return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/members ' );
@@ -93,7 +93,7 @@ public function members($team, $organization = null)
9393 public function check ($ team , $ username , $ organization = null )
9494 {
9595 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 ));
9797 }
9898
9999 return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
@@ -105,7 +105,7 @@ public function check($team, $username, $organization = null)
105105 public function addMember ($ team , $ username , $ organization = null )
106106 {
107107 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 ));
109109 }
110110
111111 return $ this ->put ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
@@ -117,7 +117,7 @@ public function addMember($team, $username, $organization = null)
117117 public function removeMember ($ team , $ username , $ organization = null )
118118 {
119119 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 ));
121121 }
122122
123123 return $ this ->delete ('/teams/ ' .rawurlencode ($ team ).'/memberships/ ' .rawurlencode ($ username ));
0 commit comments