Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 17, 2024
1 parent 04d543b commit 7d1ee08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Repositories.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function createTag($project_id, string $name, string $ref, ?string $messa
*/
public function createRelease($project_id, string $tag_name, string $description, ?string $name = null)
{
return $this->post($this->getProjectPath($project_id, 'releases'), array_filter([
return $this->post($this->getProjectPath($project_id, 'releases'), \array_filter([
'id' => $project_id,
'tag_name' => $tag_name,
'description' => $description,
Expand All @@ -171,7 +171,7 @@ public function createRelease($project_id, string $tag_name, string $description
*/
public function updateRelease($project_id, string $tag_name, string $description, ?string $name = null)
{
return $this->put($this->getProjectPath($project_id, 'releases/'.self::encodePath($tag_name)), array_filter([
return $this->put($this->getProjectPath($project_id, 'releases/'.self::encodePath($tag_name)), \array_filter([
'id' => $project_id,
'tag_name' => $tag_name,
'description' => $description,
Expand Down

0 comments on commit 7d1ee08

Please sign in to comment.