Skip to content

Commit 0725a2f

Browse files
authored
Merge pull request spatie#39 from dbakan/master
Fix some minor typos in Readme
2 parents 6fbfde1 + c1ec9ce commit 0725a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,21 @@ Under the hood the process will use `scp`.
124124

125125
Behind the scenes all commands will be performed using [Symfonys `Process`](https://symfony.com/doc/current/components/process.html).
126126

127-
You can configure to the `Process` by using the `configureProcess` method. Here's and example where we disable the timeout.
127+
You can configure to the `Process` by using the `configureProcess` method. Here's an example where we disable the timeout.
128128

129129
```php
130130
Ssh::create('user', 'host')->configureProcess(fn (Process $process) => $process->setTimeout(null));
131131
```
132132

133133
### Immediately responding to output
134134

135-
You can get notified whenever you command produces output by setting by passing a closure to `onOutput`.
135+
You can get notified whenever your command produces output by passing a closure to `onOutput`.
136136

137137
```php
138138
Ssh::create('user', 'host')->onOutput(fn($type, $line) => echo $line)->execute('whoami');
139139
```
140140

141-
Whenever there is output that close will get called with two parameters:
141+
Whenever there is output that closure will get called with two parameters:
142142
- `type`: this can be `Symfony\Component\Process\Process::OUT` for regular output and `Symfony\Component\Process\Process::ERR` for error output
143143
- `line`: the output itself
144144

0 commit comments

Comments
 (0)