Skip to content

Commit 0db0d5c

Browse files
committed
Update code formatting
* add a line before final returns. * use addData to immediately return $this.
1 parent 7323e85 commit 0db0d5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/MultipartStreamBuilder.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function addData($resource, array $headers = [])
8686
{
8787
$stream = $this->createStream($resource);
8888
$this->data[] = ['contents' => $stream, 'headers' => $headers];
89+
8990
return $this;
9091
}
9192

@@ -121,8 +122,8 @@ public function addResource($name, $resource, array $options = [])
121122
}
122123

123124
$this->prepareHeaders($name, $stream, $options['filename'], $options['headers']);
124-
$this->addData($stream, $options['headers']);
125-
return $this;
125+
126+
return $this->addData($stream, $options['headers']);
126127
}
127128

128129
/**

0 commit comments

Comments
 (0)