| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 130 | private function getCommand(string $type): string |
||
| 131 | { |
||
| 132 | $command = sprintf( |
||
| 133 | 'run --rm -v %s:%s -v %s:/dump -e SSHHOST=%s -e SSHUSER=%s -e ENGINE=%s -e PROJECT=%s -e VERSION=%s -e DATAPATH=%s %s %s', |
||
| 134 | $this->volume, |
||
| 135 | $this->path, |
||
| 136 | $this->dumpDirectory, |
||
| 137 | $this->sshHost, |
||
| 138 | $this->sshUser, |
||
| 139 | $this->engine, |
||
| 140 | $this->project, |
||
| 141 | $this->version, |
||
| 142 | $this->datapath, |
||
| 143 | $this->imageName, |
||
| 144 | $type |
||
| 145 | ); |
||
| 146 | return $command; |
||
| 147 | } |
||
| 148 | |||
| 150 | } |