Skip to content

Commit e75295b

Browse files
authored
fixes #227 (#228)
1 parent 328ddf8 commit e75295b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Redmine/Client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,7 @@ public function prepareRequest($path, $method = 'GET', $data = '')
600600
private function isUploadCall($path, $data)
601601
{
602602
return
603-
'/uploads.json' === $path ||
604-
'/uploads.xml' === $path &&
603+
('/uploads.json' === $path || '/uploads.xml' === $path) &&
605604
isset($data) &&
606605
is_file($data)
607606
;

tests/Unit/Api/IssueRelationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ public function testCreateCallsPost()
180180

181181
// Create the used mock objects
182182
$client = $this->getMockBuilder('Redmine\Client')
183-
->disableOriginalConstructor()
184-
->getMock();
183+
->disableOriginalConstructor()
184+
->getMock();
185185
$client->expects($this->once())
186-
->method('post')
187-
->with(
186+
->method('post')
187+
->with(
188188
'/issues/1/relations.json',
189189
json_encode([
190190
'relation' => [

0 commit comments

Comments
 (0)