@@ -20,7 +20,7 @@ class Variables extends AbstractApi
20
20
*/
21
21
public function all (int $ id , string $ name )
22
22
{
23
- return $ this ->get ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables ' );
23
+ return $ this ->get ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables ' );
24
24
}
25
25
26
26
/**
@@ -34,7 +34,7 @@ public function all(int $id, string $name)
34
34
*/
35
35
public function show (int $ id , string $ name , string $ variableName )
36
36
{
37
- return $ this ->get ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ));
37
+ return $ this ->get ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ));
38
38
}
39
39
40
40
/**
@@ -58,7 +58,7 @@ public function create(int $id, string $name, array $parameters)
58
58
throw new MissingArgumentException (['value ' ]);
59
59
}
60
60
61
- return $ this ->post ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables ' , $ parameters );
61
+ return $ this ->post ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables ' , $ parameters );
62
62
}
63
63
64
64
/**
@@ -75,7 +75,7 @@ public function create(int $id, string $name, array $parameters)
75
75
*/
76
76
public function update (int $ id , string $ name , string $ variableName , array $ parameters )
77
77
{
78
- return $ this ->patch ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ), $ parameters );
78
+ return $ this ->patch ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ), $ parameters );
79
79
}
80
80
81
81
/**
@@ -89,6 +89,6 @@ public function update(int $id, string $name, string $variableName, array $param
89
89
*/
90
90
public function remove (int $ id , string $ name , string $ variableName )
91
91
{
92
- return $ this ->delete ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ));
92
+ return $ this ->delete ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables/ ' .rawurlencode ($ variableName ));
93
93
}
94
94
}
0 commit comments