@@ -38,7 +38,7 @@ public function create($organization, array $params)
38
38
public function show ($ team , $ organization = null )
39
39
{
40
40
if ($ organization ) {
41
- return $ this ->get ('/orgs/ ' . rawurlencode ($ organization ) . '/teams/ ' . rawurlencode ($ team ));
41
+ return $ this ->get ('/orgs/ ' . rawurlencode ($ organization ). '/teams/ ' . rawurlencode ($ team ));
42
42
}
43
43
44
44
return $ this ->get ('/teams/ ' .rawurlencode ($ team ));
@@ -57,10 +57,10 @@ public function update($team, array $params, $organization = null)
57
57
}
58
58
59
59
if ($ organization ) {
60
- return $ this ->patch ('/teams/ ' . rawurlencode ($ team ), $ params );
60
+ return $ this ->patch ('/orgs/ ' . rawurlencode ( $ organization ). ' / teams/ '. rawurlencode ($ team ), $ params );
61
61
}
62
62
63
- return $ this ->patch ('/orgs/ ' . rawurlencode ( $ organization ) . ' / teams/ ' . rawurlencode ($ team ), $ params );
63
+ return $ this ->patch ('/teams/ ' . rawurlencode ($ team ), $ params );
64
64
}
65
65
66
66
/**
@@ -69,10 +69,10 @@ public function update($team, array $params, $organization = null)
69
69
public function remove ($ team , $ organization = null )
70
70
{
71
71
if ($ organization ) {
72
- return $ this ->delete ('/orgs/ ' . rawurlencode ($ organization ) . '/teams/ ' . rawurlencode ($ team ));
72
+ return $ this ->delete ('/orgs/ ' . rawurlencode ($ organization ). '/teams/ ' . rawurlencode ($ team ));
73
73
}
74
74
75
- return $ this ->delete ('/teams/ ' . rawurlencode ($ team ));
75
+ return $ this ->delete ('/teams/ ' . rawurlencode ($ team ));
76
76
}
77
77
78
78
/**
@@ -81,10 +81,10 @@ 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
- return $ this ->get ('/teams/ ' . rawurlencode ($ team ) . '/members ' );
87
+ return $ this ->get ('/teams/ ' . rawurlencode ($ team ). '/members ' );
88
88
}
89
89
90
90
/**
@@ -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,10 +105,10 @@ 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
- return $ this ->put ('/teams/ ' . rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
111
+ return $ this ->put ('/teams/ ' . rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
112
112
}
113
113
114
114
/**
@@ -117,10 +117,10 @@ 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
- return $ this ->delete ('/teams/ ' . rawurlencode ($ team ) . '/memberships/ ' . rawurlencode ($ username ));
123
+ return $ this ->delete ('/teams/ ' . rawurlencode ($ team ). '/memberships/ ' . rawurlencode ($ username ));
124
124
}
125
125
126
126
public function repositories ($ team )
0 commit comments