Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Schöps committed Apr 24, 2019
1 parent 75a553e commit 590b672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Models/CamundaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ public function __construct($id = null, $attributes = [])

protected function post($url, $data = [], $json = false)
{
$data = $json ? ['json' => $data] : $data;
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
return $this->request($url, 'post', $data);
}

protected function put($url, $data = [], $json = false)
{
$data = $json ? ['json' => $data] : $data;
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
return $this->request($url, 'put', $data);
}

protected function delete($url, $data = [], $json = false)
{
$data = $json ? ['json' => $data] : $data;
$data = $json ? ['json' => $data] : array_merge(['json' => ['a' => 'b']], $data);
return $this->request($url, 'delete', $data);
}

Expand Down

0 comments on commit 590b672

Please sign in to comment.