| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function getProcess(): Process |
||
| 11 | { |
||
| 12 | return blink()->once("process.{$this->id}", function () { |
||
|
|
|||
| 13 | $process = Process::fromShellCommandline($this->getProcessCommand()); |
||
| 14 | |||
| 15 | $process->setTimeout($this->getDefinition()->timeoutInSeconds()); |
||
| 16 | |||
| 17 | $manipulator = app(Manipulator::class); |
||
| 18 | |||
| 19 | return $manipulator->manipulateProcess($process, $this); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 66 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: