| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 18 | 5 | public function __toString(): string |
|
| 19 | { |
||
| 20 | 5 | return \sprintf( |
|
| 21 | 5 | 'cd /tools && git clone %s && cd /tools/%s && git checkout %s && composer install --no-dev --no-suggest --prefer-dist -n', |
|
| 22 | 5 | $this->repository, |
|
| 23 | 5 | $this->targetDir(), |
|
| 24 | 5 | $this->version ?? '$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)' |
|
| 25 | ); |
||
| 35 |