@@ 19-33 (lines=15) @@ | ||
16 | return $this->handleCommand(new RefreshCommand($this)); |
|
17 | } |
|
18 | ||
19 | public function update(ReadableStreamInterface $stream, string $commitMessage = '', string $branch = '') |
|
20 | { |
|
21 | if ($commitMessage === '') { |
|
22 | $commitMessage = 'Update ' . $this->name; |
|
23 | } |
|
24 | ||
25 | return $this->handleCommand(new FileUploadCommand( |
|
26 | $this->repository_fullname, |
|
27 | $commitMessage, |
|
28 | $this->url, |
|
29 | $this->sha, |
|
30 | $branch, |
|
31 | $stream |
|
32 | )); |
|
33 | } |
|
34 | ||
35 | public function delete(string $commitMessage = '', string $branch = '') |
|
36 | { |
|
@@ 35-48 (lines=14) @@ | ||
32 | )); |
|
33 | } |
|
34 | ||
35 | public function delete(string $commitMessage = '', string $branch = '') |
|
36 | { |
|
37 | if ($commitMessage === '') { |
|
38 | $commitMessage = 'Delete ' . $this->name; |
|
39 | } |
|
40 | ||
41 | return $this->handleCommand(new FileDeleteCommand( |
|
42 | $this->repository_fullname, |
|
43 | $commitMessage, |
|
44 | $this->url, |
|
45 | $this->sha, |
|
46 | $branch |
|
47 | )); |
|
48 | } |
|
49 | } |
|
50 |