@@ -16,7 +16,7 @@ public function all(?int $group_id = null, array $parameters = [])
16
16
{
17
17
$ resolver = $ this ->createOptionsResolver ();
18
18
19
- $ path = null === $ group_id ? 'boards ' : $ this -> getGroupPath ($ group_id, ' boards ') ;
19
+ $ path = null === $ group_id ? 'boards ' : ' groups/ ' . self :: encodePath ($ group_id). ' / boards ' ;
20
20
21
21
return $ this ->get ($ path , $ resolver ->resolve ($ parameters ));
22
22
}
@@ -29,7 +29,7 @@ public function all(?int $group_id = null, array $parameters = [])
29
29
*/
30
30
public function show (int $ group_id , int $ board_id )
31
31
{
32
- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ));
32
+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ));
33
33
}
34
34
35
35
/**
@@ -40,7 +40,7 @@ public function show(int $group_id, int $board_id)
40
40
*/
41
41
public function create (int $ group_id , array $ params )
42
42
{
43
- return $ this ->post ($ this -> getGroupPath ($ group_id, ' boards ') , $ params );
43
+ return $ this ->post (' groups/ ' . self :: encodePath ($ group_id). ' / boards ' , $ params );
44
44
}
45
45
46
46
/**
@@ -52,7 +52,7 @@ public function create(int $group_id, array $params)
52
52
*/
53
53
public function update (int $ group_id , int $ board_id , array $ params )
54
54
{
55
- return $ this ->put ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ), $ params );
55
+ return $ this ->put (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ), $ params );
56
56
}
57
57
58
58
/**
@@ -63,7 +63,7 @@ public function update(int $group_id, int $board_id, array $params)
63
63
*/
64
64
public function remove (int $ group_id , int $ board_id )
65
65
{
66
- return $ this ->delete ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id) ));
66
+ return $ this ->delete (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ));
67
67
}
68
68
69
69
/**
@@ -74,7 +74,7 @@ public function remove(int $group_id, int $board_id)
74
74
*/
75
75
public function allLists (int $ group_id , int $ board_id )
76
76
{
77
- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists ' ) );
77
+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists ' );
78
78
}
79
79
80
80
/**
@@ -86,7 +86,7 @@ public function allLists(int $group_id, int $board_id)
86
86
*/
87
87
public function showList (int $ group_id , int $ board_id , int $ list_id )
88
88
{
89
- return $ this ->get ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ));
89
+ return $ this ->get (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ));
90
90
}
91
91
92
92
/**
@@ -102,7 +102,7 @@ public function createList(int $group_id, int $board_id, int $label_id)
102
102
'label_id ' => $ label_id ,
103
103
];
104
104
105
- return $ this ->post ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists ' ) , $ params );
105
+ return $ this ->post (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists ' , $ params );
106
106
}
107
107
108
108
/**
@@ -119,7 +119,7 @@ public function updateList(int $group_id, int $board_id, int $list_id, int $posi
119
119
'position ' => $ position ,
120
120
];
121
121
122
- return $ this ->put ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ), $ params );
122
+ return $ this ->put (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ), $ params );
123
123
}
124
124
125
125
/**
@@ -131,6 +131,6 @@ public function updateList(int $group_id, int $board_id, int $list_id, int $posi
131
131
*/
132
132
public function deleteList (int $ group_id , int $ board_id , int $ list_id )
133
133
{
134
- return $ this ->delete ($ this -> getGroupPath ($ group_id, ' boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id) ));
134
+ return $ this ->delete (' groups/ ' . self :: encodePath ($ group_id). ' / boards/ ' .self ::encodePath ($ board_id ).'/lists/ ' .self ::encodePath ($ list_id ));
135
135
}
136
136
}
0 commit comments