| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | 5 | public function __toString(): string |
|
| 23 | { |
||
| 24 | 5 | return \sprintf( |
|
| 25 | 5 | 'cd /tools && git clone %s && cd /tools/%s && git checkout %s && composer install --no-dev --no-suggest --prefer-dist -n && box build && mv %s %s && chmod +x %s && cd && rm -rf /tools/%s', |
|
| 26 | 5 | $this->repository, |
|
| 27 | 5 | $this->targetDir(), |
|
| 28 | 5 | $this->version ?? '$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)', |
|
| 29 | 5 | $this->phar, |
|
| 30 | 5 | $this->bin, |
|
| 31 | 5 | $this->bin, |
|
| 32 | 5 | $this->targetDir() |
|
| 33 | ); |
||
| 43 |