@@ -38,7 +38,7 @@ public function create($organization, array $params)
3838 public function show ($ team , $ organization = null )
3939 {
4040 if ($ organization ) {
41- return $ this ->get ('/orgs/ ' . rawurlencode ($ organization ) . '/teams/ ' . rawurlencode ($ team ));
41+ return $ this ->get ('/orgs/ ' . rawurlencode ($ organization ). '/teams/ ' . rawurlencode ($ team ));
4242 }
4343
4444 return $ this ->get ('/teams/ ' .rawurlencode ($ team ));
@@ -57,10 +57,10 @@ public function update($team, array $params, $organization = null)
5757 }
5858
5959 if ($ organization ) {
60- return $ this ->patch ('/teams/ ' . rawurlencode ($ team ), $ params );
60+ return $ this ->patch ('/orgs/ ' . rawurlencode ( $ organization ). ' / teams/ '. rawurlencode ($ team ), $ params );
6161 }
6262
63- return $ this ->patch ('/orgs/ ' . rawurlencode ( $ organization ) . ' / teams/ ' . rawurlencode ($ team ), $ params );
63+ return $ this ->patch ('/teams/ ' . rawurlencode ($ team ), $ params );
6464 }
6565
6666 /**
@@ -69,10 +69,10 @@ public function update($team, array $params, $organization = null)
6969 public function remove ($ team , $ organization = null )
7070 {
7171 if ($ organization ) {
72- return $ this ->delete ('/orgs/ ' . rawurlencode ($ organization ) . '/teams/ ' . rawurlencode ($ team ));
72+ return $ this ->delete ('/orgs/ ' . rawurlencode ($ organization ). '/teams/ ' . rawurlencode ($ team ));
7373 }
7474
75- return $ this ->delete ('/teams/ ' . rawurlencode ($ team ));
75+ return $ this ->delete ('/teams/ ' . rawurlencode ($ team ));
7676 }
7777
7878 /**
@@ -81,10 +81,10 @@ 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
87- return $ this ->get ('/teams/ ' . rawurlencode ($ team ) . '/members ' );
87+ return $ this ->get ('/teams/ ' . rawurlencode ($ team ). '/members ' );
8888 }
8989
9090 /**
@@ -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,10 +105,10 @@ 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
111- return $ this ->put ('/teams/ ' . rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
111+ return $ this ->put ('/teams/ ' . rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
112112 }
113113
114114 /**
@@ -117,10 +117,10 @@ 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
123- return $ this ->delete ('/teams/ ' . rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
123+ return $ this ->delete ('/teams/ ' . rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
124124 }
125125
126126 public function repositories ($ team )
0 commit comments