@@ -20,7 +20,7 @@ class Variables extends AbstractApi
2020 */
2121 public function all (int $ id , string $ name )
2222 {
23- return $ this ->get ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables ' );
23+ return $ this ->get ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables ' );
2424 }
2525
2626 /**
@@ -34,7 +34,7 @@ public function all(int $id, string $name)
3434 */
3535 public function show (int $ id , string $ name , string $ variableName )
3636 {
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 ));
3838 }
3939
4040 /**
@@ -58,7 +58,7 @@ public function create(int $id, string $name, array $parameters)
5858 throw new MissingArgumentException (['value ' ]);
5959 }
6060
61- return $ this ->post ('/repositories/ ' .rawurlencode ( $ id) .'/environments/ ' .rawurlencode ($ name ).'/variables ' , $ parameters );
61+ return $ this ->post ('/repositories/ ' .$ id .'/environments/ ' .rawurlencode ($ name ).'/variables ' , $ parameters );
6262 }
6363
6464 /**
@@ -75,7 +75,7 @@ public function create(int $id, string $name, array $parameters)
7575 */
7676 public function update (int $ id , string $ name , string $ variableName , array $ parameters )
7777 {
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 );
7979 }
8080
8181 /**
@@ -89,6 +89,6 @@ public function update(int $id, string $name, string $variableName, array $param
8989 */
9090 public function remove (int $ id , string $ name , string $ variableName )
9191 {
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 ));
9393 }
9494}
0 commit comments